nessus 0.1.0.beta.14 → 0.1.0.beta.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,8 +116,12 @@ module Nessus
116
116
 
117
117
  # @return [Array<Hash>] reports by readablename regex
118
118
  def report_find_by_name(name)
119
- report_list.find_all do |report|
120
- report['name'] == name
119
+ if report_list.is_a? Array
120
+ report_list.find_all do |report|
121
+ report['name'] == name
122
+ end
123
+ elsif report_list['name'] == name
124
+ [report_list]
121
125
  end
122
126
  end
123
127
 
@@ -1,4 +1,4 @@
1
1
  module Nessus
2
2
  # The version of the Nessus.rb library
3
- VERSION = '0.1.0.beta.14'
3
+ VERSION = '0.1.0.beta.15'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nessus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta.14
4
+ version: 0.1.0.beta.15
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: