digest-xxhash 0.2.1 → 0.2.4
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/LICENSE +1 -1
- data/README.md +1 -2
- data/Rakefile +13 -14
- data/digest-xxhash.gemspec +21 -4
- data/ext/digest/xxhash/ext.c +2 -0
- data/ext/digest/xxhash/xxhash.h +1341 -709
- data/lib/digest/xxhash/version.rb +1 -1
- data/rakelib/alt-install-task.rake +58 -0
- data/test/test.rb +6 -0
- metadata +22 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 919358191e0f1f26b79b95bc7253d80ec46b26aabcaa729c0b82fd69d7ffd2ff
|
4
|
+
data.tar.gz: 5111f27d4afb62092f5643e7f85fa07e6b46a20863f7682c2993902fd22b31a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ddde4f920bd2ea2a62f131650bf58b884c5006568887ca6c5c35c38ca1a73c4bd566198a7366c72e0576d02f850728715f47623afa2052b54636734462f0c32
|
7
|
+
data.tar.gz: 3fd5a9ce98fba62c9e8c246a64fd64c49b7692cf4c7056b7ff9894cf21015acce1723a792d5cef4f09da2b6e5bbea24a77f4c8cd6b0bf486db19587c40077e5e
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -92,6 +92,5 @@ https://rubygems.org/gems/digest-xxhash
|
|
92
92
|
4. Push to the branch (`git push origin my-new-feature`).
|
93
93
|
5. Create a new Pull Request.
|
94
94
|
|
95
|
-
[](https://travis-ci.org/konsolebox/digest-xxhash-ruby)
|
96
|
-
[](https://ci.appveyor.com/project/konsolebox/digest-xxhash-ruby)
|
97
95
|
[](https://github.com/konsolebox/digest-xxhash-ruby/actions/workflows/ruby.yml)
|
96
|
+
[](https://ci.appveyor.com/project/konsolebox/digest-xxhash-ruby)
|
data/Rakefile
CHANGED
@@ -1,23 +1,22 @@
|
|
1
|
+
# build, clean, clobber, release[remote]
|
1
2
|
require 'bundler/gem_tasks'
|
2
|
-
require 'rake/extensiontask'
|
3
|
-
require 'rake/testtask'
|
4
3
|
|
5
4
|
# clean, clobber, compile, and compile:digest/xxhash
|
5
|
+
require 'rake/extensiontask'
|
6
6
|
Rake::ExtensionTask.new('digest/xxhash', Bundler::GemHelper.gemspec)
|
7
7
|
|
8
|
-
#
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
options = ARGV.select{ |e| e =~ /\A--?/ }
|
16
|
-
Process.wait spawn(*gem_command, "install", File.join(pkg_dir, built_gem), *options)
|
8
|
+
# compile_lazy
|
9
|
+
task :compile_lazy do
|
10
|
+
Rake::Task[:compile].invoke
|
11
|
+
end.instance_eval do
|
12
|
+
def needed?
|
13
|
+
!File.exist?("lib/digest/xxhash.so")
|
14
|
+
end
|
17
15
|
end
|
18
16
|
|
19
17
|
# test
|
20
|
-
|
18
|
+
require 'rake/testtask'
|
19
|
+
Rake::TestTask.new(:test => :compile_lazy) do |t|
|
21
20
|
t.test_files = FileList['test/test.rb']
|
22
21
|
t.verbose = true
|
23
22
|
end
|
@@ -29,6 +28,6 @@ task :clean do
|
|
29
28
|
end
|
30
29
|
|
31
30
|
# default
|
32
|
-
task :default => :test
|
31
|
+
task :default => [:compile, :test]
|
33
32
|
|
34
|
-
# Run `rake --tasks` for a list of tasks.
|
33
|
+
# Run `rake --tasks` or `rake --tasks --all` for a list of tasks.
|
data/digest-xxhash.gemspec
CHANGED
@@ -20,13 +20,30 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.2'
|
22
22
|
|
23
|
-
spec.files
|
24
|
-
|
25
|
-
|
23
|
+
spec.files = %w[
|
24
|
+
Gemfile
|
25
|
+
LICENSE
|
26
|
+
README.md
|
27
|
+
Rakefile
|
28
|
+
digest-xxhash.gemspec
|
29
|
+
ext/digest/xxhash/debug-funcs.h
|
30
|
+
ext/digest/xxhash/ext.c
|
31
|
+
ext/digest/xxhash/extconf.rb
|
32
|
+
ext/digest/xxhash/utils.h
|
33
|
+
ext/digest/xxhash/xxhash.h
|
34
|
+
lib/digest/xxhash/version.rb
|
35
|
+
rakelib/alt-install-task.rake
|
36
|
+
test/produce-vectors-with-ruby-xxhash.rb
|
37
|
+
test/produce-vectors-with-xxhsum.rb
|
38
|
+
test/test.rb
|
39
|
+
test/test.vectors
|
40
|
+
test/xxhsum.c.c0e86bc0.diff
|
41
|
+
]
|
42
|
+
spec.test_files = spec.files.grep(%r{^test/})
|
26
43
|
spec.require_paths = ["lib"]
|
27
44
|
|
28
45
|
spec.add_development_dependency "rake"
|
29
|
-
spec.add_development_dependency "rake-compiler", "~> 1.0"
|
46
|
+
spec.add_development_dependency "rake-compiler", "~> 1.0", "!= 1.1.3", "!= 1.1.4", "!= 1.1.5"
|
30
47
|
spec.add_development_dependency "minitest", "~> 5.8"
|
31
48
|
|
32
49
|
spec.extensions = %w[ext/digest/xxhash/extconf.rb]
|