owasp_zap 0.0.82 → 0.0.83
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/owasp_zap/spider.rb +10 -2
- data/lib/owasp_zap/version.rb +1 -1
- 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: 6e5fdf9b26110a60007a305236c10a161332a680
|
4
|
+
data.tar.gz: 2e9bd2b8ec63a92451f6a54f901cd384097218e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7764c5a866bfe1b214384a5845a20f3ca5c9fd2686143780b5c7dbb436a59abdf26349dda75b4ce606628aa53eacc1932da78bb2359e3392ebc17cca66b5fab5
|
7
|
+
data.tar.gz: 81f57f4e2243a8fde715923fa3d200c620b6b6008780f11afedb95c2799ab696d4e28dfc1dfa2b546b18eb6e4d17a6b92f1cdec662298f049fa9be9e82ed584c
|
data/lib/owasp_zap/spider.rb
CHANGED
@@ -20,8 +20,16 @@ module OwaspZap
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def status
|
23
|
-
RestClient::get
|
24
|
-
|
23
|
+
ret = JSON.parse(RestClient::get("#{@base}/spider/view/status/?zapapiformat=JSON"))
|
24
|
+
if ret.has_key? "status"
|
25
|
+
ret["status"]
|
26
|
+
else
|
27
|
+
100 # it means no running
|
28
|
+
end
|
29
|
+
end
|
25
30
|
|
31
|
+
def running?
|
32
|
+
self.status != 100
|
33
|
+
end
|
26
34
|
end
|
27
35
|
end
|
data/lib/owasp_zap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: owasp_zap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.83
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pereira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|