mozaic 1.1.0 → 1.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: b5fedd5a7bc9101ffd3dc4a762f95382080c62725685850e6277b5ea4d4a275c
4
- data.tar.gz: cbdb9d46a98df57b58c5c65603a769076f1b1a96abcec13785d854f72580ecaa
3
+ metadata.gz: 2d38922ee69ba145ae864f2cfaac1325f92e08b14167aca5a7183a30c6a88ad7
4
+ data.tar.gz: 388f87704b3a90464688ead0127d006041d26f075503a55e0a7c31d4c0027c7e
5
5
  SHA512:
6
- metadata.gz: 77f210d79c1edee88761405fb708f4634778c115d939d6e7110bb7404d8c25568697bc34f313d09cf2312070686d323fece89f71471eeb17ed328155bf3dd7f3
7
- data.tar.gz: 7ad2e1b53b406d50d52c66d611e45203c447b49c12d4ca6bea39d3ba895d5d110f806fc9c171d3454a566fbba9e008d5f8eb2a084096b6f74e5168918f583e0c
6
+ metadata.gz: 71020fcbcffcf80d87deb7769c1d8a5dc05e11d1eb505a6477c7eaedbda8fd98b84de7b29caca2e2223824c6ca9705f3d4bcf668ced5f8517d20dd520b1de189
7
+ data.tar.gz: 451fd73565a2af10009e2fe50d83a0e5dc05c0683f64dd7724d248176b7731777be426b38a4213d2cf867a903d79146753ab65343dab584794935e85d43c6997
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.1.1 - 2018/01/13
8
+
9
+ * bugfixes
10
+ * fixed component instance options
11
+
7
12
  ### 1.1.0 - 2018/01/12
8
13
 
9
14
  * features
@@ -4,23 +4,22 @@ module Mozaic
4
4
  cattr_accessor :instances
5
5
  attr_accessor :name
6
6
  attr_accessor :block
7
- attr_writer :options
7
+ attr_accessor :defaults
8
8
 
9
9
  def initialize name, options = {}, &block
10
10
  self.name = name.to_sym
11
11
  self.block = block if block_given?
12
- self.options = options
12
+ self.defaults = options
13
13
  self.class.instances = [] if @@instances.nil?
14
14
  self.class.instances << self
15
15
  end
16
16
 
17
17
  def options options = {}
18
- @options.merge! options
18
+ @defaults.merge options
19
19
  end
20
20
 
21
21
  def render options = {}
22
- self.options = self.options options
23
- self.block.call(self.options) unless self.block.nil?
22
+ self.block.call(self.options(options)) unless self.block.nil?
24
23
  end
25
24
 
26
25
  def self.find_by_name name
@@ -1,5 +1,5 @@
1
1
  module Mozaic
2
2
 
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.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: 1.1.0
4
+ version: 1.1.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-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties