owasp_zap 0.0.93 → 0.0.94

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c0be2d9be7723a3c4aec0b6852eb66327cfbac0
4
- data.tar.gz: c6bde44fad6b0aaba6557efe2ae3380cc578ea4a
3
+ metadata.gz: 708f82e2ef6fe7935aa5518fa97a0867080c8d1f
4
+ data.tar.gz: b95a2b050738e44b6bfa1e02ceb47c36bdbc335e
5
5
  SHA512:
6
- metadata.gz: ccf28c761a1fb3248fe8c02c753400d3d469c5275bb52e17785fe24211ff1e2822462e28d822099bc7ba2cc507f6e3c232042932dec95a8bff3288facb8f7dc3
7
- data.tar.gz: 1b4ef5d319cf28f10810a3dd2a70218dcd34bf81627c2a9d2344913026807b8874bc28a2495c181641cf92d8c2dc8ab6091d731cba966572104c30d318b19281
6
+ metadata.gz: b420620860f45a7592cfabb56e4284048c5981ad5bde647618df20c76c2f62298e225fd34b13ab6c5dbda82eaa1cd730f9ebe4dc86c8e5c3b292652193fce7f7
7
+ data.tar.gz: bd2c9e4073cd5262662afaf4e379e4b775ec10c391276ecbe054468abe17fd08135c2956cb2fe1cc0b47e329fcdc2e3cbbdd327e43cadc916a229fd767952435
@@ -1,3 +1,3 @@
1
1
  module OwaspZap
2
- VERSION = "0.0.93"
2
+ VERSION = "0.0.94"
3
3
  end
data/lib/owasp_zap.rb CHANGED
@@ -12,6 +12,7 @@ require_relative "owasp_zap/attack"
12
12
  require_relative "owasp_zap/alert"
13
13
  require_relative "owasp_zap/auth"
14
14
  require_relative "owasp_zap/scanner"
15
+ require_relative "owasp_zap/policy"
15
16
 
16
17
  module OwaspZap
17
18
  class ZapException < Exception;end
@@ -54,6 +55,10 @@ module OwaspZap
54
55
  response.code == 200
55
56
  end
56
57
 
58
+ def policy
59
+ Zap::Policy.new(:base=>@base)
60
+ end
61
+
57
62
  def alerts
58
63
  Zap::Alert.new(:base=>@base,:target=>@target)
59
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: owasp_zap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.93
4
+ version: 0.0.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pereira