tenable-ruby 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tenable-ruby.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2231c6ad080a26cb3bc60ccc22754bca82e48f3a3f44c4a660188174d785303
|
4
|
+
data.tar.gz: f0249380a5a091595c10c5a2b0025866cb3b78f27b993e46f091c9b213d09428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d9ca21d8b64969a924a3ca5ed71a1cb7c93bfffbb69db11917427f72a4cf194e9b9290887436c798ddd866e7bf736aebcc20406c7f789b341d64d157625422
|
7
|
+
data.tar.gz: 7440641a013b70196b7105f67da2c5e1c83bd98fe69ea3161bad3a9290d661f10df11cdc1e9b5cd0c116dab6311ccb11568e535f34f724b708f94508870e4aa1
|
data/lib/tenable-ruby.rb
CHANGED
@@ -570,7 +570,12 @@ module TenableRuby
|
|
570
570
|
#
|
571
571
|
# Reference: https://developer.tenable.com/reference#scans-get-latest-status
|
572
572
|
def scan_status(scan_id)
|
573
|
-
http_get(:uri => "/scans/#{scan_id}/latest-status", :fields => header)
|
573
|
+
response = http_get(:uri => "/scans/#{scan_id}/latest-status", :fields => header)
|
574
|
+
if response.is_a?(Hash) and response.has_key?('status')
|
575
|
+
response['status']
|
576
|
+
else
|
577
|
+
raise TenableRuby::Error::TenableError, "Tenable.io did not return a valid status response"
|
578
|
+
end
|
574
579
|
end
|
575
580
|
|
576
581
|
# Parse the scan status command to determine if a scan has finished
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenable-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Craston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Ruby library for communicating with the tenable.io API.
|