Sha256: da3b47997c879c7ab8aed6e8bc418732d92966f74eccb10d04209558cc5352b6

Contents?: true

Size: 266 Bytes

Versions: 83

Compression:

Stored size: 266 Bytes

Contents

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

class Time
  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

83 entries across 69 versions & 20 rubygems

Version Path
gss-0.0.7 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
gss-0.0.6 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
gss-0.0.5 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
candlepin-api-0.4.0 bundle/ruby/gems/rake-0.9.2.2/lib/rake/ext/time.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/time.rb
simple-client-0.0.3 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
challah-rolls-0.2.0 vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
challah-0.8.3 vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
rake-10.0.0.beta.2 lib/rake/ext/time.rb
rake-10.0.0.beta.1 lib/rake/ext/time.rb
rake-0.9.3.beta.3 lib/rake/ext/time.rb
rake-0.9.3.beta.2 lib/rake/ext/time.rb
challah-0.8.1 vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/time.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/time.rb