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

merged with achiu

This commit is contained in:
James A. Rosen 2010-06-13 13:20:52 -04:00
parent 6a59e856ae
commit 2cbb99d006
5 changed files with 32 additions and 9 deletions

View file

@ -6,7 +6,7 @@ require 'term/ansicolor'
include Term::ANSIColor
OMNIAUTH_GEMS = %w(oa-core oa-oauth oa-openid omniauth)
OMNIAUTH_GEMS = %w(oa-basic oa-core oa-oauth oa-openid omniauth)
def each_gem(action, &block)
OMNIAUTH_GEMS.each_with_index do |dir, i|
@ -62,11 +62,34 @@ end
desc 'Build all gems'
task :build do
each_gem('is releasing to Gemcutter...') do
system('rake gemcutter')
each_gem('is building gems') do
system('rake gem')
end
end
desc 'Install all gems'
task :install do
each_gem('is installing gems') do
system('rake gem:install')
end
end
desc "Clean pkg and other stuff"
task :clean do
OMNIAUTH_GEMS.each do |dir|
Dir.chdir(dir) do
%w(tmp pkg coverage dist).each { |dir| FileUtils.rm_rf dir }
end
end
Dir["**/*.gem"].each { |gem| FileUtils.rm_rf gem }
end
desc "Uninstall gems"
task :uninstall do
sh "sudo gem uninstall #{OMNIAUTH_GEMS.join(" ")} -a"
end
desc 'Display the current version.'
task :version do
puts "Current Version: #{version}"

View file

@ -16,4 +16,4 @@ Gem::Specification.new do |gem|
gem.add_dependency 'oa-core', version
gem.add_bundler_dependencies(:default, :oa_basic, :development)
end
end

View file

@ -2,7 +2,7 @@ version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
Gem::Specification.new do |gem|
gem.name = "oa-oauth"
gem.version = File.open(File.dirname(__FILE__) + '/VERSION', 'r').read.strip
gem.version = version
gem.summary = %Q{OAuth strategies for OmniAuth.}
gem.description = %Q{OAuth strategies for OmniAuth.}
gem.email = "michael@intridea.com"
@ -13,4 +13,4 @@ Gem::Specification.new do |gem|
gem.add_dependency 'oa-core', version
gem.add_bundler_dependencies(:default, :oa_oauth, :development)
end
end

View file

@ -2,7 +2,7 @@ require 'omniauth/openid'
module OmniAuth
module Strategies
class Google < OmniAuth::Stratgies::OpenID
class Google < OmniAuth::Strategies::OpenID
def identifier; 'https://www.google.com/accounts/o8/id' end
end
end

View file

@ -2,7 +2,7 @@ version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
Gem::Specification.new do |gem|
gem.name = "oa-openid"
gem.version = File.open(File.dirname(__FILE__) + '/VERSION', 'r').read.strip
gem.version = version
gem.summary = %Q{OpenID strategies for OmniAuth.}
gem.description = %Q{OpenID strategies for OmniAuth.}
gem.email = "michael@intridea.com"
@ -13,4 +13,4 @@ Gem::Specification.new do |gem|
gem.add_dependency 'oa-core', version
gem.add_bundler_dependencies(:default, :oa_openid, :development)
end
end