a sample gem with a c extension
Ruby C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext/native_gem
lib
.gitignore
Gemfile
README.md
Rakefile
native-gem.gemspec

README.md

native-gem

##About

native-gem is an example gem with a native extension. It uses bundler and rake-compiler. It provides a NativeGem module with a hello_world method defined in C.

##Install

$ gem install native-gem

##Usage

require 'native-gem'
NativeGem.hello_world
# => "hello, world!"

##Build it yourself

$ git clone git://github.com/davidbalbert/native-gem
$ cd native-gem
$ bundle install
$ rake compile

##License

native-gem is in the public domain.