Skip to content

Conversation

yahonda
Copy link

@yahonda yahonda commented Oct 12, 2024

This commit addresses warning: URI::RFC3986_PARSER.make_regexp is obsoleted. Use URI::RFC2396_PARSER.make_regexp explicitly. warning

Ruby 3.4 changes URI::DEFAULT_PARSER to URI::RFC3986_Parser and deprecates URI::RFC3986_PARSER.make_regexp.

This commit uses URI::RFC2396_PARSER only if it is available for these versions:

  • uri v0.12.2 for Ruby 3.2/3.1
  • uri v0.13.1 for Ruby 3.3
  • Ruby 3.4.0dev

Fix #2778
Refer https://bugs.ruby-lang.org/issues/19266

…RI::RFC2396_PARSER.make_regexp explicitly.` warning

This commit addresses `warning: URI::RFC3986_PARSER.make_regexp is obsoleted. Use URI::RFC2396_PARSER.make_regexp explicitly.` warning

Ruby 3.4 changes URI::DEFAULT_PARSER to URI::RFC3986_Parser and deprecates URI::RFC3986_PARSER.make_regexp.

This commit uses `URI::RFC2396_PARSER` only if it is available for these versions:

- `uri` v0.12.2 for Ruby 3.2/3.1
- `uri` v0.13.1 for Ruby 3.3
- Ruby 3.4.0dev

Fix teamcapybara#2778
Refer https://bugs.ruby-lang.org/issues/19266
@byroot
Copy link
Contributor

byroot commented Feb 22, 2025

@twalpole Sorry to be a bother, but could a maintainer merge and release this change? That waring is quite annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URI::DEFAULT_PARSER.make_regexp is deprecated in Ruby 3.4.0-preview2
2 participants