summaryrefslogtreecommitdiff
path: root/lib/rake/ext
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-25 07:03:36 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-25 07:03:36 +0000
commit3908d5d3303dbd3f20f106aa71b5c094b67ac577 (patch)
treec607909aa5a9b12e6c134cf6268b56db02881fc0 /lib/rake/ext
parentf20f84d60a467c1bc8a0ca81fe2788fa4c8079f8 (diff)
* lib/rake: Update to rake 10.4.0
* test/rake: ditto. * NEWS: ditto. * test/lib/minitest/unit.rb: Add compatibility shim for minitest 5. This only provides minitest 5 unit test naming compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/ext')
-rw-r--r--lib/rake/ext/time.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rake/ext/time.rb b/lib/rake/ext/time.rb
index c058649..d3b8cf9 100644
--- a/lib/rake/ext/time.rb
+++ b/lib/rake/ext/time.rb
@@ -1,12 +1,13 @@
#--
-# Extensions to time to allow comparisons with an early time class.
+# Extensions to time to allow comparisons with early and late time classes.
require 'rake/early_time'
+require 'rake/late_time'
class Time # :nodoc: all
alias rake_original_time_compare :<=>
def <=>(other)
- if Rake::EarlyTime === other
+ if Rake::EarlyTime === other || Rake::LateTime === other
- other.<=>(self)
else
rake_original_time_compare(other)