tenable-ruby 0.2.1 → 0.2.2
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/tenable-ruby.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 308dad5caf81a5698d4d843db16c1ccb8542a028
|
|
4
|
+
data.tar.gz: a9b6209b5872575f1b8c0c347baec1e084c7c66a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56834fec7855f929a12008e107cfd8411bea1b2de7de07044a0683d633742643250b9c242f0c2b1843e82b58bb7f9add04f1d513856d2e4d2c5feadd2da24ec1
|
|
7
|
+
data.tar.gz: '00914cc0fba9fc1901f3e53c6c0cfaf2ac589cc6b167bbe552c9b40a5faf474eff74f919accd1650fc9cf2bd05259d58b4a1118118fa4c9fde53f227089d7485'
|
data/lib/tenable-ruby.rb
CHANGED
|
@@ -469,7 +469,7 @@ module TenableRuby
|
|
|
469
469
|
policies = list_policies['policies'].select do |pol|
|
|
470
470
|
pol['id'] == policyname or pol['name'] == policyname
|
|
471
471
|
end
|
|
472
|
-
if policies.
|
|
472
|
+
if policies.size == 0
|
|
473
473
|
return nil
|
|
474
474
|
end
|
|
475
475
|
policy = policies.first
|
|
@@ -483,7 +483,7 @@ module TenableRuby
|
|
|
483
483
|
folders = list_folders['folders'].select do |folder|
|
|
484
484
|
folder['name'] == foldername
|
|
485
485
|
end
|
|
486
|
-
unless folders.
|
|
486
|
+
unless folders.size == 0
|
|
487
487
|
settings['folder_id'] = folders.first['id']
|
|
488
488
|
end
|
|
489
489
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tenable-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vlatko Kosturjak
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: "Unofficial Ruby library for communicating with the tenable.io API (also
|
|
15
15
|
works with Nessus 6).\n You can start, stop, pause and resume scan. Get status
|