diff --git a/Gemfile b/Gemfile index 2323d65..9d71912 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ require File.expand_path("on_what", File.dirname(__FILE__)) source "https://rubygems.org" # Travis-only dependencies go here -if on_travis? && !on_1_8? && !on_rubinius? +if on_travis? && !on_less_than_2_3? && !on_rubinius? group :test do gem "codecov", ">= 0.0.9", :require => false end diff --git a/on_what.rb b/on_what.rb index e64625d..60a1794 100644 --- a/on_what.rb +++ b/on_what.rb @@ -24,3 +24,7 @@ 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