diff options
author | David RodrÃguez <[email protected]> | 2021-08-24 12:02:29 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-08-31 19:06:14 +0900 |
commit | 1e290c31f4fdfd330b9cd1d5c7fe61efa4ab066c (patch) | |
tree | 0d3e58f3df45c7ab430375fe27550db6f6df6a65 /lib/rubygems/request.rb | |
parent | f0c6cc14b10616a61d3113dd5a88291fe915461b (diff) |
[rubygems/rubygems] Merge `Gem::UriParser` and `Gem::PrintableUri` into a `Gem::Uri` class
The new class is a wrapper on top of an URI. And then, when you want
credentials redacted, you call `#redacted` that returns a copy of itself,
but with credentials redacted.
https://github.com/rubygems/rubygems/commit/9581c2740a
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/rubygems/request.rb')
-rw-r--r-- | lib/rubygems/request.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index fdc4c55da0..72e25e20ab 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -184,7 +184,6 @@ class Gem::Request def perform_request(request) # :nodoc: connection = connection_for @uri - uri = Gem::PrintableUri.parse_uri(@uri) retried = false bad_response = false @@ -192,7 +191,7 @@ class Gem::Request begin @requests[connection.object_id] += 1 - verbose "#{request.method} #{uri}" + verbose "#{request.method} #{Gem::Uri.new(@uri).redacted}" file_name = File.basename(@uri.path) # perform download progress reporter only for gems |