blake3ruby 0.2.4 → 0.3.1

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: 23a249e26e69e94128ad4e3a378b3e95e73266a074e39b00a80789ed01d3e1cc
4
- data.tar.gz: 76c212103bd5216188690b4ffe4b78243db37f1f2281d4562b3aefb1d3fbfaa7
3
+ metadata.gz: 8fa0061a1f4fc0cd9021587e2de7e0bb3a4b4ae3507bd6e08ef88400c54c2c5f
4
+ data.tar.gz: 89510a40184c8a4eeac721de5d39137e4e37626faf0c31498c38ba78b9cd8432
5
5
  SHA512:
6
- metadata.gz: 2a54fab789774fbb8b9957b6271602590c7af13ddf8ec24d0b53bc921e26a8959e0360ef2ed84d0aacb8fb980b3c1c4682f082adcc1d39d19f22c2e0b244e80d
7
- data.tar.gz: 2f4524f77a51a306138c757c40742ef675180fdd20c7d49d82a2c1b043c70a3c6b69b46f8dfea55193453d1a2e5a5758c8cfd61359af73d9f3c8f07199521423
6
+ metadata.gz: 2078bfc07a938c8654209b242f5d508726d7a73832facb024e539234286f728663a082145d4bb6c966a818c18a82f170a45512b864d6ff2bc6768f3bd203c695
7
+ data.tar.gz: 89e15e0a7e521a2bc8929e02c44295caeba608e58d370c42f9f62ee5a4015c5bba0814a61242ec69beb27f2ccf7dddb578beb3ec234699a5c088f00093b8beaf
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ require:
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.0
7
+ TargetRubyVersion: 3.1
8
8
 
9
9
  Style/StringLiterals:
10
10
  Enabled: true
data/Cargo.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file is automatically @generated by Cargo.
2
2
  # It is not intended for manual editing.
3
- version = 3
3
+ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "aho-corasick"
@@ -25,9 +25,9 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
25
25
 
26
26
  [[package]]
27
27
  name = "bindgen"
28
- version = "0.69.4"
28
+ version = "0.69.5"
29
29
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
- checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
30
+ checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
31
31
  dependencies = [
32
32
  "bitflags",
33
33
  "cexpr",
@@ -45,15 +45,15 @@ dependencies = [
45
45
 
46
46
  [[package]]
47
47
  name = "bitflags"
48
- version = "2.6.0"
48
+ version = "2.9.0"
49
49
  source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
50
+ checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
51
51
 
52
52
  [[package]]
53
53
  name = "blake3"
54
- version = "1.5.4"
54
+ version = "1.8.2"
55
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7"
56
+ checksum = "3888aaa89e4b2a40fca9848e400f6a658a5a3978de7be858e209cafa8be9a4a0"
57
57
  dependencies = [
58
58
  "arrayref",
59
59
  "arrayvec",
@@ -64,7 +64,7 @@ dependencies = [
64
64
 
65
65
  [[package]]
66
66
  name = "blake3ruby"
67
- version = "0.2.4"
67
+ version = "0.3.1"
68
68
  dependencies = [
69
69
  "blake3",
70
70
  "hex",
@@ -73,9 +73,9 @@ dependencies = [
73
73
 
74
74
  [[package]]
75
75
  name = "cc"
76
- version = "1.1.28"
76
+ version = "1.2.20"
77
77
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
- checksum = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1"
78
+ checksum = "04da6a0d40b948dfc4fa8f5bbf402b0fc1a64a28dbf7d12ffd683550f2c1b63a"
79
79
  dependencies = [
80
80
  "shlex",
81
81
  ]
@@ -114,15 +114,15 @@ checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
114
114
 
115
115
  [[package]]
116
116
  name = "either"
117
- version = "1.13.0"
117
+ version = "1.15.0"
118
118
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
- checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
119
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
120
120
 
121
121
  [[package]]
122
122
  name = "glob"
123
- version = "0.3.1"
123
+ version = "0.3.2"
124
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
125
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
125
+ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
126
126
 
127
127
  [[package]]
128
128
  name = "hex"
@@ -153,15 +153,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
153
153
 
154
154
  [[package]]
155
155
  name = "libc"
156
- version = "0.2.159"
156
+ version = "0.2.172"
157
157
  source = "registry+https://github.com/rust-lang/crates.io-index"
158
- checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
158
+ checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
159
159
 
160
160
  [[package]]
161
161
  name = "libloading"
162
- version = "0.8.5"
162
+ version = "0.8.6"
163
163
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
164
+ checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
165
165
  dependencies = [
166
166
  "cfg-if",
167
167
  "windows-targets",
@@ -214,36 +214,36 @@ dependencies = [
214
214
 
215
215
  [[package]]
216
216
  name = "proc-macro2"
217
- version = "1.0.86"
217
+ version = "1.0.95"
218
218
  source = "registry+https://github.com/rust-lang/crates.io-index"
219
- checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
219
+ checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
220
220
  dependencies = [
221
221
  "unicode-ident",
222
222
  ]
223
223
 
224
224
  [[package]]
225
225
  name = "quote"
226
- version = "1.0.37"
226
+ version = "1.0.40"
227
227
  source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
228
+ checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
229
229
  dependencies = [
230
230
  "proc-macro2",
231
231
  ]
232
232
 
233
233
  [[package]]
234
234
  name = "rb-sys"
235
- version = "0.9.102"
235
+ version = "0.9.111"
236
236
  source = "registry+https://github.com/rust-lang/crates.io-index"
237
- checksum = "df4dec4b1d304c3b308a2cd86b1216ea45dd4361f4e9fa056f108332d0a450c1"
237
+ checksum = "becea799ce051c16fb140be80f5e7cf781070f99ca099332383c2b17861249af"
238
238
  dependencies = [
239
239
  "rb-sys-build",
240
240
  ]
241
241
 
242
242
  [[package]]
243
243
  name = "rb-sys-build"
244
- version = "0.9.102"
244
+ version = "0.9.111"
245
245
  source = "registry+https://github.com/rust-lang/crates.io-index"
246
- checksum = "1d71de3e29d174b8fb17b5d4470f27d7aa2605f8a9d05fda0d3aeff30e05a570"
246
+ checksum = "64691175abc704862f60a9ca8ef06174080cc50615f2bf1d4759f46db18b4d29"
247
247
  dependencies = [
248
248
  "bindgen",
249
249
  "lazy_static",
@@ -262,9 +262,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
262
262
 
263
263
  [[package]]
264
264
  name = "regex"
265
- version = "1.11.0"
265
+ version = "1.11.1"
266
266
  source = "registry+https://github.com/rust-lang/crates.io-index"
267
- checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
267
+ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
268
268
  dependencies = [
269
269
  "aho-corasick",
270
270
  "memchr",
@@ -274,9 +274,9 @@ dependencies = [
274
274
 
275
275
  [[package]]
276
276
  name = "regex-automata"
277
- version = "0.4.8"
277
+ version = "0.4.9"
278
278
  source = "registry+https://github.com/rust-lang/crates.io-index"
279
- checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
279
+ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
280
280
  dependencies = [
281
281
  "aho-corasick",
282
282
  "memchr",
@@ -297,9 +297,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
297
297
 
298
298
  [[package]]
299
299
  name = "seq-macro"
300
- version = "0.3.5"
300
+ version = "0.3.6"
301
301
  source = "registry+https://github.com/rust-lang/crates.io-index"
302
- checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
302
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
303
303
 
304
304
  [[package]]
305
305
  name = "shell-words"
@@ -315,9 +315,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
315
315
 
316
316
  [[package]]
317
317
  name = "syn"
318
- version = "2.0.79"
318
+ version = "2.0.101"
319
319
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
- checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
320
+ checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
321
321
  dependencies = [
322
322
  "proc-macro2",
323
323
  "quote",
@@ -326,9 +326,9 @@ dependencies = [
326
326
 
327
327
  [[package]]
328
328
  name = "unicode-ident"
329
- version = "1.0.13"
329
+ version = "1.0.18"
330
330
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
331
+ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
332
332
 
333
333
  [[package]]
334
334
  name = "windows-targets"
data/Gemfile.lock CHANGED
@@ -1,31 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blake3ruby (0.2.4)
4
+ blake3ruby (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.2)
10
- diff-lcs (1.5.1)
11
- json (2.7.2)
12
- language_server-protocol (3.17.0.3)
13
- parallel (1.26.3)
14
- parser (3.3.5.0)
9
+ ast (2.4.3)
10
+ diff-lcs (1.6.1)
11
+ json (2.11.3)
12
+ language_server-protocol (3.17.0.4)
13
+ lint_roller (1.1.0)
14
+ parallel (1.27.0)
15
+ parser (3.3.8.0)
15
16
  ast (~> 2.4.1)
16
17
  racc
18
+ prism (1.4.0)
17
19
  racc (1.8.1)
18
20
  rainbow (3.1.1)
19
21
  rake (13.2.1)
20
- rake-compiler (1.2.8)
22
+ rake-compiler (1.3.0)
21
23
  rake
22
- rb_sys (0.9.102)
23
- regexp_parser (2.9.2)
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)
24
28
  rspec (3.13.0)
25
29
  rspec-core (~> 3.13.0)
26
30
  rspec-expectations (~> 3.13.0)
27
31
  rspec-mocks (~> 3.13.0)
28
- rspec-core (3.13.1)
32
+ rspec-core (3.13.3)
29
33
  rspec-support (~> 3.13.0)
30
34
  rspec-expectations (3.13.3)
31
35
  diff-lcs (>= 1.2.0, < 2.0)
@@ -33,25 +37,31 @@ GEM
33
37
  rspec-mocks (3.13.2)
34
38
  diff-lcs (>= 1.2.0, < 2.0)
35
39
  rspec-support (~> 3.13.0)
36
- rspec-support (3.13.1)
37
- rubocop (1.66.1)
40
+ rspec-support (3.13.2)
41
+ rubocop (1.75.3)
38
42
  json (~> 2.3)
39
- language_server-protocol (>= 3.17.0)
43
+ language_server-protocol (~> 3.17.0.2)
44
+ lint_roller (~> 1.1.0)
40
45
  parallel (~> 1.10)
41
46
  parser (>= 3.3.0.2)
42
47
  rainbow (>= 2.2.2, < 4.0)
43
- regexp_parser (>= 2.4, < 3.0)
44
- rubocop-ast (>= 1.32.2, < 2.0)
48
+ regexp_parser (>= 2.9.3, < 3.0)
49
+ rubocop-ast (>= 1.44.0, < 2.0)
45
50
  ruby-progressbar (~> 1.7)
46
- unicode-display_width (>= 2.4.0, < 3.0)
47
- rubocop-ast (1.32.3)
48
- parser (>= 3.3.1.0)
49
- rubocop-rake (0.6.0)
50
- rubocop (~> 1.0)
51
- rubocop-rspec (3.1.0)
52
- rubocop (~> 1.61)
51
+ unicode-display_width (>= 2.4.0, < 4.0)
52
+ rubocop-ast (1.44.1)
53
+ parser (>= 3.3.7.2)
54
+ prism (~> 1.4)
55
+ rubocop-rake (0.7.1)
56
+ lint_roller (~> 1.1)
57
+ rubocop (>= 1.72.1)
58
+ rubocop-rspec (3.6.0)
59
+ lint_roller (~> 1.1)
60
+ rubocop (~> 1.72, >= 1.72.1)
53
61
  ruby-progressbar (1.13.0)
54
- unicode-display_width (2.6.0)
62
+ unicode-display_width (3.1.4)
63
+ unicode-emoji (~> 4.0, >= 4.0.4)
64
+ unicode-emoji (4.0.4)
55
65
 
56
66
  PLATFORMS
57
67
  aarch64-linux
@@ -74,4 +84,4 @@ DEPENDENCIES
74
84
  rubocop-rspec
75
85
 
76
86
  BUNDLED WITH
77
- 2.5.20
87
+ 2.6.7
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 and 3.3.
8
+ Tested on Ruby 3.1, 3.2, 3.3 and 3.4.
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.
@@ -72,7 +72,7 @@ In versions 0.1.0 and 0.1.1, the Blake3ruby namespace was available. Starting fr
72
72
  The performance of this gem is comparable to the performance of the [blake3](https://github.com/BLAKE3-team/BLAKE3)
73
73
  crate, which is written in Rust.
74
74
 
75
- The following benchmark was run on a 2015 MacBook Pro with a 2.5 GHz 4-Core Intel Core i7 processor and 16 GB of RAM.
75
+ The following benchmark was run on a 2015 MacBook Pro with a 2.5 GHz 4-Core Intel Core i7 processor and 16 GB of RAM.
76
76
  ```
77
77
  MD5 (13 chars): 6.141045 0.086745 6.227790 ( 6.263524)
78
78
  SHA1 (13 chars): 6.230957 0.080145 6.311102 ( 6.333384)
@@ -123,16 +123,16 @@ Fastest: blake3 with 8.499842999968678 seconds
123
123
  Slowest: RMD160 with 24.535302000120282 seconds
124
124
  ```
125
125
 
126
- Another benchmark was run on a 2022 MacBook Pro with a Apple M1 processor and 16 GB of RAM.
126
+ Another benchmark was run on a 2022 MacBook Pro with a Apple M1 processor and 16 GB of RAM.
127
127
  ```
128
- user system total real
129
- MD5: 4.080778 0.029457 4.110235 ( 4.388991)
130
- SHA1: 3.736124 0.030763 3.766887 ( 3.991860)
131
- SHA3-256: 3.511138 0.036125 3.547263 ( 3.664061)
132
- SHA3-384: 4.009041 0.085845 4.094886 ( 4.094987)
133
- SHA3-512: 4.078389 0.071463 4.149852 ( 4.149982)
134
- RMD160: 2.965860 0.026660 2.992520 ( 3.216815)
135
- blake3: 1.715370 0.004587 1.719957 ( 1.719995)
128
+ user system total real
129
+ MD5 (13 chars): 4.055481 0.041212 4.096693 ( 4.097044)
130
+ SHA1 (13 chars): 3.862285 0.050686 3.912971 ( 3.928102)
131
+ SHA3-256 (13 chars): 2.293100 0.052982 2.346082 ( 2.346571)
132
+ SHA3-384 (13 chars): 2.767608 0.079975 2.847583 ( 2.847594)
133
+ SHA3-512 (13 chars): 2.792520 0.070482 2.863002 ( 2.862991)
134
+ RMD160 (13 chars): 2.842812 0.036370 2.879182 ( 3.097712)
135
+ blake3 (13 chars): 1.208742 0.004124 1.212866 ( 1.212986)
136
136
  ```
137
137
 
138
138
  In both cases, the `blake3ruby` gem was about 2.5 times faster than the md5, sha1, sha3-256, sha3-384, sha3-512, and rmd160 digest algorithms.
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.0"
14
+ spec.required_ruby_version = ">= 3.1"
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.2.4"
3
+ version = "0.3.1"
4
4
  edition = "2021"
5
5
  authors = ["Nightforge <modo00@gmail.com>"]
6
6
  publish = false
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
11
11
  [dependencies]
12
12
  magnus = { version = "0.7.1" }
13
13
  hex = { version = "0.4.3" }
14
- blake3 = { version = "1.5.1" }
14
+ blake3 = { version = "1.7" }
15
15
 
16
16
  [package.metadata.magnus]
17
17
  rbconfig = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blake3ruby
4
- VERSION = "0.2.4"
4
+ VERSION = "0.3.1"
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.2.4
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nightforge
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-10-06 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.0'
52
+ version: '3.1'
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: 3.6.7
63
60
  specification_version: 4
64
61
  summary: Ruby bindings for the blake3 hash function
65
62
  test_files: []