blake3ruby 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5778fdf082062f7ec0d75ef475c366a8ee7caa0324abc4b31cf5b62332ebbdc1
4
- data.tar.gz: 8c1a00d03c991732c745dde373a53cff23a27ffbad2793c73a686448fad37f66
3
+ metadata.gz: 4fd3696dfdcb166381ec52b867454a59f4dd0b9de50b9ce980be56de2f011a90
4
+ data.tar.gz: 61b3a546b4dade8ac937b67043cce7e930404ae0d6694bc6812429b377b06e2a
5
5
  SHA512:
6
- metadata.gz: fa242d13268e65830cfab9f26807d4299e48d2ec43688ba337e4d2fc7d997ad96a52b8a4f1e8894e30c9fc53026a123533f993099af3ef8330834401066a88a8
7
- data.tar.gz: b8202389aad71722d6a2fd25af7034389b2600440414628a04c85bacc99181c30d4c48a8417bf00bc482cab55531d16799e58d0f94e45d12c243363c223a3e2e
6
+ metadata.gz: f298b73ae99cc159486a30e599c4871f2ae410f66badbdc299bf36e28a69745b830cd5ec001339d62a3cb161b0b00d333c3a3742b4104e287b07311dd0932a60
7
+ data.tar.gz: 16a609f7de2d9d13f43d2d9638fe45869af39f983caa1fc7b8af30c62764fa430f5dfaf03b432b538eb89392034236770642ed2e17f04bbf917b83b705834292
data/.rubocop.yml CHANGED
@@ -1,10 +1,10 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rspec
3
3
  - rubocop-rake
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.1
7
+ TargetRubyVersion: 3.3
8
8
 
9
9
  Style/StringLiterals:
10
10
  Enabled: true
@@ -16,3 +16,7 @@ Style/StringLiteralsInInterpolation:
16
16
 
17
17
  Layout/LineLength:
18
18
  Max: 120
19
+
20
+ RSpec/Output:
21
+ Exclude:
22
+ - spec/benchmark.rb
data/Cargo.lock CHANGED
@@ -4,9 +4,9 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "aho-corasick"
7
- version = "1.1.3"
7
+ version = "1.1.4"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
9
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
10
10
  dependencies = [
11
11
  "memchr",
12
12
  ]
@@ -25,16 +25,14 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
25
25
 
26
26
  [[package]]
27
27
  name = "bindgen"
28
- version = "0.69.5"
28
+ version = "0.72.1"
29
29
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
- checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
30
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
31
31
  dependencies = [
32
32
  "bitflags",
33
33
  "cexpr",
34
34
  "clang-sys",
35
35
  "itertools",
36
- "lazy_static",
37
- "lazycell",
38
36
  "proc-macro2",
39
37
  "quote",
40
38
  "regex",
@@ -45,26 +43,27 @@ dependencies = [
45
43
 
46
44
  [[package]]
47
45
  name = "bitflags"
48
- version = "2.9.0"
46
+ version = "2.11.1"
49
47
  source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
48
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
51
49
 
52
50
  [[package]]
53
51
  name = "blake3"
54
- version = "1.8.1"
52
+ version = "1.8.5"
55
53
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "389a099b34312839e16420d499a9cad9650541715937ffbdd40d36f49e77eeb3"
54
+ checksum = "0aa83c34e62843d924f905e0f5c866eb1dd6545fc4d719e803d9ba6030371fce"
57
55
  dependencies = [
58
56
  "arrayref",
59
57
  "arrayvec",
60
58
  "cc",
61
59
  "cfg-if",
62
60
  "constant_time_eq",
61
+ "cpufeatures",
63
62
  ]
64
63
 
65
64
  [[package]]
66
65
  name = "blake3ruby"
67
- version = "0.3.0"
66
+ version = "0.4.0"
68
67
  dependencies = [
69
68
  "blake3",
70
69
  "hex",
@@ -73,10 +72,11 @@ dependencies = [
73
72
 
74
73
  [[package]]
75
74
  name = "cc"
76
- version = "1.2.19"
75
+ version = "1.2.61"
77
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
- checksum = "8e3a13707ac958681c13b39b458c073d0d9bc8a22cb1b2f4c8e55eb72c13f362"
77
+ checksum = "d16d90359e986641506914ba71350897565610e87ce0ad9e6f28569db3dd5c6d"
79
78
  dependencies = [
79
+ "find-msvc-tools",
80
80
  "shlex",
81
81
  ]
82
82
 
@@ -91,9 +91,9 @@ dependencies = [
91
91
 
92
92
  [[package]]
93
93
  name = "cfg-if"
94
- version = "1.0.0"
94
+ version = "1.0.4"
95
95
  source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
96
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
97
97
 
98
98
  [[package]]
99
99
  name = "clang-sys"
@@ -108,9 +108,18 @@ dependencies = [
108
108
 
109
109
  [[package]]
110
110
  name = "constant_time_eq"
111
- version = "0.3.1"
111
+ version = "0.4.2"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
114
+
115
+ [[package]]
116
+ name = "cpufeatures"
117
+ version = "0.3.0"
112
118
  source = "registry+https://github.com/rust-lang/crates.io-index"
113
- checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
119
+ checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
120
+ dependencies = [
121
+ "libc",
122
+ ]
114
123
 
115
124
  [[package]]
116
125
  name = "either"
@@ -118,11 +127,17 @@ version = "1.15.0"
118
127
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
128
  checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
120
129
 
130
+ [[package]]
131
+ name = "find-msvc-tools"
132
+ version = "0.1.9"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
135
+
121
136
  [[package]]
122
137
  name = "glob"
123
- version = "0.3.2"
138
+ version = "0.3.3"
124
139
  source = "registry+https://github.com/rust-lang/crates.io-index"
125
- checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
140
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
126
141
 
127
142
  [[package]]
128
143
  name = "hex"
@@ -132,9 +147,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
132
147
 
133
148
  [[package]]
134
149
  name = "itertools"
135
- version = "0.12.1"
150
+ version = "0.13.0"
136
151
  source = "registry+https://github.com/rust-lang/crates.io-index"
137
- checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
152
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
138
153
  dependencies = [
139
154
  "either",
140
155
  ]
@@ -145,33 +160,27 @@ version = "1.5.0"
145
160
  source = "registry+https://github.com/rust-lang/crates.io-index"
146
161
  checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
147
162
 
148
- [[package]]
149
- name = "lazycell"
150
- version = "1.3.0"
151
- source = "registry+https://github.com/rust-lang/crates.io-index"
152
- checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
153
-
154
163
  [[package]]
155
164
  name = "libc"
156
- version = "0.2.171"
165
+ version = "0.2.186"
157
166
  source = "registry+https://github.com/rust-lang/crates.io-index"
158
- checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
167
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
159
168
 
160
169
  [[package]]
161
170
  name = "libloading"
162
- version = "0.8.6"
171
+ version = "0.8.9"
163
172
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
173
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
165
174
  dependencies = [
166
175
  "cfg-if",
167
- "windows-targets",
176
+ "windows-link",
168
177
  ]
169
178
 
170
179
  [[package]]
171
180
  name = "magnus"
172
- version = "0.7.1"
181
+ version = "0.8.2"
173
182
  source = "registry+https://github.com/rust-lang/crates.io-index"
174
- checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
183
+ checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
175
184
  dependencies = [
176
185
  "magnus-macros",
177
186
  "rb-sys",
@@ -181,9 +190,9 @@ dependencies = [
181
190
 
182
191
  [[package]]
183
192
  name = "magnus-macros"
184
- version = "0.6.0"
193
+ version = "0.8.0"
185
194
  source = "registry+https://github.com/rust-lang/crates.io-index"
186
- checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
195
+ checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
187
196
  dependencies = [
188
197
  "proc-macro2",
189
198
  "quote",
@@ -192,9 +201,9 @@ dependencies = [
192
201
 
193
202
  [[package]]
194
203
  name = "memchr"
195
- version = "2.7.4"
204
+ version = "2.8.0"
196
205
  source = "registry+https://github.com/rust-lang/crates.io-index"
197
- checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
206
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
198
207
 
199
208
  [[package]]
200
209
  name = "minimal-lexical"
@@ -214,36 +223,36 @@ dependencies = [
214
223
 
215
224
  [[package]]
216
225
  name = "proc-macro2"
217
- version = "1.0.94"
226
+ version = "1.0.106"
218
227
  source = "registry+https://github.com/rust-lang/crates.io-index"
219
- checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
228
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
220
229
  dependencies = [
221
230
  "unicode-ident",
222
231
  ]
223
232
 
224
233
  [[package]]
225
234
  name = "quote"
226
- version = "1.0.40"
235
+ version = "1.0.45"
227
236
  source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
237
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
229
238
  dependencies = [
230
239
  "proc-macro2",
231
240
  ]
232
241
 
233
242
  [[package]]
234
243
  name = "rb-sys"
235
- version = "0.9.111"
244
+ version = "0.9.127"
236
245
  source = "registry+https://github.com/rust-lang/crates.io-index"
237
- checksum = "becea799ce051c16fb140be80f5e7cf781070f99ca099332383c2b17861249af"
246
+ checksum = "d7d7c9560fe42dcffa576941394075f18a17dce89fcf718a2fa90b7dc2134d12"
238
247
  dependencies = [
239
248
  "rb-sys-build",
240
249
  ]
241
250
 
242
251
  [[package]]
243
252
  name = "rb-sys-build"
244
- version = "0.9.111"
253
+ version = "0.9.127"
245
254
  source = "registry+https://github.com/rust-lang/crates.io-index"
246
- checksum = "64691175abc704862f60a9ca8ef06174080cc50615f2bf1d4759f46db18b4d29"
255
+ checksum = "f1688e8f32967ba48c89e4dfa283b57f901075f542fc7ee9c3d7c5f9091ca1d9"
247
256
  dependencies = [
248
257
  "bindgen",
249
258
  "lazy_static",
@@ -256,15 +265,15 @@ dependencies = [
256
265
 
257
266
  [[package]]
258
267
  name = "rb-sys-env"
259
- version = "0.1.2"
268
+ version = "0.2.3"
260
269
  source = "registry+https://github.com/rust-lang/crates.io-index"
261
- checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
270
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
262
271
 
263
272
  [[package]]
264
273
  name = "regex"
265
- version = "1.11.1"
274
+ version = "1.12.3"
266
275
  source = "registry+https://github.com/rust-lang/crates.io-index"
267
- checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
276
+ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
268
277
  dependencies = [
269
278
  "aho-corasick",
270
279
  "memchr",
@@ -274,9 +283,9 @@ dependencies = [
274
283
 
275
284
  [[package]]
276
285
  name = "regex-automata"
277
- version = "0.4.9"
286
+ version = "0.4.14"
278
287
  source = "registry+https://github.com/rust-lang/crates.io-index"
279
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
288
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
280
289
  dependencies = [
281
290
  "aho-corasick",
282
291
  "memchr",
@@ -285,15 +294,15 @@ dependencies = [
285
294
 
286
295
  [[package]]
287
296
  name = "regex-syntax"
288
- version = "0.8.5"
297
+ version = "0.8.10"
289
298
  source = "registry+https://github.com/rust-lang/crates.io-index"
290
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
299
+ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
291
300
 
292
301
  [[package]]
293
302
  name = "rustc-hash"
294
- version = "1.1.0"
303
+ version = "2.1.2"
295
304
  source = "registry+https://github.com/rust-lang/crates.io-index"
296
- checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
305
+ checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
297
306
 
298
307
  [[package]]
299
308
  name = "seq-macro"
@@ -303,9 +312,9 @@ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
303
312
 
304
313
  [[package]]
305
314
  name = "shell-words"
306
- version = "1.1.0"
315
+ version = "1.1.1"
307
316
  source = "registry+https://github.com/rust-lang/crates.io-index"
308
- checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
317
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
309
318
 
310
319
  [[package]]
311
320
  name = "shlex"
@@ -315,9 +324,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
315
324
 
316
325
  [[package]]
317
326
  name = "syn"
318
- version = "2.0.100"
327
+ version = "2.0.117"
319
328
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
- checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
329
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
321
330
  dependencies = [
322
331
  "proc-macro2",
323
332
  "quote",
@@ -326,70 +335,12 @@ dependencies = [
326
335
 
327
336
  [[package]]
328
337
  name = "unicode-ident"
329
- version = "1.0.18"
338
+ version = "1.0.24"
330
339
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
332
-
333
- [[package]]
334
- name = "windows-targets"
335
- version = "0.52.6"
336
- source = "registry+https://github.com/rust-lang/crates.io-index"
337
- checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
338
- dependencies = [
339
- "windows_aarch64_gnullvm",
340
- "windows_aarch64_msvc",
341
- "windows_i686_gnu",
342
- "windows_i686_gnullvm",
343
- "windows_i686_msvc",
344
- "windows_x86_64_gnu",
345
- "windows_x86_64_gnullvm",
346
- "windows_x86_64_msvc",
347
- ]
340
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
348
341
 
349
342
  [[package]]
350
- name = "windows_aarch64_gnullvm"
351
- version = "0.52.6"
352
- source = "registry+https://github.com/rust-lang/crates.io-index"
353
- checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
354
-
355
- [[package]]
356
- name = "windows_aarch64_msvc"
357
- version = "0.52.6"
358
- source = "registry+https://github.com/rust-lang/crates.io-index"
359
- checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
360
-
361
- [[package]]
362
- name = "windows_i686_gnu"
363
- version = "0.52.6"
364
- source = "registry+https://github.com/rust-lang/crates.io-index"
365
- checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
366
-
367
- [[package]]
368
- name = "windows_i686_gnullvm"
369
- version = "0.52.6"
370
- source = "registry+https://github.com/rust-lang/crates.io-index"
371
- checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
372
-
373
- [[package]]
374
- name = "windows_i686_msvc"
375
- version = "0.52.6"
376
- source = "registry+https://github.com/rust-lang/crates.io-index"
377
- checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
378
-
379
- [[package]]
380
- name = "windows_x86_64_gnu"
381
- version = "0.52.6"
382
- source = "registry+https://github.com/rust-lang/crates.io-index"
383
- checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
384
-
385
- [[package]]
386
- name = "windows_x86_64_gnullvm"
387
- version = "0.52.6"
388
- source = "registry+https://github.com/rust-lang/crates.io-index"
389
- checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
390
-
391
- [[package]]
392
- name = "windows_x86_64_msvc"
393
- version = "0.52.6"
343
+ name = "windows-link"
344
+ version = "0.2.1"
394
345
  source = "registry+https://github.com/rust-lang/crates.io-index"
395
- checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
346
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Gemfile.lock CHANGED
@@ -1,67 +1,67 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blake3ruby (0.3.0)
4
+ blake3ruby (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.3)
10
- diff-lcs (1.6.1)
11
- json (2.10.2)
12
- language_server-protocol (3.17.0.4)
10
+ diff-lcs (1.6.2)
11
+ json (2.19.4)
12
+ language_server-protocol (3.17.0.5)
13
13
  lint_roller (1.1.0)
14
- parallel (1.26.3)
15
- parser (3.3.7.4)
14
+ parallel (2.1.0)
15
+ parser (3.3.11.1)
16
16
  ast (~> 2.4.1)
17
17
  racc
18
- prism (1.4.0)
18
+ prism (1.9.0)
19
19
  racc (1.8.1)
20
20
  rainbow (3.1.1)
21
- rake (13.2.1)
22
- rake-compiler (1.3.0)
21
+ rake (13.4.2)
22
+ rake-compiler (1.3.1)
23
23
  rake
24
- rake-compiler-dock (1.9.1)
25
- rb_sys (0.9.111)
26
- rake-compiler-dock (= 1.9.1)
27
- regexp_parser (2.10.0)
28
- rspec (3.13.0)
24
+ rake-compiler-dock (1.12.0)
25
+ rb_sys (0.9.127)
26
+ rake-compiler-dock (= 1.12.0)
27
+ regexp_parser (2.12.0)
28
+ rspec (3.13.2)
29
29
  rspec-core (~> 3.13.0)
30
30
  rspec-expectations (~> 3.13.0)
31
31
  rspec-mocks (~> 3.13.0)
32
- rspec-core (3.13.3)
32
+ rspec-core (3.13.6)
33
33
  rspec-support (~> 3.13.0)
34
- rspec-expectations (3.13.3)
34
+ rspec-expectations (3.13.5)
35
35
  diff-lcs (>= 1.2.0, < 2.0)
36
36
  rspec-support (~> 3.13.0)
37
- rspec-mocks (3.13.2)
37
+ rspec-mocks (3.13.8)
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
39
  rspec-support (~> 3.13.0)
40
- rspec-support (3.13.2)
41
- rubocop (1.75.2)
40
+ rspec-support (3.13.7)
41
+ rubocop (1.86.1)
42
42
  json (~> 2.3)
43
43
  language_server-protocol (~> 3.17.0.2)
44
44
  lint_roller (~> 1.1.0)
45
- parallel (~> 1.10)
45
+ parallel (>= 1.10)
46
46
  parser (>= 3.3.0.2)
47
47
  rainbow (>= 2.2.2, < 4.0)
48
48
  regexp_parser (>= 2.9.3, < 3.0)
49
- rubocop-ast (>= 1.44.0, < 2.0)
49
+ rubocop-ast (>= 1.49.0, < 2.0)
50
50
  ruby-progressbar (~> 1.7)
51
51
  unicode-display_width (>= 2.4.0, < 4.0)
52
- rubocop-ast (1.44.1)
52
+ rubocop-ast (1.49.1)
53
53
  parser (>= 3.3.7.2)
54
- prism (~> 1.4)
54
+ prism (~> 1.7)
55
55
  rubocop-rake (0.7.1)
56
56
  lint_roller (~> 1.1)
57
57
  rubocop (>= 1.72.1)
58
- rubocop-rspec (3.5.0)
58
+ rubocop-rspec (3.9.0)
59
59
  lint_roller (~> 1.1)
60
- rubocop (~> 1.72, >= 1.72.1)
60
+ rubocop (~> 1.81)
61
61
  ruby-progressbar (1.13.0)
62
- unicode-display_width (3.1.4)
63
- unicode-emoji (~> 4.0, >= 4.0.4)
64
- unicode-emoji (4.0.4)
62
+ unicode-display_width (3.2.0)
63
+ unicode-emoji (~> 4.1)
64
+ unicode-emoji (4.2.0)
65
65
 
66
66
  PLATFORMS
67
67
  aarch64-linux
@@ -84,4 +84,4 @@ DEPENDENCIES
84
84
  rubocop-rspec
85
85
 
86
86
  BUNDLED WITH
87
- 2.6.7
87
+ 4.0.10
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  This is a Ruby wrapper for the [BLAKE3](https://github.com/BLAKE3-team/BLAKE3) hash function written in Rust.
6
6
 
7
7
  ## Requirements
8
- Tested on Ruby 3.1, 3.2, 3.3 and 3.4.
8
+ Tested on Ruby 3.3, 3.4 and 4.0.
9
9
  You will need to have Rust installed on your system, and the `cargo` command available in your path.
10
10
  See [here](https://www.rust-lang.org/tools/install) for instructions on how to install Rust.
11
11
  Rust is only required to build the gem, not to use it.
data/blake3ruby.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Ruby bindings for the blake3 hash function"
12
12
  spec.description = "Ruby bindings for the blake3 hash function using the Rust implementation"
13
13
  spec.homepage = "https://github.com/Nightforge/blake3ruby"
14
- spec.required_ruby_version = ">= 3.1"
14
+ spec.required_ruby_version = ">= 3.3"
15
15
  spec.required_rubygems_version = ">= 3.3.11"
16
16
  spec.licenses = %w[MIT Ruby]
17
17
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "blake3ruby"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  edition = "2021"
5
5
  authors = ["Nightforge <modo00@gmail.com>"]
6
6
  publish = false
@@ -9,9 +9,9 @@ publish = false
9
9
  crate-type = ["cdylib"]
10
10
 
11
11
  [dependencies]
12
- magnus = { version = "0.7.1" }
12
+ magnus = { version = "0.8.2" }
13
13
  hex = { version = "0.4.3" }
14
- blake3 = { version = "1.7" }
14
+ blake3 = { version = "1.8.5" }
15
15
 
16
16
  [package.metadata.magnus]
17
17
  rbconfig = true
@@ -1,4 +1,4 @@
1
- use magnus::{define_module, class, function, method, prelude::*, Error};
1
+ use magnus::{function, method, prelude::*, Error, Ruby};
2
2
 
3
3
  fn hexdigest(subject: String) -> String {
4
4
  let hash = blake3::hash(subject.as_bytes());
@@ -38,14 +38,14 @@ impl MutHasher {
38
38
  }
39
39
 
40
40
  #[magnus::init]
41
- fn init() -> Result<(), Error> {
42
- let digest = define_module("Digest")?;
41
+ fn init(ruby: &Ruby) -> Result<(), Error> {
42
+ let digest = ruby.define_module("Digest")?;
43
43
  let blake3 = digest.define_module("Blake3")?;
44
-
44
+
45
45
  blake3.define_singleton_method("hexdigest", function!(hexdigest, 1))?;
46
46
  blake3.define_singleton_method("derive_key", function!(derive_key, 2))?;
47
47
 
48
- let class = blake3.define_class("Hasher", class::object())?;
48
+ let class = blake3.define_class("Hasher", ruby.class_object())?;
49
49
  class.define_singleton_method("new", function!(MutHasher::new, 0))?;
50
50
  class.define_method("update", method!(MutHasher::update, 1))?;
51
51
  class.define_method("finalize", method!(MutHasher::finalize, 0))?;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blake3ruby
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blake3ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nightforge
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Ruby bindings for the blake3 hash function using the Rust implementation
14
13
  email:
@@ -43,7 +42,6 @@ metadata:
43
42
  homepage_uri: https://github.com/Nightforge/blake3ruby
44
43
  source_code_uri: https://github.com/Nightforge/blake3ruby
45
44
  rubygems_mfa_required: 'true'
46
- post_install_message:
47
45
  rdoc_options: []
48
46
  require_paths:
49
47
  - lib
@@ -51,15 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - ">="
53
51
  - !ruby/object:Gem::Version
54
- version: '3.1'
52
+ version: '3.3'
55
53
  required_rubygems_version: !ruby/object:Gem::Requirement
56
54
  requirements:
57
55
  - - ">="
58
56
  - !ruby/object:Gem::Version
59
57
  version: 3.3.11
60
58
  requirements: []
61
- rubygems_version: 3.5.21
62
- signing_key:
59
+ rubygems_version: 4.0.10
63
60
  specification_version: 4
64
61
  summary: Ruby bindings for the blake3 hash function
65
62
  test_files: []