ci_block_io 1.7.2 → 1.7.3

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: de1a390c6e9258fce9adc1ff46a7616f37c1e4f082c70dea8a9c21bba89e2469
4
- data.tar.gz: 6836bcd989eaefa1fadded5100030bc1e670fb71727dc5c8fc2d3bb70f45602f
3
+ metadata.gz: 06b4166ccace6d50382ca48dd5923b932a8a3bc3bcd3816a4c1f1fc574568235
4
+ data.tar.gz: 803956987bd0e3e716966e8c580a865985266c2d5a34458a3f0252ac2bcc7c6c
5
5
  SHA512:
6
- metadata.gz: 18d4746de5c6dd6145ce85be610e524cf73caabb7e108c3b0ba15ddebb725626e4561ad4e5b3ab47b1c7815e9ccf4d4c0a49b32eab322c8578bbf5c79d13b8ff
7
- data.tar.gz: 4d52ea804661e4a603049c196a39c063183cce2daa265e81f67f5f14e4eb90d53ac4123fbbb7e6a98d62a4c19d31f8b1397ec40530ed75a79c6aa7ca8f2861d0
6
+ metadata.gz: c5d9377aef97edd7485053c814d669ee0f40a548595a0e3bc48fa0ce85141e8d2828fc705a32ddf93b1d7e1457dc0111046712b6479467f25d749a45a71d9351
7
+ data.tar.gz: 5db50d701bede363917f214563059cd66c084477dae67de593bcb1b2407144f604fa40e215480253412a29d26ac204138e456cf72f9fefe55236fa6fbe5429ba
@@ -146,15 +146,11 @@ module CiBlockIo
146
146
 
147
147
  response = @client.post(base_url + @api_key, endpoint[1])
148
148
 
149
- begin
150
- body = Oj.load(response.body)
151
- if endpoint[0] == 'withdraw'
152
- raise CiBlockIoWithdrawException.new(body['data']['error_message']) if !body['status'].eql?('success')
153
- else
154
- raise Exception.new(body['data']['error_message']) if !body['status'].eql?('success')
155
- end
156
- rescue
157
- raise Exception.new('Unknown error occurred. Please report this.')
149
+ body = Oj.load(response.body)
150
+ if endpoint[0] == 'withdraw'
151
+ raise CiBlockIoWithdrawException.new(body['data']['error_message']) if !body['status'].eql?('success')
152
+ else
153
+ raise Exception.new(body['data']['error_message']) if !body['status'].eql?('success')
158
154
  end
159
155
  body
160
156
  end
@@ -1,3 +1,3 @@
1
1
  module CiBlockIo
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.3"
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.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsuhiro Tsuruta feat. Atif Nazir