Permalink
Browse files

merged with achiu

  • Loading branch information...
1 parent 6a59e85 commit 2cbb99d006cfc1fa98c073a39ec744413c266461 @jamesarosen jamesarosen committed Jun 13, 2010
View
@@ -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}"
@@ -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
@@ -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
@@ -2,7 +2,7 @@
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
@@ -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

0 comments on commit 2cbb99d

Please sign in to comment.