Some fixes

This commit is contained in:
Alex Kotov 2019-06-08 17:00:43 +05:00
parent e7e8940b33
commit 2c1ba8012c
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
6 changed files with 49 additions and 3 deletions

43
.gitignore vendored
View file

@ -1,5 +1,42 @@
*.DS_Store # 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'
*.o *.o
*.bundle
Makefile
test/test_vectors.rb test/test_vectors.rb
*.gem
*.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

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'mkmf' require 'mkmf'
have_header('ruby/digest.h') have_header('ruby/digest.h')

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Digest module Digest
class Keccak class Keccak
module Version module Version

View file

@ -1,4 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# This will generate a test suite. # This will generate a test suite.
# Based on python-sha3's test suite. # Based on python-sha3's test suite.

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
$LOAD_PATH.unshift(File.expand_path("lib")) $LOAD_PATH.unshift(File.expand_path("lib"))
$LOAD_PATH.unshift(File.expand_path("ext")) $LOAD_PATH.unshift(File.expand_path("ext"))
require 'digest/keccak' require 'digest/keccak'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test/unit' require 'test/unit'
class KeccakUsageTest < Test::Unit::TestCase class KeccakUsageTest < Test::Unit::TestCase