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
*.bundle
Makefile
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'
have_header('ruby/digest.h')

View File

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

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# This will generate a 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("ext"))
require 'digest/keccak'

View File

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