From: merch-redmine@... Date: 2019-08-15T01:52:00+00:00 Subject: [ruby-core:94363] [Ruby master Bug#6864] bad value for range when using infinity with date or time Issue #6864 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Assigned to Closed I think this issue is now solved by beginless and endless ranges. ---------------------------------------- Bug #6864: bad value for range when using infinity with date or time https://bugs.ruby-lang.org/issues/6864#change-80773 * Author: slbug (Alex Grebennik) * Status: Closed * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: * ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Steps to reproduce: require 'date' Range.new(Date.today, 1.0/0.0) # works Range.new(-1.0/0.0, Date.today) # fails Range.new(Time.now, 1.0/0.0) # fails Range.new(-1.0/0.0, Time.now) # fails Tested on 1.9.3 and trunk. I think this is a bug, because there is no logic error. just ranges without one bound. -- https://bugs.ruby-lang.org/ Unsubscribe: