openvas 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: c9bc5e923d6ca93ca1dd2f0e6e1d421c84cb4e0e12c6977a1d268693931bfe2e
4
- data.tar.gz: 66c6f2a14ec5888fabe1be0476ed591ae17eb010a31d59637b8003560e0a5331
3
+ metadata.gz: 80a7f3832386bc9e36fabc31ef0c184422ef0761b0fbe4b9ebcea722b47a0067
4
+ data.tar.gz: 9c7ad8173b4137a3cdecd6cac33ad2204fb55f81ccf48eb5039d94bfa8eb1179
5
5
  SHA512:
6
- metadata.gz: 3b41aae97cb5ffe87d9bd82368b300fdbd9ed7a9aa3beb9b308756e4a4caf28a140d551c52dc474fce2a7dd3b471236cae8f3a809276663083147f4173621333
7
- data.tar.gz: ccafc1c6a2855b0bb30fbc1729006c3ed875ceaa1c8451534ff87506ed8b21a9abd0a4793c86da3dfb4299f08702cf3eb7f97429f591018995756fb233848bb7
6
+ metadata.gz: 387b75992aaa6326829ec8ae40314a6df8314a1e053d7139c6989325f015a0c4a5665fa09c3bbe1c5505c430e8ad271f01d1e8febfdc28b54cd644dddeb1efa1
7
+ data.tar.gz: d31c4156b3cdd0924b506cf2b395de9309fc1a69058216e2ee334deb59a9c17f36e98a1cb085e098c71e4f5e04704d76ba2d059215815b72dd82d946585aec1d
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openvas (1.0.2)
4
+ openvas (1.0.4)
5
5
  nokogiri (~> 1.8)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.3.0)
10
+ ast (2.4.0)
11
11
  coveralls (0.8.21)
12
12
  json (>= 1.8, < 3)
13
13
  simplecov (~> 0.14.1)
@@ -18,11 +18,11 @@ GEM
18
18
  docile (1.1.5)
19
19
  json (2.1.0)
20
20
  mini_portile2 (2.3.0)
21
- nokogiri (1.8.1)
21
+ nokogiri (1.8.2)
22
22
  mini_portile2 (~> 2.3.0)
23
23
  parallel (1.12.1)
24
- parser (2.4.0.2)
25
- ast (~> 2.3)
24
+ parser (2.5.0.3)
25
+ ast (~> 2.4.0)
26
26
  powerpack (0.1.1)
27
27
  rainbow (3.0.0)
28
28
  rake (12.3.0)
@@ -38,10 +38,10 @@ GEM
38
38
  rspec-mocks (3.7.0)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
40
  rspec-support (~> 3.7.0)
41
- rspec-support (3.7.0)
42
- rubocop (0.52.1)
41
+ rspec-support (3.7.1)
42
+ rubocop (0.53.0)
43
43
  parallel (~> 1.10)
44
- parser (>= 2.4.0.2, < 3.0)
44
+ parser (>= 2.5)
45
45
  powerpack (~> 0.1)
46
46
  rainbow (>= 2.2.2, < 4.0)
47
47
  ruby-progressbar (~> 1.7)
@@ -5,14 +5,14 @@ require 'time'
5
5
  module Openvas
6
6
  # Class used to interact with OpenVAS' scans
7
7
  class Scan < Client
8
- attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at
8
+ attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at, :trend
9
9
 
10
10
  def initialize(scan)
11
11
  @id = scan.at_xpath('@id').value
12
12
  @name = scan.at_xpath('name').text
13
13
  @comment = scan.at_xpath('comment').text
14
14
  @user = scan.at_xpath('owner/name').text
15
-
15
+ @trend = scan.at_xpath('trend').text
16
16
  @status = scan.at_xpath('status').text
17
17
  @target = scan.at_xpath('target')&.first_element_child&.text
18
18
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openvas
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'openvas/version'
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Wininger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-26 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri