This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
require 'rake' |
| 2 |
require 'rake/testtask' |
| 3 |
require 'rake/rdoctask' |
| 4 |
|
| 5 |
desc 'Default: run unit tests.' |
| 6 |
task :default => :test |
| 7 |
|
| 8 |
desc 'Test the cms plugin.' |
| 9 |
Rake::TestTask.new(:test) do |t| |
| 10 |
t.libs << 'lib' |
| 11 |
t.pattern = 'test/**/*_test.rb' |
| 12 |
t.verbose = true |
| 13 |
end |
| 14 |
|
| 15 |
desc 'Generate documentation for Station.' |
| 16 |
Rake::RDocTask.new(:rdoc) do |rdoc| |
| 17 |
rdoc.rdoc_dir = 'rdoc-master' |
| 18 |
rdoc.title = 'Rails Station Engine Documentation' |
| 19 |
rdoc.template = 'doc/template/horo.rb' |
| 20 |
rdoc.options << '--line-numbers' << '--inline-source' |
| 21 |
rdoc.rdoc_files.include('README.rdoc') |
| 22 |
rdoc.rdoc_files.include('lib/**/*.rb', 'app/**/*.rb') |
| 23 |
end |