Sha256: dc8075b5192d1d8e2a17c8f64091380fd1e39defb685c48be46e0902d1df7a67
Contents?: true
Size: 621 Bytes
Versions: 77
Compression:
Stored size: 621 Bytes
Contents
# Minutes from previous meetings class ASF::Board::Agenda parse do minutes = @file.split(/^ 3. Minutes from previous meetings/,2).last. split(/^ 4. Executive Officer Reports/,2).first pattern = / \s{4}(?<section>[A-Z])\. \sThe.meeting.of\s+(?<title>.*?)\n (?<text>.*?) \[\s(?:.*?):\s*?(?<approved>.*?) \s*comments:(?<comments>.*?)\n \s{8,9}\]\n /mx scan minutes, pattern do |attrs| attrs['section'] = '3' + attrs['section'] attrs['text'] = attrs['text'].strip attrs['approved'] = attrs['approved'].strip.gsub(/\s+/, ' ') end end end
Version data entries
77 entries across 77 versions & 1 rubygems