mozaic 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -0
- data/app/helpers/mozaic/component_helper.rb +1 -1
- 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: c7a6895575d6b051e380c52df188bd722eef297d305bee88c3e2b81df31968c9
|
4
|
+
data.tar.gz: 4b1696a0dcdf7e1055f1dbdabfd698709f384dd03d1ec592217a6c097695e926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac095127b7d74774e5bf7b9553a13ddd78d8eb66a728bdadd1fa8fd2976f5b9e91049907e24aa2da167278379292601c9158678ca4826f599f6214fac3f908c
|
7
|
+
data.tar.gz: be1e15a66eb45681467bda50bff070c6faa14e8b339efcae2f29aa074542b5a943340f325add948fc6418ac82dd74b1022c85ceb6b20a8cf0a4ecd94a4b2fffc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,6 +12,9 @@ Mozaic is an opinionated layout engine for Rails. It simplifies handling numerou
|
|
12
12
|
* [Usage](#usage)
|
13
13
|
* [Layouts](#layouts)
|
14
14
|
* [Components](#components)
|
15
|
+
* [Assets](#assets)
|
16
|
+
* [Webpack (ES6)](#webpack-es6)
|
17
|
+
* [Sprockets](#sprockets)
|
15
18
|
* [Configuration](#configuration)
|
16
19
|
* [To Do](#to-do)
|
17
20
|
* [Contributing](#contributing)
|
@@ -107,6 +110,7 @@ You can run custom code whenever your component gets rendered:
|
|
107
110
|
Mozaic.configure do |config|
|
108
111
|
config.define_component :name, lovely: true do |options|
|
109
112
|
options[:lovely] = !options[:lovely]
|
113
|
+
options
|
110
114
|
end
|
111
115
|
end
|
112
116
|
```
|
@@ -5,7 +5,7 @@ module Mozaic
|
|
5
5
|
component = Mozaic::Component.find_by_name(name.to_sym).first
|
6
6
|
rendered = component.render options
|
7
7
|
return nil if rendered == false
|
8
|
-
render partial: "mozaic/#{name.to_s}", locals: { options: component.options(options), block: ( block_given? ? capture(&block) : nil ) }
|
8
|
+
render partial: "mozaic/#{name.to_s}", locals: { options: component.options(rendered.nil? ? options : rendered), block: ( block_given? ? capture(&block) : nil ) }
|
9
9
|
end
|
10
10
|
|
11
11
|
def component_wrapper name, options = {}, &block
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
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-02-
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|