Sha256: a80cd97c4d10a6bf9f0a5b1b8f81a383c909f07887f83177ef0db20b646e6e1a
Contents?: true
Size: 491 Bytes
Versions: 22
Compression:
Stored size: 491 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
Version data entries
22 entries across 16 versions & 3 rubygems