Skip to content

Replace URI.escape - #1285

Merged
orta merged 2 commits into
danger:masterfrom
mataku:uri-escape-is-deprecated
Jan 15, 2021
Merged

orta merged 2 commits into
danger:masterfrom
mataku:uri-escape-is-deprecated

Conversation

@mataku

@mataku mataku commented Jan 15, 2021 •

Copy link
Copy Markdown
Contributor

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

danger-public commented Jan 15, 2021 •

Copy link
Copy Markdown
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

orta commented Jan 15, 2021

Copy link
Copy Markdown
Member

👍🏻 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