whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [2/2] Commit 6a3cdd6: run with latest lib; fix weakref
Date Mon, 22 Feb 2016 01:11:32 GMT
Commit 6a3cdd6d93c9013eab7d5ed35b6a71d9fa19e20b:
    run with latest lib; fix weakref


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
lib/whimsy/asf/mail.rb                                       | + -
www/board/subscriptions.cgi                                  | + 
------------------------------------------------------------
3 changes: 2 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index eeaca68..b47fbbc 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -5,7 +5,7 @@ module ASF
   class Mail
     def self.list
       begin
-        return @list[0..-1]
+        return Hash[@list.to_a] if @list
       rescue NoMethodError, WeakRef::RefError
       end
 
diff --git a/www/board/subscriptions.cgi b/www/board/subscriptions.cgi
index 3bcae55..8eb0a46 100755
--- a/www/board/subscriptions.cgi
+++ b/www/board/subscriptions.cgi
@@ -1,4 +1,5 @@
 #!/usr/bin/ruby1.9.1
+$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
 require 'wunderbar'
 require 'whimsy/asf'
 require 'whimsy/asf/podlings'

Mime
View raw message