nexpose 1.1.0 → 1.2.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: 5bd3b5a70f4342a50d856fede506bd98df0dc3eb
4
- data.tar.gz: dbdcbcd5fa044c89254d8708ba5c1c51a2c0ca8e
3
+ metadata.gz: 97718b1d0d16bf0e2ad6e438aa6f42d3f9819608
4
+ data.tar.gz: 7b14f541974dc33fecea2bf23165bc4357505cc9
5
5
  SHA512:
6
- metadata.gz: 55eae9f2e3a7127ed26d893fcb8d03a63c1ec30bb7fd3f3e841bfd7589c58809289a0f9507fafb185570df673cf0810674d043fdd0c8208e093844f5f046ec18
7
- data.tar.gz: ac462779de54270a9cde72dcb7bae47a22f3d36b34f4d094f067cd2fc74afc1f48c812b4b0981761b2d7eef886a4a42789b9fc8a7523175cd043039acfdfd8d8
6
+ metadata.gz: fdf329312d95a5a88ae2f468ed8f40632352e8e1ddffd65e2e4a37c1a501ddf0460b92a49136cbcf6385004ac6ff0a568cfa8b7414d3047be1a16d7343481319
7
+ data.tar.gz: 91353294a3b338454116b731471de961abeb215956519688e6ed4f531ee18bd14dc14b024b7868b31c245a13db1d77983a6bd42a06619ad1b4062ad3c36332f7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (1.0.0)
4
+ nexpose (1.2.0)
5
5
  rex (~> 2.0, >= 2.0.8)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  safe_yaml (~> 1.0.0)
18
18
  diff-lcs (1.2.5)
19
19
  docile (1.1.5)
20
- multi_json (1.11.0)
20
+ multi_json (1.10.1)
21
21
  parser (2.2.0.3)
22
22
  ast (>= 1.1, < 3.0)
23
23
  powerpack (0.1.0)
@@ -27,7 +27,7 @@ GEM
27
27
  rspec-core (~> 3.2.0)
28
28
  rspec-expectations (~> 3.2.0)
29
29
  rspec-mocks (~> 3.2.0)
30
- rspec-core (3.2.2)
30
+ rspec-core (3.2.1)
31
31
  rspec-support (~> 3.2.0)
32
32
  rspec-expectations (3.2.0)
33
33
  diff-lcs (>= 1.2.0, < 2.0)
@@ -30,12 +30,24 @@ module Nexpose
30
30
  class DiscoveryConnection < APIObject
31
31
  include XMLUtils
32
32
 
33
+ module CollectionMethod
34
+ DIRECTORY_WATCHER = 'DIRECTORY_WATCHER'
35
+ SYSLOG = 'SYSLOG'
36
+ end
37
+
38
+ module EventSource
39
+ INFOBLOX_TRINZIC = 'INFOBLOX_TRINZIC'
40
+ MICROSOFT_DHCP = 'MICROSOFT_DHCP'
41
+ end
42
+
33
43
  module Protocol
34
44
  HTTP = 'HTTP'
35
45
  HTTPS = 'HTTPS'
36
46
  LDAP = 'LDAP'
37
47
  LDAPS = 'LDAPS'
38
48
  SERVICE_PROXY = 'SERVICE_PROXY'
49
+ TCP = 'TCP'
50
+ UDP = 'UDP'
39
51
  end
40
52
 
41
53
  module Type
@@ -83,6 +95,12 @@ module Nexpose
83
95
  # The exchange password to connect for exchange powershell connections
84
96
  attr_accessor :exchange_password
85
97
 
98
+ # The collection method (e.g. for DHCP discovery connections)
99
+ attr_accessor :collection_method
100
+
101
+ # The event source (e.g. for DHCP discovery connections)
102
+ attr_accessor :event_source
103
+
86
104
  # Whether or not the connection is active.
87
105
  # Discovery is only possible when the connection is active.
88
106
  attr_accessor :status
@@ -188,6 +206,8 @@ module Nexpose
188
206
  xml.attributes['exchange-username'] = @exchange_username if @exchange_username
189
207
  xml.attributes['exchange-password'] = @exchange_password if @exchange_password
190
208
  xml.attributes['type'] = @type if @type
209
+ xml.attributes['collectionmethod'] = @collection_method if @collection_method
210
+ xml.attributes['eventsource'] = @event_source if @event_source
191
211
  xml.attributes['engine-id'] = @engine_id if @engine_id && @engine_id != -1
192
212
  xml.attributes['id'] = @id if @id && @id != -1
193
213
  xml
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.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: 1.1.0
4
+ version: 1.2.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: 2015-06-01 00:00:00.000000000 Z
16
+ date: 2015-06-24 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rex
@@ -231,4 +231,3 @@ signing_key:
231
231
  specification_version: 4
232
232
  summary: Ruby API for Rapid7 Nexpose
233
233
  test_files: []
234
- has_rdoc: