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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62b0480e6329d7a6f65173ab69262e2c3a0b26fed7d0eaa5d3500c86139b7103
4
- data.tar.gz: 619a548d378beb8c0ab223843451452ea834272bb8df69971ecabf5bd6bd0ec7
3
+ metadata.gz: ac9bf248e60109b08aa07caf6981909f861a420ce307e5ada2983f2be1cbe68e
4
+ data.tar.gz: 3fd2fb64a02ae986f2592f8f98a2d074949f063f31d947f9d039e1503b7428c7
5
5
  SHA512:
6
- metadata.gz: 35b10f17d3d35c0b43662cc37c50b3bf3e008fc8305a3a6357c10f5fd588be3b56a75acd7e6feaeec409455691a010ef112543dbe454c6be66e7217efc26fda0
7
- data.tar.gz: 995863f40af717ec3ba53f7e2429ed01d43ae677aeca1ac5ef9b29b998c1099cf995a3bc81d89a30862bd265cd3c752b999fe75037f07d86425561621bcd7ca2
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
- # install
9
- Rake::Task[:install].clear
10
- task :install => :build do
11
- name = Bundler::GemHelper.gemspec.name
12
- pkg_dir = File.join(Bundler::GemHelper.instance.base, "pkg")
13
- built_gem = Dir.chdir(pkg_dir){ Dir.glob("#{name}-*.gem").sort_by{ |f| File.mtime(f) }.last }
14
- gem_command = (ENV["GEM_COMMAND"].shellsplit rescue nil) || ["gem"]
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
- Rake::TestTask.new(:test => :compile) do |t|
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.
@@ -20,9 +20,26 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.2'
22
22
 
23
- spec.files = `git ls-files -z`.split("\x0").reject{ |f| f =~ /\.yml$/ }
24
- spec.executables = spec.files.grep(%r{^bin/}){ |f| File.basename(f) }
25
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
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"