Skip to content

Commit

Permalink
[rubygems/rubygems] require uri in source.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibuzgau authored and hsbt committed Dec 17, 2019
1 parent ea717d1 commit b226a68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubygems/source.rb
Expand Up @@ -28,6 +28,7 @@ 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)
Expand Down

0 comments on commit b226a68

Please sign in to comment.