Permalink
Browse files

isuext

  • Loading branch information...
sorah committed Oct 31, 2015
1 parent ec68e77 commit 9bf395ef406b64a1a81d7e2c449e07410b83d924
Showing with 31 additions and 0 deletions.
  1. +4 −0 5f/webapp/ruby/.gitignore
  2. +2 −0 5f/webapp/ruby/ext/extconf.rb
  3. +18 −0 5f/webapp/ruby/ext/isuext.c
  4. +7 −0 5f/webapp/ruby/reload.sh
@@ -0,0 +1,4 @@
*.bundle
.bundle/
Makefile
*.o
@@ -0,0 +1,2 @@
require 'mkmf'
create_makefile 'isuext'
@@ -0,0 +1,18 @@
#include <ruby.h>
#include <ruby/encoding.h>
#include <ruby/version.h>
VALUE rb_mIsuext;
static VALUE
m_test(VALUE self)
{
return rb_str_new2("test");
}
void
Init_isuext(void)
{
rb_mIsuext = rb_define_module("Isuext");
rb_define_singleton_method(rb_mIsuext, "test", RUBY_METHOD_FUNC(m_test), 0);
}
View
@@ -0,0 +1,7 @@
#!/bin/bash
bundle install --jobs 30
(
cd ext
ruby extconf.rb
make
)

0 comments on commit 9bf395e

Please sign in to comment.