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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13a45473ead2b57671c5cca9f88eea4d45250e5dc20979bee5ed8809b882be51
4
- data.tar.gz: 73caf787eba77f51d32dd9ab01c2d7ade5d3dedcd4c41ea989d16de935a97d3b
3
+ metadata.gz: c1226d2df68de1c35ccf371af01c3e58bed8f73164eabacd6a11a4b30b2188df
4
+ data.tar.gz: 9a778e23f7c452c5835d7e583a2982257f2ed9a723b312ebfb8778b59e8d5f03
5
5
  SHA512:
6
- metadata.gz: 862fc3bf9c51e9892532abb4ae7e952ceee55c7731b0448ed06e178568401f054b91e125927e8e122975201117399270578af043842aae252ef5593c313c81e6
7
- data.tar.gz: 8dd8c150730470bc48625d306210b42074978a691d808966538d5fd64649c452a1782a2520117f7dfd326698125fd997c36c9cc8d1f44e11a0b254f086097d70
6
+ metadata.gz: e80a9b881dbc75a8e30f9e2379c02413aa8cda52ee8b61e28af6df4a3f0279e34a8c0e6794f203e08e4d8e868497339511cce77eac50bce2b59d5730f08e6e12
7
+ data.tar.gz: eb4ce98bbd52946f7faaf6fd18ff42097b0a1d7f98f36b1df1daa5a696d0aa74b6e5da62ad55c40014bd1ac64407e62718d2db913dcb601ee2d3853dfa4731f4
@@ -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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blake3
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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