mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
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:
committed by
Josh Hagins
parent
fb34c5c93f
commit
1f37eba4d0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user