vident 0.6.0 → 0.6.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: e4d88cce5b38bd6e4c19016a7bad835cd25b8e4453284fc5795d039e7b48d145
4
- data.tar.gz: f63eca71787e977e9204336b16f8cd32e3fa5c73ee88977ff3befdd8a5f8a33a
3
+ metadata.gz: 617bb447fa9a255a73fa4f70de7da9df8a0bf8b3f8a0528a32d01dc39780d30b
4
+ data.tar.gz: d8898e7b5fcf959bc5fcacf46177d9ae550fbddd01e44368f26f1faa5bab916f
5
5
  SHA512:
6
- metadata.gz: 3845320ed4eef3e3b3919ef970e93e9ed2c09332ccf14db2224b1d98402b43471e6a543690249fb42a64b52a50f35314f05844f460c702af60c5cc8cf0bc083a
7
- data.tar.gz: d167a0e66951777bbde64f657d97e68804ca15bc6890604e0d4015d27a4ee4b17a252574f5e0dcd5cc9f9864929f20bc24ad5689f98e1c853b7cb4da36c293a7
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.merge(id: @id) if @id
41
+ return options unless @id
42
+ options.merge(id: @id)
42
43
  end
43
44
 
44
45
  def content_tag_type
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vident
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.2"
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport