acc 0.1.1 → 0.1.2

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: 214e62ea9e664db1d6249a165b4d9bb05aa358c8
4
- data.tar.gz: 5c7f3aa9d27396a0b8aece42796505910c76669e
3
+ metadata.gz: 8398dac7711ed3acb08eea64b8b75ef57974809e
4
+ data.tar.gz: ef71561e3fcdff2e2c4a957edd43f0efb4c7978e
5
5
  SHA512:
6
- metadata.gz: 2433e0e1c9bc2a027091a0048c233d6bbfdfd7d15e2d1c08194af5a2cb3a1165f8f06023adfd837bb39e382933993bb256f82f9cd40a7ea5233c4f4b3e0fa29c
7
- data.tar.gz: 7cb337e74c46f6673aa1f8215f7e3c697b62cfae408d6b2ecb5766840560f5f9863406112c5f25d6f6a9180e3178bff7f0314780d00472a1c68c3aae5272b44a
6
+ metadata.gz: 9600a3fe8d522efeb5546f80e6cb12b7876ad0beee54fcc53493b0503a3eaa33f6423eaf96e5b309092cca4d40dc4bbeaadcb6f7a1bde20617f1248b5211650b
7
+ data.tar.gz: c90eb0994bb3663462dac9b348cf6fad8e730fe2c3caef37083b4df787db82e79e887048e50322d2f1d08db269bac8392a4986d2dfeb13d72bdcc9170907d020
@@ -15,12 +15,12 @@ class Acc::CheckTransactionResponse
15
15
  end
16
16
 
17
17
  def in_progress?
18
- in_progress_array_error? || in_progress_error?
18
+ error_response.kind_of?(Array) ? in_progress_array_error? : in_progress_error?
19
19
  end
20
20
 
21
21
 
22
22
  def in_progress_array_error?
23
- error_response.present? && error_response.kind_of?(Array) && error_response.first['errorCode'] == 'DEP-ERR-4003'
23
+ error_response.present? && error_response.first['errorCode'] == 'DEP-ERR-4003'
24
24
  end
25
25
 
26
26
  def in_progress_error?
data/lib/acc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Acc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud MESUREUR