omniauth 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth might be problematic. Click here for more details.
- data/.autotest +9 -0
- data/.document +5 -0
- data/.gitignore +36 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/.yardopts +4 -0
- data/Gemfile +6 -1
- data/README.markdown +121 -0
- data/Rakefile +50 -2
- data/lib/omniauth/version.rb +18 -4
- data/oa-basic/.gemtest +0 -0
- data/oa-basic/.rspec +3 -0
- data/oa-basic/.yardopts +4 -0
- data/oa-basic/LICENSE +19 -0
- data/oa-basic/README.rdoc +34 -0
- data/oa-basic/Rakefile +6 -0
- data/oa-basic/lib/oa-basic.rb +1 -0
- data/oa-basic/lib/omniauth/basic.rb +8 -0
- data/oa-basic/lib/omniauth/strategies/http_basic.rb +56 -0
- data/oa-basic/lib/omniauth/version.rb +19 -0
- data/oa-basic/oa-basic.gemspec +28 -0
- data/oa-basic/spec/omniauth/strategies/basic_spec.rb +7 -0
- data/oa-basic/spec/spec_helper.rb +11 -0
- data/oa-core/.gemtest +0 -0
- data/oa-core/.rspec +3 -0
- data/oa-core/.yardopts +4 -0
- data/oa-core/LICENSE +19 -0
- data/oa-core/Rakefile +6 -0
- data/oa-core/autotest/discover.rb +1 -0
- data/oa-core/lib/oa-core.rb +1 -0
- data/oa-core/lib/omniauth/builder.rb +33 -0
- data/oa-core/lib/omniauth/core.rb +135 -0
- data/oa-core/lib/omniauth/form.rb +184 -0
- data/oa-core/lib/omniauth/strategy.rb +227 -0
- data/oa-core/lib/omniauth/test.rb +12 -0
- data/oa-core/lib/omniauth/test/phony_session.rb +8 -0
- data/oa-core/lib/omniauth/test/strategy_macros.rb +34 -0
- data/oa-core/lib/omniauth/test/strategy_test_case.rb +49 -0
- data/oa-core/lib/omniauth/version.rb +19 -0
- data/oa-core/oa-core.gemspec +24 -0
- data/oa-core/spec/omniauth/builder_spec.rb +20 -0
- data/oa-core/spec/omniauth/core_spec.rb +79 -0
- data/oa-core/spec/omniauth/strategy_spec.rb +358 -0
- data/oa-core/spec/spec_helper.rb +12 -0
- data/oa-enterprise/.gemtest +0 -0
- data/oa-enterprise/.rspec +3 -0
- data/oa-enterprise/.yardopts +4 -0
- data/oa-enterprise/LICENSE +19 -0
- data/oa-enterprise/README.rdoc +82 -0
- data/oa-enterprise/Rakefile +6 -0
- data/oa-enterprise/lib/oa-enterprise.rb +1 -0
- data/oa-enterprise/lib/omniauth/enterprise.rb +8 -0
- data/oa-enterprise/lib/omniauth/strategies/cas.rb +47 -0
- data/oa-enterprise/lib/omniauth/strategies/cas/configuration.rb +98 -0
- data/oa-enterprise/lib/omniauth/strategies/cas/service_ticket_validator.rb +84 -0
- data/oa-enterprise/lib/omniauth/strategies/ldap.rb +111 -0
- data/oa-enterprise/lib/omniauth/strategies/ldap/adaptor.rb +279 -0
- data/oa-enterprise/lib/omniauth/version.rb +19 -0
- data/oa-enterprise/oa-enterprise.gemspec +32 -0
- data/oa-enterprise/spec/fixtures/cas_failure.xml +4 -0
- data/oa-enterprise/spec/fixtures/cas_success.xml +8 -0
- data/oa-enterprise/spec/omniauth/strategies/cas_spec.rb +94 -0
- data/oa-enterprise/spec/spec_helper.rb +14 -0
- data/oa-more/.gemtest +0 -0
- data/oa-more/.rspec +3 -0
- data/oa-more/.yardopts +4 -0
- data/oa-more/LICENSE +19 -0
- data/oa-more/README.rdoc +22 -0
- data/oa-more/Rakefile +6 -0
- data/oa-more/lib/oa-more.rb +1 -0
- data/oa-more/lib/omniauth/more.rb +9 -0
- data/oa-more/lib/omniauth/strategies/flickr.rb +86 -0
- data/oa-more/lib/omniauth/strategies/windows_live.rb +39 -0
- data/oa-more/lib/omniauth/strategies/windows_live/windowslivelogin.rb +1143 -0
- data/oa-more/lib/omniauth/strategies/yupoo.rb +67 -0
- data/oa-more/lib/omniauth/version.rb +19 -0
- data/oa-more/oa-more.gemspec +30 -0
- data/oa-more/spec/omniauth/strategies/flickr_spec.rb +7 -0
- data/oa-more/spec/spec_helper.rb +11 -0
- data/oa-oauth/.gemtest +0 -0
- data/oa-oauth/.rspec +3 -0
- data/oa-oauth/.yardopts +4 -0
- data/oa-oauth/LICENSE +19 -0
- data/oa-oauth/README.rdoc +35 -0
- data/oa-oauth/Rakefile +6 -0
- data/oa-oauth/autotest/discover.rb +1 -0
- data/oa-oauth/lib/oa-oauth.rb +1 -0
- data/oa-oauth/lib/omniauth/oauth.rb +53 -0
- data/oa-oauth/lib/omniauth/strategies/bitly.rb +46 -0
- data/oa-oauth/lib/omniauth/strategies/dailymile.rb +64 -0
- data/oa-oauth/lib/omniauth/strategies/doit.rb +60 -0
- data/oa-oauth/lib/omniauth/strategies/dopplr.rb +53 -0
- data/oa-oauth/lib/omniauth/strategies/douban.rb +60 -0
- data/oa-oauth/lib/omniauth/strategies/evernote.rb +54 -0
- data/oa-oauth/lib/omniauth/strategies/facebook.rb +70 -0
- data/oa-oauth/lib/omniauth/strategies/foursquare.rb +62 -0
- data/oa-oauth/lib/omniauth/strategies/github.rb +50 -0
- data/oa-oauth/lib/omniauth/strategies/goodreads.rb +44 -0
- data/oa-oauth/lib/omniauth/strategies/google.rb +80 -0
- data/oa-oauth/lib/omniauth/strategies/gowalla.rb +64 -0
- data/oa-oauth/lib/omniauth/strategies/hyves.rb +67 -0
- data/oa-oauth/lib/omniauth/strategies/identica.rb +49 -0
- data/oa-oauth/lib/omniauth/strategies/instagram.rb +56 -0
- data/oa-oauth/lib/omniauth/strategies/instapaper.rb +40 -0
- data/oa-oauth/lib/omniauth/strategies/linked_in.rb +55 -0
- data/oa-oauth/lib/omniauth/strategies/meetup.rb +56 -0
- data/oa-oauth/lib/omniauth/strategies/miso.rb +41 -0
- data/oa-oauth/lib/omniauth/strategies/mixi.rb +59 -0
- data/oa-oauth/lib/omniauth/strategies/netflix.rb +65 -0
- data/oa-oauth/lib/omniauth/strategies/oauth.rb +85 -0
- data/oa-oauth/lib/omniauth/strategies/oauth2.rb +98 -0
- data/oa-oauth/lib/omniauth/strategies/qzone.rb +69 -0
- data/oa-oauth/lib/omniauth/strategies/rdio.rb +45 -0
- data/oa-oauth/lib/omniauth/strategies/renren.rb +87 -0
- data/oa-oauth/lib/omniauth/strategies/salesforce.rb +44 -0
- data/oa-oauth/lib/omniauth/strategies/smug_mug.rb +42 -0
- data/oa-oauth/lib/omniauth/strategies/sound_cloud.rb +46 -0
- data/oa-oauth/lib/omniauth/strategies/t163.rb +57 -0
- data/oa-oauth/lib/omniauth/strategies/teambox.rb +49 -0
- data/oa-oauth/lib/omniauth/strategies/thirty_seven_signals.rb +41 -0
- data/oa-oauth/lib/omniauth/strategies/tqq.rb +64 -0
- data/oa-oauth/lib/omniauth/strategies/trade_me.rb +45 -0
- data/oa-oauth/lib/omniauth/strategies/trip_it.rb +22 -0
- data/oa-oauth/lib/omniauth/strategies/tsina.rb +79 -0
- data/oa-oauth/lib/omniauth/strategies/tsohu.rb +57 -0
- data/oa-oauth/lib/omniauth/strategies/tumblr.rb +60 -0
- data/oa-oauth/lib/omniauth/strategies/twitter.rb +57 -0
- data/oa-oauth/lib/omniauth/strategies/type_pad.rb +76 -0
- data/oa-oauth/lib/omniauth/strategies/vimeo.rb +54 -0
- data/oa-oauth/lib/omniauth/strategies/vkontakte.rb +84 -0
- data/oa-oauth/lib/omniauth/strategies/xauth.rb +67 -0
- data/oa-oauth/lib/omniauth/strategies/yahoo.rb +55 -0
- data/oa-oauth/lib/omniauth/strategies/yammer.rb +43 -0
- data/oa-oauth/lib/omniauth/strategies/you_tube.rb +73 -0
- data/oa-oauth/lib/omniauth/version.rb +19 -0
- data/oa-oauth/oa-oauth.gemspec +33 -0
- data/oa-oauth/spec/fixtures/basecamp_200.xml +24 -0
- data/oa-oauth/spec/fixtures/campfire_200.json +10 -0
- data/oa-oauth/spec/omniauth/strategies/bitly_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/dailymile_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/doit_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/dopplr_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/douban_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/evernote_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/facebook_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/foursquare_spec.rb +18 -0
- data/oa-oauth/spec/omniauth/strategies/github_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/goodreads_spec.rb +6 -0
- data/oa-oauth/spec/omniauth/strategies/google_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/gowalla_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/hyves_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/identica_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/linked_in_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/meetup_spec.rb +14 -0
- data/oa-oauth/spec/omniauth/strategies/miso_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/netflix_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/oauth2_spec.rb +0 -0
- data/oa-oauth/spec/omniauth/strategies/oauth_spec.rb +77 -0
- data/oa-oauth/spec/omniauth/strategies/rdio_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/salesforce_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/smug_mug_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/sound_cloud_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/t163_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/teambox_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/thirty_seven_signals_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/trade_me_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/trip_it_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/tsina_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/tumblr_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/twitter_spec.rb +20 -0
- data/oa-oauth/spec/omniauth/strategies/type_pad_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/vimeo_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/vkontakte_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/yahoo_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/yammer_spec.rb +5 -0
- data/oa-oauth/spec/omniauth/strategies/you_tube_spec.rb +5 -0
- data/oa-oauth/spec/spec_helper.rb +27 -0
- data/oa-oauth/spec/support/shared_examples.rb +29 -0
- data/oa-openid/.gemtest +0 -0
- data/oa-openid/.rspec +3 -0
- data/oa-openid/.yardopts +4 -0
- data/oa-openid/LICENSE +19 -0
- data/oa-openid/README.rdoc +51 -0
- data/oa-openid/Rakefile +6 -0
- data/oa-openid/lib/oa-openid.rb +1 -0
- data/oa-openid/lib/omniauth/openid.rb +59 -0
- data/oa-openid/lib/omniauth/openid/gapps.rb +32 -0
- data/oa-openid/lib/omniauth/strategies/google_apps.rb +23 -0
- data/oa-openid/lib/omniauth/strategies/open_id.rb +132 -0
- data/oa-openid/lib/omniauth/version.rb +19 -0
- data/oa-openid/oa-openid.gemspec +29 -0
- data/oa-openid/spec/omniauth/strategies/open_id_spec.rb +71 -0
- data/oa-openid/spec/spec_helper.rb +14 -0
- data/omniauth.gemspec +3 -3
- data/tasks/all.rb +134 -0
- metadata +199 -9
- data/README.rdoc +0 -17
@@ -0,0 +1,19 @@
|
|
1
|
+
module OmniAuth
|
2
|
+
module Version
|
3
|
+
unless defined?(::OmniAuth::Version::MAJOR)
|
4
|
+
MAJOR = 0
|
5
|
+
end
|
6
|
+
unless defined?(::OmniAuth::Version::MINOR)
|
7
|
+
MINOR = 2
|
8
|
+
end
|
9
|
+
unless defined?(::OmniAuth::Version::PATCH)
|
10
|
+
PATCH = 5
|
11
|
+
end
|
12
|
+
unless defined?(::OmniAuth::Version::PRE)
|
13
|
+
PRE = nil
|
14
|
+
end
|
15
|
+
unless defined?(::OmniAuth::Version::STRING)
|
16
|
+
STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/omniauth/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.add_runtime_dependency 'jruby-openssl', '~> 0.7.3' if RUBY_PLATFORM == 'java'
|
6
|
+
gem.add_runtime_dependency 'oa-core', OmniAuth::Version::STRING
|
7
|
+
gem.add_runtime_dependency 'rack-openid', '~> 1.3.1'
|
8
|
+
gem.add_runtime_dependency 'ruby-openid-apps-discovery', '~> 1.2.0'
|
9
|
+
gem.add_development_dependency 'maruku', '~> 0.6'
|
10
|
+
gem.add_development_dependency 'rack-test', '~> 0.5'
|
11
|
+
gem.add_development_dependency 'rake', '~> 0.8'
|
12
|
+
gem.add_development_dependency 'rspec', '~> 2.5'
|
13
|
+
gem.add_development_dependency 'simplecov', '~> 0.4'
|
14
|
+
gem.add_development_dependency 'webmock', '~> 1.6'
|
15
|
+
gem.add_development_dependency 'yard', '~> 0.6'
|
16
|
+
gem.add_development_dependency 'ZenTest', '~> 4.5'
|
17
|
+
gem.name = 'oa-openid'
|
18
|
+
gem.version = OmniAuth::Version::STRING
|
19
|
+
gem.description = %q{OpenID strategies for OmniAuth.}
|
20
|
+
gem.summary = gem.description
|
21
|
+
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
22
|
+
gem.homepage = 'http://github.com/intridea/omniauth'
|
23
|
+
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
24
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
25
|
+
gem.files = `git ls-files`.split("\n")
|
26
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
+
gem.require_paths = ['lib']
|
28
|
+
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
29
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require File.expand_path('../../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
describe OmniAuth::Strategies::OpenID do
|
4
|
+
|
5
|
+
end
|
6
|
+
|
7
|
+
# require File.dirname(__FILE__) + '/../../spec_helper'
|
8
|
+
#
|
9
|
+
# describe OmniAuth::Strategies::OpenID, :type => :strategy do
|
10
|
+
#
|
11
|
+
# include OmniAuth::Test::StrategyTestCase
|
12
|
+
#
|
13
|
+
# def strategy
|
14
|
+
# [OmniAuth::Strategies::OpenID]
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
# describe '/auth/open_id without an identifier URL' do
|
18
|
+
# before do
|
19
|
+
# get '/auth/open_id'
|
20
|
+
# end
|
21
|
+
#
|
22
|
+
# it 'should respond with OK' do
|
23
|
+
# last_response.should be_ok
|
24
|
+
# end
|
25
|
+
#
|
26
|
+
# it 'should respond with HTML' do
|
27
|
+
# last_response.content_type.should == 'text/html'
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# it 'should render an identifier URL input' do
|
31
|
+
# last_response.body.should =~ %r{<input[^>]*#{OmniAuth::Strategies::OpenID::IDENTIFIER_URL_PARAMETER}}
|
32
|
+
# end
|
33
|
+
# end
|
34
|
+
#
|
35
|
+
# describe '/auth/open_id with an identifier URL' do
|
36
|
+
# before do
|
37
|
+
# @identifier_url = 'http://me.example.org'
|
38
|
+
# # TODO: change this mock to actually return some sort of OpenID response
|
39
|
+
# stub_request(:get, @identifier_url)
|
40
|
+
# get '/auth/open_id?openid_url=' + @identifier_url
|
41
|
+
# end
|
42
|
+
#
|
43
|
+
# it 'should redirect to the OpenID identity URL' do
|
44
|
+
# last_response.should be_redirect
|
45
|
+
# last_response.headers['Location'].should =~ %r{^#{@identifier_url}.*}
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# it 'should tell the OpenID server to return to the callback URL' do
|
49
|
+
# return_to = CGI.escape(last_request.url + '/callback')
|
50
|
+
# last_response.headers['Location'].should =~ %r{[\?&]openid.return_to=#{return_to}}
|
51
|
+
# end
|
52
|
+
#
|
53
|
+
# end
|
54
|
+
#
|
55
|
+
# describe 'followed by /auth/open_id/callback' do
|
56
|
+
# before do
|
57
|
+
# @identifier_url = 'http://me.example.org'
|
58
|
+
# # TODO: change this mock to actually return some sort of OpenID response
|
59
|
+
# stub_request(:get, @identifier_url)
|
60
|
+
# get '/auth/open_id/callback'
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# sets_an_auth_hash
|
64
|
+
# sets_provider_to 'open_id'
|
65
|
+
# sets_uid_to 'http://me.example.org'
|
66
|
+
#
|
67
|
+
# it 'should call through to the master app' do
|
68
|
+
# last_response.body.should == 'true'
|
69
|
+
# end
|
70
|
+
# end
|
71
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start
|
3
|
+
require 'rspec'
|
4
|
+
require 'rack/test'
|
5
|
+
require 'webmock/rspec'
|
6
|
+
require 'omniauth/core'
|
7
|
+
require 'omniauth/test'
|
8
|
+
require 'omniauth/openid'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.include WebMock::API
|
12
|
+
config.include Rack::Test::Methods
|
13
|
+
config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
|
14
|
+
end
|
data/omniauth.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('
|
2
|
+
require File.expand_path('../lib/omniauth/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
%w(oa-core oa-oauth oa-basic oa-openid oa-enterprise oa-more).each do |subgem|
|
6
|
-
gem.add_runtime_dependency subgem,
|
6
|
+
gem.add_runtime_dependency subgem, OmniAuth::Version::STRING
|
7
7
|
end
|
8
8
|
gem.name = 'omniauth'
|
9
|
-
gem.version =
|
9
|
+
gem.version = OmniAuth::Version::STRING
|
10
10
|
gem.summary = %q{Rack middleware for standardized multi-provider authentication.}
|
11
11
|
gem.description = %q{OmniAuth is an authentication framework that that separates the concept of authentiation from the concept of identity, providing simple hooks for any application to have one or multiple authentication providers for a user.}
|
12
12
|
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
data/tasks/all.rb
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
PROJECTS = %w(oa-core oa-basic oa-enterprise oa-more oa-oauth oa-openid omniauth)
|
4
|
+
|
5
|
+
def root
|
6
|
+
File.expand_path('../../', __FILE__)
|
7
|
+
end
|
8
|
+
|
9
|
+
require root + '/lib/omniauth/version'
|
10
|
+
|
11
|
+
def version
|
12
|
+
::OmniAuth::Version.constants.each do |const|
|
13
|
+
::OmniAuth::Version.send(:remove_const, const)
|
14
|
+
end
|
15
|
+
load root + '/lib/omniauth/version.rb'
|
16
|
+
OmniAuth::Version::STRING
|
17
|
+
end
|
18
|
+
|
19
|
+
PROJECTS.each do |project|
|
20
|
+
namespace project.to_sym do
|
21
|
+
dir = root + (project == 'omniauth' ? '' : "/#{project}")
|
22
|
+
package_dir = "#{dir}/pkg"
|
23
|
+
coverage_dir = "#{dir}/converage"
|
24
|
+
temp_dir = "#{dir}/tmp"
|
25
|
+
gem = "#{project}-#{version}.gem"
|
26
|
+
gemspec = "#{project}.gemspec"
|
27
|
+
|
28
|
+
task :clean do
|
29
|
+
rm_rf package_dir
|
30
|
+
rm_rf coverage_dir
|
31
|
+
rm_rf temp_dir
|
32
|
+
end
|
33
|
+
|
34
|
+
task :build => :clean do
|
35
|
+
cd dir
|
36
|
+
sh "gem build #{gemspec}"
|
37
|
+
mkdir_p package_dir unless Dir.exists?(package_dir)
|
38
|
+
mv gem, "#{package_dir}/#{gem}"
|
39
|
+
end
|
40
|
+
|
41
|
+
task :install => :build do
|
42
|
+
sh "gem install #{package_dir}/#{gem}"
|
43
|
+
end
|
44
|
+
|
45
|
+
task :push => :build do
|
46
|
+
sh "gem push #{package_dir}/#{gem}"
|
47
|
+
end
|
48
|
+
|
49
|
+
task :version do
|
50
|
+
puts "#{project}: #{version}"
|
51
|
+
end
|
52
|
+
|
53
|
+
namespace :version do
|
54
|
+
|
55
|
+
destination = "#{dir}/lib/omniauth/version.rb"
|
56
|
+
|
57
|
+
task :write do
|
58
|
+
write_version(destination, ENV['MAJOR'], ENV['MINOR'], ENV['PATCH'], ENV['PRE'])
|
59
|
+
end
|
60
|
+
|
61
|
+
namespace :bump do
|
62
|
+
|
63
|
+
task :major do
|
64
|
+
bump_version(destination, 0)
|
65
|
+
end
|
66
|
+
|
67
|
+
task :minor do
|
68
|
+
bump_version(destination, 1)
|
69
|
+
end
|
70
|
+
|
71
|
+
task :patch do
|
72
|
+
bump_version(destination, 2)
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
task :spec do
|
80
|
+
cd dir
|
81
|
+
sh "#{$0} spec"
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
namespace :all do
|
88
|
+
task :clean => PROJECTS.map{|project| "#{project}:clean"}
|
89
|
+
task :build => PROJECTS.map{|project| "#{project}:build"}
|
90
|
+
task :install => PROJECTS.map{|project| "#{project}:install"}
|
91
|
+
task :push => PROJECTS.map{|project| "#{project}:push"}
|
92
|
+
task "version" => PROJECTS.map{|project| "#{project}:version"}
|
93
|
+
task "version:write" => PROJECTS.map{|project| "#{project}:version:write"} + [:version]
|
94
|
+
task "version:bump:major" => PROJECTS.map{|project| "#{project}:version:bump:major"} + [:version]
|
95
|
+
task "version:bump:minor" => PROJECTS.map{|project| "#{project}:version:bump:minor"} + [:version]
|
96
|
+
task "version:bump:patch" => PROJECTS.map{|project| "#{project}:version:bump:patch"} + [:version]
|
97
|
+
task :spec do
|
98
|
+
errors = []
|
99
|
+
PROJECTS.map do |project|
|
100
|
+
next if project == "omniauth"
|
101
|
+
Rake::Task["#{project}:spec"].invoke || errors << project
|
102
|
+
end
|
103
|
+
fail("Errors in #{errors.join(', ')}") unless errors.empty?
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def write_version(destination, major=nil, minor=nil, patch=nil, pre=nil)
|
108
|
+
source = "#{root}/lib/omniauth/version.rb"
|
109
|
+
v = version.split('.')
|
110
|
+
v[0] = major if major
|
111
|
+
v[1] = minor if minor
|
112
|
+
v[2] = patch if patch
|
113
|
+
v[3] = pre if pre
|
114
|
+
v[3] = v[3] ? v[3].to_s : "nil"
|
115
|
+
|
116
|
+
ruby = File.read(source)
|
117
|
+
ruby.gsub! /^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{v[0]}"
|
118
|
+
fail "Could not insert MAJOR in #{source}" unless $1
|
119
|
+
ruby.gsub! /^(\s*)MINOR = .*?$/, "\\1MINOR = #{v[1]}"
|
120
|
+
fail "Could not insert MINOR in #{source}" unless $1
|
121
|
+
ruby.gsub! /^(\s*)PATCH = .*?$/, "\\1PATCH = #{v[2]}"
|
122
|
+
fail "Could not insert PATCH in #{source}" unless $1
|
123
|
+
ruby.gsub! /^(\s*)PRE = .*?$/, "\\1PRE = #{v[3]}"
|
124
|
+
fail "Could not insert PRE in #{source}" unless $1
|
125
|
+
File.open(destination, 'w') do |file|
|
126
|
+
file.write ruby
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
def bump_version(destination, position)
|
131
|
+
v = version.split('.').map{|s| s.to_i}
|
132
|
+
v[position] += 1
|
133
|
+
write_version(destination, *v)
|
134
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: omniauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Bleigh
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-04-
|
14
|
+
date: 2011-04-29 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: oa-core
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - "="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.2.
|
24
|
+
version: 0.2.5
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.2.
|
35
|
+
version: 0.2.5
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.2.
|
46
|
+
version: 0.2.5
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - "="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.2.
|
57
|
+
version: 0.2.5
|
58
58
|
type: :runtime
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - "="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.2.
|
68
|
+
version: 0.2.5
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: *id005
|
71
71
|
- !ruby/object:Gem::Dependency
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.2.
|
79
|
+
version: 0.2.5
|
80
80
|
type: :runtime
|
81
81
|
version_requirements: *id006
|
82
82
|
description: OmniAuth is an authentication framework that that separates the concept of authentiation from the concept of identity, providing simple hooks for any application to have one or multiple authentication providers for a user.
|
@@ -90,14 +90,204 @@ extensions: []
|
|
90
90
|
extra_rdoc_files: []
|
91
91
|
|
92
92
|
files:
|
93
|
+
- .autotest
|
94
|
+
- .document
|
93
95
|
- .gemtest
|
96
|
+
- .gitignore
|
97
|
+
- .rspec
|
98
|
+
- .travis.yml
|
99
|
+
- .yardopts
|
94
100
|
- Gemfile
|
95
101
|
- LICENSE
|
96
|
-
- README.
|
102
|
+
- README.markdown
|
97
103
|
- Rakefile
|
98
104
|
- lib/omniauth.rb
|
99
105
|
- lib/omniauth/version.rb
|
106
|
+
- oa-basic/.gemtest
|
107
|
+
- oa-basic/.rspec
|
108
|
+
- oa-basic/.yardopts
|
109
|
+
- oa-basic/LICENSE
|
110
|
+
- oa-basic/README.rdoc
|
111
|
+
- oa-basic/Rakefile
|
112
|
+
- oa-basic/lib/oa-basic.rb
|
113
|
+
- oa-basic/lib/omniauth/basic.rb
|
114
|
+
- oa-basic/lib/omniauth/strategies/http_basic.rb
|
115
|
+
- oa-basic/lib/omniauth/version.rb
|
116
|
+
- oa-basic/oa-basic.gemspec
|
117
|
+
- oa-basic/spec/omniauth/strategies/basic_spec.rb
|
118
|
+
- oa-basic/spec/spec_helper.rb
|
119
|
+
- oa-core/.gemtest
|
120
|
+
- oa-core/.rspec
|
121
|
+
- oa-core/.yardopts
|
122
|
+
- oa-core/LICENSE
|
123
|
+
- oa-core/Rakefile
|
124
|
+
- oa-core/autotest/discover.rb
|
125
|
+
- oa-core/lib/oa-core.rb
|
126
|
+
- oa-core/lib/omniauth/builder.rb
|
127
|
+
- oa-core/lib/omniauth/core.rb
|
128
|
+
- oa-core/lib/omniauth/form.rb
|
129
|
+
- oa-core/lib/omniauth/strategy.rb
|
130
|
+
- oa-core/lib/omniauth/test.rb
|
131
|
+
- oa-core/lib/omniauth/test/phony_session.rb
|
132
|
+
- oa-core/lib/omniauth/test/strategy_macros.rb
|
133
|
+
- oa-core/lib/omniauth/test/strategy_test_case.rb
|
134
|
+
- oa-core/lib/omniauth/version.rb
|
135
|
+
- oa-core/oa-core.gemspec
|
136
|
+
- oa-core/spec/omniauth/builder_spec.rb
|
137
|
+
- oa-core/spec/omniauth/core_spec.rb
|
138
|
+
- oa-core/spec/omniauth/strategy_spec.rb
|
139
|
+
- oa-core/spec/spec_helper.rb
|
140
|
+
- oa-enterprise/.gemtest
|
141
|
+
- oa-enterprise/.rspec
|
142
|
+
- oa-enterprise/.yardopts
|
143
|
+
- oa-enterprise/LICENSE
|
144
|
+
- oa-enterprise/README.rdoc
|
145
|
+
- oa-enterprise/Rakefile
|
146
|
+
- oa-enterprise/lib/oa-enterprise.rb
|
147
|
+
- oa-enterprise/lib/omniauth/enterprise.rb
|
148
|
+
- oa-enterprise/lib/omniauth/strategies/cas.rb
|
149
|
+
- oa-enterprise/lib/omniauth/strategies/cas/configuration.rb
|
150
|
+
- oa-enterprise/lib/omniauth/strategies/cas/service_ticket_validator.rb
|
151
|
+
- oa-enterprise/lib/omniauth/strategies/ldap.rb
|
152
|
+
- oa-enterprise/lib/omniauth/strategies/ldap/adaptor.rb
|
153
|
+
- oa-enterprise/lib/omniauth/version.rb
|
154
|
+
- oa-enterprise/oa-enterprise.gemspec
|
155
|
+
- oa-enterprise/spec/fixtures/cas_failure.xml
|
156
|
+
- oa-enterprise/spec/fixtures/cas_success.xml
|
157
|
+
- oa-enterprise/spec/omniauth/strategies/cas_spec.rb
|
158
|
+
- oa-enterprise/spec/spec_helper.rb
|
159
|
+
- oa-more/.gemtest
|
160
|
+
- oa-more/.rspec
|
161
|
+
- oa-more/.yardopts
|
162
|
+
- oa-more/LICENSE
|
163
|
+
- oa-more/README.rdoc
|
164
|
+
- oa-more/Rakefile
|
165
|
+
- oa-more/lib/oa-more.rb
|
166
|
+
- oa-more/lib/omniauth/more.rb
|
167
|
+
- oa-more/lib/omniauth/strategies/flickr.rb
|
168
|
+
- oa-more/lib/omniauth/strategies/windows_live.rb
|
169
|
+
- oa-more/lib/omniauth/strategies/windows_live/windowslivelogin.rb
|
170
|
+
- oa-more/lib/omniauth/strategies/yupoo.rb
|
171
|
+
- oa-more/lib/omniauth/version.rb
|
172
|
+
- oa-more/oa-more.gemspec
|
173
|
+
- oa-more/spec/omniauth/strategies/flickr_spec.rb
|
174
|
+
- oa-more/spec/spec_helper.rb
|
175
|
+
- oa-oauth/.gemtest
|
176
|
+
- oa-oauth/.rspec
|
177
|
+
- oa-oauth/.yardopts
|
178
|
+
- oa-oauth/LICENSE
|
179
|
+
- oa-oauth/README.rdoc
|
180
|
+
- oa-oauth/Rakefile
|
181
|
+
- oa-oauth/autotest/discover.rb
|
182
|
+
- oa-oauth/lib/oa-oauth.rb
|
183
|
+
- oa-oauth/lib/omniauth/oauth.rb
|
184
|
+
- oa-oauth/lib/omniauth/strategies/bitly.rb
|
185
|
+
- oa-oauth/lib/omniauth/strategies/dailymile.rb
|
186
|
+
- oa-oauth/lib/omniauth/strategies/doit.rb
|
187
|
+
- oa-oauth/lib/omniauth/strategies/dopplr.rb
|
188
|
+
- oa-oauth/lib/omniauth/strategies/douban.rb
|
189
|
+
- oa-oauth/lib/omniauth/strategies/evernote.rb
|
190
|
+
- oa-oauth/lib/omniauth/strategies/facebook.rb
|
191
|
+
- oa-oauth/lib/omniauth/strategies/foursquare.rb
|
192
|
+
- oa-oauth/lib/omniauth/strategies/github.rb
|
193
|
+
- oa-oauth/lib/omniauth/strategies/goodreads.rb
|
194
|
+
- oa-oauth/lib/omniauth/strategies/google.rb
|
195
|
+
- oa-oauth/lib/omniauth/strategies/gowalla.rb
|
196
|
+
- oa-oauth/lib/omniauth/strategies/hyves.rb
|
197
|
+
- oa-oauth/lib/omniauth/strategies/identica.rb
|
198
|
+
- oa-oauth/lib/omniauth/strategies/instagram.rb
|
199
|
+
- oa-oauth/lib/omniauth/strategies/instapaper.rb
|
200
|
+
- oa-oauth/lib/omniauth/strategies/linked_in.rb
|
201
|
+
- oa-oauth/lib/omniauth/strategies/meetup.rb
|
202
|
+
- oa-oauth/lib/omniauth/strategies/miso.rb
|
203
|
+
- oa-oauth/lib/omniauth/strategies/mixi.rb
|
204
|
+
- oa-oauth/lib/omniauth/strategies/netflix.rb
|
205
|
+
- oa-oauth/lib/omniauth/strategies/oauth.rb
|
206
|
+
- oa-oauth/lib/omniauth/strategies/oauth2.rb
|
207
|
+
- oa-oauth/lib/omniauth/strategies/qzone.rb
|
208
|
+
- oa-oauth/lib/omniauth/strategies/rdio.rb
|
209
|
+
- oa-oauth/lib/omniauth/strategies/renren.rb
|
210
|
+
- oa-oauth/lib/omniauth/strategies/salesforce.rb
|
211
|
+
- oa-oauth/lib/omniauth/strategies/smug_mug.rb
|
212
|
+
- oa-oauth/lib/omniauth/strategies/sound_cloud.rb
|
213
|
+
- oa-oauth/lib/omniauth/strategies/t163.rb
|
214
|
+
- oa-oauth/lib/omniauth/strategies/teambox.rb
|
215
|
+
- oa-oauth/lib/omniauth/strategies/thirty_seven_signals.rb
|
216
|
+
- oa-oauth/lib/omniauth/strategies/tqq.rb
|
217
|
+
- oa-oauth/lib/omniauth/strategies/trade_me.rb
|
218
|
+
- oa-oauth/lib/omniauth/strategies/trip_it.rb
|
219
|
+
- oa-oauth/lib/omniauth/strategies/tsina.rb
|
220
|
+
- oa-oauth/lib/omniauth/strategies/tsohu.rb
|
221
|
+
- oa-oauth/lib/omniauth/strategies/tumblr.rb
|
222
|
+
- oa-oauth/lib/omniauth/strategies/twitter.rb
|
223
|
+
- oa-oauth/lib/omniauth/strategies/type_pad.rb
|
224
|
+
- oa-oauth/lib/omniauth/strategies/vimeo.rb
|
225
|
+
- oa-oauth/lib/omniauth/strategies/vkontakte.rb
|
226
|
+
- oa-oauth/lib/omniauth/strategies/xauth.rb
|
227
|
+
- oa-oauth/lib/omniauth/strategies/yahoo.rb
|
228
|
+
- oa-oauth/lib/omniauth/strategies/yammer.rb
|
229
|
+
- oa-oauth/lib/omniauth/strategies/you_tube.rb
|
230
|
+
- oa-oauth/lib/omniauth/version.rb
|
231
|
+
- oa-oauth/oa-oauth.gemspec
|
232
|
+
- oa-oauth/spec/fixtures/basecamp_200.xml
|
233
|
+
- oa-oauth/spec/fixtures/campfire_200.json
|
234
|
+
- oa-oauth/spec/omniauth/strategies/bitly_spec.rb
|
235
|
+
- oa-oauth/spec/omniauth/strategies/dailymile_spec.rb
|
236
|
+
- oa-oauth/spec/omniauth/strategies/doit_spec.rb
|
237
|
+
- oa-oauth/spec/omniauth/strategies/dopplr_spec.rb
|
238
|
+
- oa-oauth/spec/omniauth/strategies/douban_spec.rb
|
239
|
+
- oa-oauth/spec/omniauth/strategies/evernote_spec.rb
|
240
|
+
- oa-oauth/spec/omniauth/strategies/facebook_spec.rb
|
241
|
+
- oa-oauth/spec/omniauth/strategies/foursquare_spec.rb
|
242
|
+
- oa-oauth/spec/omniauth/strategies/github_spec.rb
|
243
|
+
- oa-oauth/spec/omniauth/strategies/goodreads_spec.rb
|
244
|
+
- oa-oauth/spec/omniauth/strategies/google_spec.rb
|
245
|
+
- oa-oauth/spec/omniauth/strategies/gowalla_spec.rb
|
246
|
+
- oa-oauth/spec/omniauth/strategies/hyves_spec.rb
|
247
|
+
- oa-oauth/spec/omniauth/strategies/identica_spec.rb
|
248
|
+
- oa-oauth/spec/omniauth/strategies/linked_in_spec.rb
|
249
|
+
- oa-oauth/spec/omniauth/strategies/meetup_spec.rb
|
250
|
+
- oa-oauth/spec/omniauth/strategies/miso_spec.rb
|
251
|
+
- oa-oauth/spec/omniauth/strategies/netflix_spec.rb
|
252
|
+
- oa-oauth/spec/omniauth/strategies/oauth2_spec.rb
|
253
|
+
- oa-oauth/spec/omniauth/strategies/oauth_spec.rb
|
254
|
+
- oa-oauth/spec/omniauth/strategies/rdio_spec.rb
|
255
|
+
- oa-oauth/spec/omniauth/strategies/salesforce_spec.rb
|
256
|
+
- oa-oauth/spec/omniauth/strategies/smug_mug_spec.rb
|
257
|
+
- oa-oauth/spec/omniauth/strategies/sound_cloud_spec.rb
|
258
|
+
- oa-oauth/spec/omniauth/strategies/t163_spec.rb
|
259
|
+
- oa-oauth/spec/omniauth/strategies/teambox_spec.rb
|
260
|
+
- oa-oauth/spec/omniauth/strategies/thirty_seven_signals_spec.rb
|
261
|
+
- oa-oauth/spec/omniauth/strategies/trade_me_spec.rb
|
262
|
+
- oa-oauth/spec/omniauth/strategies/trip_it_spec.rb
|
263
|
+
- oa-oauth/spec/omniauth/strategies/tsina_spec.rb
|
264
|
+
- oa-oauth/spec/omniauth/strategies/tumblr_spec.rb
|
265
|
+
- oa-oauth/spec/omniauth/strategies/twitter_spec.rb
|
266
|
+
- oa-oauth/spec/omniauth/strategies/type_pad_spec.rb
|
267
|
+
- oa-oauth/spec/omniauth/strategies/vimeo_spec.rb
|
268
|
+
- oa-oauth/spec/omniauth/strategies/vkontakte_spec.rb
|
269
|
+
- oa-oauth/spec/omniauth/strategies/yahoo_spec.rb
|
270
|
+
- oa-oauth/spec/omniauth/strategies/yammer_spec.rb
|
271
|
+
- oa-oauth/spec/omniauth/strategies/you_tube_spec.rb
|
272
|
+
- oa-oauth/spec/spec_helper.rb
|
273
|
+
- oa-oauth/spec/support/shared_examples.rb
|
274
|
+
- oa-openid/.gemtest
|
275
|
+
- oa-openid/.rspec
|
276
|
+
- oa-openid/.yardopts
|
277
|
+
- oa-openid/LICENSE
|
278
|
+
- oa-openid/README.rdoc
|
279
|
+
- oa-openid/Rakefile
|
280
|
+
- oa-openid/lib/oa-openid.rb
|
281
|
+
- oa-openid/lib/omniauth/openid.rb
|
282
|
+
- oa-openid/lib/omniauth/openid/gapps.rb
|
283
|
+
- oa-openid/lib/omniauth/strategies/google_apps.rb
|
284
|
+
- oa-openid/lib/omniauth/strategies/open_id.rb
|
285
|
+
- oa-openid/lib/omniauth/version.rb
|
286
|
+
- oa-openid/oa-openid.gemspec
|
287
|
+
- oa-openid/spec/omniauth/strategies/open_id_spec.rb
|
288
|
+
- oa-openid/spec/spec_helper.rb
|
100
289
|
- omniauth.gemspec
|
290
|
+
- tasks/all.rb
|
101
291
|
homepage: http://github.com/intridea/omniauth
|
102
292
|
licenses: []
|
103
293
|
|