synapse_payments 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/synapse_payments/error.rb +4 -2
- data/lib/synapse_payments/version.rb +1 -1
- 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: 8bfb4e773131f19d7a08d5d5abc02a043d5cd749
|
4
|
+
data.tar.gz: e2957cdca881fe2a4cad97e06e72e9550e179b4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e61e04ed9d825a42ba258303ccc8eb6940dac7ccda5fe04709cd558b35f811f18f406233d7b8eaced57d6637f1d57f9915edb4f0bf793292bc32e83ea257a7
|
7
|
+
data.tar.gz: 92e5d4c6b150fd1ed7c2d650a29eacd5b0164e987a1fc863124bbd7d113b537f7d415b130deca7a1c7caca357bc7bdc0a19fd7ac669d1f99ad2d2b256dad2409
|
@@ -92,8 +92,10 @@ module SynapsePayments
|
|
92
92
|
def parse_error(body)
|
93
93
|
if body.nil? || body.empty?
|
94
94
|
['', nil]
|
95
|
-
elsif body.is_a?(Hash) && body[
|
96
|
-
[body[
|
95
|
+
elsif body.is_a?(Hash) && body[:error].is_a?(Hash)
|
96
|
+
[body[:error][:en], body[:error_code]]
|
97
|
+
else
|
98
|
+
[body.to_s, nil]
|
97
99
|
end
|
98
100
|
end
|
99
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|