-
Yasuo Honda authored
Ruby 3.4 changes `URI::DEFAULT_PARSER` to `URI::RFC3986_Parser` and deprecates `URI::RFC3986_PARSER.make_regexp`,`URI::RFC3986_PARSER.escape`, `URI::RFC3986_PARSER.unescape` and `URI::RFC3986_PARSER.extract`. uri v0.12.2 for Ruby 3.2/3.1 and v0.13.1 for Ruby 3.3 adds `URI::RFC2396_PARSER`. As of right now there is no way to use uri v0.12.2 for Ruby 3.2/3.1 and v0.13.1 for Ruby 3.3, This commit uses v0.13.1 or higher version for all supported Ruby versions by Rails main branch. It also reverts #52682 because the original issue has been resolved. Refer to following URL for the backgrond of this change: - URI::Generic should use URI::RFC3986_PARSER instead of URI::DEFAULT_PARSER https://bugs.ruby-lang.org/issues/19266 - Use RFC3986_Parser by default https://github.com/ruby/uri/pull/107 - Warn compatibility methods in RFC3986_PARSER https://github.com/ruby/uri/pull/114 - Also warn URI::RFC3986_PARSER.extract https://github.com/ruby/uri/pull/121 - Define RFC2396_PARSER for Ruby 3.3 https://github.com/ruby/uri/pull/119 - Define RFC2396_PARSER for Ruby 3.2 and 3.1 https://github.com/ruby/uri/pull/120
Yasuo Honda authoredRuby 3.4 changes `URI::DEFAULT_PARSER` to `URI::RFC3986_Parser` and deprecates `URI::RFC3986_PARSER.make_regexp`,`URI::RFC3986_PARSER.escape`, `URI::RFC3986_PARSER.unescape` and `URI::RFC3986_PARSER.extract`. uri v0.12.2 for Ruby 3.2/3.1 and v0.13.1 for Ruby 3.3 adds `URI::RFC2396_PARSER`. As of right now there is no way to use uri v0.12.2 for Ruby 3.2/3.1 and v0.13.1 for Ruby 3.3, This commit uses v0.13.1 or higher version for all supported Ruby versions by Rails main branch. It also reverts #52682 because the original issue has been resolved. Refer to following URL for the backgrond of this change: - URI::Generic should use URI::RFC3986_PARSER instead of URI::DEFAULT_PARSER https://bugs.ruby-lang.org/issues/19266 - Use RFC3986_Parser by default https://github.com/ruby/uri/pull/107 - Warn compatibility methods in RFC3986_PARSER https://github.com/ruby/uri/pull/114 - Also warn URI::RFC3986_PARSER.extract https://github.com/ruby/uri/pull/121 - Define RFC2396_PARSER for Ruby 3.3 https://github.com/ruby/uri/pull/119 - Define RFC2396_PARSER for Ruby 3.2 and 3.1 https://github.com/ruby/uri/pull/120
Loading