Skip to content
This repository
Browse code

merged with achiu

  • Loading branch information...
commit 2cbb99d006cfc1fa98c073a39ec744413c266461 1 parent 6a59e85
James Alexander Rosen jamesarosen authored
29 Rakefile
@@ -6,7 +6,7 @@ require 'term/ansicolor'
6 6
7 7 include Term::ANSIColor
8 8
9   -OMNIAUTH_GEMS = %w(oa-core oa-oauth oa-openid omniauth)
  9 +OMNIAUTH_GEMS = %w(oa-basic oa-core oa-oauth oa-openid omniauth)
10 10
11 11 def each_gem(action, &block)
12 12 OMNIAUTH_GEMS.each_with_index do |dir, i|
@@ -62,11 +62,34 @@ end
62 62
63 63 desc 'Build all gems'
64 64 task :build do
65   - each_gem('is releasing to Gemcutter...') do
66   - system('rake gemcutter')
  65 + each_gem('is building gems') do
  66 + system('rake gem')
67 67 end
68 68 end
69 69
  70 +desc 'Install all gems'
  71 +task :install do
  72 + each_gem('is installing gems') do
  73 + system('rake gem:install')
  74 + end
  75 +end
  76 +
  77 +desc "Clean pkg and other stuff"
  78 +task :clean do
  79 + OMNIAUTH_GEMS.each do |dir|
  80 + Dir.chdir(dir) do
  81 + %w(tmp pkg coverage dist).each { |dir| FileUtils.rm_rf dir }
  82 + end
  83 + end
  84 + Dir["**/*.gem"].each { |gem| FileUtils.rm_rf gem }
  85 +end
  86 +
  87 +desc "Uninstall gems"
  88 +task :uninstall do
  89 + sh "sudo gem uninstall #{OMNIAUTH_GEMS.join(" ")} -a"
  90 +end
  91 +
  92 +
70 93 desc 'Display the current version.'
71 94 task :version do
72 95 puts "Current Version: #{version}"
2  oa-basic/oa-basic.gemspec
@@ -16,4 +16,4 @@ Gem::Specification.new do |gem|
16 16
17 17 gem.add_dependency 'oa-core', version
18 18 gem.add_bundler_dependencies(:default, :oa_basic, :development)
19   -end
  19 +end
4 oa-oauth/oa-oauth.gemspec
@@ -2,7 +2,7 @@ version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
2 2
3 3 Gem::Specification.new do |gem|
4 4 gem.name = "oa-oauth"
5   - gem.version = File.open(File.dirname(__FILE__) + '/VERSION', 'r').read.strip
  5 + gem.version = version
6 6 gem.summary = %Q{OAuth strategies for OmniAuth.}
7 7 gem.description = %Q{OAuth strategies for OmniAuth.}
8 8 gem.email = "michael@intridea.com"
@@ -13,4 +13,4 @@ Gem::Specification.new do |gem|
13 13
14 14 gem.add_dependency 'oa-core', version
15 15 gem.add_bundler_dependencies(:default, :oa_oauth, :development)
16   -end
  16 +end
2  oa-openid/lib/omniauth/strategies/google.rb
@@ -2,7 +2,7 @@
2 2
3 3 module OmniAuth
4 4 module Strategies
5   - class Google < OmniAuth::Stratgies::OpenID
  5 + class Google < OmniAuth::Strategies::OpenID
6 6 def identifier; 'https://www.google.com/accounts/o8/id' end
7 7 end
8 8 end
4 oa-openid/oa-openid.gemspec
@@ -2,7 +2,7 @@ version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
2 2
3 3 Gem::Specification.new do |gem|
4 4 gem.name = "oa-openid"
5   - gem.version = File.open(File.dirname(__FILE__) + '/VERSION', 'r').read.strip
  5 + gem.version = version
6 6 gem.summary = %Q{OpenID strategies for OmniAuth.}
7 7 gem.description = %Q{OpenID strategies for OmniAuth.}
8 8 gem.email = "michael@intridea.com"
@@ -13,4 +13,4 @@ Gem::Specification.new do |gem|
13 13
14 14 gem.add_dependency 'oa-core', version
15 15 gem.add_bundler_dependencies(:default, :oa_openid, :development)
16   -end
  16 +end

0 comments on commit 2cbb99d

Please sign in to comment.
Something went wrong with that request. Please try again.