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 +4 -4
- data/lib/spark_components/element.rb +5 -1
- data/lib/spark_components/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: a1c1b5a00060124a21b830e051e3671599e9b6e76454946074dcd8bad037b0ad
|
4
|
+
data.tar.gz: e46556296c8b22e4d8b65a9a29f14ab8505392553d8dcf640aa576cd6a29312d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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.
|
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-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|