#!/usr/bin/env rake require 'bundler/gem_tasks' task :compile do Dir.chdir('src') do sh 'ruby extconf.rb' sh 'make' end end require 'rake/testtask' Rake::TestTask.new do |t| t.pattern = 'test/*_spec.rb' end task :test => :compile