bs62 0.1.5 → 0.1.7
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 +98 -159
- data/ext/bs62/Cargo.toml +1 -1
- data/ext/bs62/src/lib.rs +10 -7
- data/lib/bs62/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1ac107de93a17303c9e4e23fdabdd970c81772f104fb2637f991c47182ce81e
|
|
4
|
+
data.tar.gz: 58ff3c6e9097faf4c780d123f376b8a4e95b3ff17ebb50f790125b905e847245
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9998d1cb2a9f55ef4f6739827ea43807ec7b11c70171b269de628d6f566ac0e010e94a815949384bb76bb19624a1f49052fd44d332ed7d4ccc24b2c3c48fc35a
|
|
7
|
+
data.tar.gz: 1982764bfe65068a08928bc9904fd9e91fbee481fdf574c6dcbf85cf770eaf5d8c53323ad498370e53beda5ffc8dcd66925f70bc8ee12a2e24da0acb0178eed2
|
data/Cargo.lock
CHANGED
|
@@ -4,47 +4,47 @@ version = 3
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "addr2line"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.25.1"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"gimli",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[[package]]
|
|
15
|
-
name = "
|
|
16
|
-
version = "
|
|
15
|
+
name = "adler2"
|
|
16
|
+
version = "2.0.1"
|
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
-
checksum = "
|
|
18
|
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
19
19
|
|
|
20
20
|
[[package]]
|
|
21
21
|
name = "aho-corasick"
|
|
22
|
-
version = "1.1.
|
|
22
|
+
version = "1.1.4"
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
-
checksum = "
|
|
24
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
25
25
|
dependencies = [
|
|
26
26
|
"memchr",
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
[[package]]
|
|
30
30
|
name = "autocfg"
|
|
31
|
-
version = "1.
|
|
31
|
+
version = "1.5.0"
|
|
32
32
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
-
checksum = "
|
|
33
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
34
34
|
|
|
35
35
|
[[package]]
|
|
36
36
|
name = "backtrace"
|
|
37
|
-
version = "0.3.
|
|
37
|
+
version = "0.3.76"
|
|
38
38
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
-
checksum = "
|
|
39
|
+
checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6"
|
|
40
40
|
dependencies = [
|
|
41
41
|
"addr2line",
|
|
42
|
-
"cc",
|
|
43
42
|
"cfg-if",
|
|
44
43
|
"libc",
|
|
45
44
|
"miniz_oxide",
|
|
46
45
|
"object",
|
|
47
46
|
"rustc-demangle",
|
|
47
|
+
"windows-link",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
50
|
[[package]]
|
|
@@ -61,29 +61,29 @@ dependencies = [
|
|
|
61
61
|
|
|
62
62
|
[[package]]
|
|
63
63
|
name = "bindgen"
|
|
64
|
-
version = "0.69.
|
|
64
|
+
version = "0.69.5"
|
|
65
65
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
-
checksum = "
|
|
66
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
|
67
67
|
dependencies = [
|
|
68
68
|
"bitflags",
|
|
69
69
|
"cexpr",
|
|
70
70
|
"clang-sys",
|
|
71
|
+
"itertools",
|
|
71
72
|
"lazy_static",
|
|
72
73
|
"lazycell",
|
|
73
|
-
"peeking_take_while",
|
|
74
74
|
"proc-macro2",
|
|
75
75
|
"quote",
|
|
76
76
|
"regex",
|
|
77
77
|
"rustc-hash",
|
|
78
78
|
"shlex",
|
|
79
|
-
"syn 2.0.
|
|
79
|
+
"syn 2.0.111",
|
|
80
80
|
]
|
|
81
81
|
|
|
82
82
|
[[package]]
|
|
83
83
|
name = "bitflags"
|
|
84
|
-
version = "2.
|
|
84
|
+
version = "2.10.0"
|
|
85
85
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
-
checksum = "
|
|
86
|
+
checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
|
|
87
87
|
|
|
88
88
|
[[package]]
|
|
89
89
|
name = "bs62"
|
|
@@ -93,15 +93,6 @@ dependencies = [
|
|
|
93
93
|
"magnus",
|
|
94
94
|
]
|
|
95
95
|
|
|
96
|
-
[[package]]
|
|
97
|
-
name = "cc"
|
|
98
|
-
version = "1.0.83"
|
|
99
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
-
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
|
|
101
|
-
dependencies = [
|
|
102
|
-
"libc",
|
|
103
|
-
]
|
|
104
|
-
|
|
105
96
|
[[package]]
|
|
106
97
|
name = "cexpr"
|
|
107
98
|
version = "0.6.0"
|
|
@@ -113,21 +104,27 @@ dependencies = [
|
|
|
113
104
|
|
|
114
105
|
[[package]]
|
|
115
106
|
name = "cfg-if"
|
|
116
|
-
version = "1.0.
|
|
107
|
+
version = "1.0.4"
|
|
117
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
118
|
-
checksum = "
|
|
109
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
119
110
|
|
|
120
111
|
[[package]]
|
|
121
112
|
name = "clang-sys"
|
|
122
|
-
version = "1.
|
|
113
|
+
version = "1.8.1"
|
|
123
114
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
|
-
checksum = "
|
|
115
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
|
125
116
|
dependencies = [
|
|
126
117
|
"glob",
|
|
127
118
|
"libc",
|
|
128
119
|
"libloading",
|
|
129
120
|
]
|
|
130
121
|
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "either"
|
|
124
|
+
version = "1.15.0"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
127
|
+
|
|
131
128
|
[[package]]
|
|
132
129
|
name = "failure"
|
|
133
130
|
version = "0.1.8"
|
|
@@ -152,21 +149,30 @@ dependencies = [
|
|
|
152
149
|
|
|
153
150
|
[[package]]
|
|
154
151
|
name = "gimli"
|
|
155
|
-
version = "0.
|
|
152
|
+
version = "0.32.3"
|
|
156
153
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
157
|
-
checksum = "
|
|
154
|
+
checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
|
|
158
155
|
|
|
159
156
|
[[package]]
|
|
160
157
|
name = "glob"
|
|
161
|
-
version = "0.3.
|
|
158
|
+
version = "0.3.3"
|
|
159
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
+
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "itertools"
|
|
164
|
+
version = "0.12.1"
|
|
162
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
-
checksum = "
|
|
166
|
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
|
167
|
+
dependencies = [
|
|
168
|
+
"either",
|
|
169
|
+
]
|
|
164
170
|
|
|
165
171
|
[[package]]
|
|
166
172
|
name = "lazy_static"
|
|
167
|
-
version = "1.
|
|
173
|
+
version = "1.5.0"
|
|
168
174
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
|
-
checksum = "
|
|
175
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
170
176
|
|
|
171
177
|
[[package]]
|
|
172
178
|
name = "lazycell"
|
|
@@ -176,25 +182,25 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
|
176
182
|
|
|
177
183
|
[[package]]
|
|
178
184
|
name = "libc"
|
|
179
|
-
version = "0.2.
|
|
185
|
+
version = "0.2.178"
|
|
180
186
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
-
checksum = "
|
|
187
|
+
checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
|
|
182
188
|
|
|
183
189
|
[[package]]
|
|
184
190
|
name = "libloading"
|
|
185
|
-
version = "0.8.
|
|
191
|
+
version = "0.8.9"
|
|
186
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
-
checksum = "
|
|
193
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
188
194
|
dependencies = [
|
|
189
195
|
"cfg-if",
|
|
190
|
-
"windows-
|
|
196
|
+
"windows-link",
|
|
191
197
|
]
|
|
192
198
|
|
|
193
199
|
[[package]]
|
|
194
200
|
name = "magnus"
|
|
195
|
-
version = "0.
|
|
201
|
+
version = "0.8.2"
|
|
196
202
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
-
checksum = "
|
|
203
|
+
checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
|
|
198
204
|
dependencies = [
|
|
199
205
|
"magnus-macros",
|
|
200
206
|
"rb-sys",
|
|
@@ -204,20 +210,20 @@ dependencies = [
|
|
|
204
210
|
|
|
205
211
|
[[package]]
|
|
206
212
|
name = "magnus-macros"
|
|
207
|
-
version = "0.
|
|
213
|
+
version = "0.8.0"
|
|
208
214
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
-
checksum = "
|
|
215
|
+
checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
210
216
|
dependencies = [
|
|
211
217
|
"proc-macro2",
|
|
212
218
|
"quote",
|
|
213
|
-
"syn 2.0.
|
|
219
|
+
"syn 2.0.111",
|
|
214
220
|
]
|
|
215
221
|
|
|
216
222
|
[[package]]
|
|
217
223
|
name = "memchr"
|
|
218
|
-
version = "2.7.
|
|
224
|
+
version = "2.7.6"
|
|
219
225
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
-
checksum = "
|
|
226
|
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
|
221
227
|
|
|
222
228
|
[[package]]
|
|
223
229
|
name = "minimal-lexical"
|
|
@@ -227,11 +233,11 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
|
227
233
|
|
|
228
234
|
[[package]]
|
|
229
235
|
name = "miniz_oxide"
|
|
230
|
-
version = "0.
|
|
236
|
+
version = "0.8.9"
|
|
231
237
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
-
checksum = "
|
|
238
|
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
|
233
239
|
dependencies = [
|
|
234
|
-
"
|
|
240
|
+
"adler2",
|
|
235
241
|
]
|
|
236
242
|
|
|
237
243
|
[[package]]
|
|
@@ -257,70 +263,63 @@ dependencies = [
|
|
|
257
263
|
|
|
258
264
|
[[package]]
|
|
259
265
|
name = "num-integer"
|
|
260
|
-
version = "0.1.
|
|
266
|
+
version = "0.1.46"
|
|
261
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
-
checksum = "
|
|
268
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
263
269
|
dependencies = [
|
|
264
|
-
"autocfg",
|
|
265
270
|
"num-traits",
|
|
266
271
|
]
|
|
267
272
|
|
|
268
273
|
[[package]]
|
|
269
274
|
name = "num-traits"
|
|
270
|
-
version = "0.2.
|
|
275
|
+
version = "0.2.19"
|
|
271
276
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
272
|
-
checksum = "
|
|
277
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
273
278
|
dependencies = [
|
|
274
279
|
"autocfg",
|
|
275
280
|
]
|
|
276
281
|
|
|
277
282
|
[[package]]
|
|
278
283
|
name = "object"
|
|
279
|
-
version = "0.
|
|
284
|
+
version = "0.37.3"
|
|
280
285
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
-
checksum = "
|
|
286
|
+
checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
|
|
282
287
|
dependencies = [
|
|
283
288
|
"memchr",
|
|
284
289
|
]
|
|
285
290
|
|
|
286
|
-
[[package]]
|
|
287
|
-
name = "peeking_take_while"
|
|
288
|
-
version = "0.1.2"
|
|
289
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
-
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
|
|
291
|
-
|
|
292
291
|
[[package]]
|
|
293
292
|
name = "proc-macro2"
|
|
294
|
-
version = "1.0.
|
|
293
|
+
version = "1.0.103"
|
|
295
294
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
-
checksum = "
|
|
295
|
+
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
|
|
297
296
|
dependencies = [
|
|
298
297
|
"unicode-ident",
|
|
299
298
|
]
|
|
300
299
|
|
|
301
300
|
[[package]]
|
|
302
301
|
name = "quote"
|
|
303
|
-
version = "1.0.
|
|
302
|
+
version = "1.0.42"
|
|
304
303
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
305
|
-
checksum = "
|
|
304
|
+
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
|
|
306
305
|
dependencies = [
|
|
307
306
|
"proc-macro2",
|
|
308
307
|
]
|
|
309
308
|
|
|
310
309
|
[[package]]
|
|
311
310
|
name = "rb-sys"
|
|
312
|
-
version = "0.9.
|
|
311
|
+
version = "0.9.123"
|
|
313
312
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
-
checksum = "
|
|
313
|
+
checksum = "45fb1a185af97ee456f1c9e56dbe6e2e662bec4fdeaf83c4c28e0e6adfb18816"
|
|
315
314
|
dependencies = [
|
|
316
315
|
"rb-sys-build",
|
|
317
316
|
]
|
|
318
317
|
|
|
319
318
|
[[package]]
|
|
320
319
|
name = "rb-sys-build"
|
|
321
|
-
version = "0.9.
|
|
320
|
+
version = "0.9.123"
|
|
322
321
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
323
|
-
checksum = "
|
|
322
|
+
checksum = "a58ebd02d7a6033e6a5f6f8d150c1e9f16506039092b84a73e6bedce6d3adf41"
|
|
324
323
|
dependencies = [
|
|
325
324
|
"bindgen",
|
|
326
325
|
"lazy_static",
|
|
@@ -328,20 +327,20 @@ dependencies = [
|
|
|
328
327
|
"quote",
|
|
329
328
|
"regex",
|
|
330
329
|
"shell-words",
|
|
331
|
-
"syn 2.0.
|
|
330
|
+
"syn 2.0.111",
|
|
332
331
|
]
|
|
333
332
|
|
|
334
333
|
[[package]]
|
|
335
334
|
name = "rb-sys-env"
|
|
336
|
-
version = "0.
|
|
335
|
+
version = "0.2.2"
|
|
337
336
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
338
|
-
checksum = "
|
|
337
|
+
checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
|
|
339
338
|
|
|
340
339
|
[[package]]
|
|
341
340
|
name = "regex"
|
|
342
|
-
version = "1.
|
|
341
|
+
version = "1.12.2"
|
|
343
342
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
344
|
-
checksum = "
|
|
343
|
+
checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
|
|
345
344
|
dependencies = [
|
|
346
345
|
"aho-corasick",
|
|
347
346
|
"memchr",
|
|
@@ -351,9 +350,9 @@ dependencies = [
|
|
|
351
350
|
|
|
352
351
|
[[package]]
|
|
353
352
|
name = "regex-automata"
|
|
354
|
-
version = "0.4.
|
|
353
|
+
version = "0.4.13"
|
|
355
354
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
356
|
-
checksum = "
|
|
355
|
+
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
|
|
357
356
|
dependencies = [
|
|
358
357
|
"aho-corasick",
|
|
359
358
|
"memchr",
|
|
@@ -362,15 +361,15 @@ dependencies = [
|
|
|
362
361
|
|
|
363
362
|
[[package]]
|
|
364
363
|
name = "regex-syntax"
|
|
365
|
-
version = "0.8.
|
|
364
|
+
version = "0.8.8"
|
|
366
365
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
-
checksum = "
|
|
366
|
+
checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
|
|
368
367
|
|
|
369
368
|
[[package]]
|
|
370
369
|
name = "rustc-demangle"
|
|
371
|
-
version = "0.1.
|
|
370
|
+
version = "0.1.26"
|
|
372
371
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
373
|
-
checksum = "
|
|
372
|
+
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
|
|
374
373
|
|
|
375
374
|
[[package]]
|
|
376
375
|
name = "rustc-hash"
|
|
@@ -380,21 +379,21 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
|
380
379
|
|
|
381
380
|
[[package]]
|
|
382
381
|
name = "seq-macro"
|
|
383
|
-
version = "0.3.
|
|
382
|
+
version = "0.3.6"
|
|
384
383
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
-
checksum = "
|
|
384
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
386
385
|
|
|
387
386
|
[[package]]
|
|
388
387
|
name = "shell-words"
|
|
389
|
-
version = "1.1.
|
|
388
|
+
version = "1.1.1"
|
|
390
389
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
391
|
-
checksum = "
|
|
390
|
+
checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
|
|
392
391
|
|
|
393
392
|
[[package]]
|
|
394
393
|
name = "shlex"
|
|
395
|
-
version = "1.
|
|
394
|
+
version = "1.3.0"
|
|
396
395
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
397
|
-
checksum = "
|
|
396
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
398
397
|
|
|
399
398
|
[[package]]
|
|
400
399
|
name = "syn"
|
|
@@ -409,9 +408,9 @@ dependencies = [
|
|
|
409
408
|
|
|
410
409
|
[[package]]
|
|
411
410
|
name = "syn"
|
|
412
|
-
version = "2.0.
|
|
411
|
+
version = "2.0.111"
|
|
413
412
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
|
-
checksum = "
|
|
413
|
+
checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
|
|
415
414
|
dependencies = [
|
|
416
415
|
"proc-macro2",
|
|
417
416
|
"quote",
|
|
@@ -432,78 +431,18 @@ dependencies = [
|
|
|
432
431
|
|
|
433
432
|
[[package]]
|
|
434
433
|
name = "unicode-ident"
|
|
435
|
-
version = "1.0.
|
|
434
|
+
version = "1.0.22"
|
|
436
435
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
437
|
-
checksum = "
|
|
436
|
+
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
438
437
|
|
|
439
438
|
[[package]]
|
|
440
439
|
name = "unicode-xid"
|
|
441
|
-
version = "0.2.
|
|
442
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
|
-
checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
|
|
444
|
-
|
|
445
|
-
[[package]]
|
|
446
|
-
name = "windows-sys"
|
|
447
|
-
version = "0.48.0"
|
|
448
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
449
|
-
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
|
450
|
-
dependencies = [
|
|
451
|
-
"windows-targets",
|
|
452
|
-
]
|
|
453
|
-
|
|
454
|
-
[[package]]
|
|
455
|
-
name = "windows-targets"
|
|
456
|
-
version = "0.48.5"
|
|
457
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
-
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
|
459
|
-
dependencies = [
|
|
460
|
-
"windows_aarch64_gnullvm",
|
|
461
|
-
"windows_aarch64_msvc",
|
|
462
|
-
"windows_i686_gnu",
|
|
463
|
-
"windows_i686_msvc",
|
|
464
|
-
"windows_x86_64_gnu",
|
|
465
|
-
"windows_x86_64_gnullvm",
|
|
466
|
-
"windows_x86_64_msvc",
|
|
467
|
-
]
|
|
468
|
-
|
|
469
|
-
[[package]]
|
|
470
|
-
name = "windows_aarch64_gnullvm"
|
|
471
|
-
version = "0.48.5"
|
|
472
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
473
|
-
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
|
474
|
-
|
|
475
|
-
[[package]]
|
|
476
|
-
name = "windows_aarch64_msvc"
|
|
477
|
-
version = "0.48.5"
|
|
478
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
-
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
|
480
|
-
|
|
481
|
-
[[package]]
|
|
482
|
-
name = "windows_i686_gnu"
|
|
483
|
-
version = "0.48.5"
|
|
484
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
485
|
-
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
|
486
|
-
|
|
487
|
-
[[package]]
|
|
488
|
-
name = "windows_i686_msvc"
|
|
489
|
-
version = "0.48.5"
|
|
490
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
491
|
-
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
|
492
|
-
|
|
493
|
-
[[package]]
|
|
494
|
-
name = "windows_x86_64_gnu"
|
|
495
|
-
version = "0.48.5"
|
|
496
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
|
-
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
|
498
|
-
|
|
499
|
-
[[package]]
|
|
500
|
-
name = "windows_x86_64_gnullvm"
|
|
501
|
-
version = "0.48.5"
|
|
440
|
+
version = "0.2.6"
|
|
502
441
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
-
checksum = "
|
|
442
|
+
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
|
504
443
|
|
|
505
444
|
[[package]]
|
|
506
|
-
name = "
|
|
507
|
-
version = "0.
|
|
445
|
+
name = "windows-link"
|
|
446
|
+
version = "0.2.1"
|
|
508
447
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
509
|
-
checksum = "
|
|
448
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
data/ext/bs62/Cargo.toml
CHANGED
data/ext/bs62/src/lib.rs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
extern crate core;
|
|
2
2
|
|
|
3
3
|
use base_62::base62;
|
|
4
|
-
use magnus::{
|
|
4
|
+
use magnus::{function, Error, Object, Ruby};
|
|
5
5
|
|
|
6
6
|
#[magnus::wrap(class = "Bs62")]
|
|
7
7
|
struct Bs62 {}
|
|
@@ -13,17 +13,20 @@ impl Bs62 {
|
|
|
13
13
|
pub fn perform_decode(rb_str: String) -> Result<Vec<u8>, Error> {
|
|
14
14
|
match base62::decode(rb_str.as_str()) {
|
|
15
15
|
Ok(v) => Ok(v),
|
|
16
|
-
Err(e) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
Err(e) => {
|
|
17
|
+
let ruby = Ruby::get().unwrap();
|
|
18
|
+
Err(magnus::Error::new(
|
|
19
|
+
ruby.exception_runtime_error(),
|
|
20
|
+
format!("Could not call decode: {:?}", e),
|
|
21
|
+
))
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
#[magnus::init]
|
|
25
|
-
fn init() -> Result<(), Error> {
|
|
26
|
-
let c_bs62 = define_class("Bs62",
|
|
28
|
+
fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
29
|
+
let c_bs62 = ruby.define_class("Bs62", ruby.class_object())?;
|
|
27
30
|
|
|
28
31
|
c_bs62.define_singleton_method("perform_encode", function!(Bs62::perform_encode, 1))?;
|
|
29
32
|
c_bs62.define_singleton_method("perform_decode", function!(Bs62::perform_decode, 1))?;
|
data/lib/bs62/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bs62
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen J. Torikian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|