stripe 1.52.0 → 1.53.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -2
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +1 -1
- data/test/stripe/api_resource_test.rb +0 -1
- data/test/stripe/subscription_test.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaac101c727d5f284f347ff3b73db94988bf1a00
|
4
|
+
data.tar.gz: f5d117727672e52096a19eb9e318cf61537480a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd86ad3e6fcd4dbef56323ce43076d9649c39a6f29e46b996c9144e215d480f8192e6d538b7986d6ac403d6f1347caa8cbdac4eeaddd9c7e2f9e5c85359b7ef5
|
7
|
+
data.tar.gz: 2d7d177a707880c9000a4291ab2e453f8d9cd9d2384097860519aed751722b69988e7410c89980d5a40f9a6e05fa2e64898a7fd0a23dc1e8bfc3c2d8cf9425d5
|
data/Gemfile
CHANGED
@@ -17,8 +17,10 @@ group :development do
|
|
17
17
|
#
|
18
18
|
# https://github.com/travis-ci/travis-ci/issues/5145
|
19
19
|
#
|
20
|
-
|
21
|
-
|
20
|
+
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
|
21
|
+
gem 'mime-types', '2.6.2'
|
22
|
+
gem 'rest-client', '1.8.0'
|
23
|
+
end
|
22
24
|
|
23
25
|
platforms :mri do
|
24
26
|
# to avoid problems, bring Byebug in on just versions of Ruby under which
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
data/lib/stripe/version.rb
CHANGED
data/stripe.gemspec
CHANGED
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
|
|
13
13
|
s.homepage = 'https://stripe.com/docs/api/ruby'
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
16
|
-
s.add_dependency('rest-client', '>= 1.4', '<
|
16
|
+
s.add_dependency('rest-client', '>= 1.4', '< 4.0')
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
19
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
@@ -723,7 +723,6 @@ module Stripe
|
|
723
723
|
should 'retry failed network requests if specified and return successful response' do
|
724
724
|
Stripe.expects(:sleep_time).at_least_once.returns(0)
|
725
725
|
response = make_response({"id" => "myid"})
|
726
|
-
err = Errno::ECONNREFUSED.new
|
727
726
|
@mock.expects(:post).times(2).with('https://api.stripe.com/v1/charges', nil, 'amount=50¤cy=usd').
|
728
727
|
raises(Errno::ECONNREFUSED.new).
|
729
728
|
then.
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
customer = Stripe::Customer.retrieve('c_test_customer')
|
8
8
|
|
9
9
|
@mock.expects(:get).once.with("#{Stripe.api_base}/v1/customers/c_test_customer/subscriptions/s_test_subscription", nil, nil).returns(make_response(make_subscription(:id => 's_test_subscription')))
|
10
|
-
|
10
|
+
_ = customer.subscriptions.retrieve('s_test_subscription')
|
11
11
|
end
|
12
12
|
|
13
13
|
should "subscriptions should be listable by customer" do
|
@@ -17,7 +17,7 @@ module Stripe
|
|
17
17
|
@mock.expects(:get).once.with("#{Stripe.api_base}/v1/customers/c_test_customer/subscriptions", nil, nil).returns(make_response(make_customer_subscription_array('c_test_customer')))
|
18
18
|
subs = customer.subscriptions.all()
|
19
19
|
|
20
|
-
assert subs.kind_of?
|
20
|
+
assert subs.kind_of?(Stripe::ListObject)
|
21
21
|
assert subs.data.kind_of?(Array)
|
22
22
|
assert subs.data[0].kind_of? Stripe::Subscription
|
23
23
|
end
|
@@ -51,7 +51,7 @@ module Stripe
|
|
51
51
|
@mock.expects(:get).once.with("#{Stripe.api_base}/v1/subscriptions?customer=c_test_customer&limit=3&plan=gold", nil, nil).returns(make_response(make_subscription_array))
|
52
52
|
subs = Stripe::Subscription.all(:customer => 'c_test_customer', :limit => 3, :plan => 'gold')
|
53
53
|
|
54
|
-
assert subs.kind_of?
|
54
|
+
assert subs.kind_of?(Stripe::ListObject)
|
55
55
|
assert subs.data.kind_of?(Array)
|
56
56
|
assert subs.data[0].kind_of? Stripe::Subscription
|
57
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '1.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '4.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '1.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '4.0'
|
33
33
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
34
34
|
for details.
|
35
35
|
email: support@stripe.com
|