owasp_zap 0.0.94 → 0.0.95

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: 708f82e2ef6fe7935aa5518fa97a0867080c8d1f
4
- data.tar.gz: b95a2b050738e44b6bfa1e02ceb47c36bdbc335e
3
+ metadata.gz: 782c553bfa5aee80dc9987f306cff31a3cfe6b7e
4
+ data.tar.gz: 653a520ff07c6a14156cd84e43f33d6e814e81a0
5
5
  SHA512:
6
- metadata.gz: b420620860f45a7592cfabb56e4284048c5981ad5bde647618df20c76c2f62298e225fd34b13ab6c5dbda82eaa1cd730f9ebe4dc86c8e5c3b292652193fce7f7
7
- data.tar.gz: bd2c9e4073cd5262662afaf4e379e4b775ec10c391276ecbe054468abe17fd08135c2956cb2fe1cc0b47e329fcdc2e3cbbdd327e43cadc916a229fd767952435
6
+ metadata.gz: 73ff7b887bce019164c72b040c7b3549d1fb523b88390c9c1dc35b9976a4d5d9fa1d64aa2fe6f131f5e578acc31fe54d1ec8910f98ef083fd61d27c0b02f76f1
7
+ data.tar.gz: dc49d7f3e8e8f95408a722524b96a9c4e61159937f687ec0d0b0231a2c2dbfc66a7ee74b366ffc7156ffc0a961a5dc928a4ec0ae82684ef13cbebaeb6230bc09
@@ -0,0 +1,14 @@
1
+ module OwaspZap
2
+ class Policy
3
+ def initialize(params = {})
4
+ @base = params[:base]
5
+ end
6
+
7
+ def all(format = "JSON")
8
+ # http://127.0.0.1:8080/JSON/ascan/view/policies/?zapapiformat=JSON
9
+ url = Addressable::URI.parse "#{@base}/#{format}/ascan/view/policies/"
10
+ url.query_values = {:zapapiformat=>format}
11
+ RestClient::get url.normalize.to_str
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module OwaspZap
2
- VERSION = "0.0.94"
2
+ VERSION = "0.0.95"
3
3
  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.94
4
+ version: 0.0.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pereira
@@ -126,6 +126,7 @@ files:
126
126
  - lib/owasp_zap/attack.rb
127
127
  - lib/owasp_zap/auth.rb
128
128
  - lib/owasp_zap/error.rb
129
+ - lib/owasp_zap/policy.rb
129
130
  - lib/owasp_zap/scanner.rb
130
131
  - lib/owasp_zap/spider.rb
131
132
  - lib/owasp_zap/string_extension.rb