From fc0e8d00bc50ac8646b37adee3b599c83ce84a41 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sun, 25 Aug 2019 10:01:13 -0700 Subject: [ruby/date] Support -Float::INFINITY...date ranges Fixes Ruby Bug 12961 https://github.com/ruby/date/commit/7f533c2552 --- ext/date/lib/date.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') 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 -- cgit v1.2.3