gitlab-glfm-markdown 0.0.4 → 0.0.7

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: 15bb159b4e9321b3b719ffed0fc072d5e04f4d1dc05a581f1f5337a4f2f343b9
4
- data.tar.gz: e890b7b8f8571d9a357a5da639b8f32391e3c2335e58ba92f6910e0da99047f6
3
+ metadata.gz: 48b56c14101ea15b4ba672e5861431d05e696f0046aec6d8cc89a64c65d85824
4
+ data.tar.gz: 40d8b4301bb2770b9569216a8895781eb58f84042a517c7162d59a2a266bff58
5
5
  SHA512:
6
- metadata.gz: 4db72a47857e49a83706b9eecee36c867b79e203473910be8302218c30b0bd58d92e12ebcadad8453bc1ac25a0345b1361ad1115f69629edf04ca2df6324cbcb
7
- data.tar.gz: b27a41977727a4698ca89633df0b1cbe4811980e928bc5ac0f822664c440783f2e9cf170c1c4245c1c991dcb76d5a2fa6ec25569a9fdcbda53494b50cc058412
6
+ metadata.gz: 6885207542d9292dbd77498298ed0328e074a09c391086aff93f6836c330d6a049209870dee9bbc0e53c32415045bcf9408d20f6bcd2e523386891fa63654718
7
+ data.tar.gz: bce40be207e9a3d2909c95b52c11824af32088f2b571a36468783b04f904ca88adfe5bf73f93f084c8cf1346468ae7a599354529c54eceb6114b83d8825a2129
data/Cargo.lock CHANGED
@@ -10,39 +10,53 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
10
10
 
11
11
  [[package]]
12
12
  name = "aho-corasick"
13
- version = "1.0.2"
13
+ version = "1.1.2"
14
14
  source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41"
15
+ checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
16
16
  dependencies = [
17
17
  "memchr",
18
18
  ]
19
19
 
20
20
  [[package]]
21
21
  name = "anstream"
22
- version = "0.3.2"
22
+ version = "0.4.0"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163"
24
+ checksum = "735917dc4838cee6a072ea1fd4b6e4e6ff00cbe95c7875967482961c36a0b68f"
25
25
  dependencies = [
26
26
  "anstyle",
27
27
  "anstyle-parse",
28
28
  "anstyle-query",
29
- "anstyle-wincon",
29
+ "anstyle-wincon 2.1.0",
30
30
  "colorchoice",
31
31
  "is-terminal",
32
32
  "utf8parse",
33
33
  ]
34
34
 
35
+ [[package]]
36
+ name = "anstream"
37
+ version = "0.6.4"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44"
40
+ dependencies = [
41
+ "anstyle",
42
+ "anstyle-parse",
43
+ "anstyle-query",
44
+ "anstyle-wincon 3.0.1",
45
+ "colorchoice",
46
+ "utf8parse",
47
+ ]
48
+
35
49
  [[package]]
36
50
  name = "anstyle"
37
- version = "1.0.1"
51
+ version = "1.0.4"
38
52
  source = "registry+https://github.com/rust-lang/crates.io-index"
39
- checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd"
53
+ checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87"
40
54
 
41
55
  [[package]]
42
56
  name = "anstyle-parse"
43
- version = "0.2.1"
57
+ version = "0.2.2"
44
58
  source = "registry+https://github.com/rust-lang/crates.io-index"
45
- checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333"
59
+ checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140"
46
60
  dependencies = [
47
61
  "utf8parse",
48
62
  ]
@@ -58,9 +72,19 @@ dependencies = [
58
72
 
59
73
  [[package]]
60
74
  name = "anstyle-wincon"
61
- version = "1.0.1"
75
+ version = "2.1.0"
62
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
63
- checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188"
77
+ checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd"
78
+ dependencies = [
79
+ "anstyle",
80
+ "windows-sys",
81
+ ]
82
+
83
+ [[package]]
84
+ name = "anstyle-wincon"
85
+ version = "3.0.1"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628"
64
88
  dependencies = [
65
89
  "anstyle",
66
90
  "windows-sys",
@@ -80,9 +104,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
80
104
 
81
105
  [[package]]
82
106
  name = "base64"
83
- version = "0.21.2"
107
+ version = "0.21.4"
84
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
85
- checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d"
109
+ checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
86
110
 
87
111
  [[package]]
88
112
  name = "bincode"
@@ -95,11 +119,11 @@ dependencies = [
95
119
 
96
120
  [[package]]
97
121
  name = "bindgen"
98
- version = "0.62.0"
122
+ version = "0.66.1"
99
123
  source = "registry+https://github.com/rust-lang/crates.io-index"
100
- checksum = "c6720a8b7b2d39dd533285ed438d458f65b31b5c257e6ac7bb3d7e82844dd722"
124
+ checksum = "f2b84e06fc203107bfbad243f4aba2af864eb7db3b1cf46ea0a023b0b433d2a7"
101
125
  dependencies = [
102
- "bitflags",
126
+ "bitflags 2.4.0",
103
127
  "cexpr",
104
128
  "clang-sys",
105
129
  "lazy_static",
@@ -110,7 +134,7 @@ dependencies = [
110
134
  "regex",
111
135
  "rustc-hash",
112
136
  "shlex",
113
- "syn 1.0.109",
137
+ "syn 2.0.38",
114
138
  ]
115
139
 
116
140
  [[package]]
@@ -134,11 +158,20 @@ version = "1.3.2"
134
158
  source = "registry+https://github.com/rust-lang/crates.io-index"
135
159
  checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
136
160
 
161
+ [[package]]
162
+ name = "bitflags"
163
+ version = "2.4.0"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
166
+
137
167
  [[package]]
138
168
  name = "cc"
139
- version = "1.0.79"
169
+ version = "1.0.83"
140
170
  source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
171
+ checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
172
+ dependencies = [
173
+ "libc",
174
+ ]
142
175
 
143
176
  [[package]]
144
177
  name = "cexpr"
@@ -168,24 +201,22 @@ dependencies = [
168
201
 
169
202
  [[package]]
170
203
  name = "clap"
171
- version = "4.3.5"
204
+ version = "4.4.6"
172
205
  source = "registry+https://github.com/rust-lang/crates.io-index"
173
- checksum = "2686c4115cb0810d9a984776e197823d08ec94f176549a89a9efded477c456dc"
206
+ checksum = "d04704f56c2cde07f43e8e2c154b43f216dc5c92fc98ada720177362f953b956"
174
207
  dependencies = [
175
208
  "clap_builder",
176
209
  "clap_derive",
177
- "once_cell",
178
210
  ]
179
211
 
180
212
  [[package]]
181
213
  name = "clap_builder"
182
- version = "4.3.5"
214
+ version = "4.4.6"
183
215
  source = "registry+https://github.com/rust-lang/crates.io-index"
184
- checksum = "2e53afce1efce6ed1f633cf0e57612fe51db54a1ee4fd8f8503d078fe02d69ae"
216
+ checksum = "0e231faeaca65ebd1ea3c737966bf858971cd38c3849107aa3ea7de90a804e45"
185
217
  dependencies = [
186
- "anstream",
218
+ "anstream 0.6.4",
187
219
  "anstyle",
188
- "bitflags",
189
220
  "clap_lex",
190
221
  "strsim",
191
222
  "terminal_size",
@@ -193,21 +224,21 @@ dependencies = [
193
224
 
194
225
  [[package]]
195
226
  name = "clap_derive"
196
- version = "4.3.2"
227
+ version = "4.4.2"
197
228
  source = "registry+https://github.com/rust-lang/crates.io-index"
198
- checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f"
229
+ checksum = "0862016ff20d69b84ef8247369fabf5c008a7417002411897d40ee1f4532b873"
199
230
  dependencies = [
200
231
  "heck",
201
232
  "proc-macro2",
202
233
  "quote",
203
- "syn 2.0.18",
234
+ "syn 2.0.38",
204
235
  ]
205
236
 
206
237
  [[package]]
207
238
  name = "clap_lex"
208
- version = "0.5.0"
239
+ version = "0.5.1"
209
240
  source = "registry+https://github.com/rust-lang/crates.io-index"
210
- checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
241
+ checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961"
211
242
 
212
243
  [[package]]
213
244
  name = "colorchoice"
@@ -217,8 +248,9 @@ checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
217
248
 
218
249
  [[package]]
219
250
  name = "comrak"
220
- version = "0.18.0"
221
- source = "git+https://github.com/kivikakk/comrak.git#91e5240e4a2d878ab699d84bf123075ced74bf23"
251
+ version = "0.19.0"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "82c995deda3bfdebd07d0e2af79e9da13e4b1be652b21a746f3f5b24bf0a49ef"
222
254
  dependencies = [
223
255
  "clap",
224
256
  "derive_builder",
@@ -278,6 +310,12 @@ dependencies = [
278
310
  "syn 1.0.109",
279
311
  ]
280
312
 
313
+ [[package]]
314
+ name = "deranged"
315
+ version = "0.3.8"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946"
318
+
281
319
  [[package]]
282
320
  name = "derive_builder"
283
321
  version = "0.12.0"
@@ -311,9 +349,9 @@ dependencies = [
311
349
 
312
350
  [[package]]
313
351
  name = "deunicode"
314
- version = "0.4.3"
352
+ version = "0.4.4"
315
353
  source = "registry+https://github.com/rust-lang/crates.io-index"
316
- checksum = "850878694b7933ca4c9569d30a34b55031b9b139ee1fc7b94a527c4ef960d690"
354
+ checksum = "d95203a6a50906215a502507c0f879a0ce7ff205a6111e2db2a5ef8e4bb92e43"
317
355
 
318
356
  [[package]]
319
357
  name = "entities"
@@ -323,30 +361,19 @@ checksum = "b5320ae4c3782150d900b79807611a59a99fc9a1d61d686faafc24b93fc8d7ca"
323
361
 
324
362
  [[package]]
325
363
  name = "errno"
326
- version = "0.3.1"
364
+ version = "0.3.5"
327
365
  source = "registry+https://github.com/rust-lang/crates.io-index"
328
- checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a"
366
+ checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860"
329
367
  dependencies = [
330
- "errno-dragonfly",
331
368
  "libc",
332
369
  "windows-sys",
333
370
  ]
334
371
 
335
- [[package]]
336
- name = "errno-dragonfly"
337
- version = "0.1.2"
338
- source = "registry+https://github.com/rust-lang/crates.io-index"
339
- checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
340
- dependencies = [
341
- "cc",
342
- "libc",
343
- ]
344
-
345
372
  [[package]]
346
373
  name = "fancy-regex"
347
- version = "0.7.1"
374
+ version = "0.11.0"
348
375
  source = "registry+https://github.com/rust-lang/crates.io-index"
349
- checksum = "9d6b8560a05112eb52f04b00e5d3790c0dd75d9d980eb8a122fb23b92a623ccf"
376
+ checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2"
350
377
  dependencies = [
351
378
  "bit-set",
352
379
  "regex",
@@ -354,9 +381,9 @@ dependencies = [
354
381
 
355
382
  [[package]]
356
383
  name = "flate2"
357
- version = "1.0.26"
384
+ version = "1.0.27"
358
385
  source = "registry+https://github.com/rust-lang/crates.io-index"
359
- checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
386
+ checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010"
360
387
  dependencies = [
361
388
  "crc32fast",
362
389
  "miniz_oxide",
@@ -372,9 +399,11 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
372
399
  name = "glfm_markdown"
373
400
  version = "0.0.3"
374
401
  dependencies = [
402
+ "anstream 0.4.0",
375
403
  "argparse",
376
404
  "comrak",
377
405
  "magnus",
406
+ "rb-sys",
378
407
  ]
379
408
 
380
409
  [[package]]
@@ -397,18 +426,9 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
397
426
 
398
427
  [[package]]
399
428
  name = "hermit-abi"
400
- version = "0.3.1"
429
+ version = "0.3.3"
401
430
  source = "registry+https://github.com/rust-lang/crates.io-index"
402
- checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
403
-
404
- [[package]]
405
- name = "home"
406
- version = "0.5.5"
407
- source = "registry+https://github.com/rust-lang/crates.io-index"
408
- checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb"
409
- dependencies = [
410
- "windows-sys",
411
- ]
431
+ checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
412
432
 
413
433
  [[package]]
414
434
  name = "ident_case"
@@ -426,34 +446,22 @@ dependencies = [
426
446
  "hashbrown",
427
447
  ]
428
448
 
429
- [[package]]
430
- name = "io-lifetimes"
431
- version = "1.0.11"
432
- source = "registry+https://github.com/rust-lang/crates.io-index"
433
- checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
434
- dependencies = [
435
- "hermit-abi",
436
- "libc",
437
- "windows-sys",
438
- ]
439
-
440
449
  [[package]]
441
450
  name = "is-terminal"
442
- version = "0.4.7"
451
+ version = "0.4.9"
443
452
  source = "registry+https://github.com/rust-lang/crates.io-index"
444
- checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f"
453
+ checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
445
454
  dependencies = [
446
455
  "hermit-abi",
447
- "io-lifetimes",
448
456
  "rustix",
449
457
  "windows-sys",
450
458
  ]
451
459
 
452
460
  [[package]]
453
461
  name = "itoa"
454
- version = "1.0.6"
462
+ version = "1.0.9"
455
463
  source = "registry+https://github.com/rust-lang/crates.io-index"
456
- checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6"
464
+ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
457
465
 
458
466
  [[package]]
459
467
  name = "lazy_static"
@@ -469,9 +477,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
469
477
 
470
478
  [[package]]
471
479
  name = "libc"
472
- version = "0.2.146"
480
+ version = "0.2.149"
473
481
  source = "registry+https://github.com/rust-lang/crates.io-index"
474
- checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b"
482
+ checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b"
475
483
 
476
484
  [[package]]
477
485
  name = "libloading"
@@ -500,15 +508,15 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
500
508
 
501
509
  [[package]]
502
510
  name = "linux-raw-sys"
503
- version = "0.3.8"
511
+ version = "0.4.10"
504
512
  source = "registry+https://github.com/rust-lang/crates.io-index"
505
- checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
513
+ checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f"
506
514
 
507
515
  [[package]]
508
516
  name = "magnus"
509
- version = "0.4.4"
517
+ version = "0.5.5"
510
518
  source = "registry+https://github.com/rust-lang/crates.io-index"
511
- checksum = "fc87660cd7daa49fddbfd524c836de54d5c927d520cd163f43700c5087c57d6c"
519
+ checksum = "5b7a37670bc433d081ef5846d5589381fabd8d3410ad3b59faa6b1b4c9c3cbce"
512
520
  dependencies = [
513
521
  "magnus-macros",
514
522
  "rb-sys",
@@ -517,9 +525,9 @@ dependencies = [
517
525
 
518
526
  [[package]]
519
527
  name = "magnus-macros"
520
- version = "0.3.0"
528
+ version = "0.4.1"
521
529
  source = "registry+https://github.com/rust-lang/crates.io-index"
522
- checksum = "206cb23bfeea05180c97522ef6a3e52a4eb17b0ed2f30ee3ca9c4f994d2378ae"
530
+ checksum = "6cc17af1d45442c011aa579d727ec6cff8a69aea8a6bbad26736e7112d749bfb"
523
531
  dependencies = [
524
532
  "proc-macro2",
525
533
  "quote",
@@ -528,9 +536,9 @@ dependencies = [
528
536
 
529
537
  [[package]]
530
538
  name = "memchr"
531
- version = "2.5.0"
539
+ version = "2.6.4"
532
540
  source = "registry+https://github.com/rust-lang/crates.io-index"
533
- checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
541
+ checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
534
542
 
535
543
  [[package]]
536
544
  name = "minimal-lexical"
@@ -569,7 +577,7 @@ version = "6.4.0"
569
577
  source = "registry+https://github.com/rust-lang/crates.io-index"
570
578
  checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f"
571
579
  dependencies = [
572
- "bitflags",
580
+ "bitflags 1.3.2",
573
581
  "libc",
574
582
  "once_cell",
575
583
  "onig_sys",
@@ -599,9 +607,9 @@ checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
599
607
 
600
608
  [[package]]
601
609
  name = "plist"
602
- version = "1.4.3"
610
+ version = "1.5.0"
603
611
  source = "registry+https://github.com/rust-lang/crates.io-index"
604
- checksum = "9bd9647b268a3d3e14ff09c23201133a62589c658db02bb7388c7246aafe0590"
612
+ checksum = "bdc0001cfea3db57a2e24bc0d818e9e20e554b5f97fabb9bc231dc240269ae06"
605
613
  dependencies = [
606
614
  "base64",
607
615
  "indexmap",
@@ -613,45 +621,45 @@ dependencies = [
613
621
 
614
622
  [[package]]
615
623
  name = "proc-macro2"
616
- version = "1.0.60"
624
+ version = "1.0.69"
617
625
  source = "registry+https://github.com/rust-lang/crates.io-index"
618
- checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406"
626
+ checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
619
627
  dependencies = [
620
628
  "unicode-ident",
621
629
  ]
622
630
 
623
631
  [[package]]
624
632
  name = "quick-xml"
625
- version = "0.28.2"
633
+ version = "0.29.0"
626
634
  source = "registry+https://github.com/rust-lang/crates.io-index"
627
- checksum = "0ce5e73202a820a31f8a0ee32ada5e21029c81fd9e3ebf668a40832e4219d9d1"
635
+ checksum = "81b9228215d82c7b61490fec1de287136b5de6f5700f6e58ea9ad61a7964ca51"
628
636
  dependencies = [
629
637
  "memchr",
630
638
  ]
631
639
 
632
640
  [[package]]
633
641
  name = "quote"
634
- version = "1.0.28"
642
+ version = "1.0.33"
635
643
  source = "registry+https://github.com/rust-lang/crates.io-index"
636
- checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488"
644
+ checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
637
645
  dependencies = [
638
646
  "proc-macro2",
639
647
  ]
640
648
 
641
649
  [[package]]
642
650
  name = "rb-sys"
643
- version = "0.9.79"
651
+ version = "0.9.82"
644
652
  source = "registry+https://github.com/rust-lang/crates.io-index"
645
- checksum = "939fb78db3e4f26665c1d4c7b91ca66d3578335a19aba552d4a6445811d07072"
653
+ checksum = "a3e6bf79bf4c711917cacfaf46dfab4314dbfdd89a8ee3ec4b98336cd23f1ebf"
646
654
  dependencies = [
647
655
  "rb-sys-build",
648
656
  ]
649
657
 
650
658
  [[package]]
651
659
  name = "rb-sys-build"
652
- version = "0.9.79"
660
+ version = "0.9.82"
653
661
  source = "registry+https://github.com/rust-lang/crates.io-index"
654
- checksum = "335a95eb0420d52fa94ef12019df3c2c250c6b19cbb3c60bd05cb7e9c362072c"
662
+ checksum = "5482a1ed4cde58dddaf162b6aebcb5c25645822547832b8be101f2acd40bcdd6"
655
663
  dependencies = [
656
664
  "bindgen",
657
665
  "lazy_static",
@@ -659,7 +667,7 @@ dependencies = [
659
667
  "quote",
660
668
  "regex",
661
669
  "shell-words",
662
- "syn 1.0.109",
670
+ "syn 2.0.38",
663
671
  ]
664
672
 
665
673
  [[package]]
@@ -670,26 +678,38 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
670
678
 
671
679
  [[package]]
672
680
  name = "regex"
673
- version = "1.8.4"
681
+ version = "1.10.0"
682
+ source = "registry+https://github.com/rust-lang/crates.io-index"
683
+ checksum = "d119d7c7ca818f8a53c300863d4f87566aac09943aef5b355bb83969dae75d87"
684
+ dependencies = [
685
+ "aho-corasick",
686
+ "memchr",
687
+ "regex-automata",
688
+ "regex-syntax 0.8.1",
689
+ ]
690
+
691
+ [[package]]
692
+ name = "regex-automata"
693
+ version = "0.4.1"
674
694
  source = "registry+https://github.com/rust-lang/crates.io-index"
675
- checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f"
695
+ checksum = "465c6fc0621e4abc4187a2bda0937bfd4f722c2730b29562e19689ea796c9a4b"
676
696
  dependencies = [
677
697
  "aho-corasick",
678
698
  "memchr",
679
- "regex-syntax 0.7.2",
699
+ "regex-syntax 0.8.1",
680
700
  ]
681
701
 
682
702
  [[package]]
683
703
  name = "regex-syntax"
684
- version = "0.6.29"
704
+ version = "0.7.5"
685
705
  source = "registry+https://github.com/rust-lang/crates.io-index"
686
- checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
706
+ checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da"
687
707
 
688
708
  [[package]]
689
709
  name = "regex-syntax"
690
- version = "0.7.2"
710
+ version = "0.8.1"
691
711
  source = "registry+https://github.com/rust-lang/crates.io-index"
692
- checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
712
+ checksum = "56d84fdd47036b038fc80dd333d10b6aab10d5d31f4a366e20014def75328d33"
693
713
 
694
714
  [[package]]
695
715
  name = "rustc-hash"
@@ -699,13 +719,12 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
699
719
 
700
720
  [[package]]
701
721
  name = "rustix"
702
- version = "0.37.20"
722
+ version = "0.38.18"
703
723
  source = "registry+https://github.com/rust-lang/crates.io-index"
704
- checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0"
724
+ checksum = "5a74ee2d7c2581cd139b42447d7d9389b889bdaad3a73f1ebb16f2a3237bb19c"
705
725
  dependencies = [
706
- "bitflags",
726
+ "bitflags 2.4.0",
707
727
  "errno",
708
- "io-lifetimes",
709
728
  "libc",
710
729
  "linux-raw-sys",
711
730
  "windows-sys",
@@ -713,9 +732,9 @@ dependencies = [
713
732
 
714
733
  [[package]]
715
734
  name = "ryu"
716
- version = "1.0.13"
735
+ version = "1.0.15"
717
736
  source = "registry+https://github.com/rust-lang/crates.io-index"
718
- checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041"
737
+ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
719
738
 
720
739
  [[package]]
721
740
  name = "safemem"
@@ -734,26 +753,29 @@ dependencies = [
734
753
 
735
754
  [[package]]
736
755
  name = "serde"
737
- version = "1.0.164"
756
+ version = "1.0.188"
738
757
  source = "registry+https://github.com/rust-lang/crates.io-index"
739
- checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d"
758
+ checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e"
759
+ dependencies = [
760
+ "serde_derive",
761
+ ]
740
762
 
741
763
  [[package]]
742
764
  name = "serde_derive"
743
- version = "1.0.164"
765
+ version = "1.0.188"
744
766
  source = "registry+https://github.com/rust-lang/crates.io-index"
745
- checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68"
767
+ checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2"
746
768
  dependencies = [
747
769
  "proc-macro2",
748
770
  "quote",
749
- "syn 2.0.18",
771
+ "syn 2.0.38",
750
772
  ]
751
773
 
752
774
  [[package]]
753
775
  name = "serde_json"
754
- version = "1.0.97"
776
+ version = "1.0.107"
755
777
  source = "registry+https://github.com/rust-lang/crates.io-index"
756
- checksum = "bdf3bf93142acad5821c99197022e170842cdbc1c30482b98750c688c640842a"
778
+ checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65"
757
779
  dependencies = [
758
780
  "itoa",
759
781
  "ryu",
@@ -768,9 +790,9 @@ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
768
790
 
769
791
  [[package]]
770
792
  name = "shlex"
771
- version = "1.1.0"
793
+ version = "1.2.0"
772
794
  source = "registry+https://github.com/rust-lang/crates.io-index"
773
- checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
795
+ checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
774
796
 
775
797
  [[package]]
776
798
  name = "slug"
@@ -800,9 +822,9 @@ dependencies = [
800
822
 
801
823
  [[package]]
802
824
  name = "syn"
803
- version = "2.0.18"
825
+ version = "2.0.38"
804
826
  source = "registry+https://github.com/rust-lang/crates.io-index"
805
- checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e"
827
+ checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b"
806
828
  dependencies = [
807
829
  "proc-macro2",
808
830
  "quote",
@@ -811,22 +833,20 @@ dependencies = [
811
833
 
812
834
  [[package]]
813
835
  name = "syntect"
814
- version = "5.0.0"
836
+ version = "5.1.0"
815
837
  source = "registry+https://github.com/rust-lang/crates.io-index"
816
- checksum = "c6c454c27d9d7d9a84c7803aaa3c50cd088d2906fe3c6e42da3209aa623576a8"
838
+ checksum = "e02b4b303bf8d08bfeb0445cba5068a3d306b6baece1d5582171a9bf49188f91"
817
839
  dependencies = [
818
840
  "bincode",
819
- "bitflags",
841
+ "bitflags 1.3.2",
820
842
  "fancy-regex",
821
843
  "flate2",
822
844
  "fnv",
823
- "lazy_static",
824
845
  "once_cell",
825
846
  "onig",
826
847
  "plist",
827
- "regex-syntax 0.6.29",
848
+ "regex-syntax 0.7.5",
828
849
  "serde",
829
- "serde_derive",
830
850
  "serde_json",
831
851
  "thiserror",
832
852
  "walkdir",
@@ -835,9 +855,9 @@ dependencies = [
835
855
 
836
856
  [[package]]
837
857
  name = "terminal_size"
838
- version = "0.2.6"
858
+ version = "0.3.0"
839
859
  source = "registry+https://github.com/rust-lang/crates.io-index"
840
- checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237"
860
+ checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7"
841
861
  dependencies = [
842
862
  "rustix",
843
863
  "windows-sys",
@@ -845,30 +865,31 @@ dependencies = [
845
865
 
846
866
  [[package]]
847
867
  name = "thiserror"
848
- version = "1.0.40"
868
+ version = "1.0.49"
849
869
  source = "registry+https://github.com/rust-lang/crates.io-index"
850
- checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac"
870
+ checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4"
851
871
  dependencies = [
852
872
  "thiserror-impl",
853
873
  ]
854
874
 
855
875
  [[package]]
856
876
  name = "thiserror-impl"
857
- version = "1.0.40"
877
+ version = "1.0.49"
858
878
  source = "registry+https://github.com/rust-lang/crates.io-index"
859
- checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f"
879
+ checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc"
860
880
  dependencies = [
861
881
  "proc-macro2",
862
882
  "quote",
863
- "syn 2.0.18",
883
+ "syn 2.0.38",
864
884
  ]
865
885
 
866
886
  [[package]]
867
887
  name = "time"
868
- version = "0.3.22"
888
+ version = "0.3.29"
869
889
  source = "registry+https://github.com/rust-lang/crates.io-index"
870
- checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd"
890
+ checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe"
871
891
  dependencies = [
892
+ "deranged",
872
893
  "itoa",
873
894
  "serde",
874
895
  "time-core",
@@ -877,15 +898,15 @@ dependencies = [
877
898
 
878
899
  [[package]]
879
900
  name = "time-core"
880
- version = "0.1.1"
901
+ version = "0.1.2"
881
902
  source = "registry+https://github.com/rust-lang/crates.io-index"
882
- checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
903
+ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
883
904
 
884
905
  [[package]]
885
906
  name = "time-macros"
886
- version = "0.2.9"
907
+ version = "0.2.15"
887
908
  source = "registry+https://github.com/rust-lang/crates.io-index"
888
- checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b"
909
+ checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20"
889
910
  dependencies = [
890
911
  "time-core",
891
912
  ]
@@ -898,9 +919,9 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
898
919
 
899
920
  [[package]]
900
921
  name = "unicode-ident"
901
- version = "1.0.9"
922
+ version = "1.0.12"
902
923
  source = "registry+https://github.com/rust-lang/crates.io-index"
903
- checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0"
924
+ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
904
925
 
905
926
  [[package]]
906
927
  name = "unicode_categories"
@@ -916,9 +937,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
916
937
 
917
938
  [[package]]
918
939
  name = "walkdir"
919
- version = "2.3.3"
940
+ version = "2.4.0"
920
941
  source = "registry+https://github.com/rust-lang/crates.io-index"
921
- checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698"
942
+ checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee"
922
943
  dependencies = [
923
944
  "same-file",
924
945
  "winapi-util",
@@ -942,9 +963,9 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
942
963
 
943
964
  [[package]]
944
965
  name = "winapi-util"
945
- version = "0.1.5"
966
+ version = "0.1.6"
946
967
  source = "registry+https://github.com/rust-lang/crates.io-index"
947
- checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
968
+ checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
948
969
  dependencies = [
949
970
  "winapi",
950
971
  ]
@@ -966,9 +987,9 @@ dependencies = [
966
987
 
967
988
  [[package]]
968
989
  name = "windows-targets"
969
- version = "0.48.0"
990
+ version = "0.48.5"
970
991
  source = "registry+https://github.com/rust-lang/crates.io-index"
971
- checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
992
+ checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
972
993
  dependencies = [
973
994
  "windows_aarch64_gnullvm",
974
995
  "windows_aarch64_msvc",
@@ -981,54 +1002,51 @@ dependencies = [
981
1002
 
982
1003
  [[package]]
983
1004
  name = "windows_aarch64_gnullvm"
984
- version = "0.48.0"
1005
+ version = "0.48.5"
985
1006
  source = "registry+https://github.com/rust-lang/crates.io-index"
986
- checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
1007
+ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
987
1008
 
988
1009
  [[package]]
989
1010
  name = "windows_aarch64_msvc"
990
- version = "0.48.0"
1011
+ version = "0.48.5"
991
1012
  source = "registry+https://github.com/rust-lang/crates.io-index"
992
- checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
1013
+ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
993
1014
 
994
1015
  [[package]]
995
1016
  name = "windows_i686_gnu"
996
- version = "0.48.0"
1017
+ version = "0.48.5"
997
1018
  source = "registry+https://github.com/rust-lang/crates.io-index"
998
- checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
1019
+ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
999
1020
 
1000
1021
  [[package]]
1001
1022
  name = "windows_i686_msvc"
1002
- version = "0.48.0"
1023
+ version = "0.48.5"
1003
1024
  source = "registry+https://github.com/rust-lang/crates.io-index"
1004
- checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
1025
+ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
1005
1026
 
1006
1027
  [[package]]
1007
1028
  name = "windows_x86_64_gnu"
1008
- version = "0.48.0"
1029
+ version = "0.48.5"
1009
1030
  source = "registry+https://github.com/rust-lang/crates.io-index"
1010
- checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
1031
+ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
1011
1032
 
1012
1033
  [[package]]
1013
1034
  name = "windows_x86_64_gnullvm"
1014
- version = "0.48.0"
1035
+ version = "0.48.5"
1015
1036
  source = "registry+https://github.com/rust-lang/crates.io-index"
1016
- checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
1037
+ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
1017
1038
 
1018
1039
  [[package]]
1019
1040
  name = "windows_x86_64_msvc"
1020
- version = "0.48.0"
1041
+ version = "0.48.5"
1021
1042
  source = "registry+https://github.com/rust-lang/crates.io-index"
1022
- checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
1043
+ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
1023
1044
 
1024
1045
  [[package]]
1025
1046
  name = "xdg"
1026
- version = "2.5.0"
1047
+ version = "2.5.2"
1027
1048
  source = "registry+https://github.com/rust-lang/crates.io-index"
1028
- checksum = "688597db5a750e9cad4511cb94729a078e274308099a0382b5b8203bbc767fee"
1029
- dependencies = [
1030
- "home",
1031
- ]
1049
+ checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546"
1032
1050
 
1033
1051
  [[package]]
1034
1052
  name = "yaml-rust"
data/LICENSE CHANGED
@@ -1,6 +1,13 @@
1
- The MIT License (MIT)
1
+ Copyright (c) 2011-present GitLab B.V.
2
2
 
3
- Copyright (c) 2022-present GitLab B.V.
3
+ Portions of this software are licensed as follows:
4
+
5
+ * All content residing under the "doc/" directory of this repository is licensed under "Creative Commons: CC BY-SA 4.0 license".
6
+ * All content that resides under the "ee/" directory of this repository, if that directory exists, is licensed under the license defined in "ee/LICENSE".
7
+ * All content that resides under the "jh/" directory of this repository, if that directory exists, is licensed under the license defined in "jh/LICENSE".
8
+ * All client-side JavaScript (when served directly or after being compiled, arranged, augmented, or combined), is licensed under the "MIT Expat" license.
9
+ * All third party components incorporated into the GitLab Software are licensed under the original license provided by the owner of the applicable component.
10
+ * Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.
4
11
 
5
12
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
13
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # GitLab Flavored Markdown
2
2
 
3
+ [![Pipeline status](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/badges/main/pipeline.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/commits/main)
4
+ [![Latest Release](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/badges/release.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/releases)
5
+
3
6
  Implements GLFM (as used by GitLab) using a Rust-based markdown parser.
4
7
 
5
8
  This project is currently EXPLORATORY, so anything and everything will change.
@@ -36,6 +39,26 @@ cargo run --bin glfm_markdown -- --sourcepos
36
39
 
37
40
  There is a VSCode workspace that allows you to `Debug executable`
38
41
 
42
+ When developing another project locally and using `gitlab-glfm-markdown` by linking
43
+ directly to the gem's source directory, make sure that you're using the same version
44
+ of Ruby for the project and the gem. Otherwise you can see unexplained errors when
45
+ calling into the gem.
46
+
47
+ ### Releasing a new version
48
+
49
+ To release a new version:
50
+
51
+ 1. Update `lib/glfm_markdown/version.rb` with the version number.
52
+ 1. Update `CHANGELOG.md` with the changes in the release.
53
+ 1. Create a merge request and merge it to `master`.
54
+ 1. Push a new tag to the repository.
55
+
56
+ The new version with precompiled, native gems will automatically be
57
+ published to [RubyGems](https://rubygems.org/gems/gitlab-glfm-markdown) when the
58
+ pipeline for the tag completes.
59
+
39
60
  ## Contributing
40
61
 
41
62
  Bug reports and merge requests are welcome on GitLab at https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown.
63
+
64
+ Please refer to [CONTRIBUTING](CONTRIBUTING.md) for more details.
@@ -12,6 +12,8 @@ crate-type = ["cdylib"]
12
12
  name = "glfm_markdown"
13
13
 
14
14
  [dependencies]
15
- magnus = { version = "0.4" }
15
+ magnus = { version = "0.5" }
16
+ rb-sys = { version = "0.9.82", default-features = false, features = ["stable-api-compiled-fallback"] }
16
17
  argparse = { version = ">= 0.2.1" }
17
- comrak = { git = "https://github.com/kivikakk/comrak.git" }
18
+ comrak = { version = "0.19.0" }
19
+ anstream = { version = "0.4" } # TODO keep until we upgrade to rustc 1.70.0 or newer
@@ -3,4 +3,4 @@
3
3
  require 'mkmf'
4
4
  require 'rb_sys/mkmf'
5
5
 
6
- create_rust_makefile('glfm_markdown/glfm_markdown')
6
+ create_rust_makefile('glfm_markdown')
@@ -3,7 +3,7 @@ use magnus::{define_module, function, prelude::*, Error, RHash, Symbol};
3
3
  mod glfm;
4
4
  use glfm::{render, RenderOptions};
5
5
 
6
- pub fn render_to_html(text: String, options: RHash) -> String {
6
+ pub fn render_to_html_rs(text: String, options: RHash) -> String {
7
7
  let sourcepos: bool = options.lookup::<_, bool>(Symbol::new("sourcepos")).unwrap();
8
8
  let debug: bool = options.lookup::<_, bool>(Symbol::new("debug")).unwrap();
9
9
  let render_options = RenderOptions { sourcepos, debug };
@@ -15,7 +15,7 @@ pub fn render_to_html(text: String, options: RHash) -> String {
15
15
  fn init() -> Result<(), Error> {
16
16
  let module = define_module("GLFMMarkdown")?;
17
17
 
18
- module.define_singleton_method("render_to_html", function!(render_to_html, 2))?;
18
+ module.define_singleton_method("render_to_html_rs", function!(render_to_html_rs, 2))?;
19
19
 
20
20
  Ok(())
21
21
  }
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ def load_rust_extension
4
+ ruby_version = /(\d+\.\d+)/.match(RUBY_VERSION)
5
+ require_relative "./#{ruby_version}/glfm_markdown"
6
+ rescue LoadError
7
+ require 'glfm_markdown/glfm_markdown'
8
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.7'
5
5
  end
data/lib/glfm_markdown.rb CHANGED
@@ -1,17 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'glfm_markdown/version'
4
- require_relative 'glfm_markdown/glfm_markdown'
4
+ require_relative 'glfm_markdown/loader'
5
5
 
6
- DEFAULT_OPTIONS = {
7
- sourcepos: true,
8
- debug: false
9
- }.freeze
6
+ load_rust_extension
7
+
8
+ DEFAULT_OPTIONS = { sourcepos: true, debug: false }.freeze
10
9
 
11
10
  module GLFMMarkdown
12
11
  class << self
13
- def to_html(text, options: {})
14
- render_to_html(text, DEFAULT_OPTIONS.merge(options))
12
+ def to_html(markdown, options: {})
13
+ raise TypeError, 'markdown must be a String' unless markdown.is_a?(String)
14
+ raise TypeError, 'markdown must be UTF-8 encoded' unless markdown.encoding.name == "UTF-8"
15
+ raise TypeError, 'options must be a Hash' unless options.is_a?(Hash)
16
+
17
+ render_to_html_rs(markdown, DEFAULT_OPTIONS.merge(options))
15
18
  end
16
19
  end
17
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-glfm-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Walker
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-08 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.3'
83
- description: GLFM Markdown
83
+ description: Markdown processing for GitLab Flavored Markdown
84
84
  email:
85
85
  - bwalker@gitlab.com
86
86
  executables: []
@@ -97,13 +97,15 @@ files:
97
97
  - ext/glfm_markdown/src/lib.rs
98
98
  - ext/glfm_markdown/src/main.rs
99
99
  - lib/glfm_markdown.rb
100
+ - lib/glfm_markdown/loader.rb
100
101
  - lib/glfm_markdown/version.rb
101
102
  homepage: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
102
- licenses: []
103
+ licenses:
104
+ - MIT
103
105
  metadata:
104
106
  homepage_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
105
107
  source_code_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown
106
- changelog_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/blob/main/CHANGELOG.md
108
+ changelog_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/releases
107
109
  post_install_message:
108
110
  rdoc_options: []
109
111
  require_paths:
@@ -112,14 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
114
  requirements:
113
115
  - - ">="
114
116
  - !ruby/object:Gem::Version
115
- version: 3.0.0
117
+ version: '2.7'
116
118
  required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  requirements:
118
120
  - - ">="
119
121
  - !ruby/object:Gem::Version
120
- version: 3.2.33
122
+ version: '0'
121
123
  requirements: []
122
- rubygems_version: 3.4.10
124
+ rubygems_version: 3.3.26
123
125
  signing_key:
124
126
  specification_version: 4
125
127
  summary: GLFM Markdown