socialite 0.1.0.pre → 0.1.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/socialite/facebook_64.png +0 -0
- data/app/assets/images/socialite/twitter_64.png +0 -0
- data/app/controllers/socialite/sessions_controller.rb +69 -0
- data/app/controllers/socialite/users_controller.rb +2 -31
- data/app/views/layouts/socialite/application.html.haml +1 -1
- data/app/views/socialite/identities/new.html.haml +6 -19
- data/app/views/socialite/sessions/new.html.haml +30 -0
- data/app/views/socialite/users/new.html.haml +10 -0
- data/config/routes.rb +6 -7
- data/lib/generators/socialite/install_generator.rb +24 -5
- data/lib/generators/socialite/migrations_generator.rb +1 -1
- data/lib/generators/socialite/templates/socialite.rb +9 -0
- data/lib/generators/socialite/templates/users.rb.erb +5 -1
- data/lib/generators/socialite/views_generator.rb +22 -0
- data/lib/socialite.rb +4 -8
- data/lib/socialite/controllers/helpers.rb +5 -115
- data/lib/socialite/engine.rb +8 -11
- data/lib/socialite/ext/omniauth/identity/model.rb +29 -0
- data/lib/socialite/models/identity_concern.rb +24 -5
- data/lib/socialite/models/user_concern.rb +39 -0
- data/lib/socialite/version.rb +1 -1
- data/spec/dummy/app/controllers/pages_controller.rb +7 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/pages/index.html.haml +5 -0
- data/spec/dummy/config/initializers/omniauth-identity.rb +11 -0
- data/spec/dummy/config/initializers/socialite.rb +9 -0
- data/spec/dummy/config/routes.rb +17 -1
- data/spec/dummy/db/migrate/20130207223009_create_socialite_users.rb +16 -0
- data/spec/dummy/db/migrate/{20130206224517_create_socialite_identities.rb → 20130207223010_create_socialite_identities.rb} +0 -0
- data/spec/dummy/db/schema.rb +7 -3
- data/spec/factories/user.rb +11 -1
- data/{features/registration/twitter_signup.feature → spec/features/.gitkeep} +0 -0
- data/spec/features/facebook_registration_spec.rb +16 -0
- data/spec/features/identity_login_spec.rb +26 -0
- data/spec/features/identity_registration_spec.rb +31 -0
- data/spec/generators/socialite/install_generator_spec.rb +8 -1
- data/spec/generators/socialite/views_generator_spec.rb +27 -0
- data/spec/models/identity_spec.rb +4 -6
- data/spec/models/user_spec.rb +18 -18
- data/spec/socialite_spec.rb +31 -7
- data/spec/spec_helper.rb +4 -1
- data/spec/support/capybara.rb +3 -0
- data/spec/support/database_cleaner.rb +18 -0
- data/spec/support/identity_shared_example.rb +4 -23
- data/spec/support/omniauth.rb +35 -0
- metadata +95 -78
- data/app/controllers/socialite/identities_controller.rb +0 -41
- data/app/controllers/socialite/session_controller.rb +0 -32
- data/app/views/socialite/session/new.html.haml +0 -31
- data/app/views/socialite/user/_form.html.haml +0 -13
- data/app/views/socialite/user/edit.html.haml +0 -1
- data/app/views/socialite/user/show.html.haml +0 -16
- data/features/authentication/facebook_signin.feature +0 -5
- data/features/authentication/twitter_signin.feature +0 -5
- data/features/identities/facebook_management.feature +0 -14
- data/features/identities/twitter_management.feature +0 -7
- data/features/registration/facebook_signup.feature +0 -10
- data/features/step_definitions/authentication_steps.rb +0 -31
- data/features/step_definitions/common_steps.rb +0 -13
- data/features/step_definitions/identity_steps.rb +0 -5
- data/features/step_definitions/web_steps.rb +0 -254
- data/features/support/env.rb +0 -58
- data/features/support/hooks.rb +0 -3
- data/features/support/omniauth.rb +0 -31
- data/features/support/paths.rb +0 -34
- data/features/support/selectors.rb +0 -39
- data/lib/socialite/helpers/authentication.rb +0 -17
- data/lib/socialite/models/facebook_identity.rb +0 -14
- data/spec/dummy/db/migrate/20130206224516_create_socialite_users.rb +0 -12
- data/spec/factories/facebook.rb +0 -5
- data/spec/factories/twitter.rb +0 -6
- data/spec/models/facebook_spec.rb +0 -31
@@ -1,9 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
let!(:identity) { FactoryGirl.create(:identity) }
|
3
|
+
describe Identity do
|
4
|
+
let!(:identity) { FactoryGirl.create(:identity) }
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
# end
|
6
|
+
it_behaves_like 'identity'
|
7
|
+
end
|
data/spec/models/user_spec.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
let(:linked_user) { FactoryGirl.create(:linked_user) }
|
3
|
+
describe User do
|
4
|
+
let(:linked_user) { FactoryGirl.create(:linked_user) }
|
6
5
|
|
7
|
-
|
8
|
-
# it { should have_one(:facebook_identity) }
|
9
|
-
# it { should have_one(:twitter_identity) }
|
6
|
+
it { should have_many(:identities).dependent(:destroy) }
|
10
7
|
|
11
|
-
|
12
|
-
|
8
|
+
it { should have_db_column(:name).of_type(:string) }
|
9
|
+
it { should have_db_column(:email).of_type(:string) }
|
10
|
+
it { should have_db_column(:password_digest).of_type(:string) }
|
13
11
|
|
14
|
-
|
15
|
-
subject.identities.count.should eql(2)
|
16
|
-
end
|
12
|
+
it { should have_db_index(:email).unique(true) }
|
17
13
|
|
18
|
-
|
14
|
+
context 'with associated identities' do
|
15
|
+
subject { linked_user }
|
19
16
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
its(:twitter_identity) { should be_a(identity_class) }
|
24
|
-
# its(:twitter) { should be_a(Socialite::TwitterIdentity) }
|
17
|
+
before do
|
18
|
+
subject.identities.count.should eql(2)
|
25
19
|
end
|
20
|
+
|
21
|
+
its('identities.count') { should eql(2) }
|
22
|
+
|
23
|
+
its(:facebook_identity) { should be_a(identity_class) }
|
24
|
+
|
25
|
+
its(:twitter_identity) { should be_a(identity_class) }
|
26
26
|
end
|
27
|
-
|
27
|
+
end
|
data/spec/socialite_spec.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
class Account; end
|
4
|
+
class Authentication; end
|
5
|
+
|
3
6
|
class User; end
|
4
7
|
class Identity; end
|
5
8
|
|
@@ -12,15 +15,37 @@ describe Socialite do
|
|
12
15
|
end
|
13
16
|
|
14
17
|
describe 'configuring classes' do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
18
|
+
|
19
|
+
describe 'the default values' do
|
20
|
+
before do
|
21
|
+
Socialite.setup do |c|
|
22
|
+
c.user_class = nil
|
23
|
+
c.identity_class = nil
|
24
|
+
end
|
19
25
|
end
|
26
|
+
|
27
|
+
its(:user_class) { should eql(User) }
|
28
|
+
its(:identity_class) { should eql(Identity) }
|
20
29
|
end
|
21
30
|
|
22
|
-
|
23
|
-
|
31
|
+
describe 'accessors that manipulate default values' do
|
32
|
+
before do
|
33
|
+
Socialite.setup do |c|
|
34
|
+
c.user_class = 'Account'
|
35
|
+
c.identity_class = 'Authentication'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
its(:user_class) { should eql(Account) }
|
40
|
+
its(:identity_class) { should eql(Authentication) }
|
41
|
+
|
42
|
+
after do
|
43
|
+
Socialite.setup do |c|
|
44
|
+
c.user_class = nil
|
45
|
+
c.identity_class = nil
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
24
49
|
end
|
25
50
|
|
26
51
|
describe 'accepting provider information' do
|
@@ -47,7 +72,6 @@ describe Socialite do
|
|
47
72
|
subject.last[1].should == ['abc', '789']
|
48
73
|
end
|
49
74
|
end
|
50
|
-
|
51
75
|
end
|
52
76
|
end
|
53
77
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -3,9 +3,11 @@ ENV["RAILS_ENV"] = "test"
|
|
3
3
|
|
4
4
|
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
5
|
require 'rspec/rails'
|
6
|
+
require 'rspec/autorun'
|
6
7
|
|
7
8
|
# Testing Generators
|
8
9
|
require 'ammeter/init'
|
10
|
+
require 'ffaker'
|
9
11
|
require 'factory_girl_rails'
|
10
12
|
|
11
13
|
# Should matchers
|
@@ -21,7 +23,7 @@ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__
|
|
21
23
|
|
22
24
|
RSpec.configure do |config|
|
23
25
|
config.include RSpec::Matchers
|
24
|
-
config.use_transactional_fixtures =
|
26
|
+
config.use_transactional_fixtures = false
|
25
27
|
config.infer_base_class_for_anonymous_controllers = false
|
26
28
|
config.order = "random"
|
27
29
|
|
@@ -31,6 +33,7 @@ RSpec.configure do |config|
|
|
31
33
|
|
32
34
|
# http://stackoverflow.com/a/12978795
|
33
35
|
config.include Capybara::DSL, type: :request
|
36
|
+
config.include Socialite::Engine.routes.url_helpers
|
34
37
|
end
|
35
38
|
|
36
39
|
def identity_class
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'database_cleaner'
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.use_transactional_fixtures = false
|
5
|
+
|
6
|
+
config.before(:suite) do
|
7
|
+
DatabaseCleaner.strategy = :transaction
|
8
|
+
DatabaseCleaner.clean_with(:truncation)
|
9
|
+
end
|
10
|
+
|
11
|
+
config.before(:each) do
|
12
|
+
DatabaseCleaner.start
|
13
|
+
end
|
14
|
+
|
15
|
+
config.after(:each) do
|
16
|
+
DatabaseCleaner.clean
|
17
|
+
end
|
18
|
+
end
|
@@ -2,8 +2,8 @@ module Socialite
|
|
2
2
|
shared_examples 'identity' do
|
3
3
|
it { should belong_to(:user) }
|
4
4
|
|
5
|
-
it { should have_db_column(:uid) }
|
6
|
-
it { should have_db_column(:provider) }
|
5
|
+
it { should have_db_column(:uid).of_type(:string) }
|
6
|
+
it { should have_db_column(:provider).of_type(:string) }
|
7
7
|
it { should have_db_column(:auth_hash) }
|
8
8
|
|
9
9
|
it { should validate_presence_of(:uid) }
|
@@ -25,7 +25,7 @@ module Socialite
|
|
25
25
|
end
|
26
26
|
|
27
27
|
describe 'facebook' do
|
28
|
-
subject { identity_class.
|
28
|
+
subject { identity_class.find_or_create_from_omniauth(auth_hash) }
|
29
29
|
|
30
30
|
it { should be_a(identity_class) }
|
31
31
|
its(:persisted?) { should be_false }
|
@@ -35,7 +35,7 @@ module Socialite
|
|
35
35
|
let(:identity) { user.identities.first }
|
36
36
|
let(:auth_hash) { identity.auth_hash.merge('provider' => identity.provider, 'uid' => identity.uid) }
|
37
37
|
|
38
|
-
subject { identity_class.
|
38
|
+
subject { identity_class.find_or_create_from_omniauth(auth_hash) }
|
39
39
|
|
40
40
|
before do
|
41
41
|
user.identities.count.should > 0
|
@@ -47,25 +47,6 @@ module Socialite
|
|
47
47
|
its(:user) { should eql(user) }
|
48
48
|
end
|
49
49
|
end
|
50
|
-
|
51
|
-
# describe 'twitter' do
|
52
|
-
# let(:twitter_identity) { subject.find_or_initialize_by_oauth(auth_hash.merge('provider' => 'twitter')) }
|
53
|
-
# subject { twitter_identity }
|
54
|
-
|
55
|
-
# it { should be_a(Identity) }
|
56
|
-
# its(:persisted?) { should be_true }
|
57
|
-
# its(:user) { should be_a(User) }
|
58
|
-
# end
|
59
50
|
end
|
60
51
|
end
|
61
|
-
|
62
|
-
# shared_examples 'facebook api' do
|
63
|
-
# it { should respond_to(:account_url) }
|
64
|
-
# it { should respond_to(:api) }
|
65
|
-
# it { should respond_to(:api_connection) }
|
66
|
-
# it { should respond_to(:checkins) }
|
67
|
-
# it { should respond_to(:friends) }
|
68
|
-
# it { should respond_to(:picture) }
|
69
|
-
# it { should respond_to(:info) }
|
70
|
-
# end
|
71
52
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'omniauth'
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.before(:each, :omniauth => true) do
|
5
|
+
OmniAuth.config.test_mode = true
|
6
|
+
|
7
|
+
# the symbol passed to mock_auth is the same as the name of the provider set up in the initializer
|
8
|
+
# OmniAuth.config.mock_auth[:google] = {
|
9
|
+
# "provider"=>"google",
|
10
|
+
# "uid"=>"http://xxxx.com/openid?id=118181138998978630963",
|
11
|
+
# "user_info"=>{"email"=>"test@xxxx.com", "first_name"=>"Test", "last_name"=>"User", "name"=>"Test User"}
|
12
|
+
# }
|
13
|
+
|
14
|
+
OmniAuth.config.add_mock(:facebook, {
|
15
|
+
'uid' => '1234',
|
16
|
+
'extra' => {
|
17
|
+
'user_hash' => {
|
18
|
+
'email' => 'foobar@example.com',
|
19
|
+
'first_name' => 'John',
|
20
|
+
'last_name' => 'Doe',
|
21
|
+
'gender' => 'Male'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
})
|
25
|
+
|
26
|
+
OmniAuth.config.add_mock(:twitter, {
|
27
|
+
:uid => '12345',
|
28
|
+
:nickname => 'zapnap'
|
29
|
+
})
|
30
|
+
end
|
31
|
+
|
32
|
+
config.after(:each, :omniauth => true) do
|
33
|
+
OmniAuth.config.test_mode = false
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: socialite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 0.1.0.pre
|
5
|
+
version: 0.1.0.pre.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Justin Smestad
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,17 +18,17 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.
|
21
|
+
version: 3.2.12
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
none: false
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.2.
|
27
|
+
version: 3.2.12
|
28
28
|
prerelease: false
|
29
29
|
type: :runtime
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: sass-rails
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
@@ -44,21 +44,53 @@ dependencies:
|
|
44
44
|
prerelease: false
|
45
45
|
type: :runtime
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: haml
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
prerelease: false
|
61
|
+
type: :runtime
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: omniauth
|
48
64
|
version_requirements: !ruby/object:Gem::Requirement
|
49
65
|
none: false
|
50
66
|
requirements:
|
51
67
|
- - ~>
|
52
68
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
69
|
+
version: 1.1.0
|
54
70
|
requirement: !ruby/object:Gem::Requirement
|
55
71
|
none: false
|
56
72
|
requirements:
|
57
73
|
- - ~>
|
58
74
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
75
|
+
version: 1.1.0
|
60
76
|
prerelease: false
|
61
77
|
type: :runtime
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: bcrypt-ruby
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 3.0.0
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 3.0.0
|
92
|
+
prerelease: false
|
93
|
+
type: :development
|
62
94
|
- !ruby/object:Gem::Dependency
|
63
95
|
name: simple_form
|
64
96
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,9 +106,9 @@ dependencies:
|
|
74
106
|
- !ruby/object:Gem::Version
|
75
107
|
version: '0'
|
76
108
|
prerelease: false
|
77
|
-
type: :
|
109
|
+
type: :development
|
78
110
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
111
|
+
name: omniauth-identity
|
80
112
|
version_requirements: !ruby/object:Gem::Requirement
|
81
113
|
none: false
|
82
114
|
requirements:
|
@@ -90,25 +122,25 @@ dependencies:
|
|
90
122
|
- !ruby/object:Gem::Version
|
91
123
|
version: '0'
|
92
124
|
prerelease: false
|
93
|
-
type: :
|
125
|
+
type: :development
|
94
126
|
- !ruby/object:Gem::Dependency
|
95
|
-
name: omniauth
|
127
|
+
name: omniauth-facebook
|
96
128
|
version_requirements: !ruby/object:Gem::Requirement
|
97
129
|
none: false
|
98
130
|
requirements:
|
99
|
-
- -
|
131
|
+
- - ! '>='
|
100
132
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
133
|
+
version: '0'
|
102
134
|
requirement: !ruby/object:Gem::Requirement
|
103
135
|
none: false
|
104
136
|
requirements:
|
105
|
-
- -
|
137
|
+
- - ! '>='
|
106
138
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
139
|
+
version: '0'
|
108
140
|
prerelease: false
|
109
|
-
type: :
|
141
|
+
type: :development
|
110
142
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
143
|
+
name: omniauth-twitter
|
112
144
|
version_requirements: !ruby/object:Gem::Requirement
|
113
145
|
none: false
|
114
146
|
requirements:
|
@@ -124,7 +156,7 @@ dependencies:
|
|
124
156
|
prerelease: false
|
125
157
|
type: :development
|
126
158
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
159
|
+
name: sqlite3
|
128
160
|
version_requirements: !ruby/object:Gem::Requirement
|
129
161
|
none: false
|
130
162
|
requirements:
|
@@ -140,7 +172,7 @@ dependencies:
|
|
140
172
|
prerelease: false
|
141
173
|
type: :development
|
142
174
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
175
|
+
name: yard
|
144
176
|
version_requirements: !ruby/object:Gem::Requirement
|
145
177
|
none: false
|
146
178
|
requirements:
|
@@ -156,7 +188,7 @@ dependencies:
|
|
156
188
|
prerelease: false
|
157
189
|
type: :development
|
158
190
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
191
|
+
name: rspec-rails
|
160
192
|
version_requirements: !ruby/object:Gem::Requirement
|
161
193
|
none: false
|
162
194
|
requirements:
|
@@ -172,7 +204,7 @@ dependencies:
|
|
172
204
|
prerelease: false
|
173
205
|
type: :development
|
174
206
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
207
|
+
name: factory_girl_rails
|
176
208
|
version_requirements: !ruby/object:Gem::Requirement
|
177
209
|
none: false
|
178
210
|
requirements:
|
@@ -188,7 +220,7 @@ dependencies:
|
|
188
220
|
prerelease: false
|
189
221
|
type: :development
|
190
222
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
223
|
+
name: ffaker
|
192
224
|
version_requirements: !ruby/object:Gem::Requirement
|
193
225
|
none: false
|
194
226
|
requirements:
|
@@ -204,7 +236,7 @@ dependencies:
|
|
204
236
|
prerelease: false
|
205
237
|
type: :development
|
206
238
|
- !ruby/object:Gem::Dependency
|
207
|
-
name:
|
239
|
+
name: shoulda-matchers
|
208
240
|
version_requirements: !ruby/object:Gem::Requirement
|
209
241
|
none: false
|
210
242
|
requirements:
|
@@ -220,23 +252,23 @@ dependencies:
|
|
220
252
|
prerelease: false
|
221
253
|
type: :development
|
222
254
|
- !ruby/object:Gem::Dependency
|
223
|
-
name:
|
255
|
+
name: capybara
|
224
256
|
version_requirements: !ruby/object:Gem::Requirement
|
225
257
|
none: false
|
226
258
|
requirements:
|
227
259
|
- - ! '>='
|
228
260
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
261
|
+
version: 2.0.2
|
230
262
|
requirement: !ruby/object:Gem::Requirement
|
231
263
|
none: false
|
232
264
|
requirements:
|
233
265
|
- - ! '>='
|
234
266
|
- !ruby/object:Gem::Version
|
235
|
-
version:
|
267
|
+
version: 2.0.2
|
236
268
|
prerelease: false
|
237
269
|
type: :development
|
238
270
|
- !ruby/object:Gem::Dependency
|
239
|
-
name:
|
271
|
+
name: database_cleaner
|
240
272
|
version_requirements: !ruby/object:Gem::Requirement
|
241
273
|
none: false
|
242
274
|
requirements:
|
@@ -252,7 +284,7 @@ dependencies:
|
|
252
284
|
prerelease: false
|
253
285
|
type: :development
|
254
286
|
- !ruby/object:Gem::Dependency
|
255
|
-
name:
|
287
|
+
name: ammeter
|
256
288
|
version_requirements: !ruby/object:Gem::Requirement
|
257
289
|
none: false
|
258
290
|
requirements:
|
@@ -273,29 +305,28 @@ executables: []
|
|
273
305
|
extensions: []
|
274
306
|
extra_rdoc_files: []
|
275
307
|
files:
|
308
|
+
- app/assets/images/socialite/facebook_64.png
|
309
|
+
- app/assets/images/socialite/twitter_64.png
|
276
310
|
- app/assets/stylesheets/socialite/socialite.css
|
277
311
|
- app/assets/stylesheets/socialite.css
|
278
312
|
- app/controllers/socialite/application_controller.rb
|
279
|
-
- app/controllers/socialite/
|
280
|
-
- app/controllers/socialite/session_controller.rb
|
313
|
+
- app/controllers/socialite/sessions_controller.rb
|
281
314
|
- app/controllers/socialite/users_controller.rb
|
282
315
|
- app/views/layouts/socialite/application.html.haml
|
283
316
|
- app/views/socialite/identities/_identities.html.haml
|
284
317
|
- app/views/socialite/identities/new.html.haml
|
285
|
-
- app/views/socialite/
|
286
|
-
- app/views/socialite/
|
287
|
-
- app/views/socialite/user/edit.html.haml
|
288
|
-
- app/views/socialite/user/show.html.haml
|
318
|
+
- app/views/socialite/sessions/new.html.haml
|
319
|
+
- app/views/socialite/users/new.html.haml
|
289
320
|
- config/routes.rb
|
290
321
|
- lib/generators/socialite/install_generator.rb
|
291
322
|
- lib/generators/socialite/migrations_generator.rb
|
292
323
|
- lib/generators/socialite/templates/identity.rb.erb
|
293
324
|
- lib/generators/socialite/templates/socialite.rb
|
294
325
|
- lib/generators/socialite/templates/users.rb.erb
|
326
|
+
- lib/generators/socialite/views_generator.rb
|
295
327
|
- lib/socialite/controllers/helpers.rb
|
296
328
|
- lib/socialite/engine.rb
|
297
|
-
- lib/socialite/
|
298
|
-
- lib/socialite/models/facebook_identity.rb
|
329
|
+
- lib/socialite/ext/omniauth/identity/model.rb
|
299
330
|
- lib/socialite/models/identity_concern.rb
|
300
331
|
- lib/socialite/models/user_concern.rb
|
301
332
|
- lib/socialite/version.rb
|
@@ -304,32 +335,19 @@ files:
|
|
304
335
|
- LICENSE
|
305
336
|
- Rakefile
|
306
337
|
- README.md
|
307
|
-
- features/authentication/facebook_signin.feature
|
308
|
-
- features/authentication/twitter_signin.feature
|
309
|
-
- features/identities/facebook_management.feature
|
310
|
-
- features/identities/twitter_management.feature
|
311
|
-
- features/registration/facebook_signup.feature
|
312
|
-
- features/registration/twitter_signup.feature
|
313
|
-
- features/step_definitions/authentication_steps.rb
|
314
|
-
- features/step_definitions/common_steps.rb
|
315
|
-
- features/step_definitions/identity_steps.rb
|
316
|
-
- features/step_definitions/web_steps.rb
|
317
|
-
- features/support/env.rb
|
318
|
-
- features/support/hooks.rb
|
319
|
-
- features/support/omniauth.rb
|
320
|
-
- features/support/paths.rb
|
321
|
-
- features/support/selectors.rb
|
322
338
|
- spec/dummy/README.rdoc
|
323
339
|
- spec/dummy/Rakefile
|
324
340
|
- spec/dummy/app/assets/javascripts/application.js
|
325
341
|
- spec/dummy/app/assets/stylesheets/application.css
|
326
342
|
- spec/dummy/app/controllers/application_controller.rb
|
343
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
327
344
|
- spec/dummy/app/helpers/application_helper.rb
|
328
345
|
- spec/dummy/app/mailers/.gitkeep
|
329
346
|
- spec/dummy/app/models/.gitkeep
|
330
347
|
- spec/dummy/app/models/identity.rb
|
331
348
|
- spec/dummy/app/models/user.rb
|
332
349
|
- spec/dummy/app/views/layouts/application.html.erb
|
350
|
+
- spec/dummy/app/views/pages/index.html.haml
|
333
351
|
- spec/dummy/config.ru
|
334
352
|
- spec/dummy/config/application.rb
|
335
353
|
- spec/dummy/config/boot.rb
|
@@ -341,14 +359,15 @@ files:
|
|
341
359
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
342
360
|
- spec/dummy/config/initializers/inflections.rb
|
343
361
|
- spec/dummy/config/initializers/mime_types.rb
|
362
|
+
- spec/dummy/config/initializers/omniauth-identity.rb
|
344
363
|
- spec/dummy/config/initializers/secret_token.rb
|
345
364
|
- spec/dummy/config/initializers/session_store.rb
|
346
365
|
- spec/dummy/config/initializers/socialite.rb
|
347
366
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
348
367
|
- spec/dummy/config/locales/en.yml
|
349
368
|
- spec/dummy/config/routes.rb
|
350
|
-
- spec/dummy/db/migrate/
|
351
|
-
- spec/dummy/db/migrate/
|
369
|
+
- spec/dummy/db/migrate/20130207223009_create_socialite_users.rb
|
370
|
+
- spec/dummy/db/migrate/20130207223010_create_socialite_identities.rb
|
352
371
|
- spec/dummy/db/schema.rb
|
353
372
|
- spec/dummy/lib/assets/.gitkeep
|
354
373
|
- spec/dummy/log/.gitkeep
|
@@ -357,21 +376,26 @@ files:
|
|
357
376
|
- spec/dummy/public/500.html
|
358
377
|
- spec/dummy/public/favicon.ico
|
359
378
|
- spec/dummy/script/rails
|
360
|
-
- spec/factories/facebook.rb
|
361
379
|
- spec/factories/identity.rb
|
362
|
-
- spec/factories/twitter.rb
|
363
380
|
- spec/factories/user.rb
|
381
|
+
- spec/features/.gitkeep
|
382
|
+
- spec/features/facebook_registration_spec.rb
|
383
|
+
- spec/features/identity_login_spec.rb
|
384
|
+
- spec/features/identity_registration_spec.rb
|
364
385
|
- spec/generators/socialite/install_generator_spec.rb
|
365
386
|
- spec/generators/socialite/migrations_generator_spec.rb
|
366
|
-
- spec/
|
387
|
+
- spec/generators/socialite/views_generator_spec.rb
|
367
388
|
- spec/models/identity_spec.rb
|
368
389
|
- spec/models/user_spec.rb
|
369
390
|
- spec/socialite_spec.rb
|
370
391
|
- spec/spec_helper.rb
|
371
392
|
- spec/support/.gitkeep
|
393
|
+
- spec/support/capybara.rb
|
394
|
+
- spec/support/database_cleaner.rb
|
372
395
|
- spec/support/database_loader.rb
|
373
396
|
- spec/support/databases.yml
|
374
397
|
- spec/support/identity_shared_example.rb
|
398
|
+
- spec/support/omniauth.rb
|
375
399
|
homepage: http://github.com/jsmestad/socialite
|
376
400
|
licenses: []
|
377
401
|
post_install_message:
|
@@ -385,7 +409,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
385
409
|
- !ruby/object:Gem::Version
|
386
410
|
segments:
|
387
411
|
- 0
|
388
|
-
hash:
|
412
|
+
hash: -787279925387958713
|
389
413
|
version: '0'
|
390
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
391
415
|
none: false
|
@@ -400,32 +424,19 @@ signing_key:
|
|
400
424
|
specification_version: 3
|
401
425
|
summary: Rails engine supporting multiple auth providers per user.
|
402
426
|
test_files:
|
403
|
-
- features/authentication/facebook_signin.feature
|
404
|
-
- features/authentication/twitter_signin.feature
|
405
|
-
- features/identities/facebook_management.feature
|
406
|
-
- features/identities/twitter_management.feature
|
407
|
-
- features/registration/facebook_signup.feature
|
408
|
-
- features/registration/twitter_signup.feature
|
409
|
-
- features/step_definitions/authentication_steps.rb
|
410
|
-
- features/step_definitions/common_steps.rb
|
411
|
-
- features/step_definitions/identity_steps.rb
|
412
|
-
- features/step_definitions/web_steps.rb
|
413
|
-
- features/support/env.rb
|
414
|
-
- features/support/hooks.rb
|
415
|
-
- features/support/omniauth.rb
|
416
|
-
- features/support/paths.rb
|
417
|
-
- features/support/selectors.rb
|
418
427
|
- spec/dummy/README.rdoc
|
419
428
|
- spec/dummy/Rakefile
|
420
429
|
- spec/dummy/app/assets/javascripts/application.js
|
421
430
|
- spec/dummy/app/assets/stylesheets/application.css
|
422
431
|
- spec/dummy/app/controllers/application_controller.rb
|
432
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
423
433
|
- spec/dummy/app/helpers/application_helper.rb
|
424
434
|
- spec/dummy/app/mailers/.gitkeep
|
425
435
|
- spec/dummy/app/models/.gitkeep
|
426
436
|
- spec/dummy/app/models/identity.rb
|
427
437
|
- spec/dummy/app/models/user.rb
|
428
438
|
- spec/dummy/app/views/layouts/application.html.erb
|
439
|
+
- spec/dummy/app/views/pages/index.html.haml
|
429
440
|
- spec/dummy/config.ru
|
430
441
|
- spec/dummy/config/application.rb
|
431
442
|
- spec/dummy/config/boot.rb
|
@@ -437,14 +448,15 @@ test_files:
|
|
437
448
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
438
449
|
- spec/dummy/config/initializers/inflections.rb
|
439
450
|
- spec/dummy/config/initializers/mime_types.rb
|
451
|
+
- spec/dummy/config/initializers/omniauth-identity.rb
|
440
452
|
- spec/dummy/config/initializers/secret_token.rb
|
441
453
|
- spec/dummy/config/initializers/session_store.rb
|
442
454
|
- spec/dummy/config/initializers/socialite.rb
|
443
455
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
444
456
|
- spec/dummy/config/locales/en.yml
|
445
457
|
- spec/dummy/config/routes.rb
|
446
|
-
- spec/dummy/db/migrate/
|
447
|
-
- spec/dummy/db/migrate/
|
458
|
+
- spec/dummy/db/migrate/20130207223009_create_socialite_users.rb
|
459
|
+
- spec/dummy/db/migrate/20130207223010_create_socialite_identities.rb
|
448
460
|
- spec/dummy/db/schema.rb
|
449
461
|
- spec/dummy/lib/assets/.gitkeep
|
450
462
|
- spec/dummy/log/.gitkeep
|
@@ -453,19 +465,24 @@ test_files:
|
|
453
465
|
- spec/dummy/public/500.html
|
454
466
|
- spec/dummy/public/favicon.ico
|
455
467
|
- spec/dummy/script/rails
|
456
|
-
- spec/factories/facebook.rb
|
457
468
|
- spec/factories/identity.rb
|
458
|
-
- spec/factories/twitter.rb
|
459
469
|
- spec/factories/user.rb
|
470
|
+
- spec/features/.gitkeep
|
471
|
+
- spec/features/facebook_registration_spec.rb
|
472
|
+
- spec/features/identity_login_spec.rb
|
473
|
+
- spec/features/identity_registration_spec.rb
|
460
474
|
- spec/generators/socialite/install_generator_spec.rb
|
461
475
|
- spec/generators/socialite/migrations_generator_spec.rb
|
462
|
-
- spec/
|
476
|
+
- spec/generators/socialite/views_generator_spec.rb
|
463
477
|
- spec/models/identity_spec.rb
|
464
478
|
- spec/models/user_spec.rb
|
465
479
|
- spec/socialite_spec.rb
|
466
480
|
- spec/spec_helper.rb
|
467
481
|
- spec/support/.gitkeep
|
482
|
+
- spec/support/capybara.rb
|
483
|
+
- spec/support/database_cleaner.rb
|
468
484
|
- spec/support/database_loader.rb
|
469
485
|
- spec/support/databases.yml
|
470
486
|
- spec/support/identity_shared_example.rb
|
487
|
+
- spec/support/omniauth.rb
|
471
488
|
has_rdoc:
|