2012-03-05 21:05:21 +00:00
|
|
|
require "bundler"
|
|
|
|
Bundler.require(:development)
|
|
|
|
|
2011-10-10 12:54:26 +00:00
|
|
|
require "bundler/gem_tasks"
|
2012-03-05 21:05:21 +00:00
|
|
|
require "rspec/core/rake_task"
|
|
|
|
|
|
|
|
task :default => :spec
|
2011-10-10 12:54:26 +00:00
|
|
|
|
2012-03-05 21:05:21 +00:00
|
|
|
desc "Run all specs"
|
|
|
|
RSpec::Core::RakeTask.new(:spec) do |task| # {{{
|
|
|
|
task.pattern = "spec/**/*_spec.rb"
|
|
|
|
task.rspec_opts = "--colour --format=documentation"
|
2011-10-08 15:59:10 +00:00
|
|
|
end # }}}
|
|
|
|
|
2012-03-05 21:05:21 +00:00
|
|
|
desc "Generate YARD Documentation"
|
|
|
|
YARD::Rake::YardocTask.new do |task| # {{{
|
|
|
|
task.options = [
|
|
|
|
"-o", File.expand_path("../doc", __FILE__),
|
|
|
|
"--readme=README.md",
|
|
|
|
"--markup=markdown",
|
|
|
|
"--markup-provider=maruku",
|
|
|
|
"--no-private",
|
|
|
|
"--no-cache",
|
|
|
|
"--protected",
|
|
|
|
"--title=Teamocil",
|
|
|
|
]
|
|
|
|
task.files = ["lib/**/*.rb"]
|
2011-10-08 15:59:10 +00:00
|
|
|
end # }}}
|