lib/travis/cli/command.rb in travis-1.3.0 vs lib/travis/cli/command.rb in travis-1.3.1
- old
+ new
@@ -116,10 +116,16 @@
"run `gem install travis -v #{version}` or use --skip-version-check."
end
rescue Timeout::Error, Faraday::Error::ClientError
end
+ def check_ruby
+ return if RUBY_VERSION > '1.9.2' or skip_version_check?
+ warn "Your Ruby version is outdated, please consider upgrading, as we will drop support for #{RUBY_VERSION} soon!"
+ end
+
def execute
+ check_ruby
check_arity(method(:run), *arguments)
load_config
check_version
setup
run(*arguments)