trailblazer-rails 1.0.5 → 1.0.7

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
- SHA1:
3
- metadata.gz: 60d8e312cc34a8cf86ba6d4adf0fb5d3a4d178a8
4
- data.tar.gz: f601570b5823b9b46dd07962a89785d0bff8508e
2
+ SHA256:
3
+ metadata.gz: 393faf43c954e298c7148d17de28c41f402a86d3f5c8925286cd52f05bcc96df
4
+ data.tar.gz: 9d16e34343eb36e06c9f08bf60896bb0f2cec1863221ab1f6ae9c78e9e5d091b
5
5
  SHA512:
6
- metadata.gz: 53124f47f70adc69246da35cb2a1c9aabd32ec8f1064aa1f1c397b5356282399e0dd06bde285d6437db6b64bc598d39c01e98bd61bbc17433494c378fe5dc39a
7
- data.tar.gz: 426612868af63cc5b2949b18493ae4d3fb2f4f8155b4aea3ed7d61524cff1b80bbeaccfd2d7a1b56204356d8734cae005e42e4e3d9a5e406c1743e6bcf572544
6
+ metadata.gz: 07b320f4ba9ddf7154cee7409c0d88eb36a3cf8e941157ea28d3f7a65a43ec96ed6f55eec1ff8e29e8cf769f54c695ce606d778bb6c07f97036932a9399f9e77
7
+ data.tar.gz: f1ae864314b805c9fa14d10fe5c3f02b8721e1b779229d2c520c373014cb926675d4e99595205298b87042f0de077a91fae7ab05766e240d19ae2d61951eb6ca
data/CHANGES.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 1.0.7
2
+
3
+ * Fixed typo error in use_loader config flag
4
+
5
+ # 1.0.6 (revoked)
6
+
7
+ * Introduce use_loader config flag
8
+
1
9
  # 1.0.5
2
10
 
3
11
  * Hook trailblazer application_controller initializer to finisher_hook
@@ -6,6 +6,7 @@ module Trailblazer
6
6
  config.trailblazer = ActiveSupport::OrderedOptions.new
7
7
  ## Accept also an Array of controllers
8
8
  config.trailblazer.application_controller ||= 'ActionController::Base'
9
+ config.trailblazer.use_loader ||= true
9
10
 
10
11
  def self.load_concepts(app)
11
12
  # Loader.new.(insert: [ModelFile, before: Loader::AddConceptFiles]) { |file| require_dependency("#{app.root}/#{file}") }
@@ -34,8 +35,10 @@ module Trailblazer
34
35
  initializer 'trailblazer.install', after: "reform.form_extensions" do |app|
35
36
  # the trb autoloading has to be run after initializers have been loaded, so we can tweak inclusion of features in
36
37
  # initializers.
37
- reloader_class.to_prepare do
38
- Trailblazer::Railtie.load_concepts(app)
38
+ if config.trailblazer.use_loader
39
+ reloader_class.to_prepare do
40
+ Trailblazer::Railtie.load_concepts(app)
41
+ end
39
42
  end
40
43
  end
41
44
 
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.6.11
195
+ rubygems_version: 2.7.3
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Convenient Rails support for Trailblazer.