From 0f6b9455572cb5f491f3dc352a98e5ff73276d4f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 27 Aug 2024 11:36:34 +0900 Subject: [PATCH] Also warn URI::RFC3986_PARSER.extract --- lib/uri/rfc3986_parser.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb index a8a8c74..4000f13 100644 --- a/lib/uri/rfc3986_parser.rb +++ b/lib/uri/rfc3986_parser.rb @@ -142,6 +142,7 @@ def join(*uris) # :nodoc: # 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