mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
27 lines
No EOL
573 B
Ruby
27 lines
No EOL
573 B
Ruby
require 'rubygems'
|
|
require 'rake'
|
|
require 'term/ansicolor'
|
|
|
|
include Term::ANSIColor
|
|
|
|
OMNIAUTH_GEMS = %w(omniauth oa-core oa-oauth oa-openid)
|
|
|
|
desc 'Run specs for all of the gems.'
|
|
task :spec do
|
|
OMNIAUTH_GEMS.each_with_index do |dir, i|
|
|
Dir.chdir(dir) do
|
|
print blue, "\n\n== ", cyan, dir, blue, " specs are running...", clear, "\n\n"
|
|
system('rake spec')
|
|
end
|
|
end
|
|
end
|
|
|
|
desc 'Push all gems to Gemcutter'
|
|
task :gemcutter do
|
|
OMNIAUTH_GEMS.each_with_index do |dir, i|
|
|
Dir.chdir(dir) { system('rake gemcutter') }
|
|
end
|
|
end
|
|
|
|
task :default => :spec
|
|
|