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 +4 -4
- data/lib/ci_block_io/version.rb +1 -1
- data/lib/ci_block_io.rb +2 -2
- 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: 48d4a7ec85ffc0f37bebbae101c03068b2d51e4b972c584e2e339fe99c1660f0
|
|
4
|
+
data.tar.gz: 0b6953ff6ccdecc87e5c3e70aab4d42191e1004a02730eed62f5a228979e8a31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8db54c4bde368681e2e074af46cf3d23a3e7a3d675a3644daab1f5e3421f447bdc9e0dbeefd4fcbc3cb7a816b9f55d295f39c07586646d6ab36d5b66d3cb3478
|
|
7
|
+
data.tar.gz: 81180125e74ca70437a25b52942e6f22051a406e4687ba10ff45a2463c71edfbadcb31c5cbe1fad5259b2663e3f828e075c552d38b36a5f8c41db3c381387055
|
data/lib/ci_block_io/version.rb
CHANGED
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.
|
|
136
|
+
return nil if base_url.nil? || @api_key.nil?
|
|
137
137
|
|
|
138
|
-
response = @client.post(
|
|
138
|
+
response = @client.post(base_url + @api_key, endpoint[1])
|
|
139
139
|
|
|
140
140
|
begin
|
|
141
141
|
body = Oj.load(response.body)
|