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