Skip to content

Commit

Permalink
Explicitly add a seconds separator for new nominations
Browse files Browse the repository at this point in the history
This is useful to make it clear to readers where an original nominator's statement ends, and any comments from seconds are.
I'd appreciate a review, just to ensure it doesn't break anything different; we definitely need this separator added for our meeting process.
  • Loading branch information
ShaneCurcuru committed Jan 29, 2025
1 parent 5e1f732 commit ce210b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/whimsy/asf/member-files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class MemberFiles
\s*Nomination\ [sS]tatement:\s*?\r?\n+(?<statement>.*)\z
}mx

SECONDS_SEPARATOR = '*** Seconds (if any; include your id) ***'
# get the latest meeting directory or nomination file
def self.latest_meeting(name=nil)
if name.nil? # we want the parent directory
Expand Down Expand Up @@ -130,6 +131,8 @@ def self.make_member_nomination(fields = {})
'',
' Nomination Statement:',
ASFString.reflow(statement, 4, 80),
'',
SECONDS_SEPARATOR,
''
].compact.join("\n") + "\n"
end
Expand All @@ -151,6 +154,8 @@ def self.make_board_nomination(fields = {})
'',
' Nomination Statement:',
ASFString.reflow(statement, 4, 80),
'',
SECONDS_SEPARATOR,
''
].compact.join("\n") + "\n"
end
Expand Down

0 comments on commit ce210b3

Please sign in to comment.