mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[rubygems/rubygems] Remove backport of LATEST_RUBY_WITHOUT_PATCH_VERSIONS
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
24c8073b24
This commit is contained in:
parent
d8d0da5713
commit
485ee6d7a3
1 changed files with 0 additions and 17 deletions
|
@ -136,23 +136,6 @@ module Gem
|
||||||
full_gem_path
|
full_gem_path
|
||||||
end
|
end
|
||||||
|
|
||||||
unless const_defined?(:LATEST_RUBY_WITHOUT_PATCH_VERSIONS)
|
|
||||||
LATEST_RUBY_WITHOUT_PATCH_VERSIONS = Gem::Version.new("2.1")
|
|
||||||
|
|
||||||
alias_method :rg_required_ruby_version=, :required_ruby_version=
|
|
||||||
def required_ruby_version=(req)
|
|
||||||
self.rg_required_ruby_version = req
|
|
||||||
|
|
||||||
@required_ruby_version.requirements.map! do |op, v|
|
|
||||||
if v >= LATEST_RUBY_WITHOUT_PATCH_VERSIONS && v.release.segments.size == 4
|
|
||||||
[op == "~>" ? "=" : op, Gem::Version.new(v.segments.tap {|s| s.delete_at(3) }.join("."))]
|
|
||||||
else
|
|
||||||
[op, v]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def insecurely_materialized?
|
def insecurely_materialized?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue