socialite 0.0.1.beta4 → 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +33 -34
- data/Rakefile +8 -21
- data/app/controllers/socialite/application_controller.rb +4 -0
- data/app/controllers/socialite/identities_controller.rb +2 -14
- data/app/controllers/socialite/session_controller.rb +20 -0
- data/app/controllers/socialite/users_controller.rb +0 -1
- data/app/views/layouts/socialite/application.html.haml +11 -0
- data/app/views/socialite/identities/new.html.haml +27 -0
- data/app/views/socialite/session/new.html.haml +31 -14
- data/app/views/socialite/user/edit.html.haml +1 -1
- data/config/routes.rb +7 -7
- data/lib/generators/socialite/install_generator.rb +7 -9
- data/lib/generators/socialite/migrations_generator.rb +34 -0
- data/lib/generators/socialite/templates/identity.rb.erb +25 -0
- data/lib/generators/socialite/templates/socialite.rb +20 -7
- data/lib/generators/socialite/templates/users.rb.erb +12 -0
- data/lib/socialite.rb +25 -27
- data/lib/socialite/controllers/helpers.rb +107 -111
- data/lib/socialite/engine.rb +19 -32
- data/lib/socialite/helpers/authentication.rb +1 -1
- data/lib/socialite/models/identity_concern.rb +91 -0
- data/lib/socialite/models/user_concern.rb +54 -0
- data/lib/socialite/version.rb +1 -1
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -3
- data/spec/dummy/app/assets/stylesheets/application.css +11 -5
- data/{app/assets/images/socialite → spec/dummy/app/mailers}/.gitkeep +0 -0
- data/{app/assets/javascripts/socialite → spec/dummy/app/models}/.gitkeep +0 -0
- data/spec/dummy/app/models/identity.rb +4 -0
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +1 -5
- data/spec/dummy/config/application.rb +19 -2
- data/spec/dummy/config/boot.rb +1 -11
- data/spec/dummy/config/database.yml +18 -2
- data/spec/dummy/config/environments/development.rb +8 -1
- data/spec/dummy/config/environments/production.rb +9 -2
- data/spec/dummy/config/environments/test.rb +4 -9
- data/spec/dummy/config/initializers/inflections.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/initializers/socialite.rb +26 -4
- data/spec/dummy/config/initializers/wrap_parameters.rb +1 -1
- data/spec/dummy/config/routes.rb +2 -10
- data/{db/migrate/20110914215410_create_users.rb → spec/dummy/db/migrate/20130206224516_create_socialite_users.rb} +2 -4
- data/spec/dummy/db/migrate/20130206224517_create_socialite_identities.rb +25 -0
- data/spec/dummy/db/schema.rb +12 -20
- data/{lib/tasks → spec/dummy/lib/assets}/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/500.html +0 -1
- data/spec/factories/facebook.rb +5 -5
- data/spec/factories/identity.rb +3 -3
- data/spec/factories/user.rb +10 -12
- data/spec/generators/socialite/install_generator_spec.rb +43 -0
- data/spec/generators/socialite/migrations_generator_spec.rb +27 -0
- data/spec/models/facebook_spec.rb +24 -21
- data/spec/models/identity_spec.rb +2 -2
- data/spec/models/user_spec.rb +7 -7
- data/spec/socialite_spec.rb +53 -0
- data/spec/spec_helper.rb +23 -10
- data/spec/support/identity_shared_example.rb +24 -20
- metadata +202 -144
- data/.autotest +0 -7
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -10
- data/.yardopts +0 -8
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -208
- data/app/models/socialite/facebook_identity.rb +0 -5
- data/app/models/socialite/identity.rb +0 -5
- data/app/models/socialite/user.rb +0 -10
- data/config/initializers/simple_form.rb +0 -90
- data/config/locales/simple_form.en.yml +0 -23
- data/db/migrate/20110925224222_create_identities.rb +0 -26
- data/db/migrate/20110926005551_create_facebook_identities.rb +0 -12
- data/lib/socialite/api_wrappers/facebook.rb +0 -67
- data/lib/socialite/api_wrappers/twitter.rb +0 -19
- data/lib/socialite/models/identity.rb +0 -99
- data/lib/socialite/models/user.rb +0 -50
- data/lib/socialite/service_config.rb +0 -14
- data/lib/tasks/cucumber.rake +0 -65
- data/script/cucumber +0 -10
- data/script/rails +0 -6
- data/socialite.gemspec +0 -39
- data/spec/dummy/app/controllers/home_controller.rb +0 -11
- data/spec/dummy/app/views/home/index.html.haml +0 -12
- data/spec/dummy/app/views/home/show.html.haml +0 -6
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class User; end
|
4
|
+
class Identity; end
|
5
|
+
|
6
|
+
describe Socialite do
|
7
|
+
context "configuration" do
|
8
|
+
it 'is configurable through .setup' do
|
9
|
+
Socialite.setup do |c|
|
10
|
+
c.should be_kind_of(Module)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'configuring classes' do
|
15
|
+
before do
|
16
|
+
Socialite.setup do |c|
|
17
|
+
c.user_class = 'User'
|
18
|
+
c.identity_class = 'Identity'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
its(:user_class) { should eql(User) }
|
23
|
+
its(:identity_class) { should eql(Identity) }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'accepting provider information' do
|
27
|
+
before do
|
28
|
+
Socialite.providers = nil
|
29
|
+
Socialite.setup do |c|
|
30
|
+
c.provider :facebook, 'xyz', '123'
|
31
|
+
c.provider :twitter, 'abc', '789'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
subject { Socialite.providers }
|
36
|
+
|
37
|
+
its(:size) { should == 2 }
|
38
|
+
|
39
|
+
describe 'holds all the provider parameters for OmniAuth' do
|
40
|
+
it 'has facebook data' do
|
41
|
+
subject.first[0].should == :facebook
|
42
|
+
subject.first[1].should == ['xyz', '123']
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'has twitter data' do
|
46
|
+
subject.last[0].should == :twitter
|
47
|
+
subject.last[1].should == ['abc', '789']
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
|
4
4
|
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
-
require 'rails/test_help'
|
6
5
|
require 'rspec/rails'
|
7
6
|
|
7
|
+
# Testing Generators
|
8
|
+
require 'ammeter/init'
|
9
|
+
require 'factory_girl_rails'
|
10
|
+
|
8
11
|
# Should matchers
|
9
12
|
require 'shoulda/matchers'
|
10
13
|
|
@@ -13,17 +16,27 @@ Rails.backtrace_cleaner.remove_silencers!
|
|
13
16
|
# Load support files
|
14
17
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
15
18
|
|
16
|
-
#
|
17
|
-
|
18
|
-
Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each { |f| require f }
|
19
|
-
|
20
|
-
# Run any available migration
|
21
|
-
ActiveRecord::Migrator.migrate File.expand_path('../dummy/db/migrate/', __FILE__)
|
19
|
+
# Run migrations if present
|
20
|
+
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
22
21
|
|
23
22
|
RSpec.configure do |config|
|
24
|
-
require 'rspec/expectations'
|
25
23
|
config.include RSpec::Matchers
|
26
|
-
# config.include Socialite::Identity
|
27
|
-
|
28
24
|
config.use_transactional_fixtures = true
|
25
|
+
config.infer_base_class_for_anonymous_controllers = false
|
26
|
+
config.order = "random"
|
27
|
+
|
28
|
+
config.expect_with :rspec do |c|
|
29
|
+
c.syntax = [:should, :expect]
|
30
|
+
end
|
31
|
+
|
32
|
+
# http://stackoverflow.com/a/12978795
|
33
|
+
config.include Capybara::DSL, type: :request
|
34
|
+
end
|
35
|
+
|
36
|
+
def identity_class
|
37
|
+
Socialite.identity_class
|
38
|
+
end
|
39
|
+
|
40
|
+
def user_class
|
41
|
+
Socialite.user_class
|
29
42
|
end
|
@@ -2,15 +2,15 @@ module Socialite
|
|
2
2
|
shared_examples 'identity' do
|
3
3
|
it { should belong_to(:user) }
|
4
4
|
|
5
|
-
it { should have_db_column(:
|
5
|
+
it { should have_db_column(:uid) }
|
6
6
|
it { should have_db_column(:provider) }
|
7
7
|
it { should have_db_column(:auth_hash) }
|
8
8
|
|
9
|
-
it { should validate_presence_of(:
|
9
|
+
it { should validate_presence_of(:uid) }
|
10
10
|
it { should validate_presence_of(:provider) }
|
11
11
|
|
12
|
-
it { should validate_uniqueness_of(:
|
13
|
-
it { should validate_uniqueness_of(:provider).scoped_to(
|
12
|
+
it { should validate_uniqueness_of(:uid).scoped_to(:provider) }
|
13
|
+
it { should validate_uniqueness_of(:provider).scoped_to("#{user_class.table_name.singularize}_id").case_insensitive }
|
14
14
|
|
15
15
|
describe '.find_or_initialize_by_oauth' do
|
16
16
|
let(:auth_hash) do
|
@@ -25,21 +25,25 @@ module Socialite
|
|
25
25
|
end
|
26
26
|
|
27
27
|
describe 'facebook' do
|
28
|
-
|
29
|
-
subject { Identity.find_or_initialize_by_oauth(auth_hash) }
|
28
|
+
subject { identity_class.find_or_initialize_by_omniauth(auth_hash) }
|
30
29
|
|
31
|
-
it { should be_a(
|
30
|
+
it { should be_a(identity_class) }
|
32
31
|
its(:persisted?) { should be_false }
|
33
32
|
|
34
33
|
context 'existing identity' do
|
35
34
|
let(:user) { FactoryGirl.create(:linked_user) }
|
36
35
|
let(:identity) { user.identities.first }
|
37
|
-
let(:auth_hash) { identity.auth_hash.merge('provider' => identity.provider, 'uid' => identity.
|
38
|
-
|
39
|
-
|
36
|
+
let(:auth_hash) { identity.auth_hash.merge('provider' => identity.provider, 'uid' => identity.uid) }
|
37
|
+
|
38
|
+
subject { identity_class.find_or_initialize_by_omniauth(auth_hash) }
|
39
|
+
|
40
|
+
before do
|
41
|
+
user.identities.count.should > 0
|
42
|
+
identity.user.should be_present
|
43
|
+
end
|
40
44
|
|
41
45
|
its(:persisted?) { should be_true }
|
42
|
-
its(:user) { should be_a(
|
46
|
+
its(:user) { should be_a(user_class) }
|
43
47
|
its(:user) { should eql(user) }
|
44
48
|
end
|
45
49
|
end
|
@@ -55,13 +59,13 @@ module Socialite
|
|
55
59
|
end
|
56
60
|
end
|
57
61
|
|
58
|
-
shared_examples 'facebook api' do
|
59
|
-
it { should respond_to(:account_url) }
|
60
|
-
it { should respond_to(:api) }
|
61
|
-
it { should respond_to(:api_connection) }
|
62
|
-
it { should respond_to(:checkins) }
|
63
|
-
it { should respond_to(:friends) }
|
64
|
-
it { should respond_to(:picture) }
|
65
|
-
it { should respond_to(:info) }
|
66
|
-
end
|
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
|
67
71
|
end
|
metadata
CHANGED
@@ -1,251 +1,309 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.beta4
|
5
4
|
prerelease: 6
|
5
|
+
version: 0.1.0.pre
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Justin Smestad
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *70258980161920
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: sass-rails
|
27
|
-
requirement: &70258980161100 !ruby/object:Gem::Requirement
|
21
|
+
version: 3.2.11
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
28
23
|
none: false
|
29
24
|
requirements:
|
30
25
|
- - ~>
|
31
26
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
33
|
-
type: :runtime
|
27
|
+
version: 3.2.11
|
34
28
|
prerelease: false
|
35
|
-
|
29
|
+
type: :runtime
|
36
30
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
|
31
|
+
name: jquery-rails
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
34
|
requirements:
|
41
|
-
- -
|
35
|
+
- - ! '>='
|
42
36
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
|
37
|
+
version: '0'
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
45
44
|
prerelease: false
|
46
|
-
|
45
|
+
type: :runtime
|
47
46
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
|
47
|
+
name: sass-rails
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
49
|
none: false
|
51
50
|
requirements:
|
52
51
|
- - ~>
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
55
|
-
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70258980159800
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: oa-core
|
60
|
-
requirement: &70258980159280 !ruby/object:Gem::Requirement
|
53
|
+
version: 3.2.0
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
61
55
|
none: false
|
62
56
|
requirements:
|
63
57
|
- - ~>
|
64
58
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
66
|
-
type: :runtime
|
59
|
+
version: 3.2.0
|
67
60
|
prerelease: false
|
68
|
-
|
61
|
+
type: :runtime
|
69
62
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
|
63
|
+
name: simple_form
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
65
|
none: false
|
73
66
|
requirements:
|
74
|
-
- -
|
67
|
+
- - ! '>='
|
75
68
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0
|
77
|
-
|
69
|
+
version: '0'
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
78
76
|
prerelease: false
|
79
|
-
|
77
|
+
type: :runtime
|
80
78
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
|
79
|
+
name: haml
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
81
|
none: false
|
84
82
|
requirements:
|
85
|
-
- -
|
83
|
+
- - ! '>='
|
86
84
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
88
|
-
|
85
|
+
version: '0'
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
89
92
|
prerelease: false
|
90
|
-
|
93
|
+
type: :runtime
|
91
94
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
|
95
|
+
name: omniauth
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
97
|
none: false
|
95
98
|
requirements:
|
96
99
|
- - ~>
|
97
100
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
99
|
-
|
101
|
+
version: 1.1.0
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ~>
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 1.1.0
|
100
108
|
prerelease: false
|
101
|
-
|
109
|
+
type: :runtime
|
102
110
|
- !ruby/object:Gem::Dependency
|
103
111
|
name: sqlite3
|
104
|
-
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
105
119
|
none: false
|
106
120
|
requirements:
|
107
121
|
- - ! '>='
|
108
122
|
- !ruby/object:Gem::Version
|
109
123
|
version: '0'
|
110
|
-
type: :development
|
111
124
|
prerelease: false
|
112
|
-
|
125
|
+
type: :development
|
113
126
|
- !ruby/object:Gem::Dependency
|
114
127
|
name: yard
|
115
|
-
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
129
|
none: false
|
117
130
|
requirements:
|
118
131
|
- - ! '>='
|
119
132
|
- !ruby/object:Gem::Version
|
120
133
|
version: '0'
|
121
|
-
|
122
|
-
prerelease: false
|
123
|
-
version_requirements: *70258980155660
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: rdiscount
|
126
|
-
requirement: &70258980154860 !ruby/object:Gem::Requirement
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
127
135
|
none: false
|
128
136
|
requirements:
|
129
137
|
- - ! '>='
|
130
138
|
- !ruby/object:Gem::Version
|
131
139
|
version: '0'
|
132
|
-
type: :development
|
133
140
|
prerelease: false
|
134
|
-
|
141
|
+
type: :development
|
135
142
|
- !ruby/object:Gem::Dependency
|
136
143
|
name: rspec-rails
|
137
|
-
|
144
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
145
|
none: false
|
139
146
|
requirements:
|
140
|
-
- -
|
147
|
+
- - ! '>='
|
141
148
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
143
|
-
|
149
|
+
version: '0'
|
150
|
+
requirement: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
144
156
|
prerelease: false
|
145
|
-
|
157
|
+
type: :development
|
146
158
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
148
|
-
|
159
|
+
name: factory_girl_rails
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
161
|
none: false
|
150
162
|
requirements:
|
151
|
-
- -
|
163
|
+
- - ! '>='
|
152
164
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
-
|
165
|
+
version: '0'
|
166
|
+
requirement: !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - ! '>='
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
155
172
|
prerelease: false
|
156
|
-
|
173
|
+
type: :development
|
157
174
|
- !ruby/object:Gem::Dependency
|
158
175
|
name: shoulda-matchers
|
159
|
-
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
160
183
|
none: false
|
161
184
|
requirements:
|
162
185
|
- - ! '>='
|
163
186
|
- !ruby/object:Gem::Version
|
164
187
|
version: '0'
|
165
|
-
type: :development
|
166
188
|
prerelease: false
|
167
|
-
|
189
|
+
type: :development
|
168
190
|
- !ruby/object:Gem::Dependency
|
169
|
-
name:
|
170
|
-
|
191
|
+
name: capybara
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
193
|
none: false
|
172
194
|
requirements:
|
173
|
-
- -
|
195
|
+
- - ! '>='
|
174
196
|
- !ruby/object:Gem::Version
|
175
|
-
version:
|
176
|
-
|
197
|
+
version: '0'
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
none: false
|
200
|
+
requirements:
|
201
|
+
- - ! '>='
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
177
204
|
prerelease: false
|
178
|
-
|
205
|
+
type: :development
|
179
206
|
- !ruby/object:Gem::Dependency
|
180
|
-
name:
|
181
|
-
|
207
|
+
name: ammeter
|
208
|
+
version_requirements: !ruby/object:Gem::Requirement
|
182
209
|
none: false
|
183
210
|
requirements:
|
184
211
|
- - ! '>='
|
185
212
|
- !ruby/object:Gem::Version
|
186
|
-
version: 0
|
187
|
-
|
213
|
+
version: '0'
|
214
|
+
requirement: !ruby/object:Gem::Requirement
|
215
|
+
none: false
|
216
|
+
requirements:
|
217
|
+
- - ! '>='
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '0'
|
188
220
|
prerelease: false
|
189
|
-
|
221
|
+
type: :development
|
190
222
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
192
|
-
|
223
|
+
name: omniauth-identity
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
225
|
none: false
|
194
226
|
requirements:
|
195
227
|
- - ! '>='
|
196
228
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
198
|
-
|
229
|
+
version: '0'
|
230
|
+
requirement: !ruby/object:Gem::Requirement
|
231
|
+
none: false
|
232
|
+
requirements:
|
233
|
+
- - ! '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
199
236
|
prerelease: false
|
200
|
-
|
237
|
+
type: :development
|
201
238
|
- !ruby/object:Gem::Dependency
|
202
|
-
name:
|
203
|
-
|
239
|
+
name: omniauth-facebook
|
240
|
+
version_requirements: !ruby/object:Gem::Requirement
|
204
241
|
none: false
|
205
242
|
requirements:
|
206
|
-
- -
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
requirement: !ruby/object:Gem::Requirement
|
247
|
+
none: false
|
248
|
+
requirements:
|
249
|
+
- - ! '>='
|
207
250
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
251
|
+
version: '0'
|
252
|
+
prerelease: false
|
209
253
|
type: :development
|
254
|
+
- !ruby/object:Gem::Dependency
|
255
|
+
name: omniauth-twitter
|
256
|
+
version_requirements: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
258
|
+
requirements:
|
259
|
+
- - ! '>='
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
262
|
+
requirement: !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
264
|
+
requirements:
|
265
|
+
- - ! '>='
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: '0'
|
210
268
|
prerelease: false
|
211
|
-
|
269
|
+
type: :development
|
212
270
|
description: Rails engine supporting multiple auth providers per user.
|
213
271
|
email: justin.smestad@gmail.com
|
214
272
|
executables: []
|
215
273
|
extensions: []
|
216
274
|
extra_rdoc_files: []
|
217
275
|
files:
|
218
|
-
- .autotest
|
219
|
-
- .gitignore
|
220
|
-
- .rspec
|
221
|
-
- .travis.yml
|
222
|
-
- .yardopts
|
223
|
-
- Gemfile
|
224
|
-
- Gemfile.lock
|
225
|
-
- LICENSE
|
226
|
-
- README.md
|
227
|
-
- Rakefile
|
228
|
-
- app/assets/images/socialite/.gitkeep
|
229
|
-
- app/assets/javascripts/socialite/.gitkeep
|
230
|
-
- app/assets/stylesheets/socialite.css
|
231
276
|
- app/assets/stylesheets/socialite/socialite.css
|
277
|
+
- app/assets/stylesheets/socialite.css
|
278
|
+
- app/controllers/socialite/application_controller.rb
|
232
279
|
- app/controllers/socialite/identities_controller.rb
|
233
280
|
- app/controllers/socialite/session_controller.rb
|
234
281
|
- app/controllers/socialite/users_controller.rb
|
235
|
-
- app/
|
236
|
-
- app/models/socialite/identity.rb
|
237
|
-
- app/models/socialite/user.rb
|
282
|
+
- app/views/layouts/socialite/application.html.haml
|
238
283
|
- app/views/socialite/identities/_identities.html.haml
|
284
|
+
- app/views/socialite/identities/new.html.haml
|
239
285
|
- app/views/socialite/session/new.html.haml
|
240
286
|
- app/views/socialite/user/_form.html.haml
|
241
287
|
- app/views/socialite/user/edit.html.haml
|
242
288
|
- app/views/socialite/user/show.html.haml
|
243
|
-
- config/initializers/simple_form.rb
|
244
|
-
- config/locales/simple_form.en.yml
|
245
289
|
- config/routes.rb
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
290
|
+
- lib/generators/socialite/install_generator.rb
|
291
|
+
- lib/generators/socialite/migrations_generator.rb
|
292
|
+
- lib/generators/socialite/templates/identity.rb.erb
|
293
|
+
- lib/generators/socialite/templates/socialite.rb
|
294
|
+
- lib/generators/socialite/templates/users.rb.erb
|
295
|
+
- lib/socialite/controllers/helpers.rb
|
296
|
+
- lib/socialite/engine.rb
|
297
|
+
- lib/socialite/helpers/authentication.rb
|
298
|
+
- lib/socialite/models/facebook_identity.rb
|
299
|
+
- lib/socialite/models/identity_concern.rb
|
300
|
+
- lib/socialite/models/user_concern.rb
|
301
|
+
- lib/socialite/version.rb
|
302
|
+
- lib/socialite.rb
|
303
|
+
- lib/tasks/socialite_tasks.rake
|
304
|
+
- LICENSE
|
305
|
+
- Rakefile
|
306
|
+
- README.md
|
249
307
|
- features/authentication/facebook_signin.feature
|
250
308
|
- features/authentication/twitter_signin.feature
|
251
309
|
- features/identities/facebook_management.feature
|
@@ -261,33 +319,16 @@ files:
|
|
261
319
|
- features/support/omniauth.rb
|
262
320
|
- features/support/paths.rb
|
263
321
|
- features/support/selectors.rb
|
264
|
-
-
|
265
|
-
- lib/generators/socialite/templates/socialite.rb
|
266
|
-
- lib/socialite.rb
|
267
|
-
- lib/socialite/api_wrappers/facebook.rb
|
268
|
-
- lib/socialite/api_wrappers/twitter.rb
|
269
|
-
- lib/socialite/controllers/helpers.rb
|
270
|
-
- lib/socialite/engine.rb
|
271
|
-
- lib/socialite/helpers/authentication.rb
|
272
|
-
- lib/socialite/models/facebook_identity.rb
|
273
|
-
- lib/socialite/models/identity.rb
|
274
|
-
- lib/socialite/models/user.rb
|
275
|
-
- lib/socialite/service_config.rb
|
276
|
-
- lib/socialite/version.rb
|
277
|
-
- lib/tasks/.gitkeep
|
278
|
-
- lib/tasks/cucumber.rake
|
279
|
-
- lib/tasks/socialite_tasks.rake
|
280
|
-
- script/cucumber
|
281
|
-
- script/rails
|
282
|
-
- socialite.gemspec
|
322
|
+
- spec/dummy/README.rdoc
|
283
323
|
- spec/dummy/Rakefile
|
284
324
|
- spec/dummy/app/assets/javascripts/application.js
|
285
325
|
- spec/dummy/app/assets/stylesheets/application.css
|
286
326
|
- spec/dummy/app/controllers/application_controller.rb
|
287
|
-
- spec/dummy/app/controllers/home_controller.rb
|
288
327
|
- spec/dummy/app/helpers/application_helper.rb
|
289
|
-
- spec/dummy/app/
|
290
|
-
- spec/dummy/app/
|
328
|
+
- spec/dummy/app/mailers/.gitkeep
|
329
|
+
- spec/dummy/app/models/.gitkeep
|
330
|
+
- spec/dummy/app/models/identity.rb
|
331
|
+
- spec/dummy/app/models/user.rb
|
291
332
|
- spec/dummy/app/views/layouts/application.html.erb
|
292
333
|
- spec/dummy/config.ru
|
293
334
|
- spec/dummy/config/application.rb
|
@@ -306,7 +347,11 @@ files:
|
|
306
347
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
307
348
|
- spec/dummy/config/locales/en.yml
|
308
349
|
- spec/dummy/config/routes.rb
|
350
|
+
- spec/dummy/db/migrate/20130206224516_create_socialite_users.rb
|
351
|
+
- spec/dummy/db/migrate/20130206224517_create_socialite_identities.rb
|
309
352
|
- spec/dummy/db/schema.rb
|
353
|
+
- spec/dummy/lib/assets/.gitkeep
|
354
|
+
- spec/dummy/log/.gitkeep
|
310
355
|
- spec/dummy/public/404.html
|
311
356
|
- spec/dummy/public/422.html
|
312
357
|
- spec/dummy/public/500.html
|
@@ -316,9 +361,12 @@ files:
|
|
316
361
|
- spec/factories/identity.rb
|
317
362
|
- spec/factories/twitter.rb
|
318
363
|
- spec/factories/user.rb
|
364
|
+
- spec/generators/socialite/install_generator_spec.rb
|
365
|
+
- spec/generators/socialite/migrations_generator_spec.rb
|
319
366
|
- spec/models/facebook_spec.rb
|
320
367
|
- spec/models/identity_spec.rb
|
321
368
|
- spec/models/user_spec.rb
|
369
|
+
- spec/socialite_spec.rb
|
322
370
|
- spec/spec_helper.rb
|
323
371
|
- spec/support/.gitkeep
|
324
372
|
- spec/support/database_loader.rb
|
@@ -335,10 +383,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
335
383
|
requirements:
|
336
384
|
- - ! '>='
|
337
385
|
- !ruby/object:Gem::Version
|
338
|
-
version: '0'
|
339
386
|
segments:
|
340
387
|
- 0
|
341
|
-
hash:
|
388
|
+
hash: 2817215725849609740
|
389
|
+
version: '0'
|
342
390
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
343
391
|
none: false
|
344
392
|
requirements:
|
@@ -347,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
395
|
version: 1.3.1
|
348
396
|
requirements: []
|
349
397
|
rubyforge_project:
|
350
|
-
rubygems_version: 1.8.
|
398
|
+
rubygems_version: 1.8.23
|
351
399
|
signing_key:
|
352
400
|
specification_version: 3
|
353
401
|
summary: Rails engine supporting multiple auth providers per user.
|
@@ -367,14 +415,16 @@ test_files:
|
|
367
415
|
- features/support/omniauth.rb
|
368
416
|
- features/support/paths.rb
|
369
417
|
- features/support/selectors.rb
|
418
|
+
- spec/dummy/README.rdoc
|
370
419
|
- spec/dummy/Rakefile
|
371
420
|
- spec/dummy/app/assets/javascripts/application.js
|
372
421
|
- spec/dummy/app/assets/stylesheets/application.css
|
373
422
|
- spec/dummy/app/controllers/application_controller.rb
|
374
|
-
- spec/dummy/app/controllers/home_controller.rb
|
375
423
|
- spec/dummy/app/helpers/application_helper.rb
|
376
|
-
- spec/dummy/app/
|
377
|
-
- spec/dummy/app/
|
424
|
+
- spec/dummy/app/mailers/.gitkeep
|
425
|
+
- spec/dummy/app/models/.gitkeep
|
426
|
+
- spec/dummy/app/models/identity.rb
|
427
|
+
- spec/dummy/app/models/user.rb
|
378
428
|
- spec/dummy/app/views/layouts/application.html.erb
|
379
429
|
- spec/dummy/config.ru
|
380
430
|
- spec/dummy/config/application.rb
|
@@ -393,7 +443,11 @@ test_files:
|
|
393
443
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
394
444
|
- spec/dummy/config/locales/en.yml
|
395
445
|
- spec/dummy/config/routes.rb
|
446
|
+
- spec/dummy/db/migrate/20130206224516_create_socialite_users.rb
|
447
|
+
- spec/dummy/db/migrate/20130206224517_create_socialite_identities.rb
|
396
448
|
- spec/dummy/db/schema.rb
|
449
|
+
- spec/dummy/lib/assets/.gitkeep
|
450
|
+
- spec/dummy/log/.gitkeep
|
397
451
|
- spec/dummy/public/404.html
|
398
452
|
- spec/dummy/public/422.html
|
399
453
|
- spec/dummy/public/500.html
|
@@ -403,11 +457,15 @@ test_files:
|
|
403
457
|
- spec/factories/identity.rb
|
404
458
|
- spec/factories/twitter.rb
|
405
459
|
- spec/factories/user.rb
|
460
|
+
- spec/generators/socialite/install_generator_spec.rb
|
461
|
+
- spec/generators/socialite/migrations_generator_spec.rb
|
406
462
|
- spec/models/facebook_spec.rb
|
407
463
|
- spec/models/identity_spec.rb
|
408
464
|
- spec/models/user_spec.rb
|
465
|
+
- spec/socialite_spec.rb
|
409
466
|
- spec/spec_helper.rb
|
410
467
|
- spec/support/.gitkeep
|
411
468
|
- spec/support/database_loader.rb
|
412
469
|
- spec/support/databases.yml
|
413
470
|
- spec/support/identity_shared_example.rb
|
471
|
+
has_rdoc:
|