trailblazer-loader 0.0.5 → 0.0.6
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 -1
- data/lib/trailblazer/loader.rb +2 -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: f755ff4167de7bd9d86372dc8f22c21376d79275
|
4
|
+
data.tar.gz: 7454f5278ade16311382c59ac7e3fa53b3fd876d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34010c6e18015936b643d3f478c1306fecb6307b403d2aa8cf712229ef6d3b8065be9c850420a80705acfe53dc624c5670b70a36c9a6baf8a371c87886e30311
|
7
|
+
data.tar.gz: 407642142a5136d250de896ab0066ea2f31611c8dffc51571e169e9913a8d22f327d393b95dd41e36d304dfd6da4573e5fd91eaee745187cb7ecad492e33714f
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 0.0.6
|
2
|
+
|
3
|
+
* Allow injection of additional files in `Loader::ConceptFiles` from earlier functions.
|
4
|
+
|
1
5
|
# 0.0.5
|
2
6
|
|
3
7
|
* Remove `representable` dependency. This is a temporary fix until we have a pipelining gem.
|
@@ -16,4 +20,4 @@
|
|
16
20
|
|
17
21
|
# 0.0.1
|
18
22
|
|
19
|
-
* Obviously, the first version ever. This implements the "lexical-width" strategy, only.
|
23
|
+
* Obviously, the first version ever. This implements the "lexical-width" strategy, only.
|
data/lib/trailblazer/loader.rb
CHANGED
@@ -48,6 +48,8 @@ module Trailblazer
|
|
48
48
|
ConceptName = ->(input, options) { options[:name] = input.sub(options[:concepts_root], "").chomp("/"); [] }
|
49
49
|
# Find all .rb files in one particular concept directory, e.g. as in /concepts/comment/*.rb.
|
50
50
|
ConceptFiles = ->(input, options) do
|
51
|
+
input + # allow injecting other dependencies, e.g. app/models/comment.rb.
|
52
|
+
|
51
53
|
Dir.glob("#{options[:concepts_root]}#{options[:name]}/*.rb") + # .rb files directly in this concept.
|
52
54
|
Dir.glob("#{options[:concepts_root]}#{options[:name]}/*/*.rb"). # .rb in :concept/operation/*.rb
|
53
55
|
find_all { |file| file =~ /(#{options[:concept_dirs].join("|")})/ } # but only those, no sub-concepts!
|
@@ -58,7 +60,6 @@ module Trailblazer
|
|
58
60
|
SortCreateFirst = ->(input, options) { input.sort }
|
59
61
|
AddConceptFiles = ->(input, options) { input }
|
60
62
|
|
61
|
-
|
62
63
|
private
|
63
64
|
|
64
65
|
def load_files(files)
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|