mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00
Merge RubyGems-3.2.4
This commit is contained in:
parent
d4f5827a6d
commit
c721e36cec
18 changed files with 107 additions and 172 deletions
|
@ -58,7 +58,7 @@ class Gem::Resolver::BestSet < Gem::Resolver::ComposedSet
|
|||
# The calling method must retry the exception to repeat the lookup.
|
||||
|
||||
def replace_failed_api_set(error) # :nodoc:
|
||||
uri = error.uri
|
||||
uri = error.original_uri
|
||||
uri = URI uri unless URI === uri
|
||||
uri = uri + "."
|
||||
|
||||
|
|
|
@ -43,9 +43,12 @@ class Gem::Resolver::IndexSpecification < Gem::Resolver::Specification
|
|||
##
|
||||
# The required_rubygems_version constraint for this specification
|
||||
#
|
||||
# A fallback is included because the original version of the specification
|
||||
# API didn't include that field, so some marshalled specs in the index have it
|
||||
# set to +nil+.
|
||||
|
||||
def required_rubygems_version
|
||||
spec.required_rubygems_version
|
||||
spec.required_rubygems_version || Gem::Requirement.default
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue