whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <...@apache.org>
Subject [whimsy.git] [2/2] Commit 2ee7afe: Merge branch 'master' of github.com:apache/whimsy
Date Sun, 27 Mar 2016 19:34:10 GMT
Commit 2ee7afebe02af62a46d30080bb51bed68ed38fed:
    Merge branch 'master' of github.com:apache/whimsy


Branch: refs/heads/master
Author: Craig L Russell <craig.russell@oracle.com>
Committer: Craig L Russell <craig.russell@oracle.com>
Pusher: clr <clr@apache.org>

------------------------------------------------------------
lib/whimsy/asf/member.rb                                     | +++++++ -
------------------------------------------------------------
8 changes: 7 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index 64fc6c9..071d510 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -112,12 +112,18 @@ def self.sort(source)
   end
 
   class Person
-    def members_txt
+    def members_txt(full = false)
+      prefix, suffix = " *) ", "\n\n" if full
       @members_txt ||= ASF::Member.find_text_by_id(id)
+      "#{prefix}#{@members_txt}#{suffix}" if @members_txt
     end
 
     def member_emails
       ASF::Member.emails(members_txt)
     end
+
+    def member_name
+      members_txt[/(\w.*?)\s*(\/|$)/, 1] if members_txt
+    end
   end
 end

Mime
View raw message