html-attributes-utils 1.0.0 → 1.0.1

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: 55226e6e32681583a11fd45f4ea8752e41c74a173088c2250875a4ef003a702e
4
- data.tar.gz: afeb51d41d803e0ce1e6042b6518aa456ef4d48264559133f6f55afcbbfd3e73
3
+ metadata.gz: 61d705b8b6000833dbd60e659fcca312f61e6d4cfbd10a3f25bcc13845f6ef27
4
+ data.tar.gz: a5fc3a72c775fd555f94efd98f03a9324010fb0ac9b80385eeddb0b8923a8f0f
5
5
  SHA512:
6
- metadata.gz: e351c56554bc35d7c2436dcdd0067f4c6d3397bb8b12069a416df034bad94a4ac16ad4040994cc3334292288efc3bae71504875e838d126b1771a3c53237c003
7
- data.tar.gz: f3f0244ae2e300083f393aff3f9b0f39ae398e505068ee16577bec095c10eff2b0c08695ab26432854b75e6cde2fc1f9aecb3a70ec27bbae83c1e3fe8bbd226d
6
+ metadata.gz: cf02f936411794118c6e001d8ab67452394442859450133e4402d4a04f6c305620e3f215bdb5f340dc55e3249328641efa3d85cb130000a2915ab0756cd651a4
7
+ data.tar.gz: '09d8ca2b7e2444332f64b50b4fe93e19ee6aae4408688f993455e8db19d33b2de36df51c242db97373aa8a1787401f4c651c83587df9ce6bfeb7edc525b6e4a0'
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.1
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-20 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