openvas-cli 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -26,5 +26,9 @@ module OpenvasCli
26
26
  def reset_changes
27
27
  @changed_attributes.clear if @changed_attributes
28
28
  end
29
+
30
+ def to_param
31
+ id
32
+ end
29
33
  end
30
34
  end
data/openvas-cli.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{openvas-cli}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Reed Swenson"]
data/vas_test.rb CHANGED
@@ -7,6 +7,6 @@ OpenvasCli.configure { |config|
7
7
  }
8
8
 
9
9
  families = OpenvasCli::VasNVTFamily.get_all
10
- families.each { |f|
11
- puts f.to_yaml
12
- }
10
+ nvts = OpenvasCli::VasNVT.get_all(:family => families.choice.name)
11
+ nvt = nvts.choice
12
+ puts nvt.to_param
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvas-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Reed Swenson