mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.16 and Bundler-2.3.16
This commit is contained in:
parent
b9f6a09bd2
commit
a01f5ad1ec
66 changed files with 808 additions and 562 deletions
|
@ -26,15 +26,8 @@ class Gem::Source
|
|||
# Creates a new Source which will use the index located at +uri+.
|
||||
|
||||
def initialize(uri)
|
||||
begin
|
||||
unless uri.kind_of? URI
|
||||
uri = URI.parse(uri.to_s)
|
||||
end
|
||||
rescue URI::InvalidURIError
|
||||
raise if Gem::Source == self.class
|
||||
end
|
||||
|
||||
@uri = uri
|
||||
require_relative "uri"
|
||||
@uri = Gem::Uri.parse!(uri)
|
||||
@update_cache = nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue