This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 9676fed3 Extract constants for dividers
9676fed3 is described below

commit 9676fed366e96690108bfb0252ef838a86576b18
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 21 15:34:06 2025 +0000

    Extract constants for dividers
---
 lib/whimsy/asf/member-files.rb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/member-files.rb b/lib/whimsy/asf/member-files.rb
index c508ff4a..d518d22c 100644
--- a/lib/whimsy/asf/member-files.rb
+++ b/lib/whimsy/asf/member-files.rb
@@ -40,6 +40,11 @@ module ASF
       }mx
 
     SECONDS_SEPARATOR = '    *** Statements by Seconds (below; please include 
your id) ***'
+
+    # section dividers in nomination files
+    MEMBER_DIVIDER = "-----------------------------------------\n"
+    BOARD_DIVIDER  = "---------------------------------------\n"
+
     # get the latest meeting directory or nomination file
     def self.latest_meeting(name=nil)
       if name.nil? # we want the parent directory
@@ -182,7 +187,7 @@ module ASF
         end
       end
       # reconstitute the file
-      [header, sections, 
''].join("-----------------------------------------\n")
+      [header, sections, ''].join(MEMBER_DIVIDER)
     end
 
     # Sort the board_nominees, optionally adding new entries
@@ -206,7 +211,7 @@ module ASF
         end
       end
       # reconstitute the file
-      [header, sections, ''].join("---------------------------------------\n")
+      [header, sections, ''].join(BOARD_DIVIDER)
     end
 
     # update the member nominees

Reply via email to