Closed cameronlxu closed 2 years ago
@ganeshramc @tiffanyrzhou Hello, this is Hakim Lahlou from PayPal. We have worked together previously on the PP HTTP SDKs. I was going to reach out to you internally about merging this PR but it seems like you are no longer part of the organization. I was wondering if you still had write access and could proceed with merging this PR in as it is one we did internally. If possible, could you pass on write access to me? If not I am going to try and ask our internal channels about this. Thank you!
Have y'all verified with the PayPal API teams that switching from %20
to +
has no issues?
This change is huge and LGTM!
This is a very noisy warning and it should be addressed, ruby 2.7 is out for almost 3 years.
@crookedneighbor Thank you! Just added version 1.0.2 with a line about the change.
@crookedneighbor The version has been changed to 2.0.0, please take a review and approve if it looks good!
@crookedneighbor Apologies for the ping again, but since neither I nor Hakim have write access we are unable to merge this PR to start the release process. Thank you!
🎉
Will it be released on rubygems as well or should we point to github?
Thanks for merging this.
@camlau-pp-dev and @HDLahlou are going to handle releasing it to Rubygems. They can update here when it's available.
Looks like the payouts sdk will need a gemspec update or anyone using both gems will be unable to install 2.0.0
Also, thanks all for addressing this!
The same is true for PayPal checkout SDK https://github.com/paypal/Checkout-Ruby-SDK/blob/develop/paypal-checkout-sdk.gemspec#L22 which unfortunately has just been deprecated 🤦🏻♂️
Maybe you should reconsider version bump to 2.0.0 and go with 1.1 or something similar.
Hi everyone, we have just released the 2.0.0 version that can be seen here: https://rubygems.org/gems/paypalhttp/versions/2.0.0
will Checkout-Ruby-SDK be updated to use this?
@sweetppro No, as Checkout-Ruby-SDK is no longer receiving updates. You are welcome to fork it and update it yourself, or collaborate on a community fork of the SDK.
@crookedneighbor Will https://github.com/paypal/Payouts-Ruby-SDK be updated to use this? There's an open dependabot PR doing just that: https://github.com/paypal/Payouts-Ruby-SDK/pull/19
In Ruby version 3.x, the
URI.escape
function becomes deprecated, causing issues that many users will run into.Changed the
URI.escape
function to becomeCGI.escape
as it is more consistent with other projects such as braintree_ruby.With this change, the space character now becomes a
+
, instead of previously being%20
.Verified that the deprecation warning logs that appeared in 2.x do not appear in Ruby version 3.x when running tests:
Integration tested this change with the PayPal Checkout-Ruby-SDK and displayed no failures in unit tests.
FormEncoded.rb
file to view the results of the CGI.escape workings.