Move into subdirectory and add Ruby extension file
This commit is contained in:
parent
8a53c2438b
commit
0edf5aee7a
9 changed files with 13 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
*.DS_Store
|
||||
*.o
|
||||
*.bundle
|
||||
Makefile
|
||||
|
|
2
ext/digest/extconf.rb
Normal file
2
ext/digest/extconf.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
require 'mkmf'
|
||||
create_makefile('sha3')
|
9
ext/digest/sha3.c
Normal file
9
ext/digest/sha3.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "ruby.h"
|
||||
|
||||
static VALUE mDigest, mSHA3;
|
||||
|
||||
void
|
||||
Init_sha3() {
|
||||
mDigest = rb_define_module("Digest");
|
||||
mSHA3 = rb_define_module_under(mDigest, "SHA3");
|
||||
}
|
Loading…
Reference in a new issue