ci_block_io 1.3.0 → 1.4.0

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: df3f290034d9d589c52a407a53d22bf8b47377f75eca1735efa619e2540c2fcb
4
- data.tar.gz: 2a2828ce15a32faa36e97d64b5c429af77e2783fd5f54755ff1059c788dd0aba
3
+ metadata.gz: 48d4a7ec85ffc0f37bebbae101c03068b2d51e4b972c584e2e339fe99c1660f0
4
+ data.tar.gz: 0b6953ff6ccdecc87e5c3e70aab4d42191e1004a02730eed62f5a228979e8a31
5
5
  SHA512:
6
- metadata.gz: 95b1149b0f041f2af71b1c51384979e4649b28737c78bdcefb2d7c359b475baa0ab7525da497c92a2cf0ce51624ae35726dd09145aab857b94659206aab00a84
7
- data.tar.gz: 393160136ac00104b62cf9f4c2c978fcac43dd610de8b4c7433b5ef822c95600cecb4fe123c00084342b2e1d3a8665e9668b8b3417393e1d0de1b0d5439773d4
6
+ metadata.gz: 8db54c4bde368681e2e074af46cf3d23a3e7a3d675a3644daab1f5e3421f447bdc9e0dbeefd4fcbc3cb7a816b9f55d295f39c07586646d6ab36d5b66d3cb3478
7
+ data.tar.gz: 81180125e74ca70437a25b52942e6f22051a406e4687ba10ff45a2463c71edfbadcb31c5cbe1fad5259b2663e3f828e075c552d38b36a5f8c41db3c381387055
@@ -1,3 +1,3 @@
1
1
  module CiBlockIo
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
data/lib/ci_block_io.rb CHANGED
@@ -133,9 +133,9 @@ module CiBlockIo
133
133
 
134
134
  body = nil
135
135
  base_url = @base_url.gsub('API_CALL',endpoint[0]).gsub('VERSION', 'v'+@version.to_s)
136
- return nil if base_url.blank?
136
+ return nil if base_url.nil? || @api_key.nil?
137
137
 
138
- response = @client.post("#{base_url + @api_key}", endpoint[1])
138
+ response = @client.post(base_url + @api_key, endpoint[1])
139
139
 
140
140
  begin
141
141
  body = Oj.load(response.body)
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.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsuhiro Tsuruta feat. Atif Nazir