You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/05/21 15:34:40 UTC
[whimsy] branch master updated: Get emeritus keys
This is an automated email from the ASF dual-hosted git repository.
sebb 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 15dfe0b Get emeritus keys
15dfe0b is described below
commit 15dfe0b2b0771de4b288949e430d1846236bb8fe
Author: Sebb <se...@apache.org>
AuthorDate: Thu May 21 16:34:28 2020 +0100
Get emeritus keys
---
lib/whimsy/asf/member.rb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index a54d899..12cb218 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -80,6 +80,11 @@ module ASF
status
end
+ # Return a list of availids of emeritus members
+ def self.emeritus
+ status.select{|k,v| v.start_with? 'Emeritus'}.keys
+ end
+
# An iterator that returns a list of ids and associated members.txt entries.
def each
ASF::Member.text.to_s.split(/^ \*\) /).each do |section|