nexpose 7.1.0 → 7.1.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: 59f070e8c264d2a89412a6fc5ab76fc6c381aced
4
- data.tar.gz: a18e65e39dc9af8eeed11bf9dc9def359530041d
3
+ metadata.gz: 40c3bea146242b1ce37e08bc6bc1ed9544f2fa73
4
+ data.tar.gz: aee55cfaba753ffafae9fd90d045910e8481afdc
5
5
  SHA512:
6
- metadata.gz: cce4d28b939fd0802867eba5cd7658a71ef9e324223435c589ae95ca8e8ff43cd64bfce4289e43204dc2d43d529215492a751710e17d835914731fb0ca2f661c
7
- data.tar.gz: 2e93edccb2e6161c2bd314602bfe3217bc0c613db80d734342f4613ad54bec9c4a4afb63130d47b912f2073ca84cdf03b3b97fa525ae2a2d64ade58df02ee65e
6
+ metadata.gz: 9bab4414d32279ea3a2d4a7b1480e612419c7ea939cc0da14826d7984e9a06f95dfebabf7a25750485f233805a8346a44bf9a1deaf6e88f4ae4391b9f3162582
7
+ data.tar.gz: 3b8a5c7ba90d037ed0b2f5617996a5e35be053603a2e6f5ba0e1509b6e6c8ffc642670768272e31da7b17955bcac1a367692388a6057d5f587e1a91f0ab287c2
@@ -1,8 +1,7 @@
1
1
  # Change Log
2
2
 
3
- ## [Unreleased](https://github.com/rapid7/nexpose-client/tree/HEAD)
4
-
5
- [Full Changelog](https://github.com/rapid7/nexpose-client/compare/v7.0.1...HEAD)
3
+ ## [v7.1.0](https://github.com/rapid7/nexpose-client/tree/v7.1.0) (2017-09-26)
4
+ [Full Changelog](https://github.com/rapid7/nexpose-client/compare/v7.0.1...v7.1.0)
6
5
 
7
6
  **Fixed bugs:**
8
7
 
@@ -10,11 +9,11 @@
10
9
 
11
10
  **Closed issues:**
12
11
 
13
- - support for encryption for recovery [\#290](https://github.com/rapid7/nexpose-client/issues/290)
14
12
  - Connection Timeout When Creating DynamicAssetGroup with large number of criteria [\#274](https://github.com/rapid7/nexpose-client/issues/274)
15
13
  - Vulnerability Exception 'approve' function applies vulnerability exception but throws a ruby exception [\#271](https://github.com/rapid7/nexpose-client/issues/271)
16
14
  - Add a global timeout parameter to Connection [\#269](https://github.com/rapid7/nexpose-client/issues/269)
17
15
  - Update Example Scripts [\#244](https://github.com/rapid7/nexpose-client/issues/244)
16
+ - support for encryption for recovery [\#290](https://github.com/rapid7/nexpose-client/issues/290)
18
17
 
19
18
  **Merged pull requests:**
20
19
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (7.1.0)
4
+ nexpose (7.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -57,11 +57,11 @@ module Nexpose
57
57
  attr_reader :response_xml
58
58
  # The trust store to validate connections against if any
59
59
  attr_reader :trust_store
60
- # The main HTTP read_timeout value
60
+ # The main HTTP read_timeout value, in seconds
61
61
  # For more information visit the link below:
62
62
  # https://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html#read_timeout-attribute-method
63
63
  attr_accessor :timeout
64
- # The optional HTTP open_timeout value
64
+ # The optional HTTP open_timeout value, in seconds
65
65
  # For more information visit the link below:
66
66
  # http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html#open_timeout-attribute-method
67
67
  attr_accessor :open_timeout
@@ -159,7 +159,7 @@ module Nexpose
159
159
  #
160
160
  def self.load(connection, id)
161
161
  xml = %(<AssetGroupConfigRequest session-id="#{connection.session_id}" group-id="#{id}"/>)
162
- r = APIRequest.execute(connection.url, xml)
162
+ r = APIRequest.execute(connection.url, xml, '1.1', { timeout: connection.timeout, open_timeout: connection.open_timeout })
163
163
  parse(r.res)
164
164
  end
165
165
 
@@ -157,7 +157,7 @@ module Nexpose
157
157
  def self.load(nsc, name, scope = Scope::SILO)
158
158
  xml = nsc.make_xml('RoleDetailsRequest')
159
159
  xml.add_element('Role', { 'name' => name, 'scope' => scope })
160
- response = APIRequest.execute(nsc.url, xml, '1.2')
160
+ response = APIRequest.execute(nsc.url, xml, '1.2', { timeout: nsc.timeout, open_timeout: nsc.open_timeout })
161
161
 
162
162
  if response.success
163
163
  elem = REXML::XPath.first(response.res, 'RoleDetailsResponse/Role/')
@@ -179,7 +179,7 @@ module Nexpose
179
179
  end
180
180
  xml.add_element(as_xml)
181
181
 
182
- response = APIRequest.execute(nsc.url, xml, '1.2')
182
+ response = APIRequest.execute(nsc.url, xml, '1.2', { timeout: nsc.timeout, open_timeout: nsc.open_timeout })
183
183
  xml = REXML::XPath.first(response.res, 'RoleCreateResponse')
184
184
  @id = xml.attributes['id'].to_i unless @existing
185
185
  @existing = true
@@ -550,7 +550,7 @@ module Nexpose
550
550
  'sync-id' => sync_id })
551
551
 
552
552
  xml.add_attributes({ 'force' => true }) if blackout_override
553
- response = connection.execute(xml, '1.1', timeout: 60)
553
+ response = connection.execute(xml, '1.1', timeout: connection.timeout)
554
554
  Scan.parse(response.res) if response.success
555
555
  end
556
556
  end
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '7.1.0'.freeze
3
+ VERSION = '7.1.1'.freeze
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: 7.1.0
4
+ version: 7.1.1
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: 2017-09-26 00:00:00.000000000 Z
16
+ date: 2017-09-28 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler