selma 0.2.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +115 -114
- data/README.md +122 -24
- data/ext/selma/Cargo.toml +5 -2
- data/ext/selma/src/html/element.rs +11 -6
- data/ext/selma/src/native_ref_wrap.rs +15 -12
- data/ext/selma/src/rewriter.rs +257 -106
- data/ext/selma/src/sanitizer.rs +23 -16
- data/lib/selma/config.rb +12 -0
- data/lib/selma/sanitizer/config/default.rb +1 -1
- data/lib/selma/sanitizer/config/relaxed.rb +1 -0
- data/lib/selma/sanitizer.rb +6 -1
- data/lib/selma/version.rb +1 -1
- metadata +8 -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.0
|
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-07-15 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,6 +77,7 @@ 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
|
82
83
|
- lib/selma/rewriter.rb
|
@@ -88,7 +89,7 @@ files:
|
|
88
89
|
- lib/selma/sanitizer/config/restricted.rb
|
89
90
|
- lib/selma/selector.rb
|
90
91
|
- lib/selma/version.rb
|
91
|
-
homepage:
|
92
|
+
homepage:
|
92
93
|
licenses:
|
93
94
|
- MIT
|
94
95
|
metadata:
|
@@ -96,7 +97,7 @@ metadata:
|
|
96
97
|
funding_uri: https://github.com/sponsors/gjtorikian/
|
97
98
|
source_code_uri: https://github.com/gjtorikian/selma
|
98
99
|
rubygems_mfa_required: 'true'
|
99
|
-
post_install_message:
|
100
|
+
post_install_message:
|
100
101
|
rdoc_options: []
|
101
102
|
require_paths:
|
102
103
|
- lib
|
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
113
|
version: 3.3.22
|
113
114
|
requirements: []
|
114
115
|
rubygems_version: 3.5.3
|
115
|
-
signing_key:
|
116
|
+
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
|
118
119
|
parser.
|