tenable-ruby 0.2.2 → 0.2.3
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: 7e9c680c3a0f7e8bdd1491ff10626d32c2618fa1
|
|
4
|
+
data.tar.gz: 53121b959fbd30f550901eb9ef5e0f4f1ed43515
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b4d296d6021975cc14eefa09fd7e22c8062b212cb9a0ef84bfb5eea53a3c69ff73ff014c5254694406fcaa90bd4625b7d1389149dbce8c8a388b95e99fb028e
|
|
7
|
+
data.tar.gz: 6b93787760cd22a9cc7a4cd394b446fe70f1f257ac689c36fe7a86a421b5396c01603b99fa269b58ae021835c80a44fbe1f7714c924398743a1e9f84c0f719a9
|
data/lib/tenable-ruby.rb
CHANGED
|
@@ -99,13 +99,13 @@ module TenableRuby
|
|
|
99
99
|
@token = "token=#{res['token']}"
|
|
100
100
|
@header = {'X-Cookie' => @token}
|
|
101
101
|
else
|
|
102
|
-
fail
|
|
102
|
+
fail TenableRuby::Error::AuthenticationError, "Authentication failed. Could not authenticate using
|
|
103
103
|
username/password."
|
|
104
104
|
end
|
|
105
105
|
elsif @credentials[:access_key] and @credentials[:secret_key]
|
|
106
106
|
@header = {'X-ApiKeys' => "accessKey=#{@credentials[:access_key]}; secretKey=#{@credentials[:secret_key]}"}
|
|
107
107
|
else
|
|
108
|
-
fail
|
|
108
|
+
fail TenableRuby::Error::AuthenticationError, "Authentication credentials were not provided. You must provide" \
|
|
109
109
|
" either a username and password or an API access key and secret key (these can be generated at " \
|
|
110
110
|
"https://cloud.tenable.com/app.html#/settings/my-account/api-keys."
|
|
111
111
|
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.3
|
|
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-
|
|
12
|
+
date: 2018-12-28 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
|