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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67c1180d8629bae85bc269796cdae0b67e1fb1942dd5048906c5b785b94b878b
4
- data.tar.gz: 0f35b3b820f91b12e0439e91dac4bf45a390dfc901d20c730d746886c132ca5a
3
+ metadata.gz: 919358191e0f1f26b79b95bc7253d80ec46b26aabcaa729c0b82fd69d7ffd2ff
4
+ data.tar.gz: 5111f27d4afb62092f5643e7f85fa07e6b46a20863f7682c2993902fd22b31a6
5
5
  SHA512:
6
- metadata.gz: e7177998d433255ccb0e222257f9161c2e9514418052cf757621b3b13fbdb348dc6a47bd460b94398466496b28ebc7c06b845fc44329156a46309aef749c3bd5
7
- data.tar.gz: af71a1e091b287e7d2ff9a41f74fc1adb2af73f625a66c9a5f1d64d3001c99034ec00e5b88085d93362b0820e0a33e2ad1f5f70df8b19551247d9a8d84d757da
6
+ metadata.gz: 5ddde4f920bd2ea2a62f131650bf58b884c5006568887ca6c5c35c38ca1a73c4bd566198a7366c72e0576d02f850728715f47623afa2052b54636734462f0c32
7
+ data.tar.gz: 3fd5a9ce98fba62c9e8c246a64fd64c49b7692cf4c7056b7ff9894cf21015acce1723a792d5cef4f09da2b6e5bbea24a77f4c8cd6b0bf486db19587c40077e5e
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021 konsolebox
1
+ Copyright (c) 2022 konsolebox
2
2
 
3
3
  MIT License
4
4
 
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
- [![Build Status](https://travis-ci.org/konsolebox/digest-xxhash-ruby.svg?branch=master)](https://travis-ci.org/konsolebox/digest-xxhash-ruby)
96
- [![Build Status](https://ci.appveyor.com/api/projects/status/kb6hvlxjms3ftw7u?svg=true)](https://ci.appveyor.com/project/konsolebox/digest-xxhash-ruby)
97
95
  [![Build Status](https://github.com/konsolebox/digest-xxhash-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/konsolebox/digest-xxhash-ruby/actions/workflows/ruby.yml)
96
+ [![Build Status](https://ci.appveyor.com/api/projects/status/kb6hvlxjms3ftw7u?svg=true)](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
- # 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,13 +20,30 @@ 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"
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]
@@ -1197,4 +1197,6 @@ void Init_xxhash()
1197
1197
  */
1198
1198
 
1199
1199
  rb_define_const(_Digest_XXHash, "XXH3_SECRET_SIZE_MIN", INT2FIX(XXH3_SECRET_SIZE_MIN));
1200
+
1201
+ rb_require("digest/xxhash/version");
1200
1202
  }