Sha256: c490b226ecbf9bce47be7c4412d2ab1d1503102a33c67e1118b9503b66220d48

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

# NOTE: Very simple tests for what system we are on, extracted for sharing
#   between Rakefile, gemspec, and spec_helper. Not for use in actual library.

def on_travis?
  ENV["CI"] == "true"
end

def on_jruby?
  defined?(RUBY_ENGINE) && "jruby" == RUBY_ENGINE
end

def on_rubinius?
  defined?(RUBY_ENGINE) && "rbx" == RUBY_ENGINE
end

def on_1_8?
  RUBY_VERSION.start_with? "1.8"
end

def on_less_than_1_9_3?
  RUBY_VERSION < "1.9.3"
end

def on_less_than_2_0?
  RUBY_VERSION < "2.0.0"
end

def on_less_than_2_3?
  RUBY_VERSION < "2.3.0"
end

Version data entries

8 entries across 5 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/docile-1.3.4/on_what.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/docile-1.3.5/on_what.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/docile-1.3.5/on_what.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/docile-1.3.4/on_what.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/docile-1.3.5/on_what.rb
docile-1.3.5 on_what.rb
docile-1.3.4 on_what.rb
docile-1.3.3 on_what.rb