Add a gemspec and support loading ffi as a gem

This commit is contained in:
Alex Young
2011-05-16 11:29:07 +01:00
parent 68d82cdf0b
commit 30d633cf09
4 changed files with 39 additions and 5 deletions

View File

@@ -1,6 +1,12 @@
require 'rake/testtask'
ROOT = File.dirname(__FILE__)
task :test do
$:.unshift File.join(ROOT, "lib")
$:.unshift File.join(ROOT, "test")
Rake::TestTask.new do |t|
t.verbose = true
t.test_files = FileList["test/**/t_*.rb"]
end
task :gem do
sh "gem build netlinkrb.gemspec"
end