blake3 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/blake3.gemspec +1 -0
- data/ext/extconf.rb +24 -0
- data/lib/blake3/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1226d2df68de1c35ccf371af01c3e58bed8f73164eabacd6a11a4b30b2188df
|
4
|
+
data.tar.gz: 9a778e23f7c452c5835d7e583a2982257f2ed9a723b312ebfb8778b59e8d5f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80a9b881dbc75a8e30f9e2379c02413aa8cda52ee8b61e28af6df4a3f0279e34a8c0e6794f203e08e4d8e868497339511cce77eac50bce2b59d5730f08e6e12
|
7
|
+
data.tar.gz: eb4ce98bbd52946f7faaf6fd18ff42097b0a1d7f98f36b1df1daa5a696d0aa74b6e5da62ad55c40014bd1ac64407e62718d2db913dcb601ee2d3853dfa4731f4
|
data/blake3.gemspec
CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
+
spec.extensions = %w(ext/extconf.rb)
|
30
31
|
spec.add_development_dependency "bundler", "~> 1.17"
|
31
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
33
|
spec.add_development_dependency "rspec", "~> 3.0"
|
data/ext/extconf.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
RAKEFILE = 'native.rake'
|
2
|
+
|
3
|
+
def command_exists(command, *extra_test_arguments)
|
4
|
+
raise "Command #{command} not found. exitting..." unless system(command, *extra_test_arguments)
|
5
|
+
end
|
6
|
+
|
7
|
+
command_exists('cargo', '--version')
|
8
|
+
command_exists('rustc', '--version')
|
9
|
+
|
10
|
+
File.open('Makefile', 'w') do |makefile|
|
11
|
+
makefile.puts <<~MAKEFILE
|
12
|
+
clean:
|
13
|
+
\trake -f #{RAKEFILE} clobber
|
14
|
+
install:
|
15
|
+
\trake -f #{RAKEFILE} build
|
16
|
+
MAKEFILE
|
17
|
+
end
|
18
|
+
|
19
|
+
File.open(RAKEFILE, 'w') do |rakefile|
|
20
|
+
rakefile.puts <<~RUBY
|
21
|
+
require 'helix_runtime/build_task'
|
22
|
+
HelixRuntime::BuildTask.new
|
23
|
+
RUBY
|
24
|
+
end
|
data/lib/blake3/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blake3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hajime Yamaguchi
|
@@ -70,7 +70,8 @@ description: Blake3 for Ruby
|
|
70
70
|
email:
|
71
71
|
- gen.yamaguchi0@gmail.com
|
72
72
|
executables: []
|
73
|
-
extensions:
|
73
|
+
extensions:
|
74
|
+
- ext/extconf.rb
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
76
77
|
- ".gitignore"
|
@@ -87,6 +88,7 @@ files:
|
|
87
88
|
- bin/console
|
88
89
|
- bin/setup
|
89
90
|
- blake3.gemspec
|
91
|
+
- ext/extconf.rb
|
90
92
|
- lib/blake3.rb
|
91
93
|
- lib/blake3/version.rb
|
92
94
|
- src/lib.rs
|