omniauth/Rakefile

52 строки
1.4 KiB
Ruby
Исходник Постоянная ссылка Обычный вид История

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'
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-29 04:55:10 +04:00
desc 'Build and install gems for all projects'
task :install => 'all:install'
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-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
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
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]
namespace :doc do
require 'yard'
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']
end
end