Assume Ruby 2. (#23889)

Homebrew now always uses Ruby 2.0 so you no longer need to check in all
these places for 2.0 or for 2.1 valid syntax.
This commit is contained in:
Mike McQuaid
2016-08-18 10:58:53 -04:00
committed by Josh Hagins
parent fb34c5c93f
commit 1f37eba4d0
6 changed files with 10 additions and 55 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ $opt_test = nil
###
def check_ruby
if RUBY_VERSION.to_f < 1.9
print "You are currently using Ruby ", RUBY_VERSION, ", but version 1.9 or above is required."
if RUBY_VERSION.to_f < 2.0
print "You are currently using Ruby ", RUBY_VERSION, ", but version 2.0 or above is required."
exit 1
end
end