selma 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae851f7bc424c7fc5e023632b3faa7b277877c6cadf87cc7f62522395d840c31
4
- data.tar.gz: 7ddf1ec6fcba33124266e8a42bf2e15377e8daabd15854e6d5b16279b25f77c0
3
+ metadata.gz: b35a77d5a11784e13535c00b0a83e70d2f2eeff72409cc741dd13b08757fffad
4
+ data.tar.gz: 86d8ac2766f6bec828f8b5000bd51d3ab903e5f7ca5525322380d826c1a85508
5
5
  SHA512:
6
- metadata.gz: 026d9ca139227477365dabd422caf691926fdf09d8b7bf35a80274669de344b3d7d0e98872e4b099ccd9bf28da3343f67a2aed3a0c0a3ae8582585d489820829
7
- data.tar.gz: 2b993bc1be6cf561ad54bd77d1c327e57e2e77ba41865fe3fca479849a6c375868c3c82eb10733964a0347d36715715095763ebda94fae416f4d66efe31f92e9
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.27.2"
92
+ version = "0.29.6"
93
93
  source = "registry+https://github.com/rust-lang/crates.io-index"
94
- checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a"
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.4.8"
255
+ version = "1.0.14"
256
256
  source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
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.1.0"
295
+ version = "2.2.0"
296
296
  source = "registry+https://github.com/rust-lang/crates.io-index"
297
- checksum = "2872b88213f3cd4b04f719ec8f2e0b37c98882a7c4aa6fc13ba2f19f5eba1bd2"
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.105"
519
+ version = "0.9.106"
522
520
  source = "registry+https://github.com/rust-lang/crates.io-index"
523
- checksum = "4b3a1f3ce8e7c36d777d52fe7a99039fe4fea7c8ec355a4c4f3a17f92a14029f"
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.105"
528
+ version = "0.9.106"
531
529
  source = "registry+https://github.com/rust-lang/crates.io-index"
532
- checksum = "3e6b246c29c0809e1cbe60a1ba9e093da72a4676d02adc68469297d1e589bbf0"
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.22.0"
593
+ version = "0.24.0"
596
594
  source = "registry+https://github.com/rust-lang/crates.io-index"
597
- checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe"
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.1.1"
634
+ version = "0.2.0"
639
635
  source = "registry+https://github.com/rust-lang/crates.io-index"
640
- checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432"
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 = "1.0.69"
696
+ version = "2.0.9"
707
697
  source = "registry+https://github.com/rust-lang/crates.io-index"
708
- checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
698
+ checksum = "f072643fd0190df67a8bab670c20ef5d8737177d6ac6b2e9a236cb096206b2cc"
709
699
  dependencies = [
710
700
  "thiserror-impl",
711
701
  ]
712
702
 
713
703
  [[package]]
714
704
  name = "thiserror-impl"
715
- version = "1.0.69"
705
+ version = "2.0.9"
716
706
  source = "registry+https://github.com/rust-lang/crates.io-index"
717
- checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
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` which defines the CSS classes to match
99
- - `handle_element`, a method that's call on each matched element
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
@@ -12,7 +12,7 @@ magnus = { version = "0.7", features = ["rb-sys"] }
12
12
  rb-sys = { version = "*", default-features = false, features = [
13
13
  "stable-api-compiled-fallback",
14
14
  ] }
15
- lol_html = "2.1"
15
+ lol_html = "2.2"
16
16
 
17
17
  [lib]
18
18
  name = "selma"
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.4.11"
4
+ VERSION = "0.4.12"
5
5
  end
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.11
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: 2024-12-29 00:00:00.000000000 Z
10
+ date: 2025-01-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rb_sys