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