From 64d6d6aded048fb7fc9e0cefb74317b5b3f4e12b Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 19 Jan 2024 12:41:07 -0800 Subject: [PATCH] Remove canonical_segments check --- Library/Homebrew/utils/ruby_check_version_script.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/Library/Homebrew/utils/ruby_check_version_script.rb b/Library/Homebrew/utils/ruby_check_version_script.rb index 40bd14aa90..cb77d2e4d3 100755 --- a/Library/Homebrew/utils/ruby_check_version_script.rb +++ b/Library/Homebrew/utils/ruby_check_version_script.rb @@ -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