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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f789e2cfc0ac43f92060b4f602951a615faf17479d4e0f61f643578b4ca91189
4
- data.tar.gz: 67f3b7234a5cea167aa72212eeccaec651c01428d0679ef8d3159bd2d0459fb0
3
+ metadata.gz: c7a6895575d6b051e380c52df188bd722eef297d305bee88c3e2b81df31968c9
4
+ data.tar.gz: 4b1696a0dcdf7e1055f1dbdabfd698709f384dd03d1ec592217a6c097695e926
5
5
  SHA512:
6
- metadata.gz: dff84a0aec99816becec95929589677bd4dde1800319a9e41f73d3f233fdd69eeef2301ad023fdc8c69d21cf5d49b51a9144e155985be98b9acd3b81a5e67c74
7
- data.tar.gz: 6d1a363cda08180be01e7a3b224052e430c5f18db5b8498ea6d0b03505211f1ea55c68efc6fb9dd47e6f2f4e66a8e0ec976af490657c8141951f7188ec4c2921
6
+ metadata.gz: 4ac095127b7d74774e5bf7b9553a13ddd78d8eb66a728bdadd1fa8fd2976f5b9e91049907e24aa2da167278379292601c9158678ca4826f599f6214fac3f908c
7
+ data.tar.gz: be1e15a66eb45681467bda50bff070c6faa14e8b339efcae2f29aa074542b5a943340f325add948fc6418ac82dd74b1022c85ceb6b20a8cf0a4ecd94a4b2fffc
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.1 - 2018/02/17
8
+
9
+ * bugfixes
10
+ * fixed manipulating component options from inside a block
11
+
7
12
  ### 2.0.0 - 2018/02/08
8
13
 
9
14
  * features
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
@@ -1,5 +1,5 @@
1
1
  module Mozaic
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
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: 2.0.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-08 00:00:00.000000000 Z
11
+ date: 2018-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties