trailblazer-loader 0.0.7 → 0.0.8

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: fcfd96e03897aacc8a5ceb4d3b32e2b184d9059c
4
- data.tar.gz: 2b176fe74a75f7d94a801565a79d2b48bcff5335
3
+ metadata.gz: a139cace62406805aac0deea1141b0413b514ca3
4
+ data.tar.gz: 99ae0744f81056c6e24df72c96d2a3918448a718
5
5
  SHA512:
6
- metadata.gz: 4c966a7ce3c44c882e8ade689493139db04375c93a0ce6681444900db62e1e56dbc8cd8765c5a1648d699b2b6664566543361087e0f756f5874ebe1da3c30849
7
- data.tar.gz: 4306fd9543a7c0a78c19c9bc6cf50ca6bf285847b2072216e01740a77215855ec1abe21f6fa10afc4ef1f865857b335192c9c423f60b157135ebd6193d54dc3c
6
+ metadata.gz: 385e2f52b038a875bea01fd4765bdc52b70a430f80a8933fa32e2f8d99ad25092aa36e23f1dcf29235d487c036b1b9c7f98871ab110058ad1f5a729d174edf9b
7
+ data.tar.gz: 7899f1ff5659099b05044c5c0f61824c5e5670f4e18d4edb54e6ddcc3bae00b59a0582cad80d293c6ff2f6cfa85d141e9df5bd0a5bbb8349ff390f9e01bcfbb5
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.3
3
+ - 2.2.4
4
4
  before_install: gem install bundler -v 1.10.6
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.8
2
+
3
+ * Add `debug: true` option instead of relying on env vars.
4
+
1
5
  # 0.0.7
2
6
 
3
7
  * Fix a ordering bug. Thanks @Hermanverschooten.
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.
@@ -25,11 +25,15 @@ module Trailblazer
25
25
 
26
26
  files = pipeline.([], options).flatten
27
27
 
28
- pp files if ENV['RACK_ENV'] == 'development'
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
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Loader
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
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.7
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-05 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler