trailblazer-loader 0.1.1 → 0.1.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/CHANGES.md +5 -0
- data/lib/trailblazer/loader.rb +10 -6
- data/lib/trailblazer/loader/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30e7620df291405728dc4fac61ab6e228ca0d531
|
4
|
+
data.tar.gz: 7f79194b819d9f070165986dca011031d442a839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bca420b66b4ef6b95ed3e1d6b6853936ddcd9f19c373d88c8c6d2f30cb6a58580a250557ea9b76a441dc9ef1ff663cc9556243654c20f8ebdf2f5fc9d38037c
|
7
|
+
data.tar.gz: 04d27cb2d30942729b252d21eb648bdf23e1073e670677d07117b45ba5b1827fe18bb122e12c59dc7968065602287499e75f992ce3abe30b9db2303cccae3db9
|
data/CHANGES.md
CHANGED
data/lib/trailblazer/loader.rb
CHANGED
@@ -16,12 +16,7 @@ module Trailblazer
|
|
16
16
|
options[:concepts_root] ||= "#{options[:root]}/app/concepts/"
|
17
17
|
options[:concept_dirs] ||= concept_dirs
|
18
18
|
|
19
|
-
pipeline = options[:pipeline] ||
|
20
|
-
FindDirectories,
|
21
|
-
FindConcepts,
|
22
|
-
SortByLevel,
|
23
|
-
Pipeline::Collect[ConceptName, ConceptFiles, SortCreateFirst, SortOperationLast, AddConceptFiles] # per concept.
|
24
|
-
]
|
19
|
+
pipeline = options[:pipeline] || default_circuit
|
25
20
|
|
26
21
|
if args = options[:insert] # FIXME: this only implements a sub-set.
|
27
22
|
# pipeline = Representable::Pipeline::Insert.(pipeline, *args) # FIXME: implement :before in Pipeline.
|
@@ -38,6 +33,15 @@ module Trailblazer
|
|
38
33
|
load_files(files, &block)
|
39
34
|
end
|
40
35
|
|
36
|
+
def default_circuit
|
37
|
+
Pipeline[
|
38
|
+
FindDirectories,
|
39
|
+
FindConcepts,
|
40
|
+
SortByLevel,
|
41
|
+
Pipeline::Collect[ConceptName, ConceptFiles, SortCreateFirst, SortOperationLast, AddConceptFiles] # per concept.
|
42
|
+
]
|
43
|
+
end
|
44
|
+
|
41
45
|
def debug(files, options)
|
42
46
|
pp files if options[:debug]
|
43
47
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.6.
|
94
|
+
rubygems_version: 2.6.8
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Loads all concepts files.
|