ruby-changes:59296
From: mihaibuzgau <ko1@a...>
Date: Tue, 17 Dec 2019 17:12:19 +0900 (JST)
Subject: [ruby-changes:59296] b226a68141 (master): [rubygems/rubygems] require `uri` in source.rb
https://git.ruby-lang.org/ruby.git/commit/?id=b226a68141 From b226a68141bd60db4b14264cb579e3eab9b6bcbd Mon Sep 17 00:00:00 2001 From: mihaibuzgau <mihai.buzgau@p...> Date: Mon, 16 Dec 2019 14:42:34 +0200 Subject: [rubygems/rubygems] require `uri` in source.rb https://github.com/rubygems/rubygems/commit/8de4d0272e diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb index 8572cb1..f910ddb 100644 --- a/lib/rubygems/source.rb +++ b/lib/rubygems/source.rb @@ -28,6 +28,7 @@ class Gem::Source https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source.rb#L28 # 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/