whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow for Whimsy 'archiver'
Date Mon, 27 May 2019 18:47:23 GMT
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 ae9b18c  Allow for Whimsy 'archiver'
ae9b18c is described below

commit ae9b18c2c8235e8411edf83966126f679533f8f4
Author: Sebb <sebb@apache.org>
AuthorDate: Mon May 27 19:46:54 2019 +0100

    Allow for Whimsy 'archiver'
---
 lib/whimsy/asf/mlist.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/mlist.rb b/lib/whimsy/asf/mlist.rb
index 9f26661..0eda281 100644
--- a/lib/whimsy/asf/mlist.rb
+++ b/lib/whimsy/asf/mlist.rb
@@ -230,7 +230,7 @@ module ASF
 
     private
 
-    # return the archiver type as array: [:MBOX|:PONY|:MINO|:MAIL_ARCH|:MARKMAIL, 'public'|'private'|'alias'|'direct']
+    # return the archiver type as array: [:MBOX|:PONY|:MINO|:MAIL_ARCH|:MARKMAIL|:WHIMSY,
'public'|'private'|'alias'|'direct']
     # minotaur archiver names do not include any public/private indication as that is in
bin/.archives
     def self.archiver_type(email, dom,list)
       case email
@@ -245,6 +245,8 @@ module ASF
         when "apmail-#{dom.split('.').first}-#{list}-archive@www.apache.org" then return
[:MINO, 'direct']
       else
         return [:MARKMAIL, 'public'] if is_markmail_archiver?(email)
+        # Whimsy currently only 'archives' private lists
+        return [:WHIMSY, 'private'] if is_whimsy_archiver?(email)
       end
       raise "Unexpected archiver email #{email} for #{list}@#{dom}" # Should not happen?
     end


Mime
View raw message