diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-01-15 20:51:02 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-29 12:14:21 +0900 |
commit | d64d0b54231208c7bec899a7fe8c3b98ec2e9a1b (patch) | |
tree | 9d18dbdda185bda6ccaf1f5a710f678dddbc907f /lib/rubygems/source/git.rb | |
parent | 6bbbfb4629a4fdb336d5ac4f625e97ce30c15a01 (diff) |
Vendor uri gem in RubyGems
Diffstat (limited to 'lib/rubygems/source/git.rb')
-rw-r--r-- | lib/rubygems/source/git.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index a0d03312b9..bda63c6844 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -221,14 +221,14 @@ class Gem::Source::Git < Gem::Source end ## - # A hash for the git gem based on the git repository URI. + # A hash for the git gem based on the git repository Gem::URI. def uri_hash # :nodoc: require_relative "../openssl" normalized = if @repository.match?(%r{^\w+://(\w+@)?}) - uri = URI(@repository).normalize.to_s.sub %r{/$},"" + uri = Gem::URI(@repository).normalize.to_s.sub %r{/$},"" uri.sub(/\A(\w+)/) { $1.downcase } else @repository |