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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51a173fc4e60e562a7a4b0e56ac97b8fdb6d9cec
4
- data.tar.gz: 0ca3a5dd2f33d2dca97ab0fb868f89defe9ac119
3
+ metadata.gz: aaac101c727d5f284f347ff3b73db94988bf1a00
4
+ data.tar.gz: f5d117727672e52096a19eb9e318cf61537480a9
5
5
  SHA512:
6
- metadata.gz: 7c7e39888631f88be74385814a7bedc046744636ac352ad727c726d54c90efaa8ba95b5480f56212d144396524bb563f744a26ee196a029d3e03dc7af9bd71b7
7
- data.tar.gz: 7c572f28527faebf622fca923814ff926b320ff764539f18905dd75faf4b9a2dd04fcaa33ada0a8b639a57438652a760379a7ceb8da1847f4c2c8483e38bca22
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
- gem 'mime-types', '2.6.2'
21
- gem 'rest-client', '1.8.0'
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
@@ -1,3 +1,7 @@
1
+ === 1.53.0 2016-08-31
2
+
3
+ * Relax version constraint on rest-client (and by extension mime-types) for users on Ruby 2+
4
+
1
5
  === 1.52.0 2016-08-30
2
6
 
3
7
  * Make sure `Subscription`'s `source` is saved with its parent
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.53.0
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.52.0'
2
+ VERSION = '1.53.0'
3
3
  end
@@ -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', '< 3.0')
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&currency=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
- subscription = customer.subscriptions.retrieve('s_test_subscription')
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? (Stripe::ListObject)
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? (Stripe::ListObject)
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.52.0
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-30 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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