cells-rails 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 58c933bc2bd80b6dd44a21992f6537ee1f25140977c570f4ab28f84af99a2bcc
4
- data.tar.gz: 9afe72dcd4a5b44b134e35198959b9c89f0f11c423219bd9bb312255ae7429e6
3
+ metadata.gz: a7b0dcf280b05760c17e077945620957e91f6ca8cf9384379d8d6e982efe06ae
4
+ data.tar.gz: ec0289e903975584640a1aeaf8c9417514a775d2b106c5f8d1d993894c27d51d
5
5
  SHA512:
6
- metadata.gz: 8929b9360d079e42059d8830c5ab5165a73afb59057efe8f6adf0976513c7106acf33725a1e1725efe09f40b861c8cdaa6201ac34e20567630cb4665ab04e1ec
7
- data.tar.gz: 621cdc22d14d661bb79c6172d21bab249e3aac585ff6356c17efae794ce5bb4fa76eac29c626ee34ed4f4aaba3355b405c75f298271cbda5231b728eaf332bdb
6
+ metadata.gz: 3fa9e93d578670b6a9f13cc7008c2a05e581c2b0fc42579a91af913cc3c9f207f7426e5a6662488c2254f29ad29404b255289bb3eaa4b0575b9101bd08a41987
7
+ data.tar.gz: 1162939f99fc4e9f4989f46624f93ed5c148e5a3be1cece4e3a5ae86669509a09f5406542ff4e489b68b2d8424b43c8040ea05ee296ab3950cf034c8dad45c1a
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.1
2
+
3
+ * The `Cell.view_paths` are now set automatically for `Trailblazer::Cell`s, too, if the gem is present. This allows starting Rails in daemon mode `rails s -d` and cells finding its views.
4
+
1
5
  ## 0.1.0
2
6
 
3
7
  * Support for Rails 6.0 Thank to @Szeliga
@@ -76,6 +76,12 @@ module Cell
76
76
  end
77
77
  end
78
78
 
79
+ initializer "trailblazer.cells.update_view_paths" do |app|
80
+ return unless Object.const_defined?(:Trailblazer) && Trailblazer.const_defined?(:Cell)
81
+ # Add Rails.root to view_paths
82
+ Trailblazer::Cell.view_paths = [Rails.root.join("app", "concepts")]
83
+ end
84
+
79
85
  rake_tasks do
80
86
  load "tasks/cells.rake"
81
87
  end
@@ -1,5 +1,5 @@
1
1
  module Cells
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cells
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.7.6.2
192
+ rubygems_version: 2.7.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Convenient Rails support for Cells.