Skip to content

fix: use addressable gem to replace deprecated URI.encode#19

Merged
BrandonStalnaker merged 2 commits intomParticle:masterfrom
timkrins:fix-deprecated-uri-encode
Dec 5, 2022
Merged

fix: use addressable gem to replace deprecated URI.encode#19
BrandonStalnaker merged 2 commits intomParticle:masterfrom
timkrins:fix-deprecated-uri-encode

Conversation

@timkrins
Copy link
Contributor

@timkrins timkrins commented Jun 9, 2022

Summary

URI.encode is deprecated and now removed in the latest Ruby versions.
This PR adds the addressable gem as a dependency, and uses this gem to encode the URI.

This change just reflects the changes that would be made as if this SDK was regenerated using a more recent swagger-codegen.
You can see the changes made to swagger-codegen here: swagger-api/swagger-codegen#10445

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

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

LGTM

@BrandonStalnaker
Copy link
Contributor

Sorry for the delay but this change looks great. Thank you for your time!

@BrandonStalnaker BrandonStalnaker merged commit 06b22a5 into mParticle:master Dec 5, 2022
@carlosantoniodasilva
Copy link

Hey, do you have any plans to release a new version that is Ruby 3+ compatible? URI.encode is not available there. Thanks.

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