This is an automated email from the ASF dual-hosted git repository. rubys pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 52e0e256f7f6f70b7ce3f862d608405eed1804ad Author: Sam Ruby <[email protected]> AuthorDate: Wed Oct 18 11:05:25 2017 -0400 tabs => spaces --- lib/whimsy/asf/agenda/special.rb | 50 ++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/whimsy/asf/agenda/special.rb b/lib/whimsy/asf/agenda/special.rb index a95b270..be39442 100644 --- a/lib/whimsy/asf/agenda/special.rb +++ b/lib/whimsy/asf/agenda/special.rb @@ -124,31 +124,31 @@ class ASF::Board::Agenda end if need_chair - if text =~ /FURTHER RESOLVED, that\s+([^,]*?),?\s+be\b/ - chairname = $1.gsub(/\s+/, ' ').strip - - if chairname =~ /\s\(([-.\w]+)\)$/ - # if chair's id is present in parens, use that value - attrs['chair'] = $1 unless $1.empty? - chairname.sub! /\s+\(.*\)$/, '' - else - # match chair's name against people in the committee - chair = people.find {|person| person.first == chairname} - attrs['chair'] = (chair ? chair.last : nil) - end - - unless people.include? [chairname, attrs['chair']] - if people.empty? - attrs['warnings'] ||= ['Unable to locate PMC email addresses'] - elsif attrs['chair'] - attrs['warnings'] ||= ['Chair not member of PMC'] - else - attrs['warnings'] ||= ['Chair not found in resolution'] - end - end - else - attrs['warnings'] ||= ['Chair not found in resolution'] - end + if text =~ /FURTHER RESOLVED, that\s+([^,]*?),?\s+be\b/ + chairname = $1.gsub(/\s+/, ' ').strip + + if chairname =~ /\s\(([-.\w]+)\)$/ + # if chair's id is present in parens, use that value + attrs['chair'] = $1 unless $1.empty? + chairname.sub! /\s+\(.*\)$/, '' + else + # match chair's name against people in the committee + chair = people.find {|person| person.first == chairname} + attrs['chair'] = (chair ? chair.last : nil) + end + + unless people.include? [chairname, attrs['chair']] + if people.empty? + attrs['warnings'] ||= ['Unable to locate PMC email addresses'] + elsif attrs['chair'] + attrs['warnings'] ||= ['Chair not member of PMC'] + else + attrs['warnings'] ||= ['Chair not found in resolution'] + end + end + else + attrs['warnings'] ||= ['Chair not found in resolution'] + end end people.map! do |name, id| -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
