Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 593 Bytes
require 'rubygems'
require 'spec'
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
desc 'Test the plugin.'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ["--format", "specdoc", "--colour"]
t.libs << 'lib'
t.verbose = true
end
desc "Run all the tests"
task :default => :spec
desc 'Generate documentation for the hashback plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'HashBack'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end