ci_block_io 1.7.1 → 1.7.2

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
  SHA256:
3
- metadata.gz: 93926bfd4df14d9634d0ea789c86fdd7737e485f129a7b966b52ea110ab96d46
4
- data.tar.gz: b605c6dc58f4f2eb583691767f1ee2a7c97b8a920675787e4fcc6b46785d5480
3
+ metadata.gz: de1a390c6e9258fce9adc1ff46a7616f37c1e4f082c70dea8a9c21bba89e2469
4
+ data.tar.gz: 6836bcd989eaefa1fadded5100030bc1e670fb71727dc5c8fc2d3bb70f45602f
5
5
  SHA512:
6
- metadata.gz: a492c73929e34c787b4cb7d4773f3024a0ffbbf0984a49bbccbf3e9c6739697ff70ea1cd04fe6cc39e419c45e2cc56d02c650dc076898cda9ed8187192caa03b
7
- data.tar.gz: 26e60257ab22e318649b2f741807b591e73e41c4ce377ab6802f83510777f4a92e41bd5af9354e7f61c295b052f188b3279bba309b18685294ea8c9e545dfddd
6
+ metadata.gz: 18d4746de5c6dd6145ce85be610e524cf73caabb7e108c3b0ba15ddebb725626e4561ad4e5b3ab47b1c7815e9ccf4d4c0a49b32eab322c8578bbf5c79d13b8ff
7
+ data.tar.gz: 4d52ea804661e4a603049c196a39c063183cce2daa265e81f67f5f14e4eb90d53ac4123fbbb7e6a98d62a4c19d31f8b1397ec40530ed75a79c6aa7ca8f2861d0
@@ -148,12 +148,10 @@ module CiBlockIo
148
148
 
149
149
  begin
150
150
  body = Oj.load(response.body)
151
- return unless body['status'].eql?('success')
152
- case endpoint[0]
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.')
@@ -1,3 +1,3 @@
1
1
  module CiBlockIo
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_block_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsuhiro Tsuruta feat. Atif Nazir