1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
require 'bundler'
require 'bundler/gem_tasks'
github = ENV['github'] || 'nadarei/mina'
task :spec do
system "rm Gemfile.lock; sh -c 'rake=0.8 bundle exec rspec'"
system "rm Gemfile.lock; sh -c 'rake=0.9 bundle exec rspec'"
end
task :docs do
files = ['manual/index.md', 'manual/modules.md', 'HISTORY.md'] + Dir['lib/**/*.rb']
system "lidoc #{files.join ' '} -o docs --github #{github}"
end
task :'docs:deploy' => :docs do
system "git-update-ghpages #{github} -i docs -p docs"
end
task :default => :spec
|