End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Uri#redact_credentials_from
redact_credentials_from(text)
lib/rubygems/uri.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/uri.rb, line 66
def redact_credentials_from(text)
return text unless valid_uri? && password? && text.include?(to_s)
text.sub(password, "REDACTED")
end
No documentation available
See also
#password?
#redacted
#parse!
#respond_to_missing?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0