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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7dbad506a4025e386b6eebcdd02d9093822e201
4
- data.tar.gz: dcdedfc7008e8c07de2e5f0aa5c7f928e7d7e2e4
3
+ metadata.gz: 6e5fdf9b26110a60007a305236c10a161332a680
4
+ data.tar.gz: 2e9bd2b8ec63a92451f6a54f901cd384097218e8
5
5
  SHA512:
6
- metadata.gz: 098f2803a4f5dd8031e222c99070bf7bccffecc85c309e619617d3866436b0132b835e22b20f9e4706be0db0e1f589ca3b6bb499c82998ffbcb5cf2190c436d1
7
- data.tar.gz: 400ba79dc6840137587333a85ce843ff721873804e463a6c84740ecc7fc8e36150589907b5e6b592c8e10f0f35ce7d60c4a70bb2c7995d1fbbe1537452bd575d
6
+ metadata.gz: 7764c5a866bfe1b214384a5845a20f3ca5c9fd2686143780b5c7dbb436a59abdf26349dda75b4ce606628aa53eacc1932da78bb2359e3392ebc17cca66b5fab5
7
+ data.tar.gz: 81f57f4e2243a8fde715923fa3d200c620b6b6008780f11afedb95c2799ab696d4e28dfc1dfa2b546b18eb6e4d17a6b92f1cdec662298f049fa9be9e82ed584c
@@ -20,8 +20,16 @@ module OwaspZap
20
20
  end
21
21
 
22
22
  def status
23
- RestClient::get "#{@base}/spider/view/status/?zapapiformat=JSON"
24
- end
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
@@ -1,3 +1,3 @@
1
1
  module OwaspZap
2
- VERSION = "0.0.82"
2
+ VERSION = "0.0.83"
3
3
  end
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.82
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-16 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler