mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
[rubygems/rubygems] Remove unnecessary and out of date ruby version check
We already do this check in `setup.rb` itself, which is run earlier.
160cc3f1c5
This commit is contained in:
parent
d2acc71d32
commit
4e6ada3ae4
1 changed files with 0 additions and 11 deletions
|
@ -107,15 +107,6 @@ class Gem::Commands::SetupCommand < Gem::Command
|
||||||
@verbose = nil
|
@verbose = nil
|
||||||
end
|
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:
|
def defaults_str # :nodoc:
|
||||||
"--format-executable --document ri --regenerate-binstubs"
|
"--format-executable --document ri --regenerate-binstubs"
|
||||||
end
|
end
|
||||||
|
@ -148,8 +139,6 @@ By default, this RubyGems will install gem as:
|
||||||
def execute
|
def execute
|
||||||
@verbose = Gem.configuration.really_verbose
|
@verbose = Gem.configuration.really_verbose
|
||||||
|
|
||||||
check_ruby_version
|
|
||||||
|
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
if Gem.configuration.really_verbose
|
if Gem.configuration.really_verbose
|
||||||
extend FileUtils::Verbose
|
extend FileUtils::Verbose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue