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

Replace URI.escape #1285

Merged
merged 2 commits into from
Jan 15, 2021
Merged

Replace URI.escape #1285

merged 2 commits into from
Jan 15, 2021

Conversation

mataku
Copy link
Contributor

@mataku mataku commented Jan 15, 2021

Since Ruby 3.0, URI.escape is obsolete. See: ruby/uri#9

So i treated prs_api_endpoint method as that encodes parameters and returns a url so that Ruby 2.7 and below will behave the same behavior.

This is how i tested.

rbenv local 3.0.0
bundle exec rspec

You will see that some tests about Danger::Violation class will not pass in Ruby 3.0, but the issue was already created. #1282

Treat `prs_api_endpoint` method as that encodes parameters and returns a url so that Ruby 2.7 and below will behave the same behavior.
@danger-public
Copy link

danger-public commented Jan 15, 2021

1 Warning
⚠️ Tests were not updated

Generated by 🚫 Danger

@mataku mataku force-pushed the uri-escape-is-deprecated branch from 798c3e8 to 95feaa3 Compare January 15, 2021 05:29
@orta
Copy link
Member

orta commented Jan 15, 2021

👍🏻 looks good to me

@orta orta merged commit 45c6469 into danger:master Jan 15, 2021
@mataku mataku deleted the uri-escape-is-deprecated branch January 15, 2021 16:34
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.

3 participants