Skip to content

Conversation

@jscharf
Copy link
Collaborator

@jscharf jscharf commented Nov 15, 2022

Similar to ono#53

We need to update deprecated code in this repository as part of work to upgrade our application to Ruby 3.

URI.encode is obsolete and needs to be replaced.

I replaced it with encode_www_form_component to encode the query string instead.

You can read more about this on the page for the Rubocop lint rule about it https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UriEscapeUnescape

@jscharf jscharf requested a review from TheDro November 15, 2022 20:08
Copy link

@TheDro TheDro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewmarkle
Copy link
Collaborator

Tested on the review env it LGTM.

@jscharf jscharf changed the title Replace deprecated URI.encode with CGI.escape Replace deprecated URI.encode with URI.encode_www_form_component Nov 16, 2022
@jscharf jscharf merged commit a2ae131 into master Nov 16, 2022
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.

4 participants