stripe 1.46.0 → 1.47.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: d883d1c0eb0486e3c51e5076178c4351ca70ee68
4
- data.tar.gz: a992c6c4e854019538a0406dbca5382c8f99d77e
3
+ metadata.gz: 38d734e2601e619467a635e7119425d445a03a2f
4
+ data.tar.gz: 5ed120c6302d916cf088484499741bd71eea15e0
5
5
  SHA512:
6
- metadata.gz: caf72f6851481ed302b8d06d450b55cf72c260104e549c099f52bb7477ec0ec28777648f4d3e4edae0f1c96cfec8123248a645cb316325cefec4f04cab74fab8
7
- data.tar.gz: 165a6679fea615754af43de70e04c5d33a225ad1e938222e7c13767736bcdd9955162b22f266044f20818758ec3bcae0bb366c1c641b3fe1a388ed441315264b
6
+ metadata.gz: f8d03ef20097a5787b4a05637b6dfb8aa534457d1cfe85963d69f36611dadc515587d390c2d0b927769e3f9b6f619d010e4b4ba5b40bfbf687829e740abf0226
7
+ data.tar.gz: 0b55c686a8669016b3d371b2586c5ece3174c597cfeeeca75f5cb0d6db21999c42f6171651ca484e9235cc8b05393b80ab78a3d9dcd6c353152bddb6abc1a0c9
data/Gemfile CHANGED
@@ -9,6 +9,17 @@ group :development do
9
9
  gem 'shoulda-context'
10
10
  gem 'test-unit'
11
11
 
12
+ # mime-types has become only compatible with Ruby versions > 2 and we're
13
+ # still supporting 1.9 for the time being. Lock to old versions of
14
+ # mime-types and rest-client which are known to work in our Gemfile (it's
15
+ # fine to use newer versions in live environments so we don't have these in
16
+ # the gemspec).
17
+ #
18
+ # https://github.com/travis-ci/travis-ci/issues/5145
19
+ #
20
+ gem 'mime-types', '2.6.2'
21
+ gem 'rest-client', '1.8.0'
22
+
12
23
  platforms :mri do
13
24
  # to avoid problems, bring Byebug in on just versions of Ruby under which
14
25
  # it's known to work well
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.47.0 2016-07-11
2
+
3
+ * Allow rest-client version 2.0+ to be used with the gem
4
+
1
5
  === 1.46.0 2016-07-07
2
6
 
3
7
  * Allow retry when a 409 conflict is encountered
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.46.0
1
+ 1.47.0
data/lib/stripe.rb CHANGED
@@ -226,15 +226,6 @@ module Stripe
226
226
  when SocketError
227
227
  response = handle_restclient_error(e, request_opts, retry_count, api_base_url)
228
228
 
229
- when NoMethodError
230
- # Work around RestClient bug
231
- if e.message =~ /\WRequestFailed\W/
232
- e = APIConnectionError.new('Unexpected HTTP response code')
233
- response = handle_restclient_error(e, request_opts, retry_count, api_base_url)
234
- else
235
- raise
236
- end
237
-
238
229
  when RestClient::ExceptionWithResponse
239
230
  if e.response
240
231
  handle_api_error(e.response)
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.46.0'
2
+ VERSION = '1.47.0'
3
3
  end
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', '< 3.0')
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.test_files = `git ls-files -- test/*`.split("\n")
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.46.0
4
+ version: 1.47.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-07-07 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.4'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
28
34
  for details.
29
35
  email: support@stripe.com