mirror of https://github.com/erickguan/ffi-icu.git
29 lines
554 B
Ruby
29 lines
554 B
Ruby
require 'rubygems'
|
|
require 'rake'
|
|
|
|
require 'bundler'
|
|
Bundler::GemHelper.install_tasks
|
|
|
|
require 'rspec/core/rake_task'
|
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
spec.pattern = 'spec/**/*_spec.rb'
|
|
spec.rspec_opts = '--backtrace'
|
|
end
|
|
|
|
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|
spec.pattern = 'spec/**/*_spec.rb'
|
|
spec.rcov = true
|
|
end
|
|
|
|
task :default => :spec
|
|
|
|
begin
|
|
require 'yard'
|
|
YARD::Rake::YardocTask.new
|
|
rescue LoadError
|
|
task :yardoc do
|
|
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
|
end
|
|
end
|
|
|