superbot-cloud 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5bd835b5b98790f2f3781fa2ff283288e549a3bff592d56bc088fd70261297b
|
4
|
+
data.tar.gz: d7d43561f6b36cd25e4ff4b166c4f6cfd3e7f920ac14965a138a1998c483b463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d7a961ce5eb71bd5d87bc953f5745bca6be8b4eff9f5d5065a25f47340cd69769189f4e6a676ee95de3438522c98ee438fd1b5182b71afc1f8ac7f394d54f3f
|
7
|
+
data.tar.gz: aade2c3fd1d8eda888b39bc4f25b2a5caf29cdbcd187d381b0ed7b0c65a5f89059d9d5746d224a6d56939e4719043c6f551e6674aba1db7beee01ca40d478565
|
data/Gemfile.lock
CHANGED
data/lib/superbot/cloud/api.rb
CHANGED
@@ -36,7 +36,7 @@ module Superbot
|
|
36
36
|
parsed_response = response.class.body_permitted? && JSON.parse(response.body, symbolize_names: true) || {}
|
37
37
|
return parsed_response if response.is_a? Net::HTTPSuccess
|
38
38
|
|
39
|
-
abort parsed_response[:
|
39
|
+
abort parsed_response[:error]
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -16,7 +16,7 @@ module Superbot
|
|
16
16
|
|
17
17
|
def list_tests
|
18
18
|
api_response = Superbot::Cloud::Api.request(:test_list, params: { organization_name: organization })
|
19
|
-
abort api_response[:
|
19
|
+
abort api_response[:error] if api_response[:error]
|
20
20
|
puts "Organization: #{api_response[:organization]}"
|
21
21
|
puts "Tests:"
|
22
22
|
api_response[:tests].each do |test|
|