woocommerce_api 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -4
- data/lib/woocommerce_api/oauth.rb +1 -1
- data/lib/woocommerce_api/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -92,9 +92,7 @@ puts response.headers["x-wc-totalpages"] # Total of pages
|
|
92
92
|
|
93
93
|
## Release History
|
94
94
|
|
95
|
+
- 2015-08-12 - 1.0.2 - Fixed the release date.
|
96
|
+
- 2015-08-12 - 1.0.1 - Escaped oauth_signature in url query string.
|
95
97
|
- 2015-07-15 - 1.0.0 - Stable release.
|
96
98
|
- 2015-07-15 - 0.0.1 - Beta release.
|
97
|
-
|
98
|
-
## TODO
|
99
|
-
|
100
|
-
- Unit Tests
|
@@ -35,7 +35,7 @@ module WooCommerce
|
|
35
35
|
params["oauth_nonce"] = Digest::SHA1.hexdigest("#{Time.new.to_i + rand(99999)}")
|
36
36
|
params["oauth_signature_method"] = "HMAC-SHA256"
|
37
37
|
params["oauth_timestamp"] = Time.new.to_i
|
38
|
-
params["oauth_signature"] = generate_oauth_signature(params, url)
|
38
|
+
params["oauth_signature"] = CGI::escape(generate_oauth_signature(params, url))
|
39
39
|
|
40
40
|
query_string = URI::encode(params.map{|key, value| "#{key}=#{value}"}.join("&"))
|
41
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woocommerce_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|