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.57 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.56 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.55 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.54 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.53 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.52 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.51 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.50 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.49 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.48 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.47 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.46 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.45 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.44 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.43 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.42 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.41 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.40 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.39 lib/whimsy/asf/agenda/minutes.rb
whimsy-asf-0.0.38 lib/whimsy/asf/agenda/minutes.rb