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 +4 -4
- data/README.md +1 -1
- data/lib/html_attributes_utils.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab6a48cf31960e20fb42aa0fe094105f518f9cbe5272d82cece93126797c9e1a
|
4
|
+
data.tar.gz: 81b2c9277e21a6dfc5fd94208a1430a91d7b137b7a1ac9d691973e0dee3aa395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
![
|
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
|
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.
|
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:
|
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.
|
118
|
+
rubygems_version: 3.4.10
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: HTML attribute hash utilities
|