diff options
author | Jeremy Evans <[email protected]> | 2019-06-26 13:20:22 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-27 07:43:32 -0700 |
commit | 869e2dd8c8efc1e7a043c9eee82d97c47befbcc7 (patch) | |
tree | 721a3854d060bcfb65f9e0ad4508e1e0f90599b7 /lib/uri/common.rb | |
parent | a2c26fe1c6d49b54494b7c6301cc4c77596eec0c (diff) |
Warn for URI.{,un}{escape,encode}, even if not in verbose mode
The verbose mode warning has been present for almost 10 years.
If we ever plan to remove these methods, we should make the warning
a regular deprecation warning so that people are aware.
Implements [Feature #15961]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2494
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r-- | lib/uri/common.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 811ec98aad..b886923c9e 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -99,7 +99,7 @@ module URI # # => "@%3F@%21" # def escape(*arg) - warn "URI.escape is obsolete", uplevel: 1 if $VERBOSE + warn "URI.escape is obsolete", uplevel: 1 DEFAULT_PARSER.escape(*arg) end alias encode escape @@ -130,7 +130,7 @@ module URI # # => "http://example.com/?a=\t\r" # def unescape(*arg) - warn "URI.unescape is obsolete", uplevel: 1 if $VERBOSE + warn "URI.unescape is obsolete", uplevel: 1 DEFAULT_PARSER.unescape(*arg) end alias decode unescape |