Rainbows! Rack HTTP server user/dev discussion
 help / Atom feed
* [PATCH] fix Rainbows.now definition for old Rubies
@ 2015-11-24 22:33 Eric Wong
  0 siblings, 0 replies; 1+ messages in thread
From: Eric Wong @ 2015-11-24 22:33 UTC (permalink / raw)
  To: rainbows-public

Oops, blind substitution :x
---
 lib/rainbows.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index 6e7e4f2..3c12e79 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -108,7 +108,7 @@ def self.now
     end
   rescue NameError, NoMethodError
     def self.now # Ruby <= 2.0
-      Rainbows.now
+      Time.now.to_f
     end
   end
 
-- 
EW


^ permalink raw reply	[flat|threaded] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 22:33 [PATCH] fix Rainbows.now definition for old Rubies Eric Wong

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox