xxhash 0.6.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/ext/xxhash/xxhash.c +12 -12
- data/lib/xxhash/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6c0cb36eac2a40c9a5e88eb77e0ef0688c9a1b919ffae6f0e1897c96c24abb
|
4
|
+
data.tar.gz: d64886d34148f1b539bf84409946f06c943db50570aedbbeae02af27a48cd8b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f67f04939f64b070521e7a5cbbd7cd835ad3a0ce88c91450a211684b271970c3ca799a3e72fafa67dc1cb5d2dd5ff9a87b5b0b61407ade4ebc319f5cb1a839b
|
7
|
+
data.tar.gz: 81fa03cf2af04c0d32897cc8fc3db49e182a47d6cf005f4a9b0d2b3d11f3a211041f0864372cc0c2d908e0b89a3a50a069cacca8d59743e624c88f6f4b74294a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -43,7 +43,7 @@ Note: It doesn't work on JRuby as it uses C extension.
|
|
43
43
|
|
44
44
|
### Versioning
|
45
45
|
|
46
|
-
Version 0.
|
46
|
+
Version 0.7.0 is equal to [0.8.1](https://github.com/Cyan4973/xxHash/tree/v0.8.1)
|
47
47
|
|
48
48
|
## Contributing
|
49
49
|
|
data/ext/xxhash/xxhash.c
CHANGED
@@ -237,24 +237,24 @@ void Init_xxhash(void)
|
|
237
237
|
mXXhash = rb_define_module("XXhash");
|
238
238
|
mInternal = rb_define_module_under(mXXhash, "XXhashInternal");
|
239
239
|
|
240
|
-
rb_define_singleton_method(mInternal, "xxh32",
|
241
|
-
rb_define_singleton_method(mInternal, "xxh32_file",
|
242
|
-
rb_define_singleton_method(mInternal, "xxh64",
|
243
|
-
rb_define_singleton_method(mInternal, "xxh64_file",
|
240
|
+
rb_define_singleton_method(mInternal, "xxh32", xxhash_xxh32, 2);
|
241
|
+
rb_define_singleton_method(mInternal, "xxh32_file", xxhash_xxh32_file, 2);
|
242
|
+
rb_define_singleton_method(mInternal, "xxh64", xxhash_xxh64, 2);
|
243
|
+
rb_define_singleton_method(mInternal, "xxh64_file", xxhash_xxh64_file, 2);
|
244
244
|
|
245
245
|
cStreamingHash = rb_define_class_under(mInternal, "StreamingHash32", rb_cObject);
|
246
246
|
rb_undef_alloc_func(cStreamingHash);
|
247
247
|
|
248
|
-
rb_define_singleton_method(cStreamingHash, "new",
|
249
|
-
rb_define_method(cStreamingHash, "update",
|
250
|
-
rb_define_method(cStreamingHash, "digest",
|
251
|
-
rb_define_method(cStreamingHash, "reset",
|
248
|
+
rb_define_singleton_method(cStreamingHash, "new", xxhash32_streaming_hash_new, 1);
|
249
|
+
rb_define_method(cStreamingHash, "update", xxhash32_streaming_hash_update, 1);
|
250
|
+
rb_define_method(cStreamingHash, "digest", xxhash32_streaming_hash_digest, 0);
|
251
|
+
rb_define_method(cStreamingHash, "reset", xxhash32_streaming_hash_reset, 0);
|
252
252
|
|
253
253
|
cStreamingHash64 = rb_define_class_under(mInternal, "StreamingHash64", rb_cObject);
|
254
254
|
rb_undef_alloc_func(cStreamingHash64);
|
255
255
|
|
256
|
-
rb_define_singleton_method(cStreamingHash64, "new",
|
257
|
-
rb_define_method(cStreamingHash64, "update",
|
258
|
-
rb_define_method(cStreamingHash64, "digest",
|
259
|
-
rb_define_method(cStreamingHash64, "reset",
|
256
|
+
rb_define_singleton_method(cStreamingHash64, "new", xxhash64_streaming_hash_new, 1);
|
257
|
+
rb_define_method(cStreamingHash64, "update", xxhash64_streaming_hash_update, 1);
|
258
|
+
rb_define_method(cStreamingHash64, "digest", xxhash64_streaming_hash_digest, 0);
|
259
|
+
rb_define_method(cStreamingHash64, "reset", xxhash64_streaming_hash_reset, 0);
|
260
260
|
}
|
data/lib/xxhash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xxhash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasiliy Ermolovich
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: Ruby wrapper for xxHash lib
|
14
13
|
email:
|
@@ -39,7 +38,6 @@ homepage: http://github.com/nashby/xxhash
|
|
39
38
|
licenses:
|
40
39
|
- MIT
|
41
40
|
metadata: {}
|
42
|
-
post_install_message:
|
43
41
|
rdoc_options: []
|
44
42
|
require_paths:
|
45
43
|
- lib
|
@@ -54,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
52
|
- !ruby/object:Gem::Version
|
55
53
|
version: '0'
|
56
54
|
requirements: []
|
57
|
-
rubygems_version: 3.
|
58
|
-
signing_key:
|
55
|
+
rubygems_version: 3.7.1
|
59
56
|
specification_version: 4
|
60
57
|
summary: Ruby wrapper for xxHash lib
|
61
58
|
test_files:
|