woocommerce_api 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c5c6ddc266dfa306c0c2eb7cf2e26e691a0e863
4
- data.tar.gz: 00b4d32c73163f6b2995c8900e24e71b2bc45b12
3
+ metadata.gz: cd290bde8c41792cc2cdd5882833ab4c562fa9d1
4
+ data.tar.gz: 54198808cad5e99f7267e0ed2a839fc87d84e1ca
5
5
  SHA512:
6
- metadata.gz: a68107081a25c7e8ff8bc00682034d2d381f1fe8751224c795c25d2e4db657f0ebf14da6755b2e9f2bcdc8dc0016ef4df447d53b63fc67f57da275689a0bee77
7
- data.tar.gz: 7c06cfa2fe2c8af611fa75327ded5c307a60305590a3e5bcd098293afcd943ac85a907ed755a199b696c4cd10797c89b27d74ab88131913de3f5d170018613f8
6
+ metadata.gz: 070d7c81734c8ee249ad9ddeb5ee9dd00d63a047262402b88e75d400eef0ac696c43f4b188a855031d6abfb156285f41a0009ebd66cab80f93a9bb94f5a2e2c7
7
+ data.tar.gz: 336bb75d61166e2dac0f040225a145c04c5e6967ef9dcf3cc00e13cd9c95b8ff8e7772d9be7f18a2bd7512f67921e602549b81e9a1859118262514b8908f1000
data/README.md CHANGED
@@ -32,7 +32,7 @@ woocommerce = WooCommerce::API.new(
32
32
  )
33
33
  ```
34
34
 
35
- Setup for the new WP REST API integration:
35
+ Setup for the new WP REST API integration (WooCommerce 2.6 or later):
36
36
 
37
37
  ```ruby
38
38
  require "woocommerce_api"
@@ -61,7 +61,7 @@ woocommerce = WooCommerce::API.new(
61
61
 
62
62
  | Option | Type | Required | Description |
63
63
  |--------------------|----------|----------|--------------------------------------------------------------------------------------------------------------|
64
- | `wp_api` | `Bool` | no | Allow requests to the WP REST API |
64
+ | `wp_api` | `Bool` | no | Allow requests to the WP REST API (WooCommerce 2.6 or later) |
65
65
  | `version` | `String` | no | API version, default is `v3` |
66
66
  | `verify_ssl` | `Bool` | no | Verify SSL when connect, use this option as `false` when need to test with self-signed certificates |
67
67
  | `signature_method` | `String` | no | Signature method used for oAuth requests, works with `HMAC-SHA1` and `HMAC-SHA256`, default is `HMAC-SHA256` |
@@ -116,7 +116,8 @@ puts response.headers["x-wc-totalpages"] # Total of pages
116
116
 
117
117
  ## Release History
118
118
 
119
- - 2016-05-09 - 1.2.0 - Added support for WP REST API and added method to do HTTP OPTIONS requests..
119
+ - 2016-06-26 - 1.2.1 - Fixed oAuth signature for WP REST API.
120
+ - 2016-05-09 - 1.2.0 - Added support for WP REST API and added method to do HTTP OPTIONS requests.
120
121
  - 2015-12-07 - 1.1.2 - Stop send `body` in GET and DELETE requests.
121
122
  - 2015-12-07 - 1.1.1 - Fixed the encode when have spaces in the URL parameters.
122
123
  - 2015-08-27 - 1.1.0 - Added `query` argument for GET and DELETE methods, reduced chance of nonce collisions and added support for urls including ports
@@ -67,7 +67,7 @@ module WooCommerce
67
67
  .join("%26")
68
68
  string_to_sign = "#{@method}&#{base_request_uri}&#{query_string}"
69
69
 
70
- if @version == "v3"
70
+ if !["v1", "v2"].include? @version
71
71
  consumer_secret = "#{@consumer_secret}&"
72
72
  else
73
73
  consumer_secret = @consumer_secret
@@ -1,3 +1,3 @@
1
1
  module WooCommerce
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Sanches