2011-05-14 13:11:04 -04:00
|
|
|
#!/usr/bin/env rake
|
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
$:.unshift File.expand_path('..', __FILE__)
|
|
|
|
require 'tasks/all'
|
2010-03-25 19:37:03 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Clean up temporary files'
|
|
|
|
task :clean => 'all:clean'
|
2010-05-01 15:07:56 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Build gem files for all projects into the package directory'
|
|
|
|
task :build => 'all:build'
|
2011-04-22 11:49:23 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Build and install gems for all projects'
|
|
|
|
task :install => 'all:install'
|
2011-04-22 11:49:23 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Write version with MAJOR, MINOR, PATCH, and PRE environment variables'
|
|
|
|
task 'version:write' => 'all:version:write'
|
2011-04-22 11:49:23 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Display the current version for all projects'
|
|
|
|
task :version => 'all:version'
|
|
|
|
desc 'Increment the major version for all projects'
|
|
|
|
task 'version:bump:major' => 'all:version:bump:major'
|
|
|
|
desc 'Increment the minor version for all projects'
|
|
|
|
task 'version:bump:minor' => 'all:version:bump:minor'
|
|
|
|
desc 'Increment the patch version for all projects'
|
|
|
|
task 'version:bump:patch' => 'all:version:bump:patch'
|
2011-04-22 04:11:29 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Run specs for all projects'
|
|
|
|
task :spec => 'all:spec'
|
|
|
|
task :test => :spec
|
|
|
|
task :default => :test
|
2010-04-09 21:30:16 -04:00
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Generate docs for all projects'
|
|
|
|
task 'doc:yard' => 'all:doc:yard'
|
2011-04-22 04:11:29 -04:00
|
|
|
|
|
|
|
task :tag do
|
2011-04-28 20:55:10 -04:00
|
|
|
sh "git tag -a -m \"Version #{version}\" v#{version}"
|
|
|
|
sh "git push"
|
|
|
|
sh "git push --tags"
|
2011-04-22 04:11:29 -04:00
|
|
|
end
|
2010-10-14 11:27:33 -04:00
|
|
|
|
2011-04-28 21:33:32 -04:00
|
|
|
task :push => 'all:push'
|
|
|
|
|
2011-04-28 20:55:10 -04:00
|
|
|
desc 'Build, tag, and push gems for all projects to Rubygems'
|
|
|
|
task :release => [:build, :tag, :push]
|
2010-10-14 11:27:33 -04:00
|
|
|
|
2011-04-22 11:49:23 -04:00
|
|
|
namespace :doc do
|
2010-10-14 11:27:33 -04:00
|
|
|
require 'yard'
|
2011-04-22 11:49:23 -04:00
|
|
|
YARD::Rake::YardocTask.new do |task|
|
2011-04-28 20:55:10 -04:00
|
|
|
task.files = PROJECTS.map{|project| "#{root}/#{project}/lib/**/*.rb"} + ['README.markdown', 'LICENSE']
|
2010-10-14 11:27:33 -04:00
|
|
|
end
|
2011-01-12 09:51:22 -05:00
|
|
|
end
|