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 +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/product.rb +1 -0
- data/lib/stripe/sku.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/product_test.rb +8 -6
- data/test/stripe/sku_test.rb +7 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7aef186e25bc84b4cf2998dc5667346b007c89
|
4
|
+
data.tar.gz: 32730c4e68e1da904add72105404f7df54a045e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2476f37c4f0565f695c56756846eeb6daf5fdc73a23159c95f0782687519ecbdf310b74ffdf6a80d78044ac277f09975e18f34e66cfca3f3a6e5b15bfc797f36
|
7
|
+
data.tar.gz: 8f1d0501c4ca4004a1d83265209b3b80fd3f2999fd19796f63614a38d1fec07cdb787192eecc040c82df65fa25722e0a058b3f78f4213b22a79d9a29a2016d6c
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.34.0
|
data/lib/stripe/product.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
|
# Keep APIResource#url as `api_url` to avoid letting the external URL
|
8
9
|
# replace the Stripe URL.
|
data/lib/stripe/sku.rb
CHANGED
data/lib/stripe/version.rb
CHANGED
data/test/stripe/product_test.rb
CHANGED
@@ -11,12 +11,14 @@ module Stripe
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
should "products should
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
data/test/stripe/sku_test.rb
CHANGED
@@ -12,12 +12,13 @@ module Stripe
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
should "SKUs should
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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.
|
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-
|
12
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|