easy_app_helper 4.2.1 → 4.2.2
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 +4 -4
- data/README.md +4 -4
- data/lib/easy_app_helper/scripts/sub_command_manager.rb +3 -1
- data/lib/easy_app_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f9a76df6a11e57f95aaa3fd4c29ed693eeeb7e2
|
|
4
|
+
data.tar.gz: f5bb1986b5bd1fae6847a14c064b2bd5cd85791e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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
|
-
##
|
|
198
|
+
## Generate scripts using rake task
|
|
199
199
|
|
|
200
|
-
###
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|