From 04ca75ea6987bdcc3d23ebdc547fedf505cf334d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 27 Aug 2024 11:36:34 +0900 Subject: [ruby/uri] Also warn URI::RFC3986_PARSER.extract https://github.com/ruby/uri/commit/0f6b945557 --- lib/uri/rfc3986_parser.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb index a8a8c74e77..4000f1357f 100644 --- a/lib/uri/rfc3986_parser.rb +++ b/lib/uri/rfc3986_parser.rb @@ -142,6 +142,7 @@ module URI # Compatibility for RFC2396 parser def extract(str, schemes = nil, &block) # :nodoc: + warn "URI::RFC3986_PARSER.extract is obsoleted. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE RFC2396_PARSER.extract(str, schemes, &block) end -- cgit v1.2.3