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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afe2d6b965105ac53510dd1bab58e4344c21b12157985cd6810b7801b3670fdd
4
- data.tar.gz: 6ce35faa65ff38f2c912dd0ee292c5dd5c1d41ed040c60d367588faa794932fa
3
+ metadata.gz: a346c10059d1486dd26c0705d6867ea3ea8c37f26b46012fea5bd1452ad2b155
4
+ data.tar.gz: a2c5ff8ef1401af5df7495ca8c0d8dba16f90d3b42f707a28d553d2b4a043b0a
5
5
  SHA512:
6
- metadata.gz: cbba721a6639d4aba940130fd9828bac5d072b2243458fb5ed8141cb6893c316cc7b065c36f4b1a53ddf299c3082226fb1166513fb943ff57986b3c3dd1964aa
7
- data.tar.gz: 9b614e67410e879e3f15e16d12b5be22a93e668b6d253b69f093b0dbf41a6125e4305ddf4f5f8a8555211d4c9657fdd2aa0da491b792c276c8624e3202801eda
6
+ metadata.gz: 1955de23d4d4da5a00c2b222d9de2f9107d41eeb10d908464b8ef8d8e331bd9fdf5730704875ef2bee5ce7ff4794e107a4aaf6937f07594da9c2a4e711e990a6
7
+ data.tar.gz: 8e9a693a36480a4543bdbafe26eca35265aba98079465a32885a36a6acfd296cd63d341fa5cffe2a8e3878437a608af9fec6f23f0bdb879bfff7bfc1144e7d4c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spark-component (1.0.0.pre.alpha.3)
4
+ spark-component (1.0.0.pre.alpha.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- obj[name] = val unless val.nil?
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Spark
4
4
  module Component
5
- VERSION = "1.0.0.pre.alpha.3"
5
+ VERSION = "1.0.0.pre.alpha.4"
6
6
  end
7
7
  end
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.3
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-19 00:00:00.000000000 Z
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview-component