spark_components 1.3.1 → 1.3.2

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: b60e313109acdaadd7bb6a3d476e36048be57ee1c4bcb5688dd53dd05fdadc5b
4
- data.tar.gz: 55c14f9ceeb0a0dbe1000e30b97d2d6934e2d98f11ed8b425b6e6086934e76aa
3
+ metadata.gz: a1c1b5a00060124a21b830e051e3671599e9b6e76454946074dcd8bad037b0ad
4
+ data.tar.gz: e46556296c8b22e4d8b65a9a29f14ab8505392553d8dcf640aa576cd6a29312d
5
5
  SHA512:
6
- metadata.gz: efa20e3956e31053642f038f4cbce2e3deede58c6635b6fb907b7f4ef26b02c81aaf2ef9ac46f2793ffc1e13845d6717a3a25b21f21cf53dd5926dc034c31f9a
7
- data.tar.gz: f41dc7b8e7b6dc7ff9d643bce6a07dfd6646e76695856936c09264a78542c1d94907640b9cf134160c84ba16feeaef2a0750431d6bc4a68ec235037e1b665825
6
+ metadata.gz: 4361c1d798e4fbfaba12bbbbe78ea9eb9c1f28b5d86aa3844fa358818da67613ca7abfaaab4ba772475c6bc9fd4f14415d9cac1517ff2c0eb86de56513c95d4b
7
+ data.tar.gz: d039b381910e4b7246765c7fcfbb684f6e1cf1abcd6ec4fd95aa429425205a33eba696883cbe534199bc65d36f50c3cff4d8a2599ee04b007fa649f0b781af47
@@ -143,10 +143,14 @@ module SparkComponents
143
143
  initialize_elements
144
144
  extend_view_methods
145
145
  after_init
146
- @yield = block_given? ? @view.capture(self, &block) : nil
146
+ @yield = render_block(&block)
147
147
  validate!
148
148
  end
149
149
 
150
+ def render_block(&block)
151
+ block_given? ? @view.capture(self, &block) : nil
152
+ end
153
+
150
154
  def after_init; end
151
155
 
152
156
  def before_render; end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SparkComponents
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails