Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 784 Bytes
require "rubygems"
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Default: run unit tests.'
task :default => :spec
desc "Runs the examples"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList[File.dirname(__FILE__) + '/spec/*_spec.rb']
end
desc "Generate code coverage"
Spec::Rake::SpecTask.new(:coverage) do |t|
t.spec_files = FileList[File.dirname(__FILE__) + '/spec/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,/var/lib/gems,init.rb']
end
desc 'Generate documentation for the conductor plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Conductor'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end