socialite 0.0.1.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/.autotest +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +10 -0
  5. data/.yardopts +8 -0
  6. data/Gemfile +8 -0
  7. data/Gemfile.lock +208 -0
  8. data/LICENSE +176 -0
  9. data/README.md +63 -0
  10. data/Rakefile +34 -0
  11. data/app/assets/images/socialite/.gitkeep +0 -0
  12. data/app/assets/javascripts/socialite/.gitkeep +0 -0
  13. data/app/assets/stylesheets/socialite/socialite.css +40 -0
  14. data/app/assets/stylesheets/socialite.css +7 -0
  15. data/app/controllers/socialite/identities_controller.rb +53 -0
  16. data/app/controllers/socialite/session_controller.rb +28 -0
  17. data/app/controllers/socialite/user_controller.rb +39 -0
  18. data/app/helpers/socialite/authentication_helper.rb +15 -0
  19. data/app/models/socialite/facebook_identity.rb +7 -0
  20. data/app/models/socialite/identity.rb +6 -0
  21. data/app/models/socialite/user.rb +42 -0
  22. data/app/views/socialite/identities/_identities.html.haml +14 -0
  23. data/app/views/socialite/session/new.html.haml +14 -0
  24. data/app/views/socialite/user/_form.html.haml +13 -0
  25. data/app/views/socialite/user/edit.html.haml +1 -0
  26. data/app/views/socialite/user/show.html.haml +16 -0
  27. data/config/initializers/simple_form.rb +90 -0
  28. data/config/locales/simple_form.en.yml +23 -0
  29. data/config/routes.rb +10 -0
  30. data/db/migrate/20110914215410_create_users.rb +14 -0
  31. data/db/migrate/20110925224222_create_identities.rb +26 -0
  32. data/db/migrate/20110926005551_create_facebook_identities.rb +12 -0
  33. data/features/authentication/facebook_signin.feature +5 -0
  34. data/features/authentication/twitter_signin.feature +5 -0
  35. data/features/identities/facebook_management.feature +14 -0
  36. data/features/identities/twitter_management.feature +7 -0
  37. data/features/registration/facebook_signup.feature +10 -0
  38. data/features/registration/twitter_signup.feature +0 -0
  39. data/features/step_definitions/authentication_steps.rb +31 -0
  40. data/features/step_definitions/common_steps.rb +13 -0
  41. data/features/step_definitions/identity_steps.rb +5 -0
  42. data/features/step_definitions/web_steps.rb +254 -0
  43. data/features/support/env.rb +58 -0
  44. data/features/support/hooks.rb +3 -0
  45. data/features/support/omniauth.rb +31 -0
  46. data/features/support/paths.rb +34 -0
  47. data/features/support/selectors.rb +39 -0
  48. data/lib/socialite/api_wrappers/facebook.rb +67 -0
  49. data/lib/socialite/api_wrappers/twitter.rb +19 -0
  50. data/lib/socialite/base_identity.rb +96 -0
  51. data/lib/socialite/controller_support.rb +136 -0
  52. data/lib/socialite/engine.rb +32 -0
  53. data/lib/socialite/service_config.rb +14 -0
  54. data/lib/socialite/version.rb +3 -0
  55. data/lib/socialite.rb +37 -0
  56. data/lib/tasks/.gitkeep +0 -0
  57. data/lib/tasks/cucumber.rake +65 -0
  58. data/lib/tasks/socialite_tasks.rake +4 -0
  59. data/script/cucumber +10 -0
  60. data/script/rails +6 -0
  61. data/socialite.gemspec +39 -0
  62. data/spec/dummy/Rakefile +7 -0
  63. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  64. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  65. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  66. data/spec/dummy/app/controllers/home_controller.rb +11 -0
  67. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  68. data/spec/dummy/app/views/home/index.html.haml +12 -0
  69. data/spec/dummy/app/views/home/show.html.haml +6 -0
  70. data/spec/dummy/app/views/layouts/application.html.erb +18 -0
  71. data/spec/dummy/config/application.rb +48 -0
  72. data/spec/dummy/config/boot.rb +20 -0
  73. data/spec/dummy/config/database.yml +9 -0
  74. data/spec/dummy/config/environment.rb +5 -0
  75. data/spec/dummy/config/environments/development.rb +30 -0
  76. data/spec/dummy/config/environments/production.rb +60 -0
  77. data/spec/dummy/config/environments/test.rb +42 -0
  78. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  79. data/spec/dummy/config/initializers/inflections.rb +10 -0
  80. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  81. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  82. data/spec/dummy/config/initializers/session_store.rb +8 -0
  83. data/spec/dummy/config/initializers/socialite.rb +6 -0
  84. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  85. data/spec/dummy/config/locales/en.yml +5 -0
  86. data/spec/dummy/config/routes.rb +11 -0
  87. data/spec/dummy/config.ru +4 -0
  88. data/spec/dummy/db/schema.rb +43 -0
  89. data/spec/dummy/public/404.html +26 -0
  90. data/spec/dummy/public/422.html +26 -0
  91. data/spec/dummy/public/500.html +26 -0
  92. data/spec/dummy/public/favicon.ico +0 -0
  93. data/spec/dummy/script/rails +6 -0
  94. data/spec/factories/facebook.rb +5 -0
  95. data/spec/factories/identity.rb +9 -0
  96. data/spec/factories/twitter.rb +6 -0
  97. data/spec/factories/user.rb +16 -0
  98. data/spec/models/facebook_spec.rb +28 -0
  99. data/spec/models/identity_spec.rb +9 -0
  100. data/spec/models/user_spec.rb +27 -0
  101. data/spec/spec_helper.rb +29 -0
  102. data/spec/support/.gitkeep +0 -0
  103. data/spec/support/database_loader.rb +13 -0
  104. data/spec/support/databases.yml +14 -0
  105. data/spec/support/identity_shared_example.rb +67 -0
  106. metadata +409 -0
metadata ADDED
@@ -0,0 +1,409 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: socialite
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.beta
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Justin Smestad
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-09-28 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70144409985160 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70144409985160
25
+ - !ruby/object:Gem::Dependency
26
+ name: sass-rails
27
+ requirement: &70144409983220 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 3.1.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70144409983220
36
+ - !ruby/object:Gem::Dependency
37
+ name: simple_form
38
+ requirement: &70144409981420 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.5.2
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70144409981420
47
+ - !ruby/object:Gem::Dependency
48
+ name: haml
49
+ requirement: &70144409979300 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 3.1.2
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70144409979300
58
+ - !ruby/object:Gem::Dependency
59
+ name: oa-core
60
+ requirement: &70144409975540 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 0.3.0.rc3
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70144409975540
69
+ - !ruby/object:Gem::Dependency
70
+ name: oa-oauth
71
+ requirement: &70144409972360 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 0.3.0.rc3
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *70144409972360
80
+ - !ruby/object:Gem::Dependency
81
+ name: koala
82
+ requirement: &70144409970280 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 1.2.0beta4
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70144409970280
91
+ - !ruby/object:Gem::Dependency
92
+ name: grackle
93
+ requirement: &70144409969040 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 0.1.10
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70144409969040
102
+ - !ruby/object:Gem::Dependency
103
+ name: sqlite3
104
+ requirement: &70144409967980 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *70144409967980
113
+ - !ruby/object:Gem::Dependency
114
+ name: yard
115
+ requirement: &70144409966300 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70144409966300
124
+ - !ruby/object:Gem::Dependency
125
+ name: rdiscount
126
+ requirement: &70144409963460 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *70144409963460
135
+ - !ruby/object:Gem::Dependency
136
+ name: rspec-rails
137
+ requirement: &70144409961560 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 2.6.1
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: *70144409961560
146
+ - !ruby/object:Gem::Dependency
147
+ name: factory_girl
148
+ requirement: &70144409959880 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ version: 2.1.0
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: *70144409959880
157
+ - !ruby/object:Gem::Dependency
158
+ name: shoulda-matchers
159
+ requirement: &70144409958200 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: *70144409958200
168
+ - !ruby/object:Gem::Dependency
169
+ name: cucumber-rails
170
+ requirement: &70144409955920 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ~>
174
+ - !ruby/object:Gem::Version
175
+ version: 1.0.6
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: *70144409955920
179
+ - !ruby/object:Gem::Dependency
180
+ name: database_cleaner
181
+ requirement: &70144409953880 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: 0.6.7
187
+ type: :development
188
+ prerelease: false
189
+ version_requirements: *70144409953880
190
+ - !ruby/object:Gem::Dependency
191
+ name: selenium-webdriver
192
+ requirement: &70144409951620 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: 2.4.0
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: *70144409951620
201
+ - !ruby/object:Gem::Dependency
202
+ name: launchy
203
+ requirement: &70144409950080 !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - ~>
207
+ - !ruby/object:Gem::Version
208
+ version: 2.0.5
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: *70144409950080
212
+ description: Rails engine supporting multiple auth providers per user.
213
+ email: justin.smestad@gmail.com
214
+ executables: []
215
+ extensions: []
216
+ extra_rdoc_files: []
217
+ 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
+ - app/assets/stylesheets/socialite/socialite.css
232
+ - app/controllers/socialite/identities_controller.rb
233
+ - app/controllers/socialite/session_controller.rb
234
+ - app/controllers/socialite/user_controller.rb
235
+ - app/helpers/socialite/authentication_helper.rb
236
+ - app/models/socialite/facebook_identity.rb
237
+ - app/models/socialite/identity.rb
238
+ - app/models/socialite/user.rb
239
+ - app/views/socialite/identities/_identities.html.haml
240
+ - app/views/socialite/session/new.html.haml
241
+ - app/views/socialite/user/_form.html.haml
242
+ - app/views/socialite/user/edit.html.haml
243
+ - app/views/socialite/user/show.html.haml
244
+ - config/initializers/simple_form.rb
245
+ - config/locales/simple_form.en.yml
246
+ - config/routes.rb
247
+ - db/migrate/20110914215410_create_users.rb
248
+ - db/migrate/20110925224222_create_identities.rb
249
+ - db/migrate/20110926005551_create_facebook_identities.rb
250
+ - features/authentication/facebook_signin.feature
251
+ - features/authentication/twitter_signin.feature
252
+ - features/identities/facebook_management.feature
253
+ - features/identities/twitter_management.feature
254
+ - features/registration/facebook_signup.feature
255
+ - features/registration/twitter_signup.feature
256
+ - features/step_definitions/authentication_steps.rb
257
+ - features/step_definitions/common_steps.rb
258
+ - features/step_definitions/identity_steps.rb
259
+ - features/step_definitions/web_steps.rb
260
+ - features/support/env.rb
261
+ - features/support/hooks.rb
262
+ - features/support/omniauth.rb
263
+ - features/support/paths.rb
264
+ - features/support/selectors.rb
265
+ - lib/socialite.rb
266
+ - lib/socialite/api_wrappers/facebook.rb
267
+ - lib/socialite/api_wrappers/twitter.rb
268
+ - lib/socialite/base_identity.rb
269
+ - lib/socialite/controller_support.rb
270
+ - lib/socialite/engine.rb
271
+ - lib/socialite/service_config.rb
272
+ - lib/socialite/version.rb
273
+ - lib/tasks/.gitkeep
274
+ - lib/tasks/cucumber.rake
275
+ - lib/tasks/socialite_tasks.rake
276
+ - script/cucumber
277
+ - script/rails
278
+ - socialite.gemspec
279
+ - spec/dummy/Rakefile
280
+ - spec/dummy/app/assets/javascripts/application.js
281
+ - spec/dummy/app/assets/stylesheets/application.css
282
+ - spec/dummy/app/controllers/application_controller.rb
283
+ - spec/dummy/app/controllers/home_controller.rb
284
+ - spec/dummy/app/helpers/application_helper.rb
285
+ - spec/dummy/app/views/home/index.html.haml
286
+ - spec/dummy/app/views/home/show.html.haml
287
+ - spec/dummy/app/views/layouts/application.html.erb
288
+ - spec/dummy/config.ru
289
+ - spec/dummy/config/application.rb
290
+ - spec/dummy/config/boot.rb
291
+ - spec/dummy/config/database.yml
292
+ - spec/dummy/config/environment.rb
293
+ - spec/dummy/config/environments/development.rb
294
+ - spec/dummy/config/environments/production.rb
295
+ - spec/dummy/config/environments/test.rb
296
+ - spec/dummy/config/initializers/backtrace_silencers.rb
297
+ - spec/dummy/config/initializers/inflections.rb
298
+ - spec/dummy/config/initializers/mime_types.rb
299
+ - spec/dummy/config/initializers/secret_token.rb
300
+ - spec/dummy/config/initializers/session_store.rb
301
+ - spec/dummy/config/initializers/socialite.rb
302
+ - spec/dummy/config/initializers/wrap_parameters.rb
303
+ - spec/dummy/config/locales/en.yml
304
+ - spec/dummy/config/routes.rb
305
+ - spec/dummy/db/schema.rb
306
+ - spec/dummy/public/404.html
307
+ - spec/dummy/public/422.html
308
+ - spec/dummy/public/500.html
309
+ - spec/dummy/public/favicon.ico
310
+ - spec/dummy/script/rails
311
+ - spec/factories/facebook.rb
312
+ - spec/factories/identity.rb
313
+ - spec/factories/twitter.rb
314
+ - spec/factories/user.rb
315
+ - spec/models/facebook_spec.rb
316
+ - spec/models/identity_spec.rb
317
+ - spec/models/user_spec.rb
318
+ - spec/spec_helper.rb
319
+ - spec/support/.gitkeep
320
+ - spec/support/database_loader.rb
321
+ - spec/support/databases.yml
322
+ - spec/support/identity_shared_example.rb
323
+ homepage: http://github.com/jsmestad/socialite
324
+ licenses: []
325
+ post_install_message:
326
+ rdoc_options: []
327
+ require_paths:
328
+ - lib
329
+ required_ruby_version: !ruby/object:Gem::Requirement
330
+ none: false
331
+ requirements:
332
+ - - ! '>='
333
+ - !ruby/object:Gem::Version
334
+ version: '0'
335
+ segments:
336
+ - 0
337
+ hash: -1102070336379902951
338
+ required_rubygems_version: !ruby/object:Gem::Requirement
339
+ none: false
340
+ requirements:
341
+ - - ! '>'
342
+ - !ruby/object:Gem::Version
343
+ version: 1.3.1
344
+ requirements: []
345
+ rubyforge_project:
346
+ rubygems_version: 1.8.10
347
+ signing_key:
348
+ specification_version: 3
349
+ summary: Rails engine supporting multiple auth providers per user.
350
+ test_files:
351
+ - features/authentication/facebook_signin.feature
352
+ - features/authentication/twitter_signin.feature
353
+ - features/identities/facebook_management.feature
354
+ - features/identities/twitter_management.feature
355
+ - features/registration/facebook_signup.feature
356
+ - features/registration/twitter_signup.feature
357
+ - features/step_definitions/authentication_steps.rb
358
+ - features/step_definitions/common_steps.rb
359
+ - features/step_definitions/identity_steps.rb
360
+ - features/step_definitions/web_steps.rb
361
+ - features/support/env.rb
362
+ - features/support/hooks.rb
363
+ - features/support/omniauth.rb
364
+ - features/support/paths.rb
365
+ - features/support/selectors.rb
366
+ - spec/dummy/Rakefile
367
+ - spec/dummy/app/assets/javascripts/application.js
368
+ - spec/dummy/app/assets/stylesheets/application.css
369
+ - spec/dummy/app/controllers/application_controller.rb
370
+ - spec/dummy/app/controllers/home_controller.rb
371
+ - spec/dummy/app/helpers/application_helper.rb
372
+ - spec/dummy/app/views/home/index.html.haml
373
+ - spec/dummy/app/views/home/show.html.haml
374
+ - spec/dummy/app/views/layouts/application.html.erb
375
+ - spec/dummy/config.ru
376
+ - spec/dummy/config/application.rb
377
+ - spec/dummy/config/boot.rb
378
+ - spec/dummy/config/database.yml
379
+ - spec/dummy/config/environment.rb
380
+ - spec/dummy/config/environments/development.rb
381
+ - spec/dummy/config/environments/production.rb
382
+ - spec/dummy/config/environments/test.rb
383
+ - spec/dummy/config/initializers/backtrace_silencers.rb
384
+ - spec/dummy/config/initializers/inflections.rb
385
+ - spec/dummy/config/initializers/mime_types.rb
386
+ - spec/dummy/config/initializers/secret_token.rb
387
+ - spec/dummy/config/initializers/session_store.rb
388
+ - spec/dummy/config/initializers/socialite.rb
389
+ - spec/dummy/config/initializers/wrap_parameters.rb
390
+ - spec/dummy/config/locales/en.yml
391
+ - spec/dummy/config/routes.rb
392
+ - spec/dummy/db/schema.rb
393
+ - spec/dummy/public/404.html
394
+ - spec/dummy/public/422.html
395
+ - spec/dummy/public/500.html
396
+ - spec/dummy/public/favicon.ico
397
+ - spec/dummy/script/rails
398
+ - spec/factories/facebook.rb
399
+ - spec/factories/identity.rb
400
+ - spec/factories/twitter.rb
401
+ - spec/factories/user.rb
402
+ - spec/models/facebook_spec.rb
403
+ - spec/models/identity_spec.rb
404
+ - spec/models/user_spec.rb
405
+ - spec/spec_helper.rb
406
+ - spec/support/.gitkeep
407
+ - spec/support/database_loader.rb
408
+ - spec/support/databases.yml
409
+ - spec/support/identity_shared_example.rb