Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 778 Bytes
require 'bundler'
Bundler::GemHelper.install_tasks
# rspec
begin
require 'rspec'
require 'rspec/core/rake_task'
desc "Run all examples with RCov"
RSpec::Core::RakeTask.new('spec:rcov') do |t|
t.rcov = true
end
RSpec::Core::RakeTask.new('spec') do |t|
t.verbose = true
end
task :default => :spec
rescue LoadError
puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
end
# rake-compiler
require 'rake' unless defined? Rake
gem 'rake-compiler', '>= 0.7.5'
require "rake/extensiontask"
Rake::ExtensionTask.new('bzip2') do |ext|
ext.cross_compile = true
ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
ext.lib_dir = File.join 'lib', 'bzip2'
end
Rake::Task[:spec].prerequisites << :compile