openpay 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/openpay/errors/openpay_exception_factory.rb +7 -3
- data/lib/version.rb +1 -1
- data/test/spec/requesttimeout_spec.rb +2 -2
- 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: 69310039f78e74baefd2e96785c830f19f2902f3
|
4
|
+
data.tar.gz: e71006cf6228aafdd92a95bf7f86bb28763c1e75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a917c8bdf259cf8580cf3538925948cddbd7e0f6550b833a2e24d6fde96680b29bb1ac4ccc04561b654d76f8f4ebbef19745cd898697d5806ea5be243aa50a9
|
7
|
+
data.tar.gz: 6d433a86393555430d727393fb8581d96041cb3e8fd65db2891a38edc3e2bae44734a89c107ef2b5f87d41e5025ed129b1ccdb1acd65122a1fcaac91b95b3163
|
data/README.md
CHANGED
@@ -27,9 +27,13 @@ class OpenpayExceptionFactory
|
|
27
27
|
@errors=true
|
28
28
|
raise oe
|
29
29
|
#badgateway-connection error, invalid credentials
|
30
|
-
when RestClient::BadGateway, RestClient::Unauthorized
|
31
|
-
|
32
|
-
|
30
|
+
when RestClient::BadGateway, RestClient::Unauthorized, RestClient::RequestTimeout
|
31
|
+
LOG.warn exception
|
32
|
+
if exception.http_body
|
33
|
+
oe=OpenpayConnectionException.new exception.http_body
|
34
|
+
else
|
35
|
+
oe=OpenpayConnectionException.new(exception.message, false)
|
36
|
+
end
|
33
37
|
@errors=true
|
34
38
|
raise oe
|
35
39
|
|
data/lib/version.rb
CHANGED
@@ -13,8 +13,8 @@ describe 'Request timeout exception' do
|
|
13
13
|
|
14
14
|
end
|
15
15
|
|
16
|
-
it 'raise
|
17
|
-
expect{@charges.all}.to raise_error(
|
16
|
+
it 'raise an OpenpayConnectionException when the operation timeouts' do
|
17
|
+
expect{@charges.all}.to raise_error(OpenpayConnectionException)
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronnie_bermejo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|