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.37 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.36 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.35 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.34 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.33 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.32 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.31 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.30 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.29 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.28 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.27 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.26 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.25 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.24 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.23 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.22 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.21 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.20 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.19 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.18 lib/whimsy/asf/agenda/committee.rb