whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: make 3C show up in the agenda
Date Sat, 01 Jun 2019 01:11:36 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 77a61c6  make 3C show up in the agenda
77a61c6 is described below

commit 77a61c6b6a7d9682c3f7f7eb0bebb1f2bfffff77
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri May 31 21:11:18 2019 -0400

    make 3C show up in the agenda
---
 lib/whimsy/asf/agenda/minutes.rb | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/agenda/minutes.rb b/lib/whimsy/asf/agenda/minutes.rb
index 7dfef54..ab47060 100644
--- a/lib/whimsy/asf/agenda/minutes.rb
+++ b/lib/whimsy/asf/agenda/minutes.rb
@@ -8,7 +8,7 @@ class ASF::Board::Agenda
     minutes = @file.split(/^ 3. Minutes from previous meetings/,2).last.
       split(OFFICER_SEPARATOR,2).first
 
-    pattern = /
+    pattern1 = /
       \s{4}(?<section>[A-Z])\.
       \sThe.meeting.of\s+(?<title>.*?)\n
       (?<text>.*?)
@@ -17,7 +17,7 @@ class ASF::Board::Agenda
       \s{8,9}\]\n
     /mx
 
-    scan minutes, pattern do |attrs|
+    scan minutes, pattern1 do |attrs|
       attrs['section'] = '3' + attrs['section'] 
       attrs['text'] = attrs['text'].strip
       attrs['approved'] = attrs['approved'].strip.gsub(/\s+/, ' ')
@@ -29,5 +29,17 @@ class ASF::Board::Agenda
         end
       end
     end
+
+   pattern2 = /
+     \s{4}(?<section>[A-Z])\.
+     \s+(?<title>Action.*?)\n
+     (?<text>.*)
+   /mx
+
+    scan minutes, pattern2 do |attrs|
+      attrs['section'] = '3' + attrs['section'] 
+      attrs['text'] = attrs['text'].strip
+    end
+
   end
 end


Mime
View raw message