digest-xxhash 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +13 -14
- data/digest-xxhash.gemspec +20 -3
- data/ext/digest/xxhash/xxhash.h +565 -331
- data/lib/digest/xxhash/version.rb +1 -1
- data/rakelib/alt-install-task.rake +59 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac9bf248e60109b08aa07caf6981909f861a420ce307e5ada2983f2be1cbe68e
|
4
|
+
data.tar.gz: 3fd2fb64a02ae986f2592f8f98a2d074949f063f31d947f9d039e1503b7428c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d55d75fe83b85e7833d082876d3241702c3640b52e889c73b3e1bbae5d2fe68c0d769892efb318d187bbcf7ac2518e34b04a9c98b32a51a4f333bd4aca2b8f
|
7
|
+
data.tar.gz: 5d2802ba4f69c2da468880b65b63bb23f67ff1db093af5aeb4a710cf6d695937cef67135389c99a14699d0be0f0c60ba2abeee0557f228268771079d108fbc89
|
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,9 +20,26 @@ 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"
|