Sha256: 0c6168c220e27dbe9a9ade51df47751728557404793f03355e14c0a727d21bdd

Contents?: true

Size: 316 Bytes

Versions: 50

Compression:

Stored size: 316 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_1_8?
  RUBY_VERSION.start_with? '1.8'
end

Version data entries

50 entries across 47 versions & 14 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/on_what.rb
tdiary-5.0.9 vendor/bundle/gems/docile-1.1.5/on_what.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/docile-1.1.5/on_what.rb
tdiary-5.0.7 vendor/bundle/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/on_what.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/docile-1.1.5/on_what.rb
tdiary-5.0.6 vendor/bundle/gems/docile-1.1.5/on_what.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/docile-1.1.5/on_what.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/on_what.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/on_what.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/docile-1.1.5/on_what.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/docile-1.1.5/on_what.rb
tdiary-5.0.5 vendor/bundle/gems/docile-1.1.5/on_what.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/docile-1.1.5/on_what.rb
tdiary-5.0.4 vendor/bundle/gems/docile-1.1.5/on_what.rb
abaci-0.3.0 vendor/bundle/gems/docile-1.1.5/on_what.rb