[ruby-core:78220] [Ruby trunk Bug#12961] Bad value for range using infinity for Date or Time
From:
vini@...
Date:
2016-11-19 12:20:06 UTC
List:
ruby-core #78220
Issue #12961 has been reported by Damjan Cilen邸ek. ---------------------------------------- Bug #12961: Bad value for range using infinity for Date or Time https://bugs.ruby-lang.org/issues/12961 * Author: Damjan Cilen邸ek * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- How to reproduce: ~~~ ruby -Float::INFINITY...Float::INFINITY # works Date.today...Float::INFINITY # works -Float::INFINITY...Date.today # fails with "ArgumentError: bad value for range" Time.now...Float::INFINITY #fails with "ArgumentError: bad value for range" -Float::INFINITY...Time.now #fails with "ArgumentError: bad value for range" ~~~ There's one similar bug report for 1.9.3, obviously still not resolved -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>