openpay 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23388a3e6c33cde8c41a8a69055a5eec2bb37ccb
4
- data.tar.gz: e71536fe4278baec59d2e892e4ebfd37acd09ecc
3
+ metadata.gz: 69310039f78e74baefd2e96785c830f19f2902f3
4
+ data.tar.gz: e71006cf6228aafdd92a95bf7f86bb28763c1e75
5
5
  SHA512:
6
- metadata.gz: 4ca520e2620859d865ad0280c78ed5b24684d2d3e6307b085b964bfe9261c7b7c3ee8e29de9487b08004e231939ab8205cd8278d6a3528848b067cd88422c734
7
- data.tar.gz: a9f353af0a9f28b02f9e1cd9f48eadcf71fafdf67d57517a87fb2ce6ddcac37131463c85386244f223721dc06a2925b21de2d98bf1458d9417cdce92cb522d2f
6
+ metadata.gz: 3a917c8bdf259cf8580cf3538925948cddbd7e0f6550b833a2e24d6fde96680b29bb1ac4ccc04561b654d76f8f4ebbef19745cd898697d5806ea5be243aa50a9
7
+ data.tar.gz: 6d433a86393555430d727393fb8581d96041cb3e8fd65db2891a38edc3e2bae44734a89c107ef2b5f87d41e5025ed129b1ccdb1acd65122a1fcaac91b95b3163
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ##Description
8
8
 
9
- ruby client for *Openpay api* services (version 1.0.6)
9
+ ruby client for *Openpay api* services (version 1.0.7)
10
10
 
11
11
  This is a ruby client implementing the payment services for *Openpay* at openpay.mx
12
12
 
@@ -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
- oe=OpenpayConnectionException.new exception.http_body
32
- LOG.warn exception.http_body
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
 
@@ -1,3 +1,3 @@
1
1
  module Openpay
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
@@ -13,8 +13,8 @@ describe 'Request timeout exception' do
13
13
 
14
14
  end
15
15
 
16
- it 'raise a OpenpayException when the operation timeouts' do
17
- expect{@charges.all}.to raise_error(OpenpayException)
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.6
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-20 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client