diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-25 10:01:13 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-10-24 18:39:04 +0900 |
commit | fc0e8d00bc50ac8646b37adee3b599c83ce84a41 (patch) | |
tree | 23574e4a4c71ef4792520454f0ce9036bb0da021 /ext/date/lib/date.rb | |
parent | 4e40ca301cca692361627ac6db06c0f0074636f0 (diff) | |
download | ruby-fc0e8d00bc50ac8646b37adee3b599c83ce84a41.tar.gz |
[ruby/date] Support -Float::INFINITY...date ranges
Fixes Ruby Bug 12961
https://github.com/ruby/date/commit/7f533c2552
Diffstat (limited to 'ext/date/lib/date.rb')
-rw-r--r-- | ext/date/lib/date.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb index 9170a99ae9..b72b4157f2 100644 --- a/ext/date/lib/date.rb +++ b/ext/date/lib/date.rb @@ -5,6 +5,10 @@ require 'date_core' class Date + def infinite? + false + end + class Infinity < Numeric # :nodoc: include Comparable |