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