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.77 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.76 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.75 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.74 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.73 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.72 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.71 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.70 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.69 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.68 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.67 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.66 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.65 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.64 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.63 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.62 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.61 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.60 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.59 lib/whimsy/asf/agenda/committee.rb
whimsy-asf-0.0.58 lib/whimsy/asf/agenda/committee.rb