mozaic 1.1.1 → 1.2.0

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: 2d38922ee69ba145ae864f2cfaac1325f92e08b14167aca5a7183a30c6a88ad7
4
- data.tar.gz: 388f87704b3a90464688ead0127d006041d26f075503a55e0a7c31d4c0027c7e
3
+ metadata.gz: e8ff122548a04f894784580f5f241041d50c12171fe9d20bf7eb15ef8ba422db
4
+ data.tar.gz: b5da9c954e022554bc43d1b8cf90bbadd1598c8b30c276a5e729ceab411f75b9
5
5
  SHA512:
6
- metadata.gz: 71020fcbcffcf80d87deb7769c1d8a5dc05e11d1eb505a6477c7eaedbda8fd98b84de7b29caca2e2223824c6ca9705f3d4bcf668ced5f8517d20dd520b1de189
7
- data.tar.gz: 451fd73565a2af10009e2fe50d83a0e5dc05c0683f64dd7724d248176b7731777be426b38a4213d2cf867a903d79146753ab65343dab584794935e85d43c6997
6
+ metadata.gz: 12d70acc0a760ec46704a0f7db29cf62bb6189b8967c028342213d244d66fad658504d92c21dbfa6ef813431e2655a1923966fe60dd03ac6637e7eba590a9796
7
+ data.tar.gz: f0d99fd4c5d2b188e9df19ef8d325f3259b037214e96e9522204d16d0c3e5acb5bee78da563b9d65da8155aadffc670a2dc3289c35452c1e91ae688e21b4b7c0
@@ -4,6 +4,13 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.2.0 - 2018/01/14
8
+
9
+ * features
10
+ * allow to prevent rendering a component by returning false in the block
11
+ * bugfixes
12
+ * require nestive-rails
13
+
7
14
  ### 1.1.1 - 2018/01/13
8
15
 
9
16
  * bugfixes
@@ -3,7 +3,8 @@ module Mozaic
3
3
 
4
4
  def component name, options = {}, &block
5
5
  component = Mozaic::Component.find_by_name(name.to_sym).first
6
- component.render options
6
+ rendered = component.render options
7
+ return nil if rendered == false
7
8
  render partial: "mozaic/#{name.to_s}", locals: { options: component.options(options), block: ( block_given? ? capture(&block) : nil ) }
8
9
  end
9
10
 
@@ -1,3 +1,4 @@
1
+ require 'nestive-rails'
1
2
  require 'mozaic/version'
2
3
 
3
4
  module Mozaic
@@ -1,5 +1,5 @@
1
1
  module Mozaic
2
2
 
3
- VERSION = '1.1.1'
3
+ VERSION = '1.2.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mozaic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-13 00:00:00.000000000 Z
11
+ date: 2018-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties