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 2022/12/11 22:46:15 UTC
[whimsy] branch master updated: Additional helper methods
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 5fe086a7 Additional helper methods
5fe086a7 is described below
commit 5fe086a79cfe2a85a43b380b42242bf650ac4747
Author: Sebb <se...@apache.org>
AuthorDate: Sun Dec 11 22:46:10 2022 +0000
Additional helper methods
---
lib/whimsy/asf/member.rb | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index 39b3d1a2..f7cbec64 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -85,6 +85,16 @@ module ASF
status.select {|_k, v| v.start_with? 'Emeritus'}.keys
end
+ # Return a list of availids of deceased members
+ def self.deceased
+ status.select {|_k, v| v.start_with? 'Deceased'}.keys
+ end
+
+ # Return a list of availids of current members
+ def self.current
+ self.list.keys - self.status.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|