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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35a9dc822e2c93fb45ffb66ecd3266ac0404bbe5
4
- data.tar.gz: 974dffa4495ac7263f7cfe8d4f2faa7395d9b5ca
3
+ metadata.gz: 8bfb4e773131f19d7a08d5d5abc02a043d5cd749
4
+ data.tar.gz: e2957cdca881fe2a4cad97e06e72e9550e179b4a
5
5
  SHA512:
6
- metadata.gz: bf3c83596ce89395af6c1f04b444ff7b1b3a159d7a2f1ca7631535df97a67e7b5b6f003a02b7c54875ae2aec27bd1e5248b8b743ddca0828fc17b11b24fb3f26
7
- data.tar.gz: 97de57649cf99f5113f86943366552df92eae0ebe79b55466dcf8985432fbd355fe7bcc8179950aa5e835baebfef70b2439e5698efbb4aa49f01b40cfe272203
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['error'].is_a?(Hash)
96
- [body['error']['en'], body['error_code']]
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
 
@@ -1,3 +1,3 @@
1
1
  module SynapsePayments
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
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.3
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-20 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler