nexpose 4.0.4 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 303d657a9bd0cda519e45ecf6e67c22204adc8d8
4
- data.tar.gz: 5596ad2f65671fdf5be5af702cef48492c0d4a33
3
+ metadata.gz: ffb24477fcce2011e0280d8fe44a89b69650d519
4
+ data.tar.gz: 71184beb0d88f81a577b55b42494d39fc336668f
5
5
  SHA512:
6
- metadata.gz: 24860b060b6cbba9f98919bc99c1b3ee0f54c6ab6b6e0a3ac107c868c7dc0023754cff42bf48a27aa04987d4702a2d654f786afeaf825817246a5178b8c341ab
7
- data.tar.gz: c1ab5b644c3cc0910841079979107f01e18379471cdd312258fbb688b5e08e1b05ca44afe4e1d9e9bf6e19d7fbcc8637aa43bade329fd22c71d279ca9f120437
6
+ metadata.gz: 10f6fc4cf712638978d5bb37a79175598a016d3292d9c94c3071c4ea4456c5c1a82f3cb28f9a34e30f608a9be3f79e4c3d3a0167f0e527dab8d29787f1543878
7
+ data.tar.gz: 8c451a39c54f5633298b2c3a087f0a5bd305bf161e5bc95f14c596a093ed56c7e070cb7e62b520826af42c0434ff385421f26a7bc4755224e1189df7ee45ff25
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (4.0.4)
4
+ nexpose (3.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,7 +16,7 @@ GEM
16
16
  safe_yaml (~> 1.0.0)
17
17
  diff-lcs (1.2.5)
18
18
  docile (1.1.5)
19
- multi_json (1.10.1)
19
+ multi_json (1.11.0)
20
20
  parser (2.2.0.3)
21
21
  ast (>= 1.1, < 3.0)
22
22
  powerpack (0.1.0)
@@ -25,7 +25,7 @@ GEM
25
25
  rspec-core (~> 3.2.0)
26
26
  rspec-expectations (~> 3.2.0)
27
27
  rspec-mocks (~> 3.2.0)
28
- rspec-core (3.2.1)
28
+ rspec-core (3.2.2)
29
29
  rspec-support (~> 3.2.0)
30
30
  rspec-expectations (3.2.0)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
@@ -64,6 +64,3 @@ DEPENDENCIES
64
64
  simplecov (~> 0.9.1)
65
65
  vcr (~> 2.9.3)
66
66
  webmock (~> 1.20.4)
67
-
68
- BUNDLED WITH
69
- 1.12.2
@@ -152,7 +152,7 @@ module Nexpose
152
152
  # Return response body if request is successful. Brittle.
153
153
  response = http.request(request)
154
154
  case response
155
- when Net::HTTPOK, Net::HTTPCreated
155
+ when Net::HTTPOK, Net::HTTPCreated, Net::HTTPNoContent
156
156
  response.body
157
157
  when Net::HTTPForbidden
158
158
  raise Nexpose::PermissionError.new(response)
@@ -208,7 +208,7 @@ module Nexpose
208
208
  # object.
209
209
  def self.parse_json(json)
210
210
  new do
211
- @id = json['id'].to_i
211
+ @id = json['assetID'].to_i
212
212
  @ip = json['ipAddress']
213
213
  @host_name = json['hostName']
214
214
  @os = json['operatingSystem']
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '4.0.4'
3
+ VERSION = '4.0.5'
4
4
  end
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: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-05-17 00:00:00.000000000 Z
16
+ date: 2016-06-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler
@@ -214,8 +214,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.4.8
217
+ rubygems_version: 2.4.6
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Ruby API for Rapid7 Nexpose
221
221
  test_files: []
222
+ has_rdoc: