This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch unit-test
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 9353a8af6b78d0bcf743420713700dcb58e64e66
Author: Sebb <[email protected]>
AuthorDate: Mon May 27 15:34:06 2024 +0100

    Merge mail_list into main class
---
 lib/whimsy/asf/committee.rb | 42 ++++++++++++++++++++++++++++++++++
 lib/whimsy/asf/mail.rb      | 56 ---------------------------------------------
 lib/whimsy/asf/podling.rb   | 10 ++++++++
 3 files changed, 52 insertions(+), 56 deletions(-)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 0e9f0e74..d9f53bfb 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -105,6 +105,48 @@ module ASF
       @@namemap.call(name.downcase)
     end
 
+    # mailing list for this committee.  Generally returns the first name in
+    # the dns (e.g. whimsical).  If so, it can be prefixed by a number of
+    # list names (e.g. dev, private) and <tt>.apache.org</tt> is to be
+    # appended.  In some cases, the name contains an <tt>@</tt> sign and
+    # is the full name for the mail list.
+    def mail_list
+      case name.downcase
+      when 'comdev'
+        'community'
+      when 'httpcomponents'
+        'hc'
+      when 'whimsy'
+        'whimsical'
+
+      when 'brand'
+        '[email protected]'
+      when 'infrastructure'
+        'infra'
+      when 'dataprivacy'
+        '[email protected]'
+      when 'legalaffairs' # Not sure what uses this
+        '[email protected]'
+      when 'legal' # This seems to be used by the board agenda
+        '[email protected]'
+      when 'fundraising'
+        '[email protected]'
+      when 'marketingandpublicity'
+        '[email protected]'
+      # now using [email protected]
+      # when 'tac'
+      #   '[email protected]'
+      when 'w3crelations'
+        '[email protected]'
+      when 'concom'
+        '[email protected]'
+      when 'publicaffairs'
+        '[email protected]'
+      else
+        name.downcase
+      end
+    end
+
     # load committee info from <tt>committee-info.txt</tt>.  Will not reparse
     # if the file has already been parsed and the underlying file has not
     # changed.
diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index 38cea631..944917f4 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -331,60 +331,4 @@ module ASF
     end
   end
 
-  class Committee
-    # mailing list for this committee.  Generally returns the first name in
-    # the dns (e.g. whimsical).  If so, it can be prefixed by a number of
-    # list names (e.g. dev, private) and <tt>.apache.org</tt> is to be
-    # appended.  In some cases, the name contains an <tt>@</tt> sign and
-    # is the full name for the mail list.
-    def mail_list
-      case name.downcase
-      when 'comdev'
-        'community'
-      when 'httpcomponents'
-        'hc'
-      when 'whimsy'
-        'whimsical'
-
-      when 'brand'
-        '[email protected]'
-      when 'infrastructure'
-        'infra'
-      when 'dataprivacy'
-        '[email protected]'
-      when 'legalaffairs' # Not sure what uses this
-        '[email protected]'
-      when 'legal' # This seems to be used by the board agenda
-        '[email protected]'
-      when 'fundraising'
-        '[email protected]'
-      when 'marketingandpublicity'
-        '[email protected]'
-      # now using [email protected]
-      # when 'tac'
-      #   '[email protected]'
-      when 'w3crelations'
-        '[email protected]'
-      when 'concom'
-        '[email protected]'
-      when 'publicaffairs'
-        '[email protected]'
-      else
-        name.downcase
-      end
-    end
-  end
-
-  class Podling
-    # base name used in constructing mailing list name.
-    def mail_list
-      case name.downcase
-      when 'odftoolkit'
-        'odf'
-      else
-        name.downcase
-      end
-    end
-  end
-
 end
diff --git a/lib/whimsy/asf/podling.rb b/lib/whimsy/asf/podling.rb
index d2fa0cf3..b0ffb8c7 100644
--- a/lib/whimsy/asf/podling.rb
+++ b/lib/whimsy/asf/podling.rb
@@ -285,6 +285,16 @@ module ASF
       ASF::Project.find(id).hasLDAP?
     end
 
+    # base name used in constructing mailing list name.
+    def mail_list
+      case name.downcase
+      when 'odftoolkit'
+        'odf'
+      else
+        name.downcase
+      end
+    end
+    
     # development mailing list associated with a given podling
     def dev_mail_list
       case name

Reply via email to