You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/06/22 18:05:23 UTC

[whimsy] branch master updated: normalize the start date

This is an automated email from the ASF dual-hosted git repository.

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

The following commit(s) were added to refs/heads/master by this push:
       new  6b5503b   normalize the start date
6b5503b is described below

commit 6b5503bc2e851ff7d30752145ecb0005029d4bdb
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Jun 22 14:05:07 2016 -0400

    normalize the start date
---
 lib/whimsy/asf/committee.rb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 6c6b63b..cef448c 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -116,10 +116,15 @@ module ASF
       info.each do |roster|
         # extract the committee name and canonicalise
         committee = list[@@namemap.call(roster[/(\w.*?)[ \t]+\(/,1])]
-        # get the start date
-        committee.established = roster[/\(est\. (.*?)\)/, 1]
+
+        # get and normalize the start date
+        established = roster[/\(est\. (.*?)\)/, 1]
+        established = "0#{established}" if established =~ /^\d\//
+        committee.established = established
+
         # extract the availids (is this used?)
         committee.info = roster.scan(/<(.*?)@apache\.org>/).flatten
+
         # drop (chair) markers and extract 0: name, 1: availid, 2: [date], 3: date
         # the date is optional (e.g. infrastructure)
         committee.roster = Hash[roster.gsub(/\(\w+\)/, '').

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].