selma 0.5.0-aarch64-linux → 0.5.2-aarch64-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: 2d8bee4cd12f7cfc240a37bdf3d359c9e14be5b7d6dca5b88593709f55e9cb3e
4
- data.tar.gz: 2fae893c8728b16be5ea77c376835158dea8dca885ff410f14181ae07c12e72c
3
+ metadata.gz: 5ca687045df0df95bebf02c0aa4357fe2b3f1bd656e6a3654f918251bd979a5f
4
+ data.tar.gz: 131f00bcc8cd1bd87d82e5818cc874acb225882f5515f7c362502d6342004bf1
5
5
  SHA512:
6
- metadata.gz: 0b149970f9935fc44a96f3093a575a9662a2ebb5c30a27aa9431ea3a332d01b57a105302c2d5d29707e66743a9af1c7a1be788daf30d7868352e3375998f1a2c
7
- data.tar.gz: e2dd69cff51abb66eed9b0678c9e5dda9e033b71c556201c02eab82983aa87960413a1aa2c289b2f47d2a51280a37bd2d7b7e4a770233193b87fc7359b41df36
6
+ metadata.gz: 6ccbd16ed377c556d04db41b24f7b69917b8aafd5eb2b873151d03e383d02ca46b1ea9f5c9a2b5bd3abd5f2e70bedf16a95f5f1f06d6fc5341e128383a2b1af8
7
+ data.tar.gz: e2d76c035dddf7e88abb516985ae5e0c5280bb53d66c5a060724549e03cc82bf9d3c10a9cbbc8c2a902360cd1c9476c9d2e6cf1ae47c870a0013dd39be0cbea9
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/config.rb CHANGED
@@ -7,6 +7,6 @@ module Selma
7
7
  max_allowed_memory_usage: nil,
8
8
  preallocated_parsing_buffer_size: nil,
9
9
  },
10
- }
10
+ }.freeze
11
11
  end
12
12
  end
@@ -5,7 +5,7 @@ module Selma
5
5
  module Config
6
6
  # although there are many more protocol types, eg., ftp, xmpp, etc.,
7
7
  # these are the only ones that are allowed by default
8
- VALID_PROTOCOLS = ["http", "https", "mailto", :relative]
8
+ VALID_PROTOCOLS = ["http", "https", "mailto", :relative].freeze
9
9
 
10
10
  DEFAULT = freeze_config(
11
11
  # Whether or not to allow HTML comments. Allowing comments is strongly
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.2"
5
5
  end
metadata CHANGED
@@ -1,43 +1,15 @@
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.2
5
5
  platform: aarch64-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
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '13.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '13.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake-compiler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.2'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.2'
11
+ date: 2026-09-07 00:00:00.000000000 Z
12
+ dependencies: []
41
13
  description:
42
14
  email:
43
15
  - gjtorikian@gmail.com