Skip to content

Explicitly use RFC2396 instead of DEFAULT_PARSER#12328

Merged
JamieMagee merged 1 commit intomainfrom
jamiemagee/explicit-rfc2396-uri-parser
May 27, 2025
Merged

Explicitly use RFC2396 instead of DEFAULT_PARSER#12328
JamieMagee merged 1 commit intomainfrom
jamiemagee/explicit-rfc2396-uri-parser

Conversation

@JamieMagee
Copy link
Member

What are you trying to accomplish?

In Ruby 3.4 URI::DEFAULT_PARSER changed from RFC2396 to RFC39861. This change makes our use of RFC2396 explicit instead of implicit.

This migration was partially completed in #12170. This change just finishes the migration.

This is a part of the Ruby 3.4 upgrade #11681

Anything you want to highlight for special attention from reviewers?

We should migrate from RFC2396 to RFC3986 at some point in the future. This work is tracked in #12327

How will you know you've accomplished your goal?

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

Footnotes

  1. https://github.com/ruby/uri/pull/107

In Ruby 3.4 `URI::DEFAULT_PARSER` changed from `RFC2396` to `RFC3896`[1]. This change makes our use of `RFC2396` explicit instead of implicit.

This migration was partially completed in #12170. This change just finishes the migration.

This is a part of the Ruby 3.4 upgrade #11681

[1]: ruby/uri#107
@JamieMagee JamieMagee requested a review from a team as a code owner May 27, 2025 18:39
@JamieMagee JamieMagee mentioned this pull request May 27, 2025
5 tasks
@JamieMagee JamieMagee changed the title Explicitly use RC2396 instead of DEFAULT_PARSER Explicitly use RFC2396 instead of DEFAULT_PARSER May 27, 2025
@JamieMagee JamieMagee merged commit d45abb8 into main May 27, 2025
276 of 325 checks passed
@JamieMagee JamieMagee deleted the jamiemagee/explicit-rfc2396-uri-parser branch May 27, 2025 20:12
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.

2 participants