nessus 0.1.0 → 0.2.0

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: 692b0f574b6c3eeccfc352fde2a9e087d0471399
4
- data.tar.gz: a284de51173600bc5932275e09946318c42bb7eb
3
+ metadata.gz: 075d0b77f2e193176e333756cf8b204b97d61555
4
+ data.tar.gz: accd9c278a4cdd4d580ccfa7a21983e47509ef49
5
5
  SHA512:
6
- metadata.gz: 8a49a00b597d2c1212b8f3e2a9abfb7d9d574eb709ff37384ff79461a9acb083c08043c98fad83fc7b99853e2d7527ef96731d2461a27db035f77543cb82a915
7
- data.tar.gz: f676e3b92942e49d6b912df040845bca07f638e9f791695c6aa29606acadaf1b3216df5d98ff6b21235cbbd2b10ec795ae13db2fd37c86441ca3b95dbb25a788
6
+ metadata.gz: e7f8882ad88853f038fe519b60b61192c0cd0c885e97911f8ba988cd36bccff4c13a19307be79ed240f0f4109160911ec38239ced6dd97984b6618086309b09f
7
+ data.tar.gz: 716ab8b67434fe1ab2a8635cc14073e678cc2b1fce42035285ff33687fca24c23815d492a6be981d09f7caa1aaef3c5cec33e4f3fc4748b3af88083b1bdfe135
data/.gitignore CHANGED
@@ -21,9 +21,9 @@
21
21
 
22
22
  # for a library or gem, you might want to ignore these files since the code is
23
23
  # intended to run in multiple environments; otherwise, check them in:
24
- # Gemfile.lock
25
- # .ruby-version
26
- # .ruby-gemset
24
+ Gemfile.lock
25
+ .ruby-version
26
+ .ruby-gemset
27
27
 
28
28
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
29
29
  .rvmrc
@@ -106,7 +106,7 @@ module Nessus
106
106
  end
107
107
  end
108
108
 
109
- # @return [Array<Hash>] reports by readablename regex
109
+ # @return [Array<Hash>] reports by readableName regex
110
110
  def report_find_by_name(name)
111
111
  if report_list.is_a? Array
112
112
  report_list.find_all do |report|
@@ -117,20 +117,20 @@ module Nessus
117
117
  end
118
118
  end
119
119
 
120
- def report_find_by_readablename(readablename)
120
+ def report_find_by_readable_name(name)
121
121
  report_list.find_all do |report|
122
- report['readablename'] == readablename
122
+ report['readableName'] == name
123
123
  end
124
124
  end
125
125
 
126
126
  def report_find_all(name)
127
127
  report_list.find_all do |report|
128
- report['readablename'] =~ /#{name}/i
128
+ report['readableName'] =~ /#{name}/i
129
129
  end
130
130
  end
131
131
 
132
- def report_readablename(name)
133
- report_list.find{|report| report['name'].eql? name}['readablename']
132
+ def report_readable_name(name)
133
+ report_list.find{|report| report['name'].eql? name}['readableName']
134
134
  end
135
135
 
136
136
  def report_findings(report)
@@ -1,4 +1,4 @@
1
1
  module Nessus
2
2
  # The version of the Nessus.rb library
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
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
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erran Carey
@@ -9,76 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-14 00:00:00.000000000 Z
12
+ date: 2014-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.3'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: yard
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: faraday
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  description: A Ruby client for the Nessus 5.x JSON REST API
@@ -89,9 +89,8 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - ".gitignore"
92
+ - .gitignore
93
93
  - Gemfile
94
- - Gemfile.lock
95
94
  - LICENSE.md
96
95
  - README.md
97
96
  - Rakefile
@@ -123,17 +122,17 @@ require_paths:
123
122
  - lib
124
123
  required_ruby_version: !ruby/object:Gem::Requirement
125
124
  requirements:
126
- - - ">="
125
+ - - '>='
127
126
  - !ruby/object:Gem::Version
128
127
  version: '0'
129
128
  required_rubygems_version: !ruby/object:Gem::Requirement
130
129
  requirements:
131
- - - ">="
130
+ - - '>='
132
131
  - !ruby/object:Gem::Version
133
132
  version: '0'
134
133
  requirements: []
135
134
  rubyforge_project:
136
- rubygems_version: 2.2.0
135
+ rubygems_version: 2.0.3
137
136
  signing_key:
138
137
  specification_version: 4
139
138
  summary: A Ruby client for the Nessus 5.x JSON REST API. UPDATE_ME
@@ -1,31 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- nessus (0.1.0.beta.18)
5
- faraday
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- coderay (1.1.0)
11
- faraday (0.8.9)
12
- multipart-post (~> 1.2.0)
13
- method_source (0.8.2)
14
- multipart-post (1.2.0)
15
- pry (0.9.12.3)
16
- coderay (~> 1.0)
17
- method_source (~> 0.8)
18
- slop (~> 3.4)
19
- rake (10.1.0)
20
- slop (3.4.6)
21
- yard (0.8.7.3)
22
-
23
- PLATFORMS
24
- ruby
25
-
26
- DEPENDENCIES
27
- bundler (~> 1.3)
28
- nessus!
29
- pry
30
- rake
31
- yard