vident 0.6.0 → 0.6.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 617bb447fa9a255a73fa4f70de7da9df8a0bf8b3f8a0528a32d01dc39780d30b
|
|
4
|
+
data.tar.gz: d8898e7b5fcf959bc5fcacf46177d9ae550fbddd01e44368f26f1faa5bab916f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fedc5b84b8c99f5deb998378e2818519448375345e25857389866387ae2547d8ed5e8f9a1c99d33073d75d9ef9f5e89087b4b3aaefd01ba0df855e750da71be
|
|
7
|
+
data.tar.gz: d14be93998560999bc3d84e0e59dbdb28f1a1827abde538363f03423121e4113abf40fcbaf598a8d872344b5531568e58e23a216c089e3c403a60b02625d3107
|
data/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
13
13
|
|
|
14
14
|
### Fixed
|
|
15
15
|
|
|
16
|
+
## [0.6.2] - 2023-02-23
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Element tag options are not set when no ID is provided
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [0.6.1] - 2023-02-20
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- `better_html` support fix for aliased dsl methods
|
|
28
|
+
|
|
29
|
+
|
|
16
30
|
## [0.6.0] - 2023-02-20
|
|
17
31
|
|
|
18
32
|
### Added
|
|
@@ -17,12 +17,14 @@ if Gem.loaded_specs.has_key? "better_html"
|
|
|
17
17
|
attrs = build_target_data_attributes(parse_targets(targets))
|
|
18
18
|
helpers.html_attributes(attrs.transform_keys! { |k| "data-#{k}" })
|
|
19
19
|
end
|
|
20
|
+
alias_method :as_target, :as_targets
|
|
20
21
|
|
|
21
22
|
# Return the HTML `data-action` attribute for the given actions
|
|
22
23
|
def with_actions(*actions_to_set)
|
|
23
24
|
actions_str = action_list(actions_to_set)
|
|
24
25
|
actions_str.present? ? helpers.html_attributes("data-action" => actions_str) : nil
|
|
25
26
|
end
|
|
27
|
+
alias_method :with_action, :with_actions
|
|
26
28
|
|
|
27
29
|
private
|
|
28
30
|
|
|
@@ -38,7 +38,8 @@ if Gem.loaded_specs.has_key? "view_component"
|
|
|
38
38
|
options = @html_options&.dup || {}
|
|
39
39
|
data_attrs = tag_data_attributes
|
|
40
40
|
options[:data] = options[:data].present? ? data_attrs.merge(options[:data]) : data_attrs
|
|
41
|
-
options
|
|
41
|
+
return options unless @id
|
|
42
|
+
options.merge(id: @id)
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
def content_tag_type
|
data/lib/vident/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vident
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Ierodiaconou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-02-
|
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|