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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zapr.rb +2 -1
  3. data/lib/zapr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 832af18c7a71ca79ceff9684e438cd3b66f4cdc5
4
- data.tar.gz: bfb6c66a6e07d6673be33a84078c1a0fa7bbabe9
3
+ metadata.gz: 65906e5901417c7f9feb09c5e8797a0c8e65ba57
4
+ data.tar.gz: d1573ea27452d8f97405f4063b21c2920da10995
5
5
  SHA512:
6
- metadata.gz: d84e19cbdba8569d0c70bef0c1e0aef0314b8aa7b877382d31add0bcd4885630a3dca3c93ff3e158352ec1ddc4cd9d7cad4d778c2c92ad263de990adfbec6c3a
7
- data.tar.gz: 4a7dc37113fd44c7c5ef6101858268497f8da3434dfc788069b6f65da88f755af2b2d68b1d4b843c09538adcb209b5ea53cca86d0fd8605b11c43a44862f5c1d
6
+ metadata.gz: e69a8104610de56b059a02085b2b195a6b5710e6ea608c5185658d61bf9ff299d343f848afa799a050659f1a75cd1b2ec686cb910836b503173a090b9126f1de
7
+ data.tar.gz: aae2469cde62c9669e96cb2ec3a026e6b43d75d302cc31a9d21bbf968be06b0913a9b26dea33d03206cfee141c1a6454177c9b5f1408736a25548d519a723ca4
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Zapr
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zapr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Rushgrove