nexpose 3.3.2 → 4.0.0

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: ff0a541a3881e177817bd44ffd71e0372d327c53
4
- data.tar.gz: 810e7389172b58708ac6569e94c83dcb08ffc73d
3
+ metadata.gz: 39e2356f1f4c706ae6ddc840a382d3806f493252
4
+ data.tar.gz: 11a99aeaa814b730aff7393cbf96461b3e99736b
5
5
  SHA512:
6
- metadata.gz: c7553f4f8723d41cc0e19a19bf81e1ae0dc1041e1ef1c87729c1c14408992351c3c45ea449c311872bd06896f4d9eb2e04d4f8d003a590d37e59661a797788a7
7
- data.tar.gz: 533a132b22a6cf35ae454690ece01e0ef6bb87ccfecb677b791645a10ff6aa0deb80d5d02d687d1f0754976a272dab4f824b9467c3ff0f311e10663963cfbe49
6
+ metadata.gz: ba45928103e112ce123c7d4ac3ee8a86b9d098626c0d1b0fb548f598fc12bdbd83907c66c4c76187d9053e006c22341cfe807c2e9fd6843a2cea9453156cd691
7
+ data.tar.gz: af675b050afd242ddc246e6282ea40fd1122f2b9db0c230a8411713fd6c53ffb583727027d66ba1dc897f59adae1c30f8b58b30da656055bbdef4b1347502ecc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (3.3.1)
4
+ nexpose (4.0.0)
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.11.0)
19
+ multi_json (1.10.1)
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.2)
28
+ rspec-core (3.2.1)
29
29
  rspec-support (~> 3.2.0)
30
30
  rspec-expectations (3.2.0)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
@@ -64,3 +64,6 @@ 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.0
@@ -102,8 +102,8 @@ module Nexpose
102
102
  # Valid Values (See Value::IPType): IPv4, IPv6
103
103
  IP_ALT_ADDRESS_TYPE = 'IP_ALT_ADDRESS_TYPE'
104
104
 
105
- # Valid Operators: IN, NOT_IN
106
- IP_RANGE = 'IP_RANGE'
105
+ # Valid Operators: IS, IS_NOT, IN_RANGE, NOT_IN_RANGE
106
+ IP_ADDRESS = 'IP_ADDRESS'
107
107
 
108
108
  # Valid Operators: IS, IS_NOT, IN_RANGE
109
109
  # Valid Values: Integers from 1 to 65535
@@ -185,6 +185,7 @@ module Nexpose
185
185
  IN = 'IN'
186
186
  NOT_IN = 'NOT_IN'
187
187
  IN_RANGE = 'IN_RANGE'
188
+ NOT_IN_RANGE = 'NOT_IN_RANGE'
188
189
  STARTS_WITH = 'STARTS_WITH'
189
190
  ENDS_WITH = 'ENDS_WITH'
190
191
  ON_OR_BEFORE = 'ON_OR_BEFORE'
@@ -440,7 +440,7 @@ module Nexpose
440
440
  #
441
441
  # @param [Fixnum] site_id Site ID of the site to import the scan into.
442
442
  # @param [String] zip_file Path to a previously exported scan archive.
443
- # @return [String] An empty string on success.
443
+ # @return [Fixnum] The scan ID on success.
444
444
  #
445
445
  def import_scan(site_id, zip_file)
446
446
  data = Rexlite::MIME::Message.new
@@ -461,7 +461,7 @@ module Nexpose
461
461
  response = http.request(post)
462
462
  case response
463
463
  when Net::HTTPOK
464
- response.body
464
+ response.body.empty? ? response.body : response.body.to_i
465
465
  when Net::HTTPUnauthorized
466
466
  raise Nexpose::PermissionError.new(response)
467
467
  else
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '3.3.2'
3
+ VERSION = '4.0.0'
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: 3.3.2
4
+ version: 4.0.0
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-04-29 00:00:00.000000000 Z
16
+ date: 2016-05-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler
@@ -214,9 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.4.6
217
+ rubygems_version: 2.4.8
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Ruby API for Rapid7 Nexpose
221
221
  test_files: []
222
- has_rdoc: