Sha256: 230b142b1e1c59522ebabfa295787559574b911bb87b7e21237d36095a07e5ed

Contents?: true

Size: 306 Bytes

Versions: 33

Compression:

Stored size: 306 Bytes

Contents

#--
# Extensions to time to allow comparisons with an early time class.

require 'rake/early_time'

class Time # :nodoc: all
  alias rake_original_time_compare :<=>
  def <=>(other)
    if Rake::EarlyTime === other
      - other.<=>(self)
    else
      rake_original_time_compare(other)
    end
  end
end

Version data entries

33 entries across 26 versions & 7 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/rake-10.3.2/lib/rake/ext/time.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb
spline-0.0.11 vendor/bundle/ruby/2.1.0/gems/rake-10.3.2/lib/rake/ext/time.rb