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