Sha256: f7f7e5dcb2ab8490e573ce605bc373a7c89f82c6b69c6368cbbbedc6956e3e8d

Contents?: true

Size: 567 Bytes

Versions: 77

Compression:

Stored size: 567 Bytes

Contents

# Additional Officer Reports and Committee Reports

class ASF::Board::Agenda
  parse do
    pattern = /
      \[(?<owner>[^\n]+)\]\n\n
      \s{7}See\sAttachment\s\s?(?<attach>\w+)[^\n]*?\s+
      \[\s[^\n]*\s*approved:\s*?(?<approved>.*?)
      \s*comments:(?<comments>.*?)\n\s{9}\]
    /mx

    scan @file, pattern do |attrs|
      attrs['shepherd'] = attrs['owner'].split('/').last.strip
      attrs['owner'] = attrs['owner'].split('/').first.strip

      attrs['comments'].gsub! /^ {1,10}(\w+:)/, '\1'
      attrs['comments'].gsub! /^ {11}/, ''
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
whimsy-asf-0.0.17 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.16 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.15 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.14 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.13 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.12 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.11 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.10 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.9 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.8 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.7 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.6 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.5 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.4 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.3 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.2 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.1 lib/whimsy/asf/agenda/committee.rb