Merge pull request #16509 from dduugg/canonical-segments

Remove canonical_segments check
This commit is contained in:
Mike McQuaid 2024-01-21 19:15:42 +00:00 committed by GitHub
commit 25bef3dc10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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