selma 0.2.0 → 0.2.2

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: ee5c02252f9d3c815aea09d7a79070ae69a4b6c167227f01195faad8c99f52da
4
- data.tar.gz: 5e06f14ecd535c95cdda8c1869a1a255833ab3cc3c41dd4e2ca311b07ca8b4ff
3
+ metadata.gz: 50b438a2bdc8e13515ccc76c7e57a6fffb492c3ac7ff62781226ca5288f22913
4
+ data.tar.gz: 66b31905df161bf62a2dd88df9a5ead5e9f0a0f3a2d1464b669634dc966bc9a3
5
5
  SHA512:
6
- metadata.gz: 9e550b2bf33e7c57ee1f3cc07be5d5a0ab042959ffad69736ab13cd3e5ca3dca773855ac04f786b286c8917896ef5c7a50d9737f5ec4a85caf804a1d142d59be
7
- data.tar.gz: 8e98daa7579c0f25ce65426813de1989235c18b86e0ee2519b72430fad7f5274c08c38971aff40305df8664c97ef6f369912abcf36509d9b1130b3025655a8ab
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.3"
7
+ version = "0.8.7"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
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.66.1"
28
+ version = "0.69.1"
28
29
  source = "registry+https://github.com/rust-lang/crates.io-index"
29
- checksum = "f2b84e06fc203107bfbad243f4aba2af864eb7db3b1cf46ea0a023b0b433d2a7"
30
+ checksum = "9ffcebc3849946a7170a05992aac39da343a90676ab392c51a4280981d6379c2"
30
31
  dependencies = [
31
- "bitflags 2.4.0",
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.38",
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.0"
54
+ version = "2.4.1"
54
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
55
- checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
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.6.1"
81
+ version = "1.7.0"
81
82
  source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f"
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.38",
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.38",
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.149"
250
+ version = "0.2.151"
250
251
  source = "registry+https://github.com/rust-lang/crates.io-index"
251
- checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b"
252
+ checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
252
253
 
253
254
  [[package]]
254
255
  name = "libloading"
255
- version = "0.7.4"
256
+ version = "0.8.1"
256
257
  source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
258
+ checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161"
258
259
  dependencies = [
259
260
  "cfg-if",
260
- "winapi",
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.0",
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.38",
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.6.4"
321
+ version = "2.7.1"
321
322
  source = "registry+https://github.com/rust-lang/crates.io-index"
322
- checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
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.18.0"
355
+ version = "1.19.0"
355
356
  source = "registry+https://github.com/rust-lang/crates.io-index"
356
- checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
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.69"
439
+ version = "1.0.74"
439
440
  source = "registry+https://github.com/rust-lang/crates.io-index"
440
- checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
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.33"
448
+ version = "1.0.35"
448
449
  source = "registry+https://github.com/rust-lang/crates.io-index"
449
- checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
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.82"
508
+ version = "0.9.85"
508
509
  source = "registry+https://github.com/rust-lang/crates.io-index"
509
- checksum = "a3e6bf79bf4c711917cacfaf46dfab4314dbfdd89a8ee3ec4b98336cd23f1ebf"
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.82"
517
+ version = "0.9.85"
517
518
  source = "registry+https://github.com/rust-lang/crates.io-index"
518
- checksum = "5482a1ed4cde58dddaf162b6aebcb5c25645822547832b8be101f2acd40bcdd6"
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.38",
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.0"
538
+ version = "1.10.2"
538
539
  source = "registry+https://github.com/rust-lang/crates.io-index"
539
- checksum = "d119d7c7ca818f8a53c300863d4f87566aac09943aef5b355bb83969dae75d87"
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.1"
550
+ version = "0.4.3"
550
551
  source = "registry+https://github.com/rust-lang/crates.io-index"
551
- checksum = "465c6fc0621e4abc4187a2bda0937bfd4f722c2730b29562e19689ea796c9a4b"
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.1"
561
+ version = "0.8.2"
561
562
  source = "registry+https://github.com/rust-lang/crates.io-index"
562
- checksum = "56d84fdd47036b038fc80dd333d10b6aab10d5d31f4a366e20014def75328d33"
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.20"
618
+ version = "1.0.21"
618
619
  source = "registry+https://github.com/rust-lang/crates.io-index"
619
- checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090"
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.1"
658
+ version = "1.11.2"
658
659
  source = "registry+https://github.com/rust-lang/crates.io-index"
659
- checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
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.38"
681
+ version = "2.0.46"
681
682
  source = "registry+https://github.com/rust-lang/crates.io-index"
682
- checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b"
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.49"
698
+ version = "1.0.56"
698
699
  source = "registry+https://github.com/rust-lang/crates.io-index"
699
- checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4"
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.49"
707
+ version = "1.0.56"
707
708
  source = "registry+https://github.com/rust-lang/crates.io-index"
708
- checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc"
709
+ checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471"
709
710
  dependencies = [
710
711
  "proc-macro2",
711
712
  "quote",
712
- "syn 2.0.38",
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 = "winapi"
735
- version = "0.3.9"
735
+ name = "windows-sys"
736
+ version = "0.48.0"
736
737
  source = "registry+https://github.com/rust-lang/crates.io-index"
737
- checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
738
+ checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
738
739
  dependencies = [
739
- "winapi-i686-pc-windows-gnu",
740
- "winapi-x86_64-pc-windows-gnu",
740
+ "windows-targets",
741
741
  ]
742
742
 
743
743
  [[package]]
744
- name = "winapi-i686-pc-windows-gnu"
745
- version = "0.4.0"
744
+ name = "windows-targets"
745
+ version = "0.48.5"
746
746
  source = "registry+https://github.com/rust-lang/crates.io-index"
747
- checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
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 = "winapi-x86_64-pc-windows-gnu"
751
- version = "0.4.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 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
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
@@ -4,3 +4,5 @@
4
4
 
5
5
  [workspace]
6
6
  members = ["ext/selma"]
7
+ resolver = "2"
8
+
data/ext/selma/Cargo.toml CHANGED
@@ -2,6 +2,8 @@
2
2
  name = "selma"
3
3
  version = "1.0.0"
4
4
  edition = "2021"
5
+ rust-version = "1.75.0"
6
+ publish = false
5
7
 
6
8
  [dependencies]
7
9
  enum-iterator = "1.4"
@@ -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())
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Selma
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
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.0
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: 2023-10-12 00:00:00.000000000 Z
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.4.20
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.