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/26 22:08:41 UTC
[whimsy] branch master updated: Emeritus files have their own
directory
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 d18836c Emeritus files have their own directory
d18836c is described below
commit d18836c3cf68418bd26eaf6761fee667e36576d5
Author: Sebb <se...@apache.org>
AuthorDate: Tue May 26 23:08:32 2020 +0100
Emeritus files have their own directory
---
lib/whimsy/asf/memapps.rb | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/lib/whimsy/asf/memapps.rb b/lib/whimsy/asf/memapps.rb
index fe8bc6a..0d56f0e 100644
--- a/lib/whimsy/asf/memapps.rb
+++ b/lib/whimsy/asf/memapps.rb
@@ -12,10 +12,10 @@ module ASF
@@files = nil
@@tag = nil
- # list the stems of the files (excluding any ones which record emeritus)
+ # list the stems of the files
def self.stems
refresh
- apps = @@files.reject{|f| f =~ /_emeritus\.\w+$/}.map do |file|
+ apps = @@files.map do |file|
file.sub(/\.\w+$/, '')
end
apps
@@ -24,16 +24,7 @@ module ASF
# list the names of the files (excluding any ones which record emeritus)
def self.names
refresh
- @@files.reject{|f| f =~ /_emeritus\.\w+$/}
- end
-
- # names of emeritus files
- def self.emeritus
- refresh
- apps = @@files.select {|f| f =~ /_emeritus\.\w+$/}.map do |file|
- file.sub(/_emeritus\.\w+$/, '')
- end
- apps
+ @@files
end
def self.sanitize(name)
@@ -105,5 +96,4 @@ if __FILE__ == $0
puts ASF::MemApps.files.length
puts ASF::MemApps.names.length
puts ASF::MemApps.stems.length
- puts ASF::MemApps.emeritus.length
end