selma 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +125 -60
- data/Cargo.toml +2 -0
- data/ext/selma/Cargo.toml +2 -0
- data/ext/selma/src/rewriter.rs +5 -4
- data/ext/selma/src/tags.rs +1 -1
- data/lib/selma/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b438a2bdc8e13515ccc76c7e57a6fffb492c3ac7ff62781226ca5288f22913
|
4
|
+
data.tar.gz: 66b31905df161bf62a2dd88df9a5ead5e9f0a0f3a2d1464b669634dc966bc9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37389220da9e5b2ea7193cf1a3b7fa0198351233d5afa871c66679b06f274b161caab8b13222996345008899a5334a37150708533f3fd295ca266a5d1e35d1f
|
7
|
+
data.tar.gz: 2dc168d6bf3d1032fd97dd21f126bfb1028a9b62693b7bc4af254953510f259e96aa7d4c541b23a9a0160c9f5c616b40eebec05b873f0df6fc3d03dc0114f018
|
data/Cargo.lock
CHANGED
@@ -4,13 +4,14 @@ version = 3
|
|
4
4
|
|
5
5
|
[[package]]
|
6
6
|
name = "ahash"
|
7
|
-
version = "0.8.
|
7
|
+
version = "0.8.7"
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
9
|
-
checksum = "
|
9
|
+
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
|
10
10
|
dependencies = [
|
11
11
|
"cfg-if",
|
12
12
|
"once_cell",
|
13
13
|
"version_check",
|
14
|
+
"zerocopy",
|
14
15
|
]
|
15
16
|
|
16
17
|
[[package]]
|
@@ -24,11 +25,11 @@ dependencies = [
|
|
24
25
|
|
25
26
|
[[package]]
|
26
27
|
name = "bindgen"
|
27
|
-
version = "0.
|
28
|
+
version = "0.69.1"
|
28
29
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
29
|
-
checksum = "
|
30
|
+
checksum = "9ffcebc3849946a7170a05992aac39da343a90676ab392c51a4280981d6379c2"
|
30
31
|
dependencies = [
|
31
|
-
"bitflags 2.4.
|
32
|
+
"bitflags 2.4.1",
|
32
33
|
"cexpr",
|
33
34
|
"clang-sys",
|
34
35
|
"lazy_static",
|
@@ -39,7 +40,7 @@ dependencies = [
|
|
39
40
|
"regex",
|
40
41
|
"rustc-hash",
|
41
42
|
"shlex",
|
42
|
-
"syn 2.0.
|
43
|
+
"syn 2.0.46",
|
43
44
|
]
|
44
45
|
|
45
46
|
[[package]]
|
@@ -50,9 +51,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
50
51
|
|
51
52
|
[[package]]
|
52
53
|
name = "bitflags"
|
53
|
-
version = "2.4.
|
54
|
+
version = "2.4.1"
|
54
55
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
55
|
-
checksum = "
|
56
|
+
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
|
56
57
|
|
57
58
|
[[package]]
|
58
59
|
name = "byteorder"
|
@@ -77,9 +78,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
77
78
|
|
78
79
|
[[package]]
|
79
80
|
name = "clang-sys"
|
80
|
-
version = "1.
|
81
|
+
version = "1.7.0"
|
81
82
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
82
|
-
checksum = "
|
83
|
+
checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
|
83
84
|
dependencies = [
|
84
85
|
"glob",
|
85
86
|
"libc",
|
@@ -116,7 +117,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
117
|
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
|
117
118
|
dependencies = [
|
118
119
|
"quote",
|
119
|
-
"syn 2.0.
|
120
|
+
"syn 2.0.46",
|
120
121
|
]
|
121
122
|
|
122
123
|
[[package]]
|
@@ -179,7 +180,7 @@ checksum = "eecf8589574ce9b895052fa12d69af7a233f99e6107f5cb8dd1044f2a17bfdcb"
|
|
179
180
|
dependencies = [
|
180
181
|
"proc-macro2",
|
181
182
|
"quote",
|
182
|
-
"syn 2.0.
|
183
|
+
"syn 2.0.46",
|
183
184
|
]
|
184
185
|
|
185
186
|
[[package]]
|
@@ -246,18 +247,18 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
246
247
|
|
247
248
|
[[package]]
|
248
249
|
name = "libc"
|
249
|
-
version = "0.2.
|
250
|
+
version = "0.2.151"
|
250
251
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
251
|
-
checksum = "
|
252
|
+
checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
|
252
253
|
|
253
254
|
[[package]]
|
254
255
|
name = "libloading"
|
255
|
-
version = "0.
|
256
|
+
version = "0.8.1"
|
256
257
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
257
|
-
checksum = "
|
258
|
+
checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161"
|
258
259
|
dependencies = [
|
259
260
|
"cfg-if",
|
260
|
-
"
|
261
|
+
"windows-sys",
|
261
262
|
]
|
262
263
|
|
263
264
|
[[package]]
|
@@ -272,7 +273,7 @@ version = "1.2.0"
|
|
272
273
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
273
274
|
checksum = "10662f7aad081ec900fd735be33076da75e0389400277dc3734e2b0aa02bb115"
|
274
275
|
dependencies = [
|
275
|
-
"bitflags 2.4.
|
276
|
+
"bitflags 2.4.1",
|
276
277
|
"cfg-if",
|
277
278
|
"cssparser",
|
278
279
|
"encoding_rs",
|
@@ -306,7 +307,7 @@ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
|
|
306
307
|
dependencies = [
|
307
308
|
"proc-macro2",
|
308
309
|
"quote",
|
309
|
-
"syn 2.0.
|
310
|
+
"syn 2.0.46",
|
310
311
|
]
|
311
312
|
|
312
313
|
[[package]]
|
@@ -317,9 +318,9 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"
|
|
317
318
|
|
318
319
|
[[package]]
|
319
320
|
name = "memchr"
|
320
|
-
version = "2.
|
321
|
+
version = "2.7.1"
|
321
322
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
322
|
-
checksum = "
|
323
|
+
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
323
324
|
|
324
325
|
[[package]]
|
325
326
|
name = "mime"
|
@@ -351,9 +352,9 @@ dependencies = [
|
|
351
352
|
|
352
353
|
[[package]]
|
353
354
|
name = "once_cell"
|
354
|
-
version = "1.
|
355
|
+
version = "1.19.0"
|
355
356
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
356
|
-
checksum = "
|
357
|
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
357
358
|
|
358
359
|
[[package]]
|
359
360
|
name = "peeking_take_while"
|
@@ -435,18 +436,18 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
|
|
435
436
|
|
436
437
|
[[package]]
|
437
438
|
name = "proc-macro2"
|
438
|
-
version = "1.0.
|
439
|
+
version = "1.0.74"
|
439
440
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
440
|
-
checksum = "
|
441
|
+
checksum = "2de98502f212cfcea8d0bb305bd0f49d7ebdd75b64ba0a68f937d888f4e0d6db"
|
441
442
|
dependencies = [
|
442
443
|
"unicode-ident",
|
443
444
|
]
|
444
445
|
|
445
446
|
[[package]]
|
446
447
|
name = "quote"
|
447
|
-
version = "1.0.
|
448
|
+
version = "1.0.35"
|
448
449
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
449
|
-
checksum = "
|
450
|
+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
450
451
|
dependencies = [
|
451
452
|
"proc-macro2",
|
452
453
|
]
|
@@ -504,18 +505,18 @@ dependencies = [
|
|
504
505
|
|
505
506
|
[[package]]
|
506
507
|
name = "rb-sys"
|
507
|
-
version = "0.9.
|
508
|
+
version = "0.9.85"
|
508
509
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
509
|
-
checksum = "
|
510
|
+
checksum = "05b780e6858b0b0eced1d55d0f097c024b77a37b41f83bd35341130f78e37c51"
|
510
511
|
dependencies = [
|
511
512
|
"rb-sys-build",
|
512
513
|
]
|
513
514
|
|
514
515
|
[[package]]
|
515
516
|
name = "rb-sys-build"
|
516
|
-
version = "0.9.
|
517
|
+
version = "0.9.85"
|
517
518
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
518
|
-
checksum = "
|
519
|
+
checksum = "44957a3bc513dad1b0f20bdd0ee3b82e729a59da44086a6b40d8bc71958a6db8"
|
519
520
|
dependencies = [
|
520
521
|
"bindgen",
|
521
522
|
"lazy_static",
|
@@ -523,7 +524,7 @@ dependencies = [
|
|
523
524
|
"quote",
|
524
525
|
"regex",
|
525
526
|
"shell-words",
|
526
|
-
"syn 2.0.
|
527
|
+
"syn 2.0.46",
|
527
528
|
]
|
528
529
|
|
529
530
|
[[package]]
|
@@ -534,9 +535,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
534
535
|
|
535
536
|
[[package]]
|
536
537
|
name = "regex"
|
537
|
-
version = "1.10.
|
538
|
+
version = "1.10.2"
|
538
539
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
539
|
-
checksum = "
|
540
|
+
checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
|
540
541
|
dependencies = [
|
541
542
|
"aho-corasick",
|
542
543
|
"memchr",
|
@@ -546,9 +547,9 @@ dependencies = [
|
|
546
547
|
|
547
548
|
[[package]]
|
548
549
|
name = "regex-automata"
|
549
|
-
version = "0.4.
|
550
|
+
version = "0.4.3"
|
550
551
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
551
|
-
checksum = "
|
552
|
+
checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
|
552
553
|
dependencies = [
|
553
554
|
"aho-corasick",
|
554
555
|
"memchr",
|
@@ -557,9 +558,9 @@ dependencies = [
|
|
557
558
|
|
558
559
|
[[package]]
|
559
560
|
name = "regex-syntax"
|
560
|
-
version = "0.8.
|
561
|
+
version = "0.8.2"
|
561
562
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
562
|
-
checksum = "
|
563
|
+
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
563
564
|
|
564
565
|
[[package]]
|
565
566
|
name = "rustc-hash"
|
@@ -614,9 +615,9 @@ dependencies = [
|
|
614
615
|
|
615
616
|
[[package]]
|
616
617
|
name = "semver"
|
617
|
-
version = "1.0.
|
618
|
+
version = "1.0.21"
|
618
619
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
619
|
-
checksum = "
|
620
|
+
checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
|
620
621
|
|
621
622
|
[[package]]
|
622
623
|
name = "seq-macro"
|
@@ -654,9 +655,9 @@ checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
|
|
654
655
|
|
655
656
|
[[package]]
|
656
657
|
name = "smallvec"
|
657
|
-
version = "1.11.
|
658
|
+
version = "1.11.2"
|
658
659
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
659
|
-
checksum = "
|
660
|
+
checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
|
660
661
|
|
661
662
|
[[package]]
|
662
663
|
name = "stable_deref_trait"
|
@@ -677,9 +678,9 @@ dependencies = [
|
|
677
678
|
|
678
679
|
[[package]]
|
679
680
|
name = "syn"
|
680
|
-
version = "2.0.
|
681
|
+
version = "2.0.46"
|
681
682
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
682
|
-
checksum = "
|
683
|
+
checksum = "89456b690ff72fddcecf231caedbe615c59480c93358a93dfae7fc29e3ebbf0e"
|
683
684
|
dependencies = [
|
684
685
|
"proc-macro2",
|
685
686
|
"quote",
|
@@ -694,22 +695,22 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
|
|
694
695
|
|
695
696
|
[[package]]
|
696
697
|
name = "thiserror"
|
697
|
-
version = "1.0.
|
698
|
+
version = "1.0.56"
|
698
699
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
699
|
-
checksum = "
|
700
|
+
checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad"
|
700
701
|
dependencies = [
|
701
702
|
"thiserror-impl",
|
702
703
|
]
|
703
704
|
|
704
705
|
[[package]]
|
705
706
|
name = "thiserror-impl"
|
706
|
-
version = "1.0.
|
707
|
+
version = "1.0.56"
|
707
708
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
708
|
-
checksum = "
|
709
|
+
checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471"
|
709
710
|
dependencies = [
|
710
711
|
"proc-macro2",
|
711
712
|
"quote",
|
712
|
-
"syn 2.0.
|
713
|
+
"syn 2.0.46",
|
713
714
|
]
|
714
715
|
|
715
716
|
[[package]]
|
@@ -731,23 +732,87 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
731
732
|
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
732
733
|
|
733
734
|
[[package]]
|
734
|
-
name = "
|
735
|
-
version = "0.
|
735
|
+
name = "windows-sys"
|
736
|
+
version = "0.48.0"
|
736
737
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
737
|
-
checksum = "
|
738
|
+
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
738
739
|
dependencies = [
|
739
|
-
"
|
740
|
-
"winapi-x86_64-pc-windows-gnu",
|
740
|
+
"windows-targets",
|
741
741
|
]
|
742
742
|
|
743
743
|
[[package]]
|
744
|
-
name = "
|
745
|
-
version = "0.
|
744
|
+
name = "windows-targets"
|
745
|
+
version = "0.48.5"
|
746
746
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
747
|
-
checksum = "
|
747
|
+
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
748
|
+
dependencies = [
|
749
|
+
"windows_aarch64_gnullvm",
|
750
|
+
"windows_aarch64_msvc",
|
751
|
+
"windows_i686_gnu",
|
752
|
+
"windows_i686_msvc",
|
753
|
+
"windows_x86_64_gnu",
|
754
|
+
"windows_x86_64_gnullvm",
|
755
|
+
"windows_x86_64_msvc",
|
756
|
+
]
|
748
757
|
|
749
758
|
[[package]]
|
750
|
-
name = "
|
751
|
-
version = "0.
|
759
|
+
name = "windows_aarch64_gnullvm"
|
760
|
+
version = "0.48.5"
|
761
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
762
|
+
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
763
|
+
|
764
|
+
[[package]]
|
765
|
+
name = "windows_aarch64_msvc"
|
766
|
+
version = "0.48.5"
|
767
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
768
|
+
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
769
|
+
|
770
|
+
[[package]]
|
771
|
+
name = "windows_i686_gnu"
|
772
|
+
version = "0.48.5"
|
773
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
774
|
+
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
775
|
+
|
776
|
+
[[package]]
|
777
|
+
name = "windows_i686_msvc"
|
778
|
+
version = "0.48.5"
|
779
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
780
|
+
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
781
|
+
|
782
|
+
[[package]]
|
783
|
+
name = "windows_x86_64_gnu"
|
784
|
+
version = "0.48.5"
|
752
785
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
753
|
-
checksum = "
|
786
|
+
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
787
|
+
|
788
|
+
[[package]]
|
789
|
+
name = "windows_x86_64_gnullvm"
|
790
|
+
version = "0.48.5"
|
791
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
792
|
+
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
793
|
+
|
794
|
+
[[package]]
|
795
|
+
name = "windows_x86_64_msvc"
|
796
|
+
version = "0.48.5"
|
797
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
798
|
+
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|
799
|
+
|
800
|
+
[[package]]
|
801
|
+
name = "zerocopy"
|
802
|
+
version = "0.7.32"
|
803
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
804
|
+
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
|
805
|
+
dependencies = [
|
806
|
+
"zerocopy-derive",
|
807
|
+
]
|
808
|
+
|
809
|
+
[[package]]
|
810
|
+
name = "zerocopy-derive"
|
811
|
+
version = "0.7.32"
|
812
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
813
|
+
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
|
814
|
+
dependencies = [
|
815
|
+
"proc-macro2",
|
816
|
+
"quote",
|
817
|
+
"syn 2.0.46",
|
818
|
+
]
|
data/Cargo.toml
CHANGED
data/ext/selma/Cargo.toml
CHANGED
data/ext/selma/src/rewriter.rs
CHANGED
@@ -42,9 +42,9 @@ pub struct SelmaRewriter(std::cell::RefCell<Rewriter>);
|
|
42
42
|
type RewriterValues = (Option<Option<Obj<SelmaSanitizer>>>, Option<RArray>);
|
43
43
|
|
44
44
|
impl SelmaRewriter {
|
45
|
-
const SELMA_ON_END_TAG: &str = "on_end_tag";
|
46
|
-
const SELMA_HANDLE_ELEMENT: &str = "handle_element";
|
47
|
-
const SELMA_HANDLE_TEXT_CHUNK: &str = "handle_text_chunk";
|
45
|
+
const SELMA_ON_END_TAG: &'static str = "on_end_tag";
|
46
|
+
const SELMA_HANDLE_ELEMENT: &'static str = "handle_element";
|
47
|
+
const SELMA_HANDLE_TEXT_CHUNK: &'static str = "handle_text_chunk";
|
48
48
|
|
49
49
|
/// @yard
|
50
50
|
/// @def new(sanitizer: Selma::Sanitizer.new(Selma::Sanitizer::Config::DEFAULT), handlers: [])
|
@@ -56,13 +56,14 @@ impl SelmaRewriter {
|
|
56
56
|
|
57
57
|
let sanitizer = match rb_sanitizer {
|
58
58
|
None => {
|
59
|
+
// no `sanitizer:` provided, use default
|
59
60
|
let default_sanitizer = SelmaSanitizer::new(&[])?;
|
60
61
|
let wrapped_sanitizer = Obj::wrap(default_sanitizer);
|
61
62
|
wrapped_sanitizer.funcall::<&str, (), Value>("setup", ())?;
|
62
63
|
Some(wrapped_sanitizer.get().to_owned())
|
63
64
|
}
|
64
65
|
Some(sanitizer_value) => match sanitizer_value {
|
65
|
-
None => None,
|
66
|
+
None => None, // no `sanitizer:` provided, use default
|
66
67
|
Some(sanitizer) => {
|
67
68
|
sanitizer.funcall::<&str, (), Value>("setup", ())?;
|
68
69
|
Some(sanitizer.get().to_owned())
|
data/ext/selma/src/tags.rs
CHANGED
@@ -205,7 +205,7 @@ impl Tag {
|
|
205
205
|
|| tag.index == HTMLTag::XMP as usize
|
206
206
|
}
|
207
207
|
|
208
|
-
pub const ESCAPEWORTHY_TAGS_CSS: &str =
|
208
|
+
pub const ESCAPEWORTHY_TAGS_CSS: &'static str =
|
209
209
|
"title, textarea, style, xmp, iframe, noembed, noframes, script, plaintext";
|
210
210
|
|
211
211
|
pub fn html_tags() -> Vec<HTMLTag> {
|
data/lib/selma/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.2
|
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:
|
11
|
+
date: 2024-01-11 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: []
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- lib/selma/sanitizer/config/restricted.rb
|
89
89
|
- lib/selma/selector.rb
|
90
90
|
- lib/selma/version.rb
|
91
|
-
homepage:
|
91
|
+
homepage:
|
92
92
|
licenses:
|
93
93
|
- MIT
|
94
94
|
metadata:
|
@@ -96,7 +96,7 @@ metadata:
|
|
96
96
|
funding_uri: https://github.com/sponsors/gjtorikian/
|
97
97
|
source_code_uri: https://github.com/gjtorikian/selma
|
98
98
|
rubygems_mfa_required: 'true'
|
99
|
-
post_install_message:
|
99
|
+
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|
102
102
|
- lib
|
@@ -111,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 3.3.22
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
115
|
-
signing_key:
|
114
|
+
rubygems_version: 3.5.3
|
115
|
+
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
|
118
118
|
parser.
|