easy_app_helper 4.2.1 → 4.2.2

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: 3301f4acdf931a127d27b4177eeb290cba69026f
4
- data.tar.gz: e26f3f143d38cd52ee8541b1da174fc6b91fad10
3
+ metadata.gz: 8f9a76df6a11e57f95aaa3fd4c29ed693eeeb7e2
4
+ data.tar.gz: f5bb1986b5bd1fae6847a14c064b2bd5cd85791e
5
5
  SHA512:
6
- metadata.gz: 2db94334532208279fd01df34786bf305d2b1de2e1bf2f44aa9218ab0cbe4c4b7ad796b0f77112e6ef99ea858483526ab93344218afd04ee31fa331075840666
7
- data.tar.gz: 964e663aafcca277a89fee0ca4cf6851c57d0b6187ec118db3cf983139eea4ebe42b67fb11350baab3dd80c0191dd994b6d6a547a61420fe984a7f02f3183483
6
+ metadata.gz: f1fc1d459470d91e720b53b88472b79504829b31156a9f0532d113a72889d70043e947cf777ae6cb9451466c29b7420537ed4c7340ea77e88f8b7c50441ffb6e
7
+ data.tar.gz: 16d06cb048630646b37501c23c3466899420d9f27c99a9619d5dab9a6b34485a76b2b8ba2391c009e12bfd8a940ea133ae831d687756b2cd7e07c6fdd7c28b23
data/README.md CHANGED
@@ -50,7 +50,7 @@ Or install it yourself as:
50
50
 
51
51
  ## Usage
52
52
 
53
- ### The config files handling
53
+ ### The config files handling
54
54
 
55
55
  Basically all the config files management is delegated to the [stacked_config Gem][SC]. Please check its documentation
56
56
  to know how it works. In your own script the 'merged' ([read for more][SC]) configuration is available using the
@@ -72,7 +72,7 @@ puts "The application verbose flag is #{config[:verbose]}"
72
72
 
73
73
  Check the [stacked_config Gem][SC] help to further understand about the `config` object.
74
74
 
75
- ### The logger
75
+ ### The logger
76
76
 
77
77
  The logger behaviour is tightly coupled with config part and there are few config options already available to drive
78
78
  the way it will work. By default the logger will just log to the `File::NULL` device (/dev/null on Unix systems).
@@ -195,9 +195,9 @@ nevertheless be the case.
195
195
  There is a (not perfect) compatibility mode that you can trigger by setting the `easy_app_helper_compatibility_mode`
196
196
  property to true in one of your config files.
197
197
 
198
- ## Generate scripts using rake task
198
+ ## Generate scripts using rake task
199
199
 
200
- ### Including easy_app_helper tasks in your own gems.
200
+ ### Including easy_app_helper tasks in your own gems.
201
201
 
202
202
  For this you just need to include in your own gem `Rakefile`:
203
203
 
@@ -36,7 +36,9 @@ module EasyAppHelper
36
36
  end
37
37
 
38
38
  def self.sub_command_class(command_name_or_alias, preferred_provider=EasyAppHelper::Scripts::SubCommandBase::PROVIDER)
39
- candidates = by_name[command_name_or_alias].select do |sub_command_class|
39
+ potentials = by_name[command_name_or_alias]
40
+ raise "Invalid sub-command '#{command_name_or_alias}'" if potentials.nil?
41
+ candidates = potentials.select do |sub_command_class|
40
42
  command_classes_for_command = by_name[command_name_or_alias]
41
43
  raise "There is no provider declared for command '#{command_name_or_alias}'" if command_classes_for_command.nil?
42
44
  command_classes_for_command.include? sub_command_class
@@ -1,3 +1,3 @@
1
1
  module EasyAppHelper
2
- VERSION = '4.2.1'
2
+ VERSION = '4.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_app_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - L.Briais
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2016-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler