1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Move require uri to source_list

https://github.com/rubygems/rubygems/commit/c6b4df5bfc
This commit is contained in:
mihaibuzgau 2019-12-17 12:47:15 +02:00 committed by Hiroshi SHIBATA
parent 299db37957
commit ffa7ceceaf
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,6 @@ class Gem::Source
# Creates a new Source which will use the index located at +uri+.
def initialize(uri)
require "uri"
begin
unless uri.kind_of? URI
uri = URI.parse(uri.to_s)

View file

@ -50,6 +50,8 @@ class Gem::SourceList
# String.
def <<(obj)
require "uri"
src = case obj
when URI
Gem::Source.new(obj)