Fixes
This commit is contained in:
parent
aeccddbfb1
commit
07d60f1537
|
@ -1,4 +1,43 @@
|
|||
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
||||
#
|
||||
# If you find yourself ignoring temporary files generated by your text editor
|
||||
# or operating system, you probably want to add a global ignore instead:
|
||||
# git config --global core.excludesfile '~/.gitignore_global'
|
||||
|
||||
/lib/*.bundle
|
||||
/lib/blake2b_ext.so
|
||||
|
||||
*.o
|
||||
*.gem
|
||||
Gemfile.lock
|
||||
lib/*.bundle
|
||||
tmp/
|
||||
*.rbc
|
||||
/.config
|
||||
/.rake_tasks~
|
||||
/coverage/
|
||||
/InstalledFiles
|
||||
/pkg/
|
||||
/tmp/
|
||||
|
||||
# RSpec configuration and generated files:
|
||||
/.rspec
|
||||
/spec/examples.txt
|
||||
|
||||
# Documentation cache and generated files:
|
||||
/.yardoc/
|
||||
/_yardoc/
|
||||
/doc/
|
||||
/rdoc/
|
||||
|
||||
# Environment normalization:
|
||||
/.bundle/
|
||||
/vendor/bundle/*
|
||||
!/vendor/bundle/.keep
|
||||
/lib/bundler/man/
|
||||
|
||||
# For a library or gem, you might want to ignore these files since the code is
|
||||
# intended to run in multiple environments; otherwise, check them in:
|
||||
/Gemfile.lock
|
||||
/.ruby-version
|
||||
/.ruby-gemset
|
||||
|
||||
# Unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
||||
.rvmrc
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# BLAKE2b for Ruby
|
||||
Digest::Blake2b
|
||||
===============
|
||||
|
||||
BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, and SHA-3, yet is at least as secure as the latest standard SHA-3. BLAKE2 has been adopted by many projects due to its high speed, security, and simplicity.
|
||||
|
||||
|
@ -111,4 +112,4 @@ Blake2b is based heavily on [Blake2](https://github.com/franckverrot/blake2) by
|
|||
|
||||
Blake2b is copyright 2018, Mauricio Gomes.
|
||||
|
||||
The original work (Blake2) and the modified work (Blake2b) are licensed GPL v3.0. See LICENSE.txt for details.
|
||||
The original work (Blake2) and the modified work (Blake2b) are licensed GPL v3.0. See LICENSE for details.
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
# coding: utf-8
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "blake2b"
|
||||
spec.version = "0.10.0"
|
||||
spec.authors = ["Franck Verrot", "Mauricio Gomes"]
|
||||
spec.email = ["mauricio@edge14.com"]
|
||||
spec.homepage = "https://github.com/mgomes/blake2b"
|
||||
spec.license = "GPL-3.0"
|
||||
|
||||
spec.summary = "A cryptographic hash function faster than MD5, SHA-1, SHA-2, and SHA-3 for 64-bit systems."
|
||||
spec.required_ruby_version = ">= 2.1.0"
|
||||
spec.description = "A cryptographic hash function faster than MD5, SHA-1, SHA-2, and SHA-3 for 64-bit systems."
|
||||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
||||
|
||||
spec.extensions << "ext/blake2b_ext/extconf.rb"
|
||||
|
||||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
||||
spec.require_paths = ["lib"]
|
||||
|
||||
spec.add_development_dependency "rake-compiler", "~> 0.9"
|
||||
spec.add_development_dependency "bundler" , "~> 1.5"
|
||||
spec.add_development_dependency "rake" , "~> 11.1"
|
||||
spec.add_development_dependency "minitest" , "~> 5.11"
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
lib = File.expand_path('lib', __dir__).freeze
|
||||
$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
|
||||
|
||||
require 'digest/blake2b/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'digest-blake2b'
|
||||
spec.version = Digest::Blake2b::VERSION
|
||||
spec.license = 'GPL-3.0'
|
||||
spec.homepage = 'https://github.com/kotovalexarian/digest-blake2b.rb'
|
||||
spec.summary = 'The BLAKE2b cryptographic hash function.'
|
||||
|
||||
spec.required_ruby_version = '~> 2.1'
|
||||
|
||||
spec.authors = ['Franck Verrot', 'Mauricio Gomes']
|
||||
spec.email = %w[mauricio@edge14.com]
|
||||
|
||||
spec.description = <<-DESCRIPTION.split.join ' '
|
||||
BLAKE2b is a cryptographic hash function
|
||||
faster than MD5, SHA-1, SHA-2, and SHA-3 for 64-bit systems.
|
||||
DESCRIPTION
|
||||
|
||||
spec.metadata = {
|
||||
'homepage_uri' => 'https://github.com/kotovalexarian/digest-blake2b.rb',
|
||||
'source_code_uri' => 'https://github.com/kotovalexarian/digest-blake2b.rb',
|
||||
'bug_tracker_uri' =>
|
||||
'https://github.com/kotovalexarian/digest-blake2b.rb/issues',
|
||||
}.freeze
|
||||
|
||||
spec.bindir = 'exe'
|
||||
spec.require_paths = ['lib']
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
||||
f.match %r{^(test|spec|features)/}
|
||||
end
|
||||
|
||||
spec.test_files = spec.files.grep %r{^(test|spec|features)/}
|
||||
|
||||
spec.executables = spec.files.grep %r{^exe/}, &File.method(:basename)
|
||||
|
||||
spec.extensions << 'ext/blake2b_ext/extconf.rb'
|
||||
|
||||
spec.add_development_dependency 'rake-compiler', '~> 0.9'
|
||||
spec.add_development_dependency 'bundler' , '~> 1.5'
|
||||
spec.add_development_dependency 'rake' , '~> 11.1'
|
||||
spec.add_development_dependency 'minitest' , '~> 5.11'
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Digest
|
||||
class Blake2b
|
||||
VERSION = '0.0.0'
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue