Skip to content

Commit 2525267

Browse files
jrafaniematzbot
authored andcommitted
[ruby/uri] Fix minor typo from
ruby/uri@9997c1acee ruby/uri@c191b627cb
1 parent 282de27 commit 2525267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/uri/rfc3986_parser.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,25 +142,25 @@ 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
145+
warn "URI::RFC3986_PARSER.extract is obsolete. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE
146146
RFC2396_PARSER.extract(str, schemes, &block)
147147
end
148148

149149
# Compatibility for RFC2396 parser
150150
def make_regexp(schemes = nil) # :nodoc:
151-
warn "URI::RFC3986_PARSER.make_regexp is obsoleted. Use URI::RFC2396_PARSER.make_regexp explicitly.", uplevel: 1 if $VERBOSE
151+
warn "URI::RFC3986_PARSER.make_regexp is obsolete. Use URI::RFC2396_PARSER.make_regexp explicitly.", uplevel: 1 if $VERBOSE
152152
RFC2396_PARSER.make_regexp(schemes)
153153
end
154154

155155
# Compatibility for RFC2396 parser
156156
def escape(str, unsafe = nil) # :nodoc:
157-
warn "URI::RFC3986_PARSER.escape is obsoleted. Use URI::RFC2396_PARSER.escape explicitly.", uplevel: 1 if $VERBOSE
157+
warn "URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.", uplevel: 1 if $VERBOSE
158158
unsafe ? RFC2396_PARSER.escape(str, unsafe) : RFC2396_PARSER.escape(str)
159159
end
160160

161161
# Compatibility for RFC2396 parser
162162
def unescape(str, escaped = nil) # :nodoc:
163-
warn "URI::RFC3986_PARSER.unescape is obsoleted. Use URI::RFC2396_PARSER.unescape explicitly.", uplevel: 1 if $VERBOSE
163+
warn "URI::RFC3986_PARSER.unescape is obsolete. Use URI::RFC2396_PARSER.unescape explicitly.", uplevel: 1 if $VERBOSE
164164
escaped ? RFC2396_PARSER.unescape(str, escaped) : RFC2396_PARSER.unescape(str)
165165
end
166166

0 commit comments

Comments
 (0)