Move into subdirectory and add Ruby extension file

This commit is contained in:
Hongli Lai (Phusion) 2012-10-04 14:00:56 +02:00
parent 8a53c2438b
commit 0edf5aee7a
9 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
*.DS_Store
*.o
*.bundle
Makefile

2
ext/digest/extconf.rb Normal file
View File

@ -0,0 +1,2 @@
require 'mkmf'
create_makefile('sha3')

9
ext/digest/sha3.c Normal file
View 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");
}