Sha256: 5c7c743a92fec9b23680cde47d462a96ee949a36380fc4edc016549675079472

Contents?: true

Size: 415 Bytes

Versions: 131

Compression:

Stored size: 415 Bytes

Contents

#--
# 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

Version data entries

131 entries across 118 versions & 44 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
spec_fill-0.1.2 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
spec_fill-0.1.1 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
spec_fill-0.1.0 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
saikouda-0.1.0 vendor/bundle/gems/rake-10.5.0/lib/rake/ext/time.rb
nabea2-0.1.2 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
nabea2-0.1.1 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
nabea2-0.1.0 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
hatena_bookmark_client_for_ruby-0.1.3 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
hatena_bookmark_client_for_ruby-0.1.2 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb
hatena_bookmark_client_for_ruby-0.1.0 vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb