stripe 1.33.1 → 1.34.0

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: 9800fd15cb6c4160d39290c9ee9077b3d2e1d25b
4
- data.tar.gz: 4de3e9d1711e6a9d4eaa53343cb12ff4d94cc8da
3
+ metadata.gz: bb7aef186e25bc84b4cf2998dc5667346b007c89
4
+ data.tar.gz: 32730c4e68e1da904add72105404f7df54a045e9
5
5
  SHA512:
6
- metadata.gz: a8b13b8bb0b338462d343771bf52a8202e1d96bd26b4cfd5a57b0956b58a2efe0c30dcc79a540b4fd366c875819be078eb540ab3565be1356d972b31022d2de0
7
- data.tar.gz: 957e9a5d40742a1f8036eb2ea828768aee9ecc8d3411dac2217cc4ac48522ba8362c1891e9a1c0a1bc05affeef7958883fa97074b5e51163ec1d3446987f7a25
6
+ metadata.gz: 2476f37c4f0565f695c56756846eeb6daf5fdc73a23159c95f0782687519ecbdf310b74ffdf6a80d78044ac277f09975e18f34e66cfca3f3a6e5b15bfc797f36
7
+ data.tar.gz: 8f1d0501c4ca4004a1d83265209b3b80fd3f2999fd19796f63614a38d1fec07cdb787192eecc040c82df65fa25722e0a058b3f78f4213b22a79d9a29a2016d6c
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.34.0 2016-01-25
2
+
3
+ * Add support for deleting products and SKUs
4
+
1
5
  === 1.33.1 2016-01-21
2
6
 
3
7
  * Pass through arguments of `Charge#refund`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.33.1
1
+ 1.34.0
@@ -3,6 +3,7 @@ module Stripe
3
3
  extend Stripe::APIOperations::List
4
4
  extend Stripe::APIOperations::Create
5
5
  include Stripe::APIOperations::Update
6
+ include Stripe::APIOperations::Delete
6
7
 
7
8
  # Keep APIResource#url as `api_url` to avoid letting the external URL
8
9
  # replace the Stripe URL.
data/lib/stripe/sku.rb CHANGED
@@ -3,6 +3,7 @@ module Stripe
3
3
  extend Stripe::APIOperations::List
4
4
  extend Stripe::APIOperations::Create
5
5
  include Stripe::APIOperations::Update
6
+ include Stripe::APIOperations::Delete
6
7
 
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.33.1'
2
+ VERSION = '1.34.0'
3
3
  end
@@ -11,12 +11,14 @@ module Stripe
11
11
  end
12
12
  end
13
13
 
14
- should "products should not be deletable" do
15
- assert_raises NoMethodError do
16
- @mock.expects(:get).once.returns(make_response(make_product))
17
- p = Stripe::Product.retrieve("test_product")
18
- p.delete
19
- end
14
+ should "products should be deletable" do
15
+ @mock.expects(:get).once.returns(make_response(make_product))
16
+ @mock.expects(:delete).once.
17
+ returns(make_response(make_product(:deleted => true)))
18
+
19
+ p = Stripe::Product.retrieve("test_product")
20
+ p.delete
21
+ assert p.deleted
20
22
  end
21
23
 
22
24
  should "products should be updateable" do
@@ -12,12 +12,13 @@ module Stripe
12
12
  end
13
13
  end
14
14
 
15
- should "SKUs should not be deletable" do
16
- assert_raises NoMethodError do
17
- @mock.expects(:get).once.returns(make_response(make_sku))
18
- p = Stripe::SKU.retrieve("test_product")
19
- p.delete
20
- end
15
+ should "SKUs should be deletable" do
16
+ @mock.expects(:get).once.returns(make_response(make_sku))
17
+ @mock.expects(:delete).once.returns(make_response(make_sku(:deleted => true)))
18
+
19
+ s = Stripe::SKU.retrieve("test_sku")
20
+ s.delete
21
+ assert s.deleted
21
22
  end
22
23
 
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.1
4
+ version: 1.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Boucher
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-21 00:00:00.000000000 Z
12
+ date: 2016-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client