Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: woocommerce/wc-api-ruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: zauberware/wc-api-ruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 8, 2023

  1. Copy the full SHA
    88968c5 View commit details
  2. Update oauth.rb

    simonfranzen authored Nov 8, 2023
    Copy the full SHA
    88ac95c View commit details
  3. Copy the full SHA
    0409bda View commit details
  4. Update oauth.rb

    simonfranzen authored Nov 8, 2023
    Copy the full SHA
    9aa1071 View commit details

Commits on Nov 9, 2023

  1. Copy the full SHA
    66d6f22 View commit details

Commits on Nov 12, 2023

  1. update version

    simonfranzen committed Nov 12, 2023
    Copy the full SHA
    87c5d13 View commit details
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/woocommerce_api.rb
  2. +2 −2 lib/woocommerce_api/oauth.rb
  3. +1 −1 lib/woocommerce_api/version.rb
2 changes: 1 addition & 1 deletion lib/woocommerce_api.rb
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ def add_query_params endpoint, data

endpoint += "?" unless endpoint.include? "?"
endpoint += "&" unless endpoint.end_with? "?"
endpoint + URI.encode(flatten_hash(data).join("&"))
endpoint + flatten_hash(data).join("&")
end

# Internal: Get URL for requests
4 changes: 2 additions & 2 deletions lib/woocommerce_api/oauth.rb
Original file line number Diff line number Diff line change
@@ -40,9 +40,9 @@ def get_oauth_url
params["oauth_nonce"] = Digest::SHA1.hexdigest((Time.new.to_f % nonce_lifetime + (Process.pid * nonce_lifetime)).to_s)
params["oauth_signature_method"] = @signature_method
params["oauth_timestamp"] = Time.new.to_i
params["oauth_signature"] = CGI::escape(generate_oauth_signature(params, url))
params["oauth_signature"] = CGI::encode(generate_oauth_signature(params, url))

query_string = URI::encode(params.map{|key, value| "#{key}=#{value}"}.join("&"))
query_string = CGI::encode(params.map{|key, value| "#{key}=#{value}"}.join("&"))

"#{url}?#{query_string}"
end
2 changes: 1 addition & 1 deletion lib/woocommerce_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WooCommerce
VERSION = '1.4.0'
VERSION = '1.4.1'
end