selma 0.2.2 → 0.4.10
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 +4 -4
- data/Cargo.lock +129 -124
- data/README.md +133 -25
- data/ext/selma/Cargo.toml +6 -3
- data/ext/selma/src/html/element.rs +32 -27
- data/ext/selma/src/html/end_tag.rs +5 -5
- data/ext/selma/src/html/text_chunk.rs +55 -12
- data/ext/selma/src/native_ref_wrap.rs +30 -33
- data/ext/selma/src/rewriter.rs +299 -139
- data/ext/selma/src/sanitizer.rs +256 -138
- data/lib/selma/config.rb +12 -0
- data/lib/selma/html/element.rb +11 -0
- data/lib/selma/html.rb +2 -0
- data/lib/selma/sanitizer/config/default.rb +1 -1
- data/lib/selma/sanitizer/config/relaxed.rb +1 -0
- data/lib/selma/sanitizer/config.rb +2 -2
- data/lib/selma/sanitizer.rb +0 -77
- data/lib/selma/version.rb +1 -1
- metadata +9 -7
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.
|
4
|
+
version: 0.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.2'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- gjtorikian@gmail.com
|
58
58
|
executables: []
|
@@ -77,8 +77,10 @@ files:
|
|
77
77
|
- ext/selma/src/selector.rs
|
78
78
|
- ext/selma/src/tags.rs
|
79
79
|
- lib/selma.rb
|
80
|
+
- lib/selma/config.rb
|
80
81
|
- lib/selma/extension.rb
|
81
82
|
- lib/selma/html.rb
|
83
|
+
- lib/selma/html/element.rb
|
82
84
|
- lib/selma/rewriter.rb
|
83
85
|
- lib/selma/sanitizer.rb
|
84
86
|
- lib/selma/sanitizer/config.rb
|
@@ -88,7 +90,7 @@ files:
|
|
88
90
|
- lib/selma/sanitizer/config/restricted.rb
|
89
91
|
- lib/selma/selector.rb
|
90
92
|
- lib/selma/version.rb
|
91
|
-
homepage:
|
93
|
+
homepage:
|
92
94
|
licenses:
|
93
95
|
- MIT
|
94
96
|
metadata:
|
@@ -96,7 +98,7 @@ metadata:
|
|
96
98
|
funding_uri: https://github.com/sponsors/gjtorikian/
|
97
99
|
source_code_uri: https://github.com/gjtorikian/selma
|
98
100
|
rubygems_mfa_required: 'true'
|
99
|
-
post_install_message:
|
101
|
+
post_install_message:
|
100
102
|
rdoc_options: []
|
101
103
|
require_paths:
|
102
104
|
- lib
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
version: 3.3.22
|
113
115
|
requirements: []
|
114
116
|
rubygems_version: 3.5.3
|
115
|
-
signing_key:
|
117
|
+
signing_key:
|
116
118
|
specification_version: 4
|
117
119
|
summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
|
118
120
|
parser.
|