spark_components 1.2.1 → 1.2.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 +7 -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: adf69719858780a0edee031dde8d9cdd609ace50efb21ffd6aa5b6e1e1e676f5
|
4
|
+
data.tar.gz: a218f301a64b629b5ef0b7b949f4c2b73c13d7a98cc89928bdef6079d25a1c98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c95e4981f350450f142a55680496b9d53bcb1569993d63a233fc68ff9c57876e65f3cb8c7309c465127b4536f7bb1e7db2f368c0c361c1dfd256fb6c2512fb21
|
7
|
+
data.tar.gz: 46ee83f856eeab6c5bc6e6b3829850c21e0416a4dae6184ffe05257d5fce40f5809c24320d2a83424853d444609ffd658c37e83eab6c607bf70b337530eeb391
|
@@ -119,7 +119,6 @@ module SparkComponents
|
|
119
119
|
element.before_render
|
120
120
|
element.yield = element.render
|
121
121
|
end
|
122
|
-
|
123
122
|
end
|
124
123
|
|
125
124
|
return if !multiple || name == plural_name
|
@@ -221,6 +220,13 @@ module SparkComponents
|
|
221
220
|
@yield
|
222
221
|
end
|
223
222
|
|
223
|
+
# blank? is aliased to an element's content to easily determine if content is blank.
|
224
|
+
# This is because template conditionals may render an element's content empty.
|
225
|
+
|
226
|
+
def blank?
|
227
|
+
@yield.blank?
|
228
|
+
end
|
229
|
+
|
224
230
|
protected
|
225
231
|
|
226
232
|
# Set tag attribute values from from parameters
|
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.2.
|
4
|
+
version: 1.2.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-07-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|