selma 0.4.11 → 0.4.12
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 +18 -28
- data/README.md +2 -2
- data/ext/selma/Cargo.toml +1 -1
- data/lib/selma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b35a77d5a11784e13535c00b0a83e70d2f2eeff72409cc741dd13b08757fffad
|
|
4
|
+
data.tar.gz: 86d8ac2766f6bec828f8b5000bd51d3ab903e5f7ca5525322380d826c1a85508
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 139b5949ff4378fdb115e7f377c869052be804241158c31fd091f8974d19e7035c858ed5e1c79a5efbda46a34820ba8fca355415179a723d5ea9944d91db16db
|
|
7
|
+
data.tar.gz: c4548c0d2d7b17ec96c84a3addaf0780dc11674f36267bbffe0dcae4514c9694acb699d3ee5748c79adf3c29451a0914c306afafd9f9c3db862a235bbb2fea71
|
data/Cargo.lock
CHANGED
|
@@ -89,9 +89,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
|
|
|
89
89
|
|
|
90
90
|
[[package]]
|
|
91
91
|
name = "cssparser"
|
|
92
|
-
version = "0.
|
|
92
|
+
version = "0.29.6"
|
|
93
93
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
94
|
-
checksum = "
|
|
94
|
+
checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa"
|
|
95
95
|
dependencies = [
|
|
96
96
|
"cssparser-macros",
|
|
97
97
|
"dtoa-short",
|
|
@@ -252,9 +252,9 @@ dependencies = [
|
|
|
252
252
|
|
|
253
253
|
[[package]]
|
|
254
254
|
name = "itoa"
|
|
255
|
-
version = "0.
|
|
255
|
+
version = "1.0.14"
|
|
256
256
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
-
checksum = "
|
|
257
|
+
checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
|
|
258
258
|
|
|
259
259
|
[[package]]
|
|
260
260
|
name = "lazy_static"
|
|
@@ -292,17 +292,15 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|
|
292
292
|
|
|
293
293
|
[[package]]
|
|
294
294
|
name = "lol_html"
|
|
295
|
-
version = "2.
|
|
295
|
+
version = "2.2.0"
|
|
296
296
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
297
|
-
checksum = "
|
|
297
|
+
checksum = "3b1058123f6262982b891dccc395cff0144d9439de366460b47fab719258b96e"
|
|
298
298
|
dependencies = [
|
|
299
299
|
"bitflags 2.6.0",
|
|
300
300
|
"cfg-if",
|
|
301
301
|
"cssparser",
|
|
302
302
|
"encoding_rs",
|
|
303
303
|
"hashbrown",
|
|
304
|
-
"lazy_static",
|
|
305
|
-
"lazycell",
|
|
306
304
|
"memchr",
|
|
307
305
|
"mime",
|
|
308
306
|
"selectors",
|
|
@@ -518,18 +516,18 @@ dependencies = [
|
|
|
518
516
|
|
|
519
517
|
[[package]]
|
|
520
518
|
name = "rb-sys"
|
|
521
|
-
version = "0.9.
|
|
519
|
+
version = "0.9.106"
|
|
522
520
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
523
|
-
checksum = "
|
|
521
|
+
checksum = "17b6efdbc8c1a22cb8b5d7ead0237c16c362c9ef6fbdc09e2d1040615b0f4cd0"
|
|
524
522
|
dependencies = [
|
|
525
523
|
"rb-sys-build",
|
|
526
524
|
]
|
|
527
525
|
|
|
528
526
|
[[package]]
|
|
529
527
|
name = "rb-sys-build"
|
|
530
|
-
version = "0.9.
|
|
528
|
+
version = "0.9.106"
|
|
531
529
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
532
|
-
checksum = "
|
|
530
|
+
checksum = "e1d88c51e52f8636a5efc24ec5987056e64e48a91ed2a1af96cb5564686cc10f"
|
|
533
531
|
dependencies = [
|
|
534
532
|
"bindgen",
|
|
535
533
|
"lazy_static",
|
|
@@ -592,22 +590,20 @@ dependencies = [
|
|
|
592
590
|
|
|
593
591
|
[[package]]
|
|
594
592
|
name = "selectors"
|
|
595
|
-
version = "0.
|
|
593
|
+
version = "0.24.0"
|
|
596
594
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
597
|
-
checksum = "
|
|
595
|
+
checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"
|
|
598
596
|
dependencies = [
|
|
599
597
|
"bitflags 1.3.2",
|
|
600
598
|
"cssparser",
|
|
601
599
|
"derive_more",
|
|
602
600
|
"fxhash",
|
|
603
601
|
"log",
|
|
604
|
-
"matches",
|
|
605
602
|
"phf",
|
|
606
603
|
"phf_codegen",
|
|
607
604
|
"precomputed-hash",
|
|
608
605
|
"servo_arc",
|
|
609
606
|
"smallvec",
|
|
610
|
-
"thin-slice",
|
|
611
607
|
]
|
|
612
608
|
|
|
613
609
|
[[package]]
|
|
@@ -635,9 +631,9 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
|
635
631
|
|
|
636
632
|
[[package]]
|
|
637
633
|
name = "servo_arc"
|
|
638
|
-
version = "0.
|
|
634
|
+
version = "0.2.0"
|
|
639
635
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
640
|
-
checksum = "
|
|
636
|
+
checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741"
|
|
641
637
|
dependencies = [
|
|
642
638
|
"nodrop",
|
|
643
639
|
"stable_deref_trait",
|
|
@@ -695,26 +691,20 @@ dependencies = [
|
|
|
695
691
|
"unicode-ident",
|
|
696
692
|
]
|
|
697
693
|
|
|
698
|
-
[[package]]
|
|
699
|
-
name = "thin-slice"
|
|
700
|
-
version = "0.1.1"
|
|
701
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
702
|
-
checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
|
|
703
|
-
|
|
704
694
|
[[package]]
|
|
705
695
|
name = "thiserror"
|
|
706
|
-
version = "
|
|
696
|
+
version = "2.0.9"
|
|
707
697
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
708
|
-
checksum = "
|
|
698
|
+
checksum = "f072643fd0190df67a8bab670c20ef5d8737177d6ac6b2e9a236cb096206b2cc"
|
|
709
699
|
dependencies = [
|
|
710
700
|
"thiserror-impl",
|
|
711
701
|
]
|
|
712
702
|
|
|
713
703
|
[[package]]
|
|
714
704
|
name = "thiserror-impl"
|
|
715
|
-
version = "
|
|
705
|
+
version = "2.0.9"
|
|
716
706
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
717
|
-
checksum = "
|
|
707
|
+
checksum = "7b50fa271071aae2e6ee85f842e2e28ba8cd2c5fb67f11fcb1fd70b276f9e7d4"
|
|
718
708
|
dependencies = [
|
|
719
709
|
"proc-macro2",
|
|
720
710
|
"quote",
|
data/README.md
CHANGED
|
@@ -95,8 +95,8 @@ whitespace_elements: ["blockquote", "h1", "h2", "h3", "h4", "h5", "h6", ]
|
|
|
95
95
|
|
|
96
96
|
The real power in Selma comes in its use of handlers. A handler is simply an object with various methods defined:
|
|
97
97
|
|
|
98
|
-
- `selector`, a method which MUST return instance of `Selma::Selector
|
|
99
|
-
- `handle_element`, a method that's
|
|
98
|
+
- `selector`, a method which MUST return an instance of `Selma::Selector`, defining the CSS classes to match
|
|
99
|
+
- `handle_element`, a method that's called on each matched element
|
|
100
100
|
- `handle_text_chunk`, a method that's called on each matched text node
|
|
101
101
|
|
|
102
102
|
Here's an example which rewrites the `href` attribute on `a` and the `src` attribute on `img` to be `https` rather than `http`.
|
data/ext/selma/Cargo.toml
CHANGED
data/lib/selma/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen J. Torikian
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rb_sys
|