trailblazer-loader 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8c0e3c79507f5a6a5f4f2383e062cb120cb6ace
4
- data.tar.gz: d8712b8524753c3e8c0b96300f0cd9b25fbbedde
3
+ metadata.gz: f755ff4167de7bd9d86372dc8f22c21376d79275
4
+ data.tar.gz: 7454f5278ade16311382c59ac7e3fa53b3fd876d
5
5
  SHA512:
6
- metadata.gz: f103cc770a466b813f5142ec95b27a8f0665e7b74b041f178a5a0f0a40b613869114794638b1e1a4bf12cc2610dd5637884a42a819c591353286c9add8b7399a
7
- data.tar.gz: f12a70084297229f4845f16d5dc637a3ab28b82c1feb9e0bdb3174cc59355d22d856f715a085f1517016ae719fe0a6d6567dbc5b1b55b596dfdb3acbdd01414e
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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Loader
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
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.0.5
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-18 00:00:00.000000000 Z
11
+ date: 2015-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler