nexpose 2.1.3 → 2.2.0

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: 79b86df7c942872284ba68b2a7e5057ad0d7685c
4
- data.tar.gz: 85a20906e5ece19724914e2767a5082eb097831b
3
+ metadata.gz: e4353ffa0b47b791fee6d6b61637214b26c3db4a
4
+ data.tar.gz: e71be2c82494f0832a07f3e2896ca31ea14bee51
5
5
  SHA512:
6
- metadata.gz: 6615b4f822f8f0d449e4ad3cda3cb38deca39a5d06e5b8198164eb9504d479de0bee5fb9b32470732f486709a35eabf7cf360cc231464ca4f4ab447d84b7dc7d
7
- data.tar.gz: fd0c28ebb88d28b437c82a0c49bf64e0079b05cdd25d93d276f15f7dd2d29c68b1949b7f5c374e08495430f701b5da985b772448b4ca11612920c8017410f4a7
6
+ metadata.gz: f241d4267bb92c7222bd0c80879800ef3038d55d9febee9fa897cf78d58972fbaf6ebe687eb24b9735f86340c905dfd1a44d21991b8be92151b193aed64c5dcc
7
+ data.tar.gz: b12d8098aa6609a688a8750e790023336fe732cb7b68f434b468a2d07fdef1fe0d15376beb5ab4d00711b47709a877c74779c7be159d252aae5e84873a5b961d
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (2.1.1)
5
- rex (~> 2.0, >= 2.0.8)
4
+ nexpose (2.1.3)
5
+ multipart-post (~> 2.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -18,11 +18,11 @@ GEM
18
18
  diff-lcs (1.2.5)
19
19
  docile (1.1.5)
20
20
  multi_json (1.11.0)
21
+ multipart-post (2.0.0)
21
22
  parser (2.2.0.3)
22
23
  ast (>= 1.1, < 3.0)
23
24
  powerpack (0.1.0)
24
25
  rainbow (2.0.0)
25
- rex (2.0.8)
26
26
  rspec (3.2.0)
27
27
  rspec-core (~> 3.2.0)
28
28
  rspec-expectations (~> 3.2.0)
@@ -577,5 +577,29 @@ module Nexpose
577
577
  def aces_enabled?
578
578
  return 'full' == aces_level
579
579
  end
580
+
581
+ # Enable or disable the debug logging.
582
+ # @param [Boolean] enable Enable or disable the debug logging.
583
+ def enable_debug_logging=(enable)
584
+ return if enable.nil?
585
+ logging = REXML::XPath.first(@xml, 'ScanTemplate/Logging')
586
+ if logging.nil?
587
+ logging = REXML::Element.new('Logging')
588
+ @xml.add_element(logging)
589
+ end
590
+ debug_logging = REXML::XPath.first(logging, 'debugLogging')
591
+ if debug_logging.nil?
592
+ debug_logging = REXML::Element.new('debugLogging')
593
+ logging.add_element(debug_logging)
594
+ end
595
+ debug_logging.attributes['enabled'] = (enable ? 1 : 0)
596
+ end
597
+
598
+ # Enable or disable the enhanced logging.
599
+ # @param [Boolean] enable Enable or disable the enhanced logging.
600
+ def enable_enhanced_logging=(enable)
601
+ self.enable_debug_logging = enable
602
+ self.aces_level = (enable ? 'full' : 'none')
603
+ end
580
604
  end
581
605
  end
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '2.1.3'
3
+ VERSION = '2.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: 2.1.3
4
+ version: 2.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-11-23 00:00:00.000000000 Z
16
+ date: 2015-12-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rex