blob: ea8b037e3933d958ce29077ede32af0ec43932d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#--
# Extensions to time to allow comparisons with an early time class.
require 'rake/early_time'
class Time
alias rake_original_time_compare :<=>
def <=>(other)
if Rake::EarlyTime === other
- other.<=>(self)
else
rake_original_time_compare(other)
end
end
end
|