mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Vendor uri gem in RubyGems
This commit is contained in:
parent
6bbbfb4629
commit
d64d0b5423
59 changed files with 4673 additions and 180 deletions
|
@ -59,7 +59,7 @@ class Gem::Commands::SourcesCommand < Gem::Command
|
|||
|
||||
say "#{source_uri} added to sources"
|
||||
end
|
||||
rescue URI::Error, ArgumentError
|
||||
rescue Gem::URI::Error, ArgumentError
|
||||
say "#{source_uri} is not a URI"
|
||||
terminate_interaction 1
|
||||
rescue Gem::RemoteFetcher::FetchError => e
|
||||
|
@ -81,7 +81,7 @@ Do you want to add this source?
|
|||
end
|
||||
|
||||
def check_rubygems_https(source_uri) # :nodoc:
|
||||
uri = URI source_uri
|
||||
uri = Gem::URI source_uri
|
||||
|
||||
if uri.scheme && uri.scheme.casecmp("http").zero? &&
|
||||
uri.host.casecmp("rubygems.org").zero?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue