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.17 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.16 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.15 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.14 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.13 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.12 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.11 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.10 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.9 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.8 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.7 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.6 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.5 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.4 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.3 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.2 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.1 lib/whimsy/asf/agenda/minutes.rb