zapr 0.1.2 → 0.1.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/zapr.rb +2 -1
- data/lib/zapr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65906e5901417c7f9feb09c5e8797a0c8e65ba57
|
4
|
+
data.tar.gz: d1573ea27452d8f97405f4063b21c2920da10995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69a8104610de56b059a02085b2b195a6b5710e6ea608c5185658d61bf9ff299d343f848afa799a050659f1a75cd1b2ec686cb910836b503173a090b9126f1de
|
7
|
+
data.tar.gz: aae2469cde62c9669e96cb2ec3a026e6b43d75d302cc31a9d21bbf968be06b0913a9b26dea33d03206cfee141c1a6454177c9b5f1408736a25548d519a723ca4
|
data/lib/zapr.rb
CHANGED
@@ -12,6 +12,7 @@ module Zapr
|
|
12
12
|
|
13
13
|
option "--debug", :flag, "More verbose output", :default => false
|
14
14
|
option "--summary", :flag, "Output a summary of the results instead of JSON", :default => false
|
15
|
+
option "--detailed-exit-codes", :flag, "Exit with number of high priority issues as exit code", :default => false
|
15
16
|
option "--zap-path", "PATH", "Path to zap.sh startup script", :environment_variable => "ZAP_PATH"
|
16
17
|
option "--timeout", "TIMEOUT", "Timeout for spider and scan", :default => 300, :environment_variable => "ZAPR_TIMEOUT" do |timeout|
|
17
18
|
Integer(timeout)
|
@@ -41,7 +42,7 @@ module Zapr
|
|
41
42
|
ensure
|
42
43
|
zap.shutdown if defined? zap
|
43
44
|
end
|
44
|
-
exit zap.exit_code
|
45
|
+
exit zap.exit_code if detailed_exit_codes?
|
45
46
|
end
|
46
47
|
|
47
48
|
end
|
data/lib/zapr/version.rb
CHANGED