Skip to content

Commit cee5b67

Browse files
authored
Merge pull request #121 from ruby/warn-extract
Also warn URI::RFC3986_PARSER.extract
2 parents 28b9630 + 0f6b945 commit cee5b67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/uri/rfc3986_parser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def join(*uris) # :nodoc:
142142

143143
# Compatibility for RFC2396 parser
144144
def extract(str, schemes = nil, &block) # :nodoc:
145+
warn "URI::RFC3986_PARSER.extract is obsoleted. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE
145146
RFC2396_PARSER.extract(str, schemes, &block)
146147
end
147148

0 commit comments

Comments
 (0)