Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 413 Bytes
require 'bundler'
Bundler.require
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
desc 'Default: run specs'
task :default => :spec
task :cleanbuild do
`rm ext/*.o ext/Makefile`
if RUBY_VERSION =~ /^1.9/
`cd ext && ruby extconf.rb && make`
elsif RUBY_VERSION =~ /^1.8/
`cd ext && ruby extconf.rb && make`
else
puts "Ruby version #{RUBY_VERSION}? Can't help you.. "
end
end