summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-01-04 10:09:05 +0900
committerHiroshi SHIBATA <[email protected]>2021-01-04 13:14:43 +0900
commit5537adf719a37a30b17d39111cc03700f353aa2d ()
tree7523de9950b8a0118143f4ee0029aee17d043e04 /lib/rubygems/remote_fetcher.rb
parent35c3a24c8cbcccff1108079360e2063fc354b4bd (diff)
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
Notes: Merged: https://.com/ruby/ruby/pull/4021
-rw-r--r--lib/rubygems/remote_fetcher.rb4
1 files changed, 3 insertions, 1 deletions
@@ -26,13 +26,15 @@ class Gem::RemoteFetcher
##
# The URI which was being accessed when the exception happened.
- attr_accessor :uri
def initialize(message, uri)
super message
uri = parse_uri(uri)
uri.password = 'REDACTED' if uri.respond_to?(:password) && uri.password
@uri = uri.to_s