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 +4 -4
- data/CHANGELOG.md +7 -0
- data/app/helpers/mozaic/component_helper.rb +2 -1
- data/lib/mozaic.rb +1 -0
- data/lib/mozaic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8ff122548a04f894784580f5f241041d50c12171fe9d20bf7eb15ef8ba422db
|
4
|
+
data.tar.gz: b5da9c954e022554bc43d1b8cf90bbadd1598c8b30c276a5e729ceab411f75b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12d70acc0a760ec46704a0f7db29cf62bb6189b8967c028342213d244d66fad658504d92c21dbfa6ef813431e2655a1923966fe60dd03ac6637e7eba590a9796
|
7
|
+
data.tar.gz: f0d99fd4c5d2b188e9df19ef8d325f3259b037214e96e9522204d16d0c3e5acb5bee78da563b9d65da8155aadffc670a2dc3289c35452c1e91ae688e21b4b7c0
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/mozaic.rb
CHANGED
data/lib/mozaic/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|