diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 1800836..ce54000 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -299,8 +299,8 @@ def self.join(*str) # # => ["http://foo.example.com/bla", "mailto:test@example.com"] # def self.extract(str, schemes = nil, &block) # :nodoc: - warn "URI.extract is obsolete", uplevel: 1 if $VERBOSE - PARSER.extract(str, schemes, &block) + warn "URI.extract is obsolete. Please use URI::RFC2396_PARSER.extract instead.", uplevel: 1 if $VERBOSE + URI::RFC2396_PARSER.extract(str, schemes, &block) end # @@ -336,8 +336,8 @@ def self.extract(str, schemes = nil, &block) # :nodoc: # end # def self.regexp(schemes = nil)# :nodoc: - warn "URI.regexp is obsolete", uplevel: 1 if $VERBOSE - PARSER.make_regexp(schemes) + warn "URI.regexp is obsolete. Please use URI::RFC2396_PARSER.make_regexp instead.", uplevel: 1 if $VERBOSE + RFC2396_PARSER.make_regexp(schemes) end TBLENCWWWCOMP_ = {} # :nodoc: