openvas 1.0.1 → 1.0.2

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: 7627290f8b2871f2ff44e937d9e0f1d7e87ac01dcf59a379c76472cc2db80c83
4
- data.tar.gz: 3f527c865026e832f49af8541e35ed245e7203e271f5d48ce56c45821e11d412
3
+ metadata.gz: df9fdd14316e75da48d30827a4b6213fbb0ddf8e2eab528e4bc5a07f2dc31d0e
4
+ data.tar.gz: 4e003be71b6166fb5beba30fd933ce6e09954572a3d896dcbcd684e16e0a1ce4
5
5
  SHA512:
6
- metadata.gz: b5dc71d6fb275c35aafbfadce4b4bde25c633ac905a1fe9180f8255f8ec09d04bcccceda30d07738d18366c069d8d2e35a07caa62111a0b8a1bdbee0881f8cc3
7
- data.tar.gz: 3278d4dd83a84587e7615b92c82ccfa18081c89a5dfa7df8e31bc864b700919aea7665f24150bb018c730a8a6d054e5825d7b4c57c81cebbac78bc7583d76103
6
+ metadata.gz: 4db0f3d7cfac93f31cc2d4751f353211a94e557e45840f4a2c775ae35957a5aaf55a6630b158fcf557b3ee7a38b96fb35f45e619d3d24c2f771982e4364f7f47
7
+ data.tar.gz: 505c8f9a1cd933cb81fb1f001d0fa6ed4ae3df0a1f04752aca75cdeb279e7a19dce331851a161328336e284dbe3cf99f8208f850ccfb691de1665e0983f7d1d6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openvas (1.0.1)
4
+ openvas (1.0.2)
5
5
  nokogiri (~> 1.8)
6
6
 
7
7
  GEM
data/lib/openvas/scan.rb CHANGED
@@ -43,7 +43,7 @@ module Openvas
43
43
  end
44
44
  end
45
45
 
46
- def find_by_id(id)
46
+ def find_by(id:)
47
47
  data = Nokogiri::XML::Builder.new { get_tasks(task_id: id) }
48
48
  new(query(data).at_xpath('//get_tasks_response/task'))
49
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openvas
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
@@ -3,7 +3,7 @@
3
3
  require 'spec_helper'
4
4
 
5
5
  describe Openvas::Scan do
6
- let(:scan) { Openvas::Scan.find_by_id('96625625-8e22-4b1c-9c65-4ddf80f78d20') }
6
+ let(:scan) { Openvas::Scan.find_by(id: '96625625-8e22-4b1c-9c65-4ddf80f78d20') }
7
7
 
8
8
  describe '.all' do
9
9
  before { allow(Openvas::Scan).to receive(:query).and_return(fixture_xml('openvas/scans/all.xml')) }
@@ -13,7 +13,7 @@ describe Openvas::Scan do
13
13
  end
14
14
  end
15
15
 
16
- describe '.find_by_id' do
16
+ describe '.find_by' do
17
17
  before { allow(Openvas::Scan).to receive(:query).and_return(fixture_xml('openvas/scans/find_by_id.xml')) }
18
18
 
19
19
  it 'returns an Openvas::Scan object' do
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.1
4
+ version: 1.0.2
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-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri