1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00
omniauth--omniauth/Rakefile

52 lines
1.4 KiB
Text
Raw Normal View History

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