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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20c4c46dd9bee3e1ab0b12477f7e2651d00d274c
4
- data.tar.gz: 1f42235044cb73cb2330bd709b912cffa9c5d981
3
+ metadata.gz: 30e7620df291405728dc4fac61ab6e228ca0d531
4
+ data.tar.gz: 7f79194b819d9f070165986dca011031d442a839
5
5
  SHA512:
6
- metadata.gz: b05ecf6f5740c88c8bd25d5c1c96277925ea74ce27ada23daca37432d510d01262961745889a25b18f013c8ff12c9acdb2a52fa198cff61ca6f656360d0e0917
7
- data.tar.gz: f3462722ac620c13c4b77970de2b14492db64cb33b9d22d6199a191e3468d2668efe45fc060c03e927cd9a6f699a4c7e6c911fd2a165cb28de098d13a917b335
6
+ metadata.gz: 8bca420b66b4ef6b95ed3e1d6b6853936ddcd9f19c373d88c8c6d2f30cb6a58580a250557ea9b76a441dc9ef1ff663cc9556243654c20f8ebdf2f5fc9d38037c
7
+ data.tar.gz: 04d27cb2d30942729b252d21eb648bdf23e1073e670677d07117b45ba5b1827fe18bb122e12c59dc7968065602287499e75f992ce3abe30b9db2303cccae3db9
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.2
2
+
3
+ * Introduce `Loader#default_circuit` to override specific positions in the loading process. This is a bit hacky and will be
4
+ refined in v1.0.
5
+
1
6
  # 0.1.1
2
7
 
3
8
  * The loading order on OSX is now identical to Linux. Thanks to @pnikolov.
@@ -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] || 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
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Loader
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  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.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-06-03 00:00:00.000000000 Z
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.3
94
+ rubygems_version: 2.6.8
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Loads all concepts files.