stacked_config 1.0.7 → 1.0.8

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: 3c54b24f5f102a0571f8ec849a4bdc7b8e52cf31
4
- data.tar.gz: 9a758dfafc06d49f8aaa3f81aaec219336951fef
3
+ metadata.gz: ed3f29d3adfe8d46008bce31239f27dd32b45925
4
+ data.tar.gz: 6c71fdb5a24ca95eaf2796578f8a2675e19b848e
5
5
  SHA512:
6
- metadata.gz: 1267caf89df15bb95d108f7023316bcd889f6b2975fbb0ff397b6196ed30b488161c1c3575b1ebb072b96461b977e6e05755094f240ad17a0981c91d7fb265e4
7
- data.tar.gz: 289211fa5c3a853a716286c90842976f97bffbf94dd2ad2cb533a21620a8d91c2e5e5c0460733f64534f2dd0d1dcbe80c0ab56e7c3bab2ef59d350b8a4f62174
6
+ metadata.gz: e4211dee108d7e64c4549c53248a2e4e0620f69f41c038f7651b0a7db300efd6939b88f5a875009bf19dc019848945681f9c9c746e0957b9f017bdc15dbb7dac
7
+ data.tar.gz: a0c300993b2107e8cba6b58f2ee53c3c9f2a3ce5855a396bf6337e15eee4f29318f97d656f08ec95e805df9ed76090fad6a54e858ab98fb32b31616b8a695567
@@ -5,6 +5,8 @@ module StackedConfig
5
5
 
6
6
  attr_reader :slop_definition
7
7
 
8
+ attr_accessor :extra_help
9
+
8
10
  def initialize
9
11
  @slop_definition = Slop.new
10
12
  build_command_line_options
@@ -61,7 +63,9 @@ module StackedConfig
61
63
  if manager.nil?
62
64
  'No banner unless added to a manager !'
63
65
  else
64
- "\nUsage: #{manager.config_file_base_name} [options]\n#{manager.app_name} Version: #{manager.app_version}\n\n#{manager.app_description}"
66
+ header = "\nUsage: #{manager.config_file_base_name} [options]\n#{manager.app_name} Version: #{manager.app_version}\n\n#{manager.app_description}"
67
+ header += extra_help unless extra_help.nil? or extra_help == ''
68
+ header
65
69
  end
66
70
  end
67
71
 
@@ -1,3 +1,3 @@
1
1
  module StackedConfig
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stacked_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler