Some fixes
This commit is contained in:
parent
44c92ef509
commit
48dbae3c82
8 changed files with 14 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,6 +9,7 @@
|
|||
!/checksums/.keep
|
||||
/lib/**/*.bundle
|
||||
/lib/digest/blake2b/ext.so
|
||||
/lib/digest/blake2b/sse.so
|
||||
|
||||
*.o
|
||||
*.gem
|
||||
|
|
4
Rakefile
4
Rakefile
|
@ -6,7 +6,7 @@ require 'rake/extensiontask'
|
|||
|
||||
spec = Gem::Specification.load('digest-blake2b.gemspec')
|
||||
|
||||
Rake::ExtensionTask.new("digest/blake2b/#{Digest::Blake2b::IMPL}", spec) do |ext|
|
||||
Rake::ExtensionTask.new "digest/blake2b/#{Digest::Blake2b::IMPL}", spec do |ext|
|
||||
ext.source_pattern = '*.{c,h}'
|
||||
ext.ext_dir = "ext/digest/blake2b/#{Digest::Blake2b::IMPL}"
|
||||
end
|
||||
|
@ -21,7 +21,7 @@ end
|
|||
task default: :full
|
||||
|
||||
desc 'clean, compile, and run the full test suite'
|
||||
task full: %w(clean compile test)
|
||||
task full: %i[clean compile test]
|
||||
|
||||
def gemspec
|
||||
@gemspec ||= begin
|
||||
|
|
0
ext/digest/blake2b/ref/blake2-impl.h
Executable file → Normal file
0
ext/digest/blake2b/ref/blake2-impl.h
Executable file → Normal file
0
ext/digest/blake2b/ref/blake2.h
Executable file → Normal file
0
ext/digest/blake2b/ref/blake2.h
Executable file → Normal file
6
ext/digest/blake2b/ref/extconf.rb
Executable file → Normal file
6
ext/digest/blake2b/ref/extconf.rb
Executable file → Normal file
|
@ -1,3 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'mkmf'
|
||||
$CFLAGS += ' -std=c99'
|
||||
|
||||
$CFLAGS += ' -std=c99 -pedantic -Wall -Wextra'
|
||||
|
||||
create_makefile 'digest/blake2b/ref'
|
||||
|
|
0
ext/digest/blake2b/ref/rbext.c
Executable file → Normal file
0
ext/digest/blake2b/ref/rbext.c
Executable file → Normal file
|
@ -1,3 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'mkmf'
|
||||
$CFLAGS += ' -Wall -Wextra -std=c99 -pedantic -Wno-long-long'
|
||||
|
||||
$CFLAGS += ' -std=c99 -pedantic -Wall -Wextra -Wno-long-long'
|
||||
|
||||
create_makefile 'digest/blake2b/sse'
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
module Digest
|
||||
class Blake2b
|
||||
VERSION = '0.0.4'
|
||||
VERSION = '0.0.3'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue