spark-component 1.0.0.pre.alpha.3 → 1.0.0.pre.alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/spark/component/attribute.rb +5 -1
- data/lib/spark/component/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: a346c10059d1486dd26c0705d6867ea3ea8c37f26b46012fea5bd1452ad2b155
|
4
|
+
data.tar.gz: a2c5ff8ef1401af5df7495ca8c0d8dba16f90d3b42f707a28d553d2b4a043b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1955de23d4d4da5a00c2b222d9de2f9107d41eeb10d908464b8ef8d8e331bd9fdf5730704875ef2bee5ce7ff4794e107a4aaf6937f07594da9c2a4e711e990a6
|
7
|
+
data.tar.gz: 8e9a693a36480a4543bdbafe26eca35265aba98079465a32885a36a6acfd296cd63d341fa5cffe2a8e3878437a608af9fec6f23f0bdb879bfff7bfc1144e7d4c
|
data/Gemfile.lock
CHANGED
@@ -98,7 +98,11 @@ module Spark
|
|
98
98
|
def attr_hash(*args)
|
99
99
|
args.each_with_object({}) do |name, obj|
|
100
100
|
val = instance_variable_get(:"@#{name}")
|
101
|
-
|
101
|
+
next if val.nil?
|
102
|
+
|
103
|
+
# Symbolize `true` values to ensure the value is set in tag attributes
|
104
|
+
# This helps tags write `data-foo="true"` instead of `data-foo`
|
105
|
+
obj[name] = val === true ? :true : val
|
102
106
|
end
|
103
107
|
end
|
104
108
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spark-component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha.
|
4
|
+
version: 1.0.0.pre.alpha.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview-component
|