ci_block_io 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci_block_io.rb +3 -5
- data/lib/ci_block_io/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de1a390c6e9258fce9adc1ff46a7616f37c1e4f082c70dea8a9c21bba89e2469
|
4
|
+
data.tar.gz: 6836bcd989eaefa1fadded5100030bc1e670fb71727dc5c8fc2d3bb70f45602f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18d4746de5c6dd6145ce85be610e524cf73caabb7e108c3b0ba15ddebb725626e4561ad4e5b3ab47b1c7815e9ccf4d4c0a49b32eab322c8578bbf5c79d13b8ff
|
7
|
+
data.tar.gz: 4d52ea804661e4a603049c196a39c063183cce2daa265e81f67f5f14e4eb90d53ac4123fbbb7e6a98d62a4c19d31f8b1397ec40530ed75a79c6aa7ca8f2861d0
|
data/lib/ci_block_io.rb
CHANGED
@@ -148,12 +148,10 @@ module CiBlockIo
|
|
148
148
|
|
149
149
|
begin
|
150
150
|
body = Oj.load(response.body)
|
151
|
-
|
152
|
-
|
153
|
-
when 'withdraw'
|
154
|
-
raise CiBlockIoWithdrawException.new(body['data']['error_message'])
|
151
|
+
if endpoint[0] == 'withdraw'
|
152
|
+
raise CiBlockIoWithdrawException.new(body['data']['error_message']) if !body['status'].eql?('success')
|
155
153
|
else
|
156
|
-
raise Exception.new(body['data']['error_message'])
|
154
|
+
raise Exception.new(body['data']['error_message']) if !body['status'].eql?('success')
|
157
155
|
end
|
158
156
|
rescue
|
159
157
|
raise Exception.new('Unknown error occurred. Please report this.')
|
data/lib/ci_block_io/version.rb
CHANGED