Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url_encode: use CGI.escapeURIComponent #23

Merged
merged 1 commit into from Oct 25, 2022
Merged

url_encode: use CGI.escapeURIComponent #23

merged 1 commit into from Oct 25, 2022

Conversation

byroot
Copy link
Member

@byroot byroot commented Oct 25, 2022

Ref: ruby/cgi#26

This native implementation is much faster and available in cgi 0.3.3.

@byroot byroot requested a review from k0kubun October 25, 2022 11:09
@byroot
Copy link
Member Author

byroot commented Oct 25, 2022

I'm not too sure why 2.5 CI is failing, it's like it's not loading cgi as a gem but using the stdlib version?

I can add a conditional to handle this case. Let me know what you think @k0kubun.

@k0kubun
Copy link
Member

k0kubun commented Oct 25, 2022

it's like it's not loading cgi as a gem but using the stdlib version?

stdlib could be updated only if the Ruby version has it as a default gem instead of a non-gem standard library. CGI has been promoted to a default gem on 2.7 https://github.com/ruby/ruby/blob/v2_7_0/NEWS. Looks like 2.6 is not tested in the workflow (a separate problem), but it wouldn't work in Ruby 2.6 either.

Given that Ruby 2.6 is EOL, I'm okay with requiring Ruby 2.7+ from the next ERB version. Can you do it in this PR to fix the CI?

Ref: ruby/cgi#26

This native implementation is much faster
and available in `cgi 0.3.3`.
@byroot
Copy link
Member Author

byroot commented Oct 25, 2022

Done.

@k0kubun k0kubun merged commit 2d90e9b into master Oct 25, 2022
@k0kubun k0kubun deleted the cgi-escape-url branch October 25, 2022 16:39
matzbot pushed a commit to ruby/ruby that referenced this pull request Oct 25, 2022
(ruby/erb#23)

Ref: ruby/cgi#26

This native implementation is much faster
and available in `cgi 0.3.3`.

ruby/erb@2d90e9b010
tenderlove pushed a commit to Shopify/ruby that referenced this pull request Oct 27, 2022
(ruby/erb#23)

Ref: ruby/cgi#26

This native implementation is much faster
and available in `cgi 0.3.3`.

ruby/erb@2d90e9b010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants