Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (29 sloc) 0.802 kb
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'bundler'
Bundler::GemHelper.install_tasks
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the flag_shih_tzu plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the flag_shih_tzu plugin.'
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'FlagShihTzu'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :test do
desc 'Measures test coverage'
task :coverage do
rm_f "coverage"
system("rcov -Ilib test/*_test.rb")
system("open coverage/index.html") if PLATFORM['darwin']
end
end
Jump to Line
Something went wrong with that request. Please try again.