selma 0.5.0-x86_64-linux → 0.5.1-x86_64-linux

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: bf287b749e96ec255e6cb6d013247fb081a4c423342fca3f3b0cdbb3de7af196
4
- data.tar.gz: 88fbe8217b372c3312360fcdc18d1ab87200749a68e5033a0ba3f8e7c53c1ea9
3
+ metadata.gz: bfc02f220e570fab053df64f5ea8534174b1242c02f511bfcc53df41d9b14f03
4
+ data.tar.gz: 75a00d48224b5187134f20fe829e3b5163d0aea6da3796baf6193cb7cb4859b2
5
5
  SHA512:
6
- metadata.gz: 16528a648113e3f975462bf5886b6d9cf757e335974bbef4a1d5c2ba58dce20cfd87785112c9dbff28ad8e8ae50be3338672ea9a6baf8fe0f4aa4c309f02350e
7
- data.tar.gz: 284d57d903343ae21384f30a3353487f03e9f673dca9f02f5864ed8edf743616720189e5991a330657b9d060659df3332e6a03d1e66074f8dc46ecdccd46153f
6
+ metadata.gz: 400be6fbd7af3687508d20d95e8548e1fd1f7320161f5bcf7e57d15549a8bbab3f369e9dbc6850471d581b9cb5edc7a79a8dbc6803052ba33b47f138235c21d1
7
+ data.tar.gz: 0fc064323075c5ff3fded205e6ddd52556a351472e64cd80449d12ff1449f3023fa943e557b3cbf09ad93781729916cc5b7b581e5bf88b96351b9580f5790509
data/README.md CHANGED
@@ -161,6 +161,7 @@ The `element` argument in `handle_element` has the following methods:
161
161
  - `remove_attribute`: Remove an attribute
162
162
  - `has_attribute?`: A bool which identifies whether or not the element has an attribute
163
163
  - `attributes`: List all the attributes
164
+ - `attribute_source_location(name)`: Returns the byte ranges of an attribute's name and value within the original input as `{ name: Range, value: Range | nil }`, or `nil` if the attribute is missing or was added/modified during the rewrite. Pure boolean attributes written without `=` (e.g. `<input disabled>`) return `nil` because lol_html does not record their position.
164
165
  - `ancestors`: List all of an element's ancestors as an array of strings
165
166
  - `before(content, as: content_type)`: Inserts `content` before the element. `content_type` is either `:text` or `:html` and determines how the content will be applied.
166
167
  - `after(content, as: content_type)`: Inserts `content` after the element. `content_type` is either `:text` or `:html` and determines how the content will be applied.
Binary file
Binary file
Binary file
Binary file
data/lib/selma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Selma
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-03 00:00:00.000000000 Z
11
+ date: 2026-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake