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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79ef9257801e949b479f55bb340493f817da31a857efc7e1a5e3bf6d5b7eab80
4
- data.tar.gz: d69458744f2e2842e7b695914c7b671065f5bd5fb23ff9f528f8e393a4b2784a
3
+ metadata.gz: adf69719858780a0edee031dde8d9cdd609ace50efb21ffd6aa5b6e1e1e676f5
4
+ data.tar.gz: a218f301a64b629b5ef0b7b949f4c2b73c13d7a98cc89928bdef6079d25a1c98
5
5
  SHA512:
6
- metadata.gz: eb076f9c750b911b720110f6c5dd3f7228baeb249b1918b83d6254edb7a6583b216eaaec282cc25565d2bde116748c76668c353cf85bdb7edaaefe347afcdf1e
7
- data.tar.gz: a4c977da0f622b0e59c9cc4cd523d20a9db126cf4f5ad3d005a9d701e3a72d8376267a8cc5bfaaca71e875332e65906f8404154e2b6c074778156c8d538ff4bf
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SparkComponents
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.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.2.1
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-02 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails