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.
Files changed (87) hide show
  1. data/README.md +33 -34
  2. data/Rakefile +8 -21
  3. data/app/controllers/socialite/application_controller.rb +4 -0
  4. data/app/controllers/socialite/identities_controller.rb +2 -14
  5. data/app/controllers/socialite/session_controller.rb +20 -0
  6. data/app/controllers/socialite/users_controller.rb +0 -1
  7. data/app/views/layouts/socialite/application.html.haml +11 -0
  8. data/app/views/socialite/identities/new.html.haml +27 -0
  9. data/app/views/socialite/session/new.html.haml +31 -14
  10. data/app/views/socialite/user/edit.html.haml +1 -1
  11. data/config/routes.rb +7 -7
  12. data/lib/generators/socialite/install_generator.rb +7 -9
  13. data/lib/generators/socialite/migrations_generator.rb +34 -0
  14. data/lib/generators/socialite/templates/identity.rb.erb +25 -0
  15. data/lib/generators/socialite/templates/socialite.rb +20 -7
  16. data/lib/generators/socialite/templates/users.rb.erb +12 -0
  17. data/lib/socialite.rb +25 -27
  18. data/lib/socialite/controllers/helpers.rb +107 -111
  19. data/lib/socialite/engine.rb +19 -32
  20. data/lib/socialite/helpers/authentication.rb +1 -1
  21. data/lib/socialite/models/identity_concern.rb +91 -0
  22. data/lib/socialite/models/user_concern.rb +54 -0
  23. data/lib/socialite/version.rb +1 -1
  24. data/spec/dummy/README.rdoc +261 -0
  25. data/spec/dummy/app/assets/javascripts/application.js +9 -3
  26. data/spec/dummy/app/assets/stylesheets/application.css +11 -5
  27. data/{app/assets/images/socialite → spec/dummy/app/mailers}/.gitkeep +0 -0
  28. data/{app/assets/javascripts/socialite → spec/dummy/app/models}/.gitkeep +0 -0
  29. data/spec/dummy/app/models/identity.rb +4 -0
  30. data/spec/dummy/app/models/user.rb +4 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +1 -5
  32. data/spec/dummy/config/application.rb +19 -2
  33. data/spec/dummy/config/boot.rb +1 -11
  34. data/spec/dummy/config/database.yml +18 -2
  35. data/spec/dummy/config/environments/development.rb +8 -1
  36. data/spec/dummy/config/environments/production.rb +9 -2
  37. data/spec/dummy/config/environments/test.rb +4 -9
  38. data/spec/dummy/config/initializers/inflections.rb +5 -0
  39. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  40. data/spec/dummy/config/initializers/session_store.rb +1 -1
  41. data/spec/dummy/config/initializers/socialite.rb +26 -4
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +1 -1
  43. data/spec/dummy/config/routes.rb +2 -10
  44. data/{db/migrate/20110914215410_create_users.rb → spec/dummy/db/migrate/20130206224516_create_socialite_users.rb} +2 -4
  45. data/spec/dummy/db/migrate/20130206224517_create_socialite_identities.rb +25 -0
  46. data/spec/dummy/db/schema.rb +12 -20
  47. data/{lib/tasks → spec/dummy/lib/assets}/.gitkeep +0 -0
  48. data/spec/dummy/log/.gitkeep +0 -0
  49. data/spec/dummy/public/500.html +0 -1
  50. data/spec/factories/facebook.rb +5 -5
  51. data/spec/factories/identity.rb +3 -3
  52. data/spec/factories/user.rb +10 -12
  53. data/spec/generators/socialite/install_generator_spec.rb +43 -0
  54. data/spec/generators/socialite/migrations_generator_spec.rb +27 -0
  55. data/spec/models/facebook_spec.rb +24 -21
  56. data/spec/models/identity_spec.rb +2 -2
  57. data/spec/models/user_spec.rb +7 -7
  58. data/spec/socialite_spec.rb +53 -0
  59. data/spec/spec_helper.rb +23 -10
  60. data/spec/support/identity_shared_example.rb +24 -20
  61. metadata +202 -144
  62. data/.autotest +0 -7
  63. data/.gitignore +0 -9
  64. data/.rspec +0 -2
  65. data/.travis.yml +0 -10
  66. data/.yardopts +0 -8
  67. data/Gemfile +0 -8
  68. data/Gemfile.lock +0 -208
  69. data/app/models/socialite/facebook_identity.rb +0 -5
  70. data/app/models/socialite/identity.rb +0 -5
  71. data/app/models/socialite/user.rb +0 -10
  72. data/config/initializers/simple_form.rb +0 -90
  73. data/config/locales/simple_form.en.yml +0 -23
  74. data/db/migrate/20110925224222_create_identities.rb +0 -26
  75. data/db/migrate/20110926005551_create_facebook_identities.rb +0 -12
  76. data/lib/socialite/api_wrappers/facebook.rb +0 -67
  77. data/lib/socialite/api_wrappers/twitter.rb +0 -19
  78. data/lib/socialite/models/identity.rb +0 -99
  79. data/lib/socialite/models/user.rb +0 -50
  80. data/lib/socialite/service_config.rb +0 -14
  81. data/lib/tasks/cucumber.rake +0 -65
  82. data/script/cucumber +0 -10
  83. data/script/rails +0 -6
  84. data/socialite.gemspec +0 -39
  85. data/spec/dummy/app/controllers/home_controller.rb +0 -11
  86. data/spec/dummy/app/views/home/index.html.haml +0 -12
  87. 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
@@ -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
- # Load factories
17
- require 'factory_girl'
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(:unique_id) }
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(:unique_id) }
9
+ it { should validate_presence_of(:uid) }
10
10
  it { should validate_presence_of(:provider) }
11
11
 
12
- it { should validate_uniqueness_of(:unique_id).scoped_to(:provider) }
13
- it { should validate_uniqueness_of(:provider).scoped_to(:user_id).case_insensitive }
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
- # let(:fb_identity) { }
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(Identity) }
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.unique_id) }
38
- subject { Identity.find_or_initialize_by_oauth(auth_hash) }
39
- before { user.identities.count.should > 0; identity.user.should be_present }
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(User) }
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: 2011-10-03 00:00:00.000000000Z
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70258980161920 !ruby/object:Gem::Requirement
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.1.0
22
- type: :runtime
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.1.0
33
- type: :runtime
27
+ version: 3.2.11
34
28
  prerelease: false
35
- version_requirements: *70258980161100
29
+ type: :runtime
36
30
  - !ruby/object:Gem::Dependency
37
- name: simple_form
38
- requirement: &70258980160380 !ruby/object:Gem::Requirement
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: 1.5.2
44
- type: :runtime
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
- version_requirements: *70258980160380
45
+ type: :runtime
47
46
  - !ruby/object:Gem::Dependency
48
- name: haml
49
- requirement: &70258980159800 !ruby/object:Gem::Requirement
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.1.2
55
- type: :runtime
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: 0.3.0.rc3
66
- type: :runtime
59
+ version: 3.2.0
67
60
  prerelease: false
68
- version_requirements: *70258980159280
61
+ type: :runtime
69
62
  - !ruby/object:Gem::Dependency
70
- name: oa-oauth
71
- requirement: &70258980158660 !ruby/object:Gem::Requirement
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.3.0.rc3
77
- type: :runtime
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
- version_requirements: *70258980158660
77
+ type: :runtime
80
78
  - !ruby/object:Gem::Dependency
81
- name: koala
82
- requirement: &70258980157880 !ruby/object:Gem::Requirement
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: 1.2.0beta4
88
- type: :runtime
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
- version_requirements: *70258980157880
93
+ type: :runtime
91
94
  - !ruby/object:Gem::Dependency
92
- name: grackle
93
- requirement: &70258980157040 !ruby/object:Gem::Requirement
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: 0.1.10
99
- type: :runtime
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
- version_requirements: *70258980157040
109
+ type: :runtime
102
110
  - !ruby/object:Gem::Dependency
103
111
  name: sqlite3
104
- requirement: &70258980156460 !ruby/object:Gem::Requirement
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
- version_requirements: *70258980156460
125
+ type: :development
113
126
  - !ruby/object:Gem::Dependency
114
127
  name: yard
115
- requirement: &70258980155660 !ruby/object:Gem::Requirement
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
- type: :development
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
- version_requirements: *70258980154860
141
+ type: :development
135
142
  - !ruby/object:Gem::Dependency
136
143
  name: rspec-rails
137
- requirement: &70258980153900 !ruby/object:Gem::Requirement
144
+ version_requirements: !ruby/object:Gem::Requirement
138
145
  none: false
139
146
  requirements:
140
- - - ~>
147
+ - - ! '>='
141
148
  - !ruby/object:Gem::Version
142
- version: 2.6.1
143
- type: :development
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
- version_requirements: *70258980153900
157
+ type: :development
146
158
  - !ruby/object:Gem::Dependency
147
- name: factory_girl
148
- requirement: &70258980147880 !ruby/object:Gem::Requirement
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: 2.1.0
154
- type: :development
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
- version_requirements: *70258980147880
173
+ type: :development
157
174
  - !ruby/object:Gem::Dependency
158
175
  name: shoulda-matchers
159
- requirement: &70258980147140 !ruby/object:Gem::Requirement
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
- version_requirements: *70258980147140
189
+ type: :development
168
190
  - !ruby/object:Gem::Dependency
169
- name: cucumber-rails
170
- requirement: &70258980145900 !ruby/object:Gem::Requirement
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: 1.0.6
176
- type: :development
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
- version_requirements: *70258980145900
205
+ type: :development
179
206
  - !ruby/object:Gem::Dependency
180
- name: database_cleaner
181
- requirement: &70258980145100 !ruby/object:Gem::Requirement
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.6.7
187
- type: :development
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
- version_requirements: *70258980145100
221
+ type: :development
190
222
  - !ruby/object:Gem::Dependency
191
- name: selenium-webdriver
192
- requirement: &70258980144080 !ruby/object:Gem::Requirement
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: 2.4.0
198
- type: :development
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
- version_requirements: *70258980144080
237
+ type: :development
201
238
  - !ruby/object:Gem::Dependency
202
- name: launchy
203
- requirement: &70258980143240 !ruby/object:Gem::Requirement
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: 2.0.5
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
- version_requirements: *70258980143240
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/models/socialite/facebook_identity.rb
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
- - db/migrate/20110914215410_create_users.rb
247
- - db/migrate/20110925224222_create_identities.rb
248
- - db/migrate/20110926005551_create_facebook_identities.rb
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
- - lib/generators/socialite/install_generator.rb
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/views/home/index.html.haml
290
- - spec/dummy/app/views/home/show.html.haml
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: -2813799985366239650
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.10
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/views/home/index.html.haml
377
- - spec/dummy/app/views/home/show.html.haml
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: