selma 0.4.11 → 0.4.15
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 +86 -236
- data/README.md +3 -3
- data/ext/selma/Cargo.toml +3 -3
- data/lib/selma/version.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09ccdc9840c6461c303621610687d19fd532dbe8002129c097df8b95b1bacc5c'
|
|
4
|
+
data.tar.gz: b02dc94cc07485e5cb9d34c9ed7a8c834fbc236f5244f1aea4ea3ed9320e5142
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71c4962cd9a629bbc6ed18ceed2d079f7f001f85a6f21dc4e5b83409353bc7b9044c7b1e1871f624d5ab99ba1104cd3df85134e3006b0e9737529bafd6fbdb6a
|
|
7
|
+
data.tar.gz: 2a4d00eac02785b729ab6b287eef2e0e5eb7bfbdf4299cb9438b0bbb95cfe69491e5c8e54625857b7366f113e91f269b3e5e8f9dcc01cff743e9c1ba2cd6eeae
|
data/Cargo.lock
CHANGED
|
@@ -23,7 +23,7 @@ version = "0.69.5"
|
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
24
|
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
|
25
25
|
dependencies = [
|
|
26
|
-
"bitflags
|
|
26
|
+
"bitflags",
|
|
27
27
|
"cexpr",
|
|
28
28
|
"clang-sys",
|
|
29
29
|
"itertools",
|
|
@@ -32,28 +32,16 @@ dependencies = [
|
|
|
32
32
|
"proc-macro2",
|
|
33
33
|
"quote",
|
|
34
34
|
"regex",
|
|
35
|
-
"rustc-hash",
|
|
35
|
+
"rustc-hash 1.1.0",
|
|
36
36
|
"shlex",
|
|
37
|
-
"syn
|
|
37
|
+
"syn",
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
[[package]]
|
|
41
41
|
name = "bitflags"
|
|
42
|
-
version = "
|
|
42
|
+
version = "2.9.1"
|
|
43
43
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
-
checksum = "
|
|
45
|
-
|
|
46
|
-
[[package]]
|
|
47
|
-
name = "bitflags"
|
|
48
|
-
version = "2.6.0"
|
|
49
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
50
|
-
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
|
51
|
-
|
|
52
|
-
[[package]]
|
|
53
|
-
name = "byteorder"
|
|
54
|
-
version = "1.5.0"
|
|
55
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
-
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
44
|
+
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
|
|
57
45
|
|
|
58
46
|
[[package]]
|
|
59
47
|
name = "cexpr"
|
|
@@ -66,9 +54,9 @@ dependencies = [
|
|
|
66
54
|
|
|
67
55
|
[[package]]
|
|
68
56
|
name = "cfg-if"
|
|
69
|
-
version = "1.0.
|
|
57
|
+
version = "1.0.1"
|
|
70
58
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
-
checksum = "
|
|
59
|
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
|
72
60
|
|
|
73
61
|
[[package]]
|
|
74
62
|
name = "clang-sys"
|
|
@@ -81,27 +69,17 @@ dependencies = [
|
|
|
81
69
|
"libloading",
|
|
82
70
|
]
|
|
83
71
|
|
|
84
|
-
[[package]]
|
|
85
|
-
name = "convert_case"
|
|
86
|
-
version = "0.4.0"
|
|
87
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
|
-
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
|
|
89
|
-
|
|
90
72
|
[[package]]
|
|
91
73
|
name = "cssparser"
|
|
92
|
-
version = "0.
|
|
74
|
+
version = "0.35.0"
|
|
93
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
94
|
-
checksum = "
|
|
76
|
+
checksum = "4e901edd733a1472f944a45116df3f846f54d37e67e68640ac8bb69689aca2aa"
|
|
95
77
|
dependencies = [
|
|
96
78
|
"cssparser-macros",
|
|
97
79
|
"dtoa-short",
|
|
98
80
|
"itoa",
|
|
99
|
-
"matches",
|
|
100
81
|
"phf",
|
|
101
|
-
"proc-macro2",
|
|
102
|
-
"quote",
|
|
103
82
|
"smallvec",
|
|
104
|
-
"syn 1.0.109",
|
|
105
83
|
]
|
|
106
84
|
|
|
107
85
|
[[package]]
|
|
@@ -111,20 +89,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
111
89
|
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
|
|
112
90
|
dependencies = [
|
|
113
91
|
"quote",
|
|
114
|
-
"syn
|
|
92
|
+
"syn",
|
|
115
93
|
]
|
|
116
94
|
|
|
117
95
|
[[package]]
|
|
118
96
|
name = "derive_more"
|
|
119
|
-
version = "0.
|
|
97
|
+
version = "2.0.1"
|
|
120
98
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
121
|
-
checksum = "
|
|
99
|
+
checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"derive_more-impl",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "derive_more-impl"
|
|
106
|
+
version = "2.0.1"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3"
|
|
122
109
|
dependencies = [
|
|
123
|
-
"convert_case",
|
|
124
110
|
"proc-macro2",
|
|
125
111
|
"quote",
|
|
126
|
-
"
|
|
127
|
-
"syn 2.0.93",
|
|
112
|
+
"syn",
|
|
128
113
|
]
|
|
129
114
|
|
|
130
115
|
[[package]]
|
|
@@ -165,22 +150,22 @@ checksum = "b5320ae4c3782150d900b79807611a59a99fc9a1d61d686faafc24b93fc8d7ca"
|
|
|
165
150
|
|
|
166
151
|
[[package]]
|
|
167
152
|
name = "enum-iterator"
|
|
168
|
-
version = "2.
|
|
153
|
+
version = "2.3.0"
|
|
169
154
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
-
checksum = "
|
|
155
|
+
checksum = "a4549325971814bda7a44061bf3fe7e487d447cba01e4220a4b454d630d7a016"
|
|
171
156
|
dependencies = [
|
|
172
157
|
"enum-iterator-derive",
|
|
173
158
|
]
|
|
174
159
|
|
|
175
160
|
[[package]]
|
|
176
161
|
name = "enum-iterator-derive"
|
|
177
|
-
version = "1.
|
|
162
|
+
version = "1.5.0"
|
|
178
163
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
-
checksum = "
|
|
164
|
+
checksum = "685adfa4d6f3d765a26bc5dbc936577de9abf756c1feeb3089b01dd395034842"
|
|
180
165
|
dependencies = [
|
|
181
166
|
"proc-macro2",
|
|
182
167
|
"quote",
|
|
183
|
-
"syn
|
|
168
|
+
"syn",
|
|
184
169
|
]
|
|
185
170
|
|
|
186
171
|
[[package]]
|
|
@@ -200,29 +185,9 @@ dependencies = [
|
|
|
200
185
|
|
|
201
186
|
[[package]]
|
|
202
187
|
name = "foldhash"
|
|
203
|
-
version = "0.
|
|
204
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
-
checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f"
|
|
206
|
-
|
|
207
|
-
[[package]]
|
|
208
|
-
name = "fxhash"
|
|
209
|
-
version = "0.2.1"
|
|
210
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
-
checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
|
|
212
|
-
dependencies = [
|
|
213
|
-
"byteorder",
|
|
214
|
-
]
|
|
215
|
-
|
|
216
|
-
[[package]]
|
|
217
|
-
name = "getrandom"
|
|
218
|
-
version = "0.1.16"
|
|
188
|
+
version = "0.2.0"
|
|
219
189
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
-
checksum = "
|
|
221
|
-
dependencies = [
|
|
222
|
-
"cfg-if",
|
|
223
|
-
"libc",
|
|
224
|
-
"wasi",
|
|
225
|
-
]
|
|
190
|
+
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
226
191
|
|
|
227
192
|
[[package]]
|
|
228
193
|
name = "glob"
|
|
@@ -232,9 +197,9 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
|
|
232
197
|
|
|
233
198
|
[[package]]
|
|
234
199
|
name = "hashbrown"
|
|
235
|
-
version = "0.
|
|
200
|
+
version = "0.16.0"
|
|
236
201
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
-
checksum = "
|
|
202
|
+
checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
|
|
238
203
|
dependencies = [
|
|
239
204
|
"allocator-api2",
|
|
240
205
|
"equivalent",
|
|
@@ -252,9 +217,9 @@ dependencies = [
|
|
|
252
217
|
|
|
253
218
|
[[package]]
|
|
254
219
|
name = "itoa"
|
|
255
|
-
version = "0.
|
|
220
|
+
version = "1.0.14"
|
|
256
221
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
-
checksum = "
|
|
222
|
+
checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
|
|
258
223
|
|
|
259
224
|
[[package]]
|
|
260
225
|
name = "lazy_static"
|
|
@@ -292,28 +257,27 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|
|
292
257
|
|
|
293
258
|
[[package]]
|
|
294
259
|
name = "lol_html"
|
|
295
|
-
version = "2.
|
|
260
|
+
version = "2.7.0"
|
|
296
261
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
297
|
-
checksum = "
|
|
262
|
+
checksum = "9a7ce8821eadcb5cb5c64dd0c9876a90f2676424020b41272e36c1dd04d20c59"
|
|
298
263
|
dependencies = [
|
|
299
|
-
"bitflags
|
|
264
|
+
"bitflags",
|
|
300
265
|
"cfg-if",
|
|
301
266
|
"cssparser",
|
|
302
267
|
"encoding_rs",
|
|
303
268
|
"hashbrown",
|
|
304
|
-
"lazy_static",
|
|
305
|
-
"lazycell",
|
|
306
269
|
"memchr",
|
|
307
270
|
"mime",
|
|
271
|
+
"precomputed-hash",
|
|
308
272
|
"selectors",
|
|
309
273
|
"thiserror",
|
|
310
274
|
]
|
|
311
275
|
|
|
312
276
|
[[package]]
|
|
313
277
|
name = "magnus"
|
|
314
|
-
version = "0.
|
|
278
|
+
version = "0.8.2"
|
|
315
279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
-
checksum = "
|
|
280
|
+
checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
|
|
317
281
|
dependencies = [
|
|
318
282
|
"magnus-macros",
|
|
319
283
|
"rb-sys",
|
|
@@ -323,26 +287,20 @@ dependencies = [
|
|
|
323
287
|
|
|
324
288
|
[[package]]
|
|
325
289
|
name = "magnus-macros"
|
|
326
|
-
version = "0.
|
|
290
|
+
version = "0.8.0"
|
|
327
291
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
-
checksum = "
|
|
292
|
+
checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
329
293
|
dependencies = [
|
|
330
294
|
"proc-macro2",
|
|
331
295
|
"quote",
|
|
332
|
-
"syn
|
|
296
|
+
"syn",
|
|
333
297
|
]
|
|
334
298
|
|
|
335
|
-
[[package]]
|
|
336
|
-
name = "matches"
|
|
337
|
-
version = "0.1.10"
|
|
338
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
-
checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"
|
|
340
|
-
|
|
341
299
|
[[package]]
|
|
342
300
|
name = "memchr"
|
|
343
|
-
version = "2.7.
|
|
301
|
+
version = "2.7.5"
|
|
344
302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
-
checksum = "
|
|
303
|
+
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
|
346
304
|
|
|
347
305
|
[[package]]
|
|
348
306
|
name = "mime"
|
|
@@ -357,10 +315,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
357
315
|
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
358
316
|
|
|
359
317
|
[[package]]
|
|
360
|
-
name = "
|
|
361
|
-
version = "0.
|
|
318
|
+
name = "new_debug_unreachable"
|
|
319
|
+
version = "1.0.6"
|
|
362
320
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
-
checksum = "
|
|
321
|
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
|
364
322
|
|
|
365
323
|
[[package]]
|
|
366
324
|
name = "nom"
|
|
@@ -374,20 +332,19 @@ dependencies = [
|
|
|
374
332
|
|
|
375
333
|
[[package]]
|
|
376
334
|
name = "phf"
|
|
377
|
-
version = "0.
|
|
335
|
+
version = "0.11.3"
|
|
378
336
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
-
checksum = "
|
|
337
|
+
checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
|
|
380
338
|
dependencies = [
|
|
381
339
|
"phf_macros",
|
|
382
340
|
"phf_shared",
|
|
383
|
-
"proc-macro-hack",
|
|
384
341
|
]
|
|
385
342
|
|
|
386
343
|
[[package]]
|
|
387
344
|
name = "phf_codegen"
|
|
388
|
-
version = "0.
|
|
345
|
+
version = "0.11.3"
|
|
389
346
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
|
-
checksum = "
|
|
347
|
+
checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
|
|
391
348
|
dependencies = [
|
|
392
349
|
"phf_generator",
|
|
393
350
|
"phf_shared",
|
|
@@ -395,9 +352,9 @@ dependencies = [
|
|
|
395
352
|
|
|
396
353
|
[[package]]
|
|
397
354
|
name = "phf_generator"
|
|
398
|
-
version = "0.
|
|
355
|
+
version = "0.11.3"
|
|
399
356
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
400
|
-
checksum = "
|
|
357
|
+
checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
|
|
401
358
|
dependencies = [
|
|
402
359
|
"phf_shared",
|
|
403
360
|
"rand",
|
|
@@ -405,48 +362,32 @@ dependencies = [
|
|
|
405
362
|
|
|
406
363
|
[[package]]
|
|
407
364
|
name = "phf_macros"
|
|
408
|
-
version = "0.
|
|
365
|
+
version = "0.11.3"
|
|
409
366
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
-
checksum = "
|
|
367
|
+
checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"
|
|
411
368
|
dependencies = [
|
|
412
369
|
"phf_generator",
|
|
413
370
|
"phf_shared",
|
|
414
|
-
"proc-macro-hack",
|
|
415
371
|
"proc-macro2",
|
|
416
372
|
"quote",
|
|
417
|
-
"syn
|
|
373
|
+
"syn",
|
|
418
374
|
]
|
|
419
375
|
|
|
420
376
|
[[package]]
|
|
421
377
|
name = "phf_shared"
|
|
422
|
-
version = "0.
|
|
378
|
+
version = "0.11.3"
|
|
423
379
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
-
checksum = "
|
|
380
|
+
checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
|
|
425
381
|
dependencies = [
|
|
426
382
|
"siphasher",
|
|
427
383
|
]
|
|
428
384
|
|
|
429
|
-
[[package]]
|
|
430
|
-
name = "ppv-lite86"
|
|
431
|
-
version = "0.2.20"
|
|
432
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
433
|
-
checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
|
|
434
|
-
dependencies = [
|
|
435
|
-
"zerocopy",
|
|
436
|
-
]
|
|
437
|
-
|
|
438
385
|
[[package]]
|
|
439
386
|
name = "precomputed-hash"
|
|
440
387
|
version = "0.1.1"
|
|
441
388
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
442
389
|
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
|
443
390
|
|
|
444
|
-
[[package]]
|
|
445
|
-
name = "proc-macro-hack"
|
|
446
|
-
version = "0.5.20+deprecated"
|
|
447
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
448
|
-
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
|
|
449
|
-
|
|
450
391
|
[[package]]
|
|
451
392
|
name = "proc-macro2"
|
|
452
393
|
version = "1.0.92"
|
|
@@ -467,69 +408,33 @@ dependencies = [
|
|
|
467
408
|
|
|
468
409
|
[[package]]
|
|
469
410
|
name = "rand"
|
|
470
|
-
version = "0.
|
|
471
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
472
|
-
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
|
473
|
-
dependencies = [
|
|
474
|
-
"getrandom",
|
|
475
|
-
"libc",
|
|
476
|
-
"rand_chacha",
|
|
477
|
-
"rand_core",
|
|
478
|
-
"rand_hc",
|
|
479
|
-
"rand_pcg",
|
|
480
|
-
]
|
|
481
|
-
|
|
482
|
-
[[package]]
|
|
483
|
-
name = "rand_chacha"
|
|
484
|
-
version = "0.2.2"
|
|
411
|
+
version = "0.8.5"
|
|
485
412
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
486
|
-
checksum = "
|
|
413
|
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
487
414
|
dependencies = [
|
|
488
|
-
"ppv-lite86",
|
|
489
415
|
"rand_core",
|
|
490
416
|
]
|
|
491
417
|
|
|
492
418
|
[[package]]
|
|
493
419
|
name = "rand_core"
|
|
494
|
-
version = "0.
|
|
495
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
-
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
|
497
|
-
dependencies = [
|
|
498
|
-
"getrandom",
|
|
499
|
-
]
|
|
500
|
-
|
|
501
|
-
[[package]]
|
|
502
|
-
name = "rand_hc"
|
|
503
|
-
version = "0.2.0"
|
|
504
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
505
|
-
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
|
506
|
-
dependencies = [
|
|
507
|
-
"rand_core",
|
|
508
|
-
]
|
|
509
|
-
|
|
510
|
-
[[package]]
|
|
511
|
-
name = "rand_pcg"
|
|
512
|
-
version = "0.2.1"
|
|
420
|
+
version = "0.6.4"
|
|
513
421
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
-
checksum = "
|
|
515
|
-
dependencies = [
|
|
516
|
-
"rand_core",
|
|
517
|
-
]
|
|
422
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
518
423
|
|
|
519
424
|
[[package]]
|
|
520
425
|
name = "rb-sys"
|
|
521
|
-
version = "0.9.
|
|
426
|
+
version = "0.9.124"
|
|
522
427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
523
|
-
checksum = "
|
|
428
|
+
checksum = "c85c4188462601e2aa1469def389c17228566f82ea72f137ed096f21591bc489"
|
|
524
429
|
dependencies = [
|
|
525
430
|
"rb-sys-build",
|
|
526
431
|
]
|
|
527
432
|
|
|
528
433
|
[[package]]
|
|
529
434
|
name = "rb-sys-build"
|
|
530
|
-
version = "0.9.
|
|
435
|
+
version = "0.9.124"
|
|
531
436
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
532
|
-
checksum = "
|
|
437
|
+
checksum = "568068db4102230882e6d4ae8de6632e224ca75fe5970f6e026a04e91ed635d3"
|
|
533
438
|
dependencies = [
|
|
534
439
|
"bindgen",
|
|
535
440
|
"lazy_static",
|
|
@@ -537,14 +442,14 @@ dependencies = [
|
|
|
537
442
|
"quote",
|
|
538
443
|
"regex",
|
|
539
444
|
"shell-words",
|
|
540
|
-
"syn
|
|
445
|
+
"syn",
|
|
541
446
|
]
|
|
542
447
|
|
|
543
448
|
[[package]]
|
|
544
449
|
name = "rb-sys-env"
|
|
545
|
-
version = "0.
|
|
450
|
+
version = "0.2.2"
|
|
546
451
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
547
|
-
checksum = "
|
|
452
|
+
checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
|
|
548
453
|
|
|
549
454
|
[[package]]
|
|
550
455
|
name = "regex"
|
|
@@ -582,32 +487,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
582
487
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
583
488
|
|
|
584
489
|
[[package]]
|
|
585
|
-
name = "
|
|
586
|
-
version = "
|
|
490
|
+
name = "rustc-hash"
|
|
491
|
+
version = "2.1.1"
|
|
587
492
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
588
|
-
checksum = "
|
|
589
|
-
dependencies = [
|
|
590
|
-
"semver",
|
|
591
|
-
]
|
|
493
|
+
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
|
|
592
494
|
|
|
593
495
|
[[package]]
|
|
594
496
|
name = "selectors"
|
|
595
|
-
version = "0.
|
|
497
|
+
version = "0.32.0"
|
|
596
498
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
597
|
-
checksum = "
|
|
499
|
+
checksum = "09975d3195f34dce9c7b381cb0f00c3c13381d4d3735c0f1a9c894b283b302ab"
|
|
598
500
|
dependencies = [
|
|
599
|
-
"bitflags
|
|
501
|
+
"bitflags",
|
|
600
502
|
"cssparser",
|
|
601
503
|
"derive_more",
|
|
602
|
-
"fxhash",
|
|
603
504
|
"log",
|
|
604
|
-
"
|
|
505
|
+
"new_debug_unreachable",
|
|
605
506
|
"phf",
|
|
606
507
|
"phf_codegen",
|
|
607
508
|
"precomputed-hash",
|
|
509
|
+
"rustc-hash 2.1.1",
|
|
608
510
|
"servo_arc",
|
|
609
511
|
"smallvec",
|
|
610
|
-
"thin-slice",
|
|
611
512
|
]
|
|
612
513
|
|
|
613
514
|
[[package]]
|
|
@@ -621,12 +522,6 @@ dependencies = [
|
|
|
621
522
|
"rb-sys",
|
|
622
523
|
]
|
|
623
524
|
|
|
624
|
-
[[package]]
|
|
625
|
-
name = "semver"
|
|
626
|
-
version = "1.0.24"
|
|
627
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
628
|
-
checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba"
|
|
629
|
-
|
|
630
525
|
[[package]]
|
|
631
526
|
name = "seq-macro"
|
|
632
527
|
version = "0.3.5"
|
|
@@ -635,11 +530,10 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
|
635
530
|
|
|
636
531
|
[[package]]
|
|
637
532
|
name = "servo_arc"
|
|
638
|
-
version = "0.
|
|
533
|
+
version = "0.4.0"
|
|
639
534
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
640
|
-
checksum = "
|
|
535
|
+
checksum = "ae65c4249478a2647db249fb43e23cec56a2c8974a427e7bd8cb5a1d0964921a"
|
|
641
536
|
dependencies = [
|
|
642
|
-
"nodrop",
|
|
643
537
|
"stable_deref_trait",
|
|
644
538
|
]
|
|
645
539
|
|
|
@@ -657,9 +551,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
|
657
551
|
|
|
658
552
|
[[package]]
|
|
659
553
|
name = "siphasher"
|
|
660
|
-
version = "0.
|
|
554
|
+
version = "1.0.1"
|
|
661
555
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
662
|
-
checksum = "
|
|
556
|
+
checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
|
|
663
557
|
|
|
664
558
|
[[package]]
|
|
665
559
|
name = "smallvec"
|
|
@@ -673,17 +567,6 @@ version = "1.2.0"
|
|
|
673
567
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
674
568
|
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
|
675
569
|
|
|
676
|
-
[[package]]
|
|
677
|
-
name = "syn"
|
|
678
|
-
version = "1.0.109"
|
|
679
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
680
|
-
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
|
681
|
-
dependencies = [
|
|
682
|
-
"proc-macro2",
|
|
683
|
-
"quote",
|
|
684
|
-
"unicode-ident",
|
|
685
|
-
]
|
|
686
|
-
|
|
687
570
|
[[package]]
|
|
688
571
|
name = "syn"
|
|
689
572
|
version = "2.0.93"
|
|
@@ -695,30 +578,24 @@ dependencies = [
|
|
|
695
578
|
"unicode-ident",
|
|
696
579
|
]
|
|
697
580
|
|
|
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
581
|
[[package]]
|
|
705
582
|
name = "thiserror"
|
|
706
|
-
version = "
|
|
583
|
+
version = "2.0.9"
|
|
707
584
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
708
|
-
checksum = "
|
|
585
|
+
checksum = "f072643fd0190df67a8bab670c20ef5d8737177d6ac6b2e9a236cb096206b2cc"
|
|
709
586
|
dependencies = [
|
|
710
587
|
"thiserror-impl",
|
|
711
588
|
]
|
|
712
589
|
|
|
713
590
|
[[package]]
|
|
714
591
|
name = "thiserror-impl"
|
|
715
|
-
version = "
|
|
592
|
+
version = "2.0.9"
|
|
716
593
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
717
|
-
checksum = "
|
|
594
|
+
checksum = "7b50fa271071aae2e6ee85f842e2e28ba8cd2c5fb67f11fcb1fd70b276f9e7d4"
|
|
718
595
|
dependencies = [
|
|
719
596
|
"proc-macro2",
|
|
720
597
|
"quote",
|
|
721
|
-
"syn
|
|
598
|
+
"syn",
|
|
722
599
|
]
|
|
723
600
|
|
|
724
601
|
[[package]]
|
|
@@ -727,12 +604,6 @@ version = "1.0.14"
|
|
|
727
604
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
728
605
|
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
|
729
606
|
|
|
730
|
-
[[package]]
|
|
731
|
-
name = "wasi"
|
|
732
|
-
version = "0.9.0+wasi-snapshot-preview1"
|
|
733
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
734
|
-
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
|
735
|
-
|
|
736
607
|
[[package]]
|
|
737
608
|
name = "windows-targets"
|
|
738
609
|
version = "0.52.6"
|
|
@@ -796,24 +667,3 @@ name = "windows_x86_64_msvc"
|
|
|
796
667
|
version = "0.52.6"
|
|
797
668
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
798
669
|
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
799
|
-
|
|
800
|
-
[[package]]
|
|
801
|
-
name = "zerocopy"
|
|
802
|
-
version = "0.7.35"
|
|
803
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
804
|
-
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
|
805
|
-
dependencies = [
|
|
806
|
-
"byteorder",
|
|
807
|
-
"zerocopy-derive",
|
|
808
|
-
]
|
|
809
|
-
|
|
810
|
-
[[package]]
|
|
811
|
-
name = "zerocopy-derive"
|
|
812
|
-
version = "0.7.35"
|
|
813
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
814
|
-
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
|
815
|
-
dependencies = [
|
|
816
|
-
"proc-macro2",
|
|
817
|
-
"quote",
|
|
818
|
-
"syn 2.0.93",
|
|
819
|
-
]
|
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`.
|
|
@@ -142,7 +142,7 @@ class MatchText
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def handle_text_chunk(text)
|
|
145
|
-
|
|
145
|
+
text.replace(text.to_s, text.sub(/@.+/, "<a href=\"www.yetto.app/#{Regexp.last_match}\">"))
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
|
data/ext/selma/Cargo.toml
CHANGED
|
@@ -6,13 +6,13 @@ rust-version = "1.75.0"
|
|
|
6
6
|
publish = false
|
|
7
7
|
|
|
8
8
|
[dependencies]
|
|
9
|
-
enum-iterator = "2.
|
|
9
|
+
enum-iterator = "2.3"
|
|
10
10
|
escapist = "0.0.2"
|
|
11
|
-
magnus = { version = "0.
|
|
11
|
+
magnus = { version = "0.8", features = ["rb-sys"] }
|
|
12
12
|
rb-sys = { version = "*", default-features = false, features = [
|
|
13
13
|
"stable-api-compiled-fallback",
|
|
14
14
|
] }
|
|
15
|
-
lol_html = "2.
|
|
15
|
+
lol_html = "2.7"
|
|
16
16
|
|
|
17
17
|
[lib]
|
|
18
18
|
name = "selma"
|
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.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen J. Torikian
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rb_sys
|
|
@@ -100,16 +100,19 @@ require_paths:
|
|
|
100
100
|
- lib
|
|
101
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- - "
|
|
103
|
+
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: '3.
|
|
105
|
+
version: '3.2'
|
|
106
|
+
- - "<"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '5'
|
|
106
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
110
|
requirements:
|
|
108
|
-
- - "
|
|
111
|
+
- - ">="
|
|
109
112
|
- !ruby/object:Gem::Version
|
|
110
113
|
version: '3.4'
|
|
111
114
|
requirements: []
|
|
112
|
-
rubygems_version:
|
|
115
|
+
rubygems_version: 4.0.3
|
|
113
116
|
specification_version: 4
|
|
114
117
|
summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
|
|
115
118
|
parser.
|