mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
Merge pull request #5482 from hsbt/rubygems-3-3-bundler-2-3
Merge RubyGems 3.3.x and Bundler 2.3.x
This commit is contained in:
parent
69463805f0
commit
6794f8cf92
115 changed files with 1701 additions and 889 deletions
|
@ -51,13 +51,13 @@ class Gem::SourceList
|
|||
require "uri"
|
||||
|
||||
src = case obj
|
||||
when URI
|
||||
Gem::Source.new(obj)
|
||||
when Gem::Source
|
||||
obj
|
||||
else
|
||||
Gem::Source.new(URI.parse(obj))
|
||||
end
|
||||
when URI
|
||||
Gem::Source.new(obj)
|
||||
when Gem::Source
|
||||
obj
|
||||
else
|
||||
Gem::Source.new(URI.parse(obj))
|
||||
end
|
||||
|
||||
@sources << src unless @sources.include?(src)
|
||||
src
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue