html-attributes-utils 1.0.0 → 1.0.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: 55226e6e32681583a11fd45f4ea8752e41c74a173088c2250875a4ef003a702e
4
- data.tar.gz: afeb51d41d803e0ce1e6042b6518aa456ef4d48264559133f6f55afcbbfd3e73
3
+ metadata.gz: ab6a48cf31960e20fb42aa0fe094105f518f9cbe5272d82cece93126797c9e1a
4
+ data.tar.gz: 81b2c9277e21a6dfc5fd94208a1430a91d7b137b7a1ac9d691973e0dee3aa395
5
5
  SHA512:
6
- metadata.gz: e351c56554bc35d7c2436dcdd0067f4c6d3397bb8b12069a416df034bad94a4ac16ad4040994cc3334292288efc3bae71504875e838d126b1771a3c53237c003
7
- data.tar.gz: f3f0244ae2e300083f393aff3f9b0f39ae398e505068ee16577bec095c10eff2b0c08695ab26432854b75e6cde2fc1f9aecb3a70ec27bbae83c1e3fe8bbd226d
6
+ metadata.gz: b2406d752ce5169deeef34a4a4529e636fba2a07b0d90dde7803bb7d8027408a917124912fca0316f1b53fed7e9d15d60f44c4232e309b63edeac44b2742b199
7
+ data.tar.gz: 49a6515030969d4cff63c5bc84cf1db40872418f1928cfe0929548ed1ee3348ed7e05fe0ef5bed3a3a2900edd592b15fb0003acdfa65b2e4e2f371ee0c0e37b7
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # HTML Attributes Utilities
2
2
 
3
- ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/dfe-digital/html-attributes-utils/Tests/main)
3
+ [![Tests](https://github.com/DFE-Digital/html-attributes-utils/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/DFE-Digital/html-attributes-utils/actions/workflows/tests.yml)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/da15b0accce3baf10c34/maintainability)](https://codeclimate.com/github/DFE-Digital/html-attributes-utils/maintainability)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/da15b0accce3baf10c34/test_coverage)](https://codeclimate.com/github/DFE-Digital/html-attributes-utils/test_coverage)
6
6
  ![GitHub](https://img.shields.io/github/license/dfe-digital/html-attributes-utils)
@@ -8,13 +8,14 @@ module HTMLAttributesUtils
8
8
  # They are stored as nested arrays so when we're walking multiple
9
9
  # levels on the deep merge the structure can be identified. This means
10
10
  # the library works with the Rails-preferred format of
11
- # `aria: { describedby: "xyz" }` rather than `aria-describdby: `xyz`
11
+ # `aria: { describedby: "xyz" }` rather than `"aria-describdby" => "xyz"`
12
12
  DEFAULT_MERGEABLE_ATTRIBUTES = [
13
13
  %i(class),
14
14
  %i(aria controls),
15
15
  %i(aria describedby),
16
16
  %i(aria flowto),
17
17
  %i(aria labelledby),
18
+ %i(data aria_controls),
18
19
  %i(aria owns),
19
20
  %i(rel),
20
21
  ].freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-attributes-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-26 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.3.7
118
+ rubygems_version: 3.4.10
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: HTML attribute hash utilities