diff options
author | David RodrÃguez <[email protected]> | 2024-11-22 11:18:52 +0100 |
---|---|---|
committer | git <[email protected]> | 2024-11-25 14:56:08 +0000 |
commit | 4e6ada3ae4e81d27270b0205eaa778a824cb09c6 () | |
tree | 47b0be5e4394c0e5579a6c0ec3943068256319f4 /lib/rubygems | |
parent | d2acc71d32c0731ba3d85d65b03e1484b2d66b69 (diff) |
[rubygems/rubygems] Remove unnecessary and out of date ruby version check
We already do this check in `setup.rb` itself, which is run earlier. https://.com/rubygems/rubygems/commit/160cc3f1c5
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -107,15 +107,6 @@ class Gem::Commands::SetupCommand < Gem::Command @verbose = nil end - def check_ruby_version - required_version = Gem::Requirement.new ">= 2.6.0" - - unless required_version.satisfied_by? Gem.ruby_version - alert_error "Expected Ruby version #{required_version}, is #{Gem.ruby_version}" - terminate_interaction 1 - end - end - def defaults_str # :nodoc: "--format-executable --document ri --regenerate-binstubs" end @@ -148,8 +139,6 @@ By default, this RubyGems will install gem as: def execute @verbose = Gem.configuration.really_verbose - check_ruby_version - require "fileutils" if Gem.configuration.really_verbose extend FileUtils::Verbose |