Remove canonical_segments check
This commit is contained in:
parent
36024e2a4d
commit
64d6d6aded
@ -8,9 +8,6 @@ raise "No Ruby version passed!" if HOMEBREW_REQUIRED_RUBY_VERSION.to_s.empty?
|
||||
require "rubygems"
|
||||
|
||||
ruby_version = Gem::Version.new(RUBY_VERSION)
|
||||
# This will only happen if the Ruby is too old anyway.
|
||||
abort unless ruby_version.respond_to?(:canonical_segments)
|
||||
|
||||
homebrew_required_ruby_version = Gem::Version.new(HOMEBREW_REQUIRED_RUBY_VERSION)
|
||||
|
||||
ruby_version_major, ruby_version_minor, = ruby_version.canonical_segments
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user