Specifies which errant version of Ruby is used in raise.

This commit is contained in:
Ash Furrow 2017-10-17 15:14:39 -04:00
parent b4e1e39d3b
commit 11572c749b
No known key found for this signature in database
GPG Key ID: 01993AC704345FED

View File

@ -9,7 +9,7 @@ RUBY_VERSION_SPLIT = RUBY_VERSION.split "."
RUBY_X = RUBY_VERSION_SPLIT[0].to_i
RUBY_Y = RUBY_VERSION_SPLIT[1].to_i
if RUBY_X < 2 || (RUBY_X == 2 && RUBY_Y < 3)
raise "Homebrew must be run under Ruby 2.3!"
raise "Homebrew must be run under Ruby 2.3! You're running #{RUBY_VERSION}."
end
require "pathname"