Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
RFC2396_PARSER
instead of DEFAULT_PARSER
`URI::DEFAULT_PARSER` switched from `URI::RFC2396_PARSER` to `URI::RFC3986_PARSER`, which complains about escape/unescape: > /Users/dharsha/repos/json_schemer/lib/json_schemer.rb:116: warning: URI::RFC3986_PARSER.unescape is obsolete. Use URI::RFC2396_PARSER.unescape explicitly. > /Users/dharsha/repos/json_schemer/lib/json_schemer.rb:254: warning: URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly. This switches back to `URI::RFC2396_PARSER` with a fallback to `URI::DEFAULT_PARSER` for older Ruby versions. Related: - https://bugs.ruby-lang.org/issues/19266 - ruby/uri#107
- Loading branch information