Sha256: dc8075b5192d1d8e2a17c8f64091380fd1e39defb685c48be46e0902d1df7a67

Contents?: true

Size: 621 Bytes

Versions: 77

Compression:

Stored size: 621 Bytes

Contents

# Minutes from previous meetings

class ASF::Board::Agenda
  parse do
    minutes = @file.split(/^ 3. Minutes from previous meetings/,2).last.
      split(/^ 4. Executive Officer Reports/,2).first

    pattern = /
      \s{4}(?<section>[A-Z])\.
      \sThe.meeting.of\s+(?<title>.*?)\n
      (?<text>.*?)
      \[\s(?:.*?):\s*?(?<approved>.*?)
      \s*comments:(?<comments>.*?)\n
      \s{8,9}\]\n
    /mx

    scan minutes, pattern do |attrs|
      attrs['section'] = '3' + attrs['section'] 
      attrs['text'] = attrs['text'].strip
      attrs['approved'] = attrs['approved'].strip.gsub(/\s+/, ' ')
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
whimsy-asf-0.0.77 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.76 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.75 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.74 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.73 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.72 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.71 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.70 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.69 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.68 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.67 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.66 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.65 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.64 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.63 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.62 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.61 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.60 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.59 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.58 lib/whimsy/asf/agenda/minutes.rb