bs62 0.1.0 → 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 +124 -108
- data/Cargo.toml +1 -0
- data/ext/bs62/Cargo.toml +3 -1
- data/ext/bs62/src/lib.rs +10 -7
- data/lib/bs62/version.rb +1 -1
- data/lib/bs62.rb +4 -1
- metadata +8 -7
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.
|
|
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.
|
|
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",
|
|
79
|
+
"syn 2.0.111",
|
|
80
80
|
]
|
|
81
81
|
|
|
82
82
|
[[package]]
|
|
83
83
|
name = "bitflags"
|
|
84
|
-
version = "
|
|
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,12 +93,6 @@ dependencies = [
|
|
|
93
93
|
"magnus",
|
|
94
94
|
]
|
|
95
95
|
|
|
96
|
-
[[package]]
|
|
97
|
-
name = "cc"
|
|
98
|
-
version = "1.0.79"
|
|
99
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
-
checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
|
|
101
|
-
|
|
102
96
|
[[package]]
|
|
103
97
|
name = "cexpr"
|
|
104
98
|
version = "0.6.0"
|
|
@@ -110,21 +104,27 @@ dependencies = [
|
|
|
110
104
|
|
|
111
105
|
[[package]]
|
|
112
106
|
name = "cfg-if"
|
|
113
|
-
version = "1.0.
|
|
107
|
+
version = "1.0.4"
|
|
114
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
-
checksum = "
|
|
109
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
116
110
|
|
|
117
111
|
[[package]]
|
|
118
112
|
name = "clang-sys"
|
|
119
|
-
version = "1.
|
|
113
|
+
version = "1.8.1"
|
|
120
114
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
121
|
-
checksum = "
|
|
115
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
|
122
116
|
dependencies = [
|
|
123
117
|
"glob",
|
|
124
118
|
"libc",
|
|
125
119
|
"libloading",
|
|
126
120
|
]
|
|
127
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
|
+
|
|
128
128
|
[[package]]
|
|
129
129
|
name = "failure"
|
|
130
130
|
version = "0.1.8"
|
|
@@ -143,27 +143,36 @@ checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
|
|
|
143
143
|
dependencies = [
|
|
144
144
|
"proc-macro2",
|
|
145
145
|
"quote",
|
|
146
|
-
"syn",
|
|
146
|
+
"syn 1.0.109",
|
|
147
147
|
"synstructure",
|
|
148
148
|
]
|
|
149
149
|
|
|
150
150
|
[[package]]
|
|
151
151
|
name = "gimli"
|
|
152
|
-
version = "0.
|
|
152
|
+
version = "0.32.3"
|
|
153
153
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
-
checksum = "
|
|
154
|
+
checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
|
|
155
155
|
|
|
156
156
|
[[package]]
|
|
157
157
|
name = "glob"
|
|
158
|
-
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"
|
|
159
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
-
checksum = "
|
|
166
|
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
|
167
|
+
dependencies = [
|
|
168
|
+
"either",
|
|
169
|
+
]
|
|
161
170
|
|
|
162
171
|
[[package]]
|
|
163
172
|
name = "lazy_static"
|
|
164
|
-
version = "1.
|
|
173
|
+
version = "1.5.0"
|
|
165
174
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
166
|
-
checksum = "
|
|
175
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
167
176
|
|
|
168
177
|
[[package]]
|
|
169
178
|
name = "lazycell"
|
|
@@ -173,47 +182,48 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
|
173
182
|
|
|
174
183
|
[[package]]
|
|
175
184
|
name = "libc"
|
|
176
|
-
version = "0.2.
|
|
185
|
+
version = "0.2.178"
|
|
177
186
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
-
checksum = "
|
|
187
|
+
checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
|
|
179
188
|
|
|
180
189
|
[[package]]
|
|
181
190
|
name = "libloading"
|
|
182
|
-
version = "0.
|
|
191
|
+
version = "0.8.9"
|
|
183
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
184
|
-
checksum = "
|
|
193
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
185
194
|
dependencies = [
|
|
186
195
|
"cfg-if",
|
|
187
|
-
"
|
|
196
|
+
"windows-link",
|
|
188
197
|
]
|
|
189
198
|
|
|
190
199
|
[[package]]
|
|
191
200
|
name = "magnus"
|
|
192
|
-
version = "0.
|
|
201
|
+
version = "0.8.2"
|
|
193
202
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
194
|
-
checksum = "
|
|
203
|
+
checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
|
|
195
204
|
dependencies = [
|
|
196
205
|
"magnus-macros",
|
|
197
206
|
"rb-sys",
|
|
198
207
|
"rb-sys-env",
|
|
208
|
+
"seq-macro",
|
|
199
209
|
]
|
|
200
210
|
|
|
201
211
|
[[package]]
|
|
202
212
|
name = "magnus-macros"
|
|
203
|
-
version = "0.
|
|
213
|
+
version = "0.8.0"
|
|
204
214
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
-
checksum = "
|
|
215
|
+
checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
206
216
|
dependencies = [
|
|
207
217
|
"proc-macro2",
|
|
208
218
|
"quote",
|
|
209
|
-
"syn",
|
|
219
|
+
"syn 2.0.111",
|
|
210
220
|
]
|
|
211
221
|
|
|
212
222
|
[[package]]
|
|
213
223
|
name = "memchr"
|
|
214
|
-
version = "2.
|
|
224
|
+
version = "2.7.6"
|
|
215
225
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
-
checksum = "
|
|
226
|
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
|
217
227
|
|
|
218
228
|
[[package]]
|
|
219
229
|
name = "minimal-lexical"
|
|
@@ -223,11 +233,11 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
|
223
233
|
|
|
224
234
|
[[package]]
|
|
225
235
|
name = "miniz_oxide"
|
|
226
|
-
version = "0.
|
|
236
|
+
version = "0.8.9"
|
|
227
237
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
228
|
-
checksum = "
|
|
238
|
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
|
229
239
|
dependencies = [
|
|
230
|
-
"
|
|
240
|
+
"adler2",
|
|
231
241
|
]
|
|
232
242
|
|
|
233
243
|
[[package]]
|
|
@@ -253,70 +263,63 @@ dependencies = [
|
|
|
253
263
|
|
|
254
264
|
[[package]]
|
|
255
265
|
name = "num-integer"
|
|
256
|
-
version = "0.1.
|
|
266
|
+
version = "0.1.46"
|
|
257
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
258
|
-
checksum = "
|
|
268
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
259
269
|
dependencies = [
|
|
260
|
-
"autocfg",
|
|
261
270
|
"num-traits",
|
|
262
271
|
]
|
|
263
272
|
|
|
264
273
|
[[package]]
|
|
265
274
|
name = "num-traits"
|
|
266
|
-
version = "0.2.
|
|
275
|
+
version = "0.2.19"
|
|
267
276
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
-
checksum = "
|
|
277
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
269
278
|
dependencies = [
|
|
270
279
|
"autocfg",
|
|
271
280
|
]
|
|
272
281
|
|
|
273
282
|
[[package]]
|
|
274
283
|
name = "object"
|
|
275
|
-
version = "0.
|
|
284
|
+
version = "0.37.3"
|
|
276
285
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
277
|
-
checksum = "
|
|
286
|
+
checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
|
|
278
287
|
dependencies = [
|
|
279
288
|
"memchr",
|
|
280
289
|
]
|
|
281
290
|
|
|
282
|
-
[[package]]
|
|
283
|
-
name = "peeking_take_while"
|
|
284
|
-
version = "0.1.2"
|
|
285
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
-
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
|
|
287
|
-
|
|
288
291
|
[[package]]
|
|
289
292
|
name = "proc-macro2"
|
|
290
|
-
version = "1.0.
|
|
293
|
+
version = "1.0.103"
|
|
291
294
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
-
checksum = "
|
|
295
|
+
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
|
|
293
296
|
dependencies = [
|
|
294
297
|
"unicode-ident",
|
|
295
298
|
]
|
|
296
299
|
|
|
297
300
|
[[package]]
|
|
298
301
|
name = "quote"
|
|
299
|
-
version = "1.0.
|
|
302
|
+
version = "1.0.42"
|
|
300
303
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
-
checksum = "
|
|
304
|
+
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
|
|
302
305
|
dependencies = [
|
|
303
306
|
"proc-macro2",
|
|
304
307
|
]
|
|
305
308
|
|
|
306
309
|
[[package]]
|
|
307
310
|
name = "rb-sys"
|
|
308
|
-
version = "0.9.
|
|
311
|
+
version = "0.9.123"
|
|
309
312
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
310
|
-
checksum = "
|
|
313
|
+
checksum = "45fb1a185af97ee456f1c9e56dbe6e2e662bec4fdeaf83c4c28e0e6adfb18816"
|
|
311
314
|
dependencies = [
|
|
312
315
|
"rb-sys-build",
|
|
313
316
|
]
|
|
314
317
|
|
|
315
318
|
[[package]]
|
|
316
319
|
name = "rb-sys-build"
|
|
317
|
-
version = "0.9.
|
|
320
|
+
version = "0.9.123"
|
|
318
321
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
-
checksum = "
|
|
322
|
+
checksum = "a58ebd02d7a6033e6a5f6f8d150c1e9f16506039092b84a73e6bedce6d3adf41"
|
|
320
323
|
dependencies = [
|
|
321
324
|
"bindgen",
|
|
322
325
|
"lazy_static",
|
|
@@ -324,20 +327,32 @@ dependencies = [
|
|
|
324
327
|
"quote",
|
|
325
328
|
"regex",
|
|
326
329
|
"shell-words",
|
|
327
|
-
"syn",
|
|
330
|
+
"syn 2.0.111",
|
|
328
331
|
]
|
|
329
332
|
|
|
330
333
|
[[package]]
|
|
331
334
|
name = "rb-sys-env"
|
|
332
|
-
version = "0.
|
|
335
|
+
version = "0.2.2"
|
|
333
336
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
-
checksum = "
|
|
337
|
+
checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
|
|
335
338
|
|
|
336
339
|
[[package]]
|
|
337
340
|
name = "regex"
|
|
338
|
-
version = "1.
|
|
341
|
+
version = "1.12.2"
|
|
342
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
+
checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
|
|
344
|
+
dependencies = [
|
|
345
|
+
"aho-corasick",
|
|
346
|
+
"memchr",
|
|
347
|
+
"regex-automata",
|
|
348
|
+
"regex-syntax",
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
[[package]]
|
|
352
|
+
name = "regex-automata"
|
|
353
|
+
version = "0.4.13"
|
|
339
354
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
|
-
checksum = "
|
|
355
|
+
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
|
|
341
356
|
dependencies = [
|
|
342
357
|
"aho-corasick",
|
|
343
358
|
"memchr",
|
|
@@ -346,15 +361,15 @@ dependencies = [
|
|
|
346
361
|
|
|
347
362
|
[[package]]
|
|
348
363
|
name = "regex-syntax"
|
|
349
|
-
version = "0.
|
|
364
|
+
version = "0.8.8"
|
|
350
365
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
-
checksum = "
|
|
366
|
+
checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
|
|
352
367
|
|
|
353
368
|
[[package]]
|
|
354
369
|
name = "rustc-demangle"
|
|
355
|
-
version = "0.1.
|
|
370
|
+
version = "0.1.26"
|
|
356
371
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
357
|
-
checksum = "
|
|
372
|
+
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
|
|
358
373
|
|
|
359
374
|
[[package]]
|
|
360
375
|
name = "rustc-hash"
|
|
@@ -362,17 +377,23 @@ version = "1.1.0"
|
|
|
362
377
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
378
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
364
379
|
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "seq-macro"
|
|
382
|
+
version = "0.3.6"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
385
|
+
|
|
365
386
|
[[package]]
|
|
366
387
|
name = "shell-words"
|
|
367
|
-
version = "1.1.
|
|
388
|
+
version = "1.1.1"
|
|
368
389
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
369
|
-
checksum = "
|
|
390
|
+
checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
|
|
370
391
|
|
|
371
392
|
[[package]]
|
|
372
393
|
name = "shlex"
|
|
373
|
-
version = "1.
|
|
394
|
+
version = "1.3.0"
|
|
374
395
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
375
|
-
checksum = "
|
|
396
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
376
397
|
|
|
377
398
|
[[package]]
|
|
378
399
|
name = "syn"
|
|
@@ -385,6 +406,17 @@ dependencies = [
|
|
|
385
406
|
"unicode-ident",
|
|
386
407
|
]
|
|
387
408
|
|
|
409
|
+
[[package]]
|
|
410
|
+
name = "syn"
|
|
411
|
+
version = "2.0.111"
|
|
412
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
413
|
+
checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
|
|
414
|
+
dependencies = [
|
|
415
|
+
"proc-macro2",
|
|
416
|
+
"quote",
|
|
417
|
+
"unicode-ident",
|
|
418
|
+
]
|
|
419
|
+
|
|
388
420
|
[[package]]
|
|
389
421
|
name = "synstructure"
|
|
390
422
|
version = "0.12.6"
|
|
@@ -393,40 +425,24 @@ checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
|
|
|
393
425
|
dependencies = [
|
|
394
426
|
"proc-macro2",
|
|
395
427
|
"quote",
|
|
396
|
-
"syn",
|
|
428
|
+
"syn 1.0.109",
|
|
397
429
|
"unicode-xid",
|
|
398
430
|
]
|
|
399
431
|
|
|
400
432
|
[[package]]
|
|
401
433
|
name = "unicode-ident"
|
|
402
|
-
version = "1.0.
|
|
434
|
+
version = "1.0.22"
|
|
403
435
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
404
|
-
checksum = "
|
|
436
|
+
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
405
437
|
|
|
406
438
|
[[package]]
|
|
407
439
|
name = "unicode-xid"
|
|
408
|
-
version = "0.2.
|
|
409
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
-
checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
|
|
411
|
-
|
|
412
|
-
[[package]]
|
|
413
|
-
name = "winapi"
|
|
414
|
-
version = "0.3.9"
|
|
415
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
-
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
417
|
-
dependencies = [
|
|
418
|
-
"winapi-i686-pc-windows-gnu",
|
|
419
|
-
"winapi-x86_64-pc-windows-gnu",
|
|
420
|
-
]
|
|
421
|
-
|
|
422
|
-
[[package]]
|
|
423
|
-
name = "winapi-i686-pc-windows-gnu"
|
|
424
|
-
version = "0.4.0"
|
|
440
|
+
version = "0.2.6"
|
|
425
441
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
426
|
-
checksum = "
|
|
442
|
+
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
|
427
443
|
|
|
428
444
|
[[package]]
|
|
429
|
-
name = "
|
|
430
|
-
version = "0.
|
|
445
|
+
name = "windows-link"
|
|
446
|
+
version = "0.2.1"
|
|
431
447
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
432
|
-
checksum = "
|
|
448
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
data/Cargo.toml
CHANGED
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
data/lib/bs62.rb
CHANGED
|
@@ -5,8 +5,11 @@ require_relative "bs62/extension"
|
|
|
5
5
|
require "bs62/version"
|
|
6
6
|
|
|
7
7
|
if ENV.fetch("DEBUG", false)
|
|
8
|
-
require "amazing_print"
|
|
9
8
|
require "debug"
|
|
9
|
+
begin
|
|
10
|
+
require "amazing_print"
|
|
11
|
+
rescue LoadError # rubocop:disable Lint/SuppressedException
|
|
12
|
+
end
|
|
10
13
|
end
|
|
11
14
|
|
|
12
15
|
class Bs62
|
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
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|
|
@@ -24,6 +24,7 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0.9'
|
|
27
|
+
force_ruby_platform: false
|
|
27
28
|
- !ruby/object:Gem::Dependency
|
|
28
29
|
name: rake
|
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -79,13 +80,13 @@ metadata:
|
|
|
79
80
|
funding_uri: https://github.com/sponsors/gjtorikian/
|
|
80
81
|
source_code_uri: https://github.com/gjtorikian/bs62
|
|
81
82
|
rubygems_mfa_required: 'true'
|
|
82
|
-
post_install_message:
|
|
83
|
+
post_install_message:
|
|
83
84
|
rdoc_options: []
|
|
84
85
|
require_paths:
|
|
85
86
|
- lib
|
|
86
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
88
|
requirements:
|
|
88
|
-
- - "
|
|
89
|
+
- - ">="
|
|
89
90
|
- !ruby/object:Gem::Version
|
|
90
91
|
version: '3.1'
|
|
91
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
@@ -94,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
95
|
- !ruby/object:Gem::Version
|
|
95
96
|
version: 3.3.22
|
|
96
97
|
requirements: []
|
|
97
|
-
rubygems_version: 3.
|
|
98
|
-
signing_key:
|
|
98
|
+
rubygems_version: 3.5.3
|
|
99
|
+
signing_key:
|
|
99
100
|
specification_version: 4
|
|
100
101
|
summary: Fast and lightweight Base62 encoder/decoder. Written in Rust, wrapped in
|
|
101
102
|
Ruby.
|