diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-12-20 01:40:00 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-12-20 01:40:00 +0900 |
commit | 3816cd945d68eac7ca8fecbc9d71f878ff3e7b3d (patch) | |
tree | efeae7608665a71a585560ba557e48ad9c9f6ec6 /lib/open-uri.rb | |
parent | 844f1fada6f364dc26bd6eb6de2c4299a69e272a (diff) | |
download | ruby-3816cd945d68eac7ca8fecbc9d71f878ff3e7b3d.tar.gz |
Add `URI#open` to warning message
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r-- | lib/open-uri.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index c099eba6a0..c52f67f525 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -15,7 +15,7 @@ module Kernel (name.respond_to?(:to_str) && %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ name && (uri = URI.parse(name)).respond_to?(:open)) - warn('calling URI.open via Kernel#open is deprecated, call URI.open directly', uplevel: 1) + warn('calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open', uplevel: 1) URI.open(name, *rest, **kw, &block) else open_uri_original_open(name, *rest, **kw, &block) |