trailblazer-loader 0.0.7 → 0.0.8
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/.travis.yml +1 -1
- data/CHANGES.md +4 -0
- data/README.md +8 -0
- data/lib/trailblazer/loader.rb +5 -1
- data/lib/trailblazer/loader/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: a139cace62406805aac0deea1141b0413b514ca3
|
|
4
|
+
data.tar.gz: 99ae0744f81056c6e24df72c96d2a3918448a718
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 385e2f52b038a875bea01fd4765bdc52b70a430f80a8933fa32e2f8d99ad25092aa36e23f1dcf29235d487c036b1b9c7f98871ab110058ad1f5a729d174edf9b
|
|
7
|
+
data.tar.gz: 7899f1ff5659099b05044c5c0f61824c5e5670f4e18d4edb54e6ddcc3bae00b59a0582cad80d293c6ff2f6cfa85d141e9df5bd0a5bbb8349ff390f9e01bcfbb5
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/README.md
CHANGED
|
@@ -233,6 +233,14 @@ module Comment::Operation
|
|
|
233
233
|
|
|
234
234
|
## Debugging
|
|
235
235
|
|
|
236
|
+
Turn on debugging as follows.
|
|
237
|
+
|
|
238
|
+
```ruby
|
|
239
|
+
Trailblazer::Loader.new.(debug: true) { |file| require_relative("../#{file}") }
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
This will print the file list before requiring them.
|
|
243
|
+
|
|
236
244
|
TODO: document PrintFiles
|
|
237
245
|
|
|
238
246
|
Booting your app fails because the loading order is incorrect? This happens, as we can't cover every possible combination.
|
data/lib/trailblazer/loader.rb
CHANGED
|
@@ -25,11 +25,15 @@ module Trailblazer
|
|
|
25
25
|
|
|
26
26
|
files = pipeline.([], options).flatten
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
debug(options)
|
|
29
29
|
|
|
30
30
|
load_files(files, &block)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
def debug(options)
|
|
34
|
+
pp files if options[:debug]
|
|
35
|
+
end
|
|
36
|
+
|
|
33
37
|
def concept_dirs
|
|
34
38
|
%w{ callback cell contract operation policy representer view }
|
|
35
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trailblazer-loader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sutterer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|