stripe 1.5.24 → 1.5.25
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stripe.rb +2 -2
- data/lib/stripe/version.rb +1 -1
- metadata +5 -5
data/lib/stripe.rb
CHANGED
@@ -566,7 +566,7 @@ module Stripe
|
|
566
566
|
# Would use :symbolize_names => true, but apparently there is
|
567
567
|
# some library out there that makes symbolize_names not work.
|
568
568
|
resp = JSON.parse(rbody)
|
569
|
-
rescue JSON::
|
569
|
+
rescue JSON::ParserError
|
570
570
|
raise APIError.new("Invalid response object from API: #{rbody.inspect} (HTTP response code was #{rcode})")
|
571
571
|
end
|
572
572
|
|
@@ -609,7 +609,7 @@ module Stripe
|
|
609
609
|
def self.handle_restclient_error(e)
|
610
610
|
case e
|
611
611
|
when RestClient::ServerBrokeConnection, RestClient::RequestTimeout
|
612
|
-
message = "Could not connect to Stripe (#{@@api_base}). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/
|
612
|
+
message = "Could not connect to Stripe (#{@@api_base}). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com."
|
613
613
|
when RestClient::SSLCertificateNotVerified
|
614
614
|
message = "Could not verify Stripe's SSL certificate. Please make sure that your network is not intercepting certificates. (Try going to https://api.stripe.com/v1 in your browser.) If this problem persists, let us know at support@stripe.com."
|
615
615
|
when SocketError
|
data/lib/stripe/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 25
|
10
|
+
version: 1.5.25
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ross Boucher
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-12-07 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rest-client
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements: []
|
125
125
|
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.8.11
|
128
128
|
signing_key:
|
129
129
|
specification_version: 3
|
130
130
|
summary: Ruby bindings for the Stripe API
|