nexpose 0.6.0 → 0.6.1

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: 7ce180b54366855f5d0511fd50185567a5734605
4
- data.tar.gz: 5650f50453a932f98e3a722ddf655c0635b80938
3
+ metadata.gz: 6ad801dadec80e96926962637c8fa6d3cf6a338f
4
+ data.tar.gz: 763a538eae968c90943ccf4d9aa463fea6cf0ad8
5
5
  SHA512:
6
- metadata.gz: e1c3417f80843242824f7c2f606f5087385fcfe027a31fff2c3837c7978c70b8ad1ba4e4ee4d6a1e48befa4e4fe985aa74eee75253dc093705c0a6c77439ff3b
7
- data.tar.gz: 757e37366791babc0b690b94807dca9356bc38612b1f8333f2892070d7e9b774de6858d1abc6124bf036fc8bef94dbf126e1d065ee3b0e95f367d9cca702442f
6
+ metadata.gz: 08da6caad801348db0f240fde304b5b0bd8abaa84cf3351642e8e085c23dd074075342eba8560962b901aca306505f5598d670010bcbc39937475af1f58ae96e
7
+ data.tar.gz: 1a2ae21afc4fad982028ff2fe531547743fa8d752591a2674ec7e944fa81131b11ee562dcb6e06a3570cac93dc918b1cf009dcf5cd79ca2b9395455112c8cb2d
@@ -108,7 +108,7 @@ module Nexpose
108
108
  resp = http.get(uri.to_s, headers)
109
109
 
110
110
  if file_name
111
- File.open(file_name, 'w') { |file| file.write(resp.body) }
111
+ File.open(file_name, 'wb') { |file| file.write(resp.body) }
112
112
  else
113
113
  resp.body
114
114
  end
@@ -98,20 +98,5 @@ module Nexpose
98
98
  end
99
99
  record
100
100
  end
101
-
102
- # Convert a type-safe ID into a regular ID inside a hash.
103
- #
104
- # @param [Hash] hash Hash map containing a type-safe ID as one key.
105
- # @param [String] id Key value of a type-safe ID to clean up.
106
- #
107
- def _clean_id!(hash, id)
108
- hash.each_pair do |key, value|
109
- if key == id
110
- hash[key] = value['ID']
111
- else
112
- hash[key] = value
113
- end
114
- end
115
- end
116
101
  end
117
102
  end
@@ -326,7 +326,7 @@ module Nexpose
326
326
  attr_reader :last_scan
327
327
 
328
328
  def initialize(json)
329
- @id = json['assetID']['ID'].to_i
329
+ @id = json['assetID']
330
330
  @ip = json['assetIP']
331
331
  @name = json['assetName']
332
332
  @os = json['assetOSName']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -10,34 +10,34 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-18 00:00:00.000000000 Z
13
+ date: 2014-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: librex
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.0.68
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: 0.0.68
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rex
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.0.2
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.0.2
43
43
  description: This gem provides a Ruby API to the Nexpose vulnerability management
@@ -53,38 +53,38 @@ extra_rdoc_files:
53
53
  files:
54
54
  - README.markdown
55
55
  - Rakefile
56
+ - lib/README.md
56
57
  - lib/nexpose.rb
57
- - lib/nexpose/pool.rb
58
- - lib/nexpose/group.rb
59
- - lib/nexpose/device.rb
60
- - lib/nexpose/report_template.rb
61
- - lib/nexpose/ticket.rb
58
+ - lib/nexpose/ajax.rb
59
+ - lib/nexpose/alert.rb
60
+ - lib/nexpose/api_request.rb
62
61
  - lib/nexpose/common.rb
63
- - lib/nexpose/data_table.rb
64
- - lib/nexpose/dag.rb
62
+ - lib/nexpose/connection.rb
65
63
  - lib/nexpose/creds.rb
66
- - lib/nexpose/api_request.rb
67
- - lib/nexpose/role.rb
68
- - lib/nexpose/maint.rb
64
+ - lib/nexpose/dag.rb
65
+ - lib/nexpose/data_table.rb
66
+ - lib/nexpose/device.rb
69
67
  - lib/nexpose/engine.rb
68
+ - lib/nexpose/error.rb
69
+ - lib/nexpose/filter.rb
70
+ - lib/nexpose/group.rb
71
+ - lib/nexpose/maint.rb
70
72
  - lib/nexpose/manage.rb
73
+ - lib/nexpose/pool.rb
74
+ - lib/nexpose/report.rb
75
+ - lib/nexpose/report_template.rb
76
+ - lib/nexpose/role.rb
71
77
  - lib/nexpose/scan.rb
72
78
  - lib/nexpose/scan_template.rb
73
- - lib/nexpose/report.rb
74
- - lib/nexpose/vuln.rb
75
- - lib/nexpose/ajax.rb
76
- - lib/nexpose/util.rb
77
- - lib/nexpose/site.rb
78
- - lib/nexpose/filter.rb
79
- - lib/nexpose/alert.rb
80
- - lib/nexpose/silo.rb
81
- - lib/nexpose/vuln_exception.rb
82
79
  - lib/nexpose/shared_cred.rb
83
- - lib/nexpose/user.rb
80
+ - lib/nexpose/silo.rb
81
+ - lib/nexpose/site.rb
84
82
  - lib/nexpose/tags
85
- - lib/nexpose/connection.rb
86
- - lib/nexpose/error.rb
87
- - lib/README.md
83
+ - lib/nexpose/ticket.rb
84
+ - lib/nexpose/user.rb
85
+ - lib/nexpose/util.rb
86
+ - lib/nexpose/vuln.rb
87
+ - lib/nexpose/vuln_exception.rb
88
88
  homepage: https://github.com/rapid7/nexpose-client
89
89
  licenses:
90
90
  - BSD
@@ -95,17 +95,17 @@ require_paths:
95
95
  - lib
96
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '1.9'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.1.11
108
+ rubygems_version: 2.2.0
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Ruby API for Rapid7 Nexpose