Skip to content

Commit

Permalink
GitHub strategy has graduated to its own gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Oct 28, 2011
1 parent 88b7e9b commit cb939af
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.powenv
2 changes: 0 additions & 2 deletions examples/sinatra.rb
Expand Up @@ -10,14 +10,12 @@

use OmniAuth::Builder do
provider :twitter, ENV['TWITTER_KEY'], ENV['TWITTER_SECRET']
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
end

get '/' do
<<-HTML
<ul>
<li><a href='/auth/twitter'>Sign in with Twitter</a></li>
<li><a href='/auth/github'>Sign in with GitHub</a></li>
</ul>
HTML
end
Expand Down
4 changes: 0 additions & 4 deletions lib/omniauth-contrib.rb
Expand Up @@ -4,11 +4,7 @@
module OmniAuth
module Strategies
autoload :Twitter, 'omniauth/strategies/twitter'
autoload :GitHub, 'omniauth/strategies/github'
autoload :OpenID, 'omniauth/strategies/openid'
end
end

OmniAuth.config.add_camelization 'github', 'GitHub'
OmniAuth.config.add_camelization 'openid', 'OpenID'
OmniAuth.config.add_camelization 'open_id', 'OpenID'
36 changes: 0 additions & 36 deletions lib/omniauth/strategies/github.rb

This file was deleted.

1 change: 0 additions & 1 deletion omniauth-contrib.gemspec
Expand Up @@ -4,7 +4,6 @@ require File.expand_path('../lib/omniauth-contrib/version', __FILE__)
Gem::Specification.new do |gem|
gem.add_dependency 'omniauth', '~> 1.0.0.beta1'
gem.add_dependency 'omniauth-oauth', '~> 1.0.0.beta1'
gem.add_dependency 'omniauth-oauth2', '~> 1.0.0.beta1'
gem.add_dependency 'multi_json'

gem.authors = ["Michael Bleigh"]
Expand Down

0 comments on commit cb939af

Please sign in to comment.