summaryrefslogtreecommitdiff
path: root/lib/open-uri.rb
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-20 01:40:00 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-20 01:40:00 +0900
commit3816cd945d68eac7ca8fecbc9d71f878ff3e7b3d (patch)
treeefeae7608665a71a585560ba557e48ad9c9f6ec6 /lib/open-uri.rb
parent844f1fada6f364dc26bd6eb6de2c4299a69e272a (diff)
downloadruby-3816cd945d68eac7ca8fecbc9d71f878ff3e7b3d.tar.gz
Add `URI#open` to warning message
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r--lib/open-uri.rb2
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)