Skip to content

Conversation

tagliala
Copy link
Member

@tagliala tagliala commented Feb 21, 2025

This commit introduces a new constant URI_PARSER to handle
URI parsing in a way that's compatible with both newer and older
versions of Ruby's URI library. It checks for the presence of
URI::RFC2396_PARSER and falls back to URI::DEFAULT_PARSER if
not available, ensuring consistent behavior across different Ruby
versions.

Close #53

Ref: ruby/uri#114

@tagliala tagliala force-pushed the chore/53-use-parser-according-to-ruby branch from 421e2f6 to ab665af Compare February 21, 2025 14:14
This commit introduces a new constant `URI_PARSER` to handle
URI parsing in a way that's compatible with both newer and older
versions of Ruby's URI library. It checks for the presence of
`URI::RFC2396_PARSER` and falls back to `URI::DEFAULT_PARSER` if
not available, ensuring consistent behavior across different Ruby
versions.

Close #53

Ref: ruby/uri#114
@tagliala tagliala force-pushed the chore/53-use-parser-according-to-ruby branch from ab665af to 71704b5 Compare February 21, 2025 14:15
@tagliala tagliala changed the title Add uri_parser method for RFC2396 compatibility Add URI_PARSER for RFC2396 compatibility Feb 21, 2025
@tagliala tagliala merged commit c0ae04b into master Feb 21, 2025
11 of 12 checks passed
@tagliala tagliala deleted the chore/53-use-parser-according-to-ruby branch February 21, 2025 14:18
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::RFC3986_PARSER.escape is obsolete

1 participant