/usr/lib/ruby/vendor_ruby/rake/ext/time.rb is in rake 10.5.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #--
# Extensions to time to allow comparisons with early and late time classes.
require 'rake/early_time'
require 'rake/late_time'
if RUBY_VERSION < "1.9"
class Time # :nodoc: all
alias rake_original_time_compare :<=>
def <=>(other)
if Rake::EarlyTime === other || Rake::LateTime === other
- other.<=>(self)
else
rake_original_time_compare(other)
end
end
end
end
|