nexpose 4.0.3 → 4.0.4
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/Gemfile.lock +1 -1
- data/lib/nexpose/version.rb +1 -1
- data/lib/nexpose/wait.rb +6 -0
- 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: 303d657a9bd0cda519e45ecf6e67c22204adc8d8
|
|
4
|
+
data.tar.gz: 5596ad2f65671fdf5be5af702cef48492c0d4a33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24860b060b6cbba9f98919bc99c1b3ee0f54c6ab6b6e0a3ac107c868c7dc0023754cff42bf48a27aa04987d4702a2d654f786afeaf825817246a5178b8c341ab
|
|
7
|
+
data.tar.gz: c1ab5b644c3cc0910841079979107f01e18379471cdd312258fbb688b5e08e1b05ca44afe4e1d9e9bf6e19d7fbcc8637aa43bade329fd22c71d279ca9f120437
|
data/Gemfile.lock
CHANGED
data/lib/nexpose/version.rb
CHANGED
data/lib/nexpose/wait.rb
CHANGED
|
@@ -19,11 +19,14 @@ module Nexpose
|
|
|
19
19
|
poller.wait(report_status_proc(nexpose_connection: nexpose_connection, report_id: report_id))
|
|
20
20
|
@ready = true
|
|
21
21
|
rescue TimeoutError
|
|
22
|
+
@ready = false
|
|
22
23
|
retry if timeout_retry?
|
|
23
24
|
@error_message = "Timeout Waiting for Report to Generate - Report Config ID: #{report_id}"
|
|
24
25
|
rescue NoMethodError => error
|
|
26
|
+
@ready = false
|
|
25
27
|
@error_message = "Error Report Config ID: #{report_id} :: Report Probably Does Not Exist :: #{error}"
|
|
26
28
|
rescue => error
|
|
29
|
+
@ready = false
|
|
27
30
|
@error_message = "Error Report Config ID: #{report_id} :: #{error}"
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -32,9 +35,11 @@ module Nexpose
|
|
|
32
35
|
poller.wait(integration_status_proc(nexpose_connection: nexpose_connection, scan_id: scan_id, status: status))
|
|
33
36
|
@ready = true
|
|
34
37
|
rescue TimeoutError
|
|
38
|
+
@ready = false
|
|
35
39
|
retry if timeout_retry?
|
|
36
40
|
@error_message = "Timeout Waiting for Integration Status of '#{status}' - Scan ID: #{scan_id}"
|
|
37
41
|
rescue Nexpose::APIError => error
|
|
42
|
+
@ready = false
|
|
38
43
|
@error_message = "API Error Waiting for Integration Scan ID: #{scan_id} :: #{error.req.error}"
|
|
39
44
|
end
|
|
40
45
|
|
|
@@ -43,6 +48,7 @@ module Nexpose
|
|
|
43
48
|
poller.wait(proc)
|
|
44
49
|
@ready = true
|
|
45
50
|
rescue TimeoutError
|
|
51
|
+
@ready = false
|
|
46
52
|
retry if timeout_retry?
|
|
47
53
|
@error_message = "Timeout Waiting for Judgment to Judge. #{desc}"
|
|
48
54
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexpose
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- HD Moore
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2016-05-
|
|
16
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: bundler
|