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:
parent
299db37957
commit
ffa7ceceaf
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -50,6 +50,8 @@ class Gem::SourceList
|
|||
# String.
|
||||
|
||||
def <<(obj)
|
||||
require "uri"
|
||||
|
||||
src = case obj
|
||||
when URI
|
||||
Gem::Source.new(obj)
|
||||
|
|
Loading…
Reference in a new issue