You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/02/22 02:11:32 UTC
[whimsy.git] [2/2] Commit 6a3cdd6: run with latest lib; fix weakref
Commit 6a3cdd6d93c9013eab7d5ed35b6a71d9fa19e20b:
run with latest lib; fix weakref
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@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'