Skip to content

URI#encode deprecation#61

Open
ricvillagrana wants to merge 1 commit into
woocommerce:masterfrom
ricvillagrana:patch-1
Open

URI#encode deprecation#61
ricvillagrana wants to merge 1 commit into
woocommerce:masterfrom
ricvillagrana:patch-1

Conversation

@ricvillagrana

@ricvillagrana ricvillagrana commented Feb 16, 2024

Copy link
Copy Markdown

Closes #57

URI, no longer supports encode, so, I am updating it to an existing method (encode_www_form_component).

Source: https://ruby-doc.org/stdlib-3.1.0/libdoc/uri/rdoc/URI.html

Are you facing this issue? #57

You can replace the gem with this:

gem "woocommerce_api",
  git: "https://github.com/ricvillagrana/wc-api-ruby.git",
  branch: "patch-1"

And then run: bundle update woocommerce_api

Remember to change it back when this PR is merged.

@bond

bond commented Mar 6, 2024

Copy link
Copy Markdown

Please include this fix :)

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.

URI.encode is obsoleted and not available in the latest Ruby versions

2 participants