openstax_accounts 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +123 -0
  3. data/Rakefile +22 -0
  4. data/app/assets/javascripts/openstax/accounts/application.js +15 -0
  5. data/app/assets/stylesheets/openstax/accounts/application.css +13 -0
  6. data/app/assets/stylesheets/openstax/accounts/dev.css.scss +31 -0
  7. data/app/controllers/openstax/accounts/application_controller.rb +24 -0
  8. data/app/controllers/openstax/accounts/dev/dev_controller.rb +13 -0
  9. data/app/controllers/openstax/accounts/dev/users_controller.rb +21 -0
  10. data/app/controllers/openstax/accounts/sessions_controller.rb +41 -0
  11. data/app/handlers/openstax/accounts/dev/users_search.rb +38 -0
  12. data/app/handlers/openstax/accounts/sessions_omniauth_authenticated.rb +47 -0
  13. data/app/helpers/openstax/accounts/application_helper.rb +20 -0
  14. data/app/models/openstax/accounts/user.rb +42 -0
  15. data/app/routines/openstax/accounts/dev/create_user.rb +37 -0
  16. data/app/routines/openstax/accounts/search_users.rb +47 -0
  17. data/app/views/layouts/openstax/accounts/application.html.erb +14 -0
  18. data/app/views/openstax/accounts/dev/users/login.html.erb +17 -0
  19. data/app/views/openstax/accounts/dev/users/search.js.erb +21 -0
  20. data/app/views/openstax/accounts/shared/_attention.html.erb +3 -0
  21. data/app/views/openstax/accounts/users/_action_create_form.html.erb +9 -0
  22. data/app/views/openstax/accounts/users/_action_dialog.html.erb +10 -0
  23. data/app/views/openstax/accounts/users/_action_list.html.erb +33 -0
  24. data/app/views/openstax/accounts/users/_action_search.html.erb +25 -0
  25. data/app/views/openstax/accounts/users/action_search.js.erb +8 -0
  26. data/config/initializers/extend_builtins.rb +42 -0
  27. data/config/routes.rb +25 -0
  28. data/db/migrate/0_create_openstax_accounts_users.rb +18 -0
  29. data/lib/omniauth/strategies/openstax.rb +39 -0
  30. data/lib/openstax/accounts/action_list.rb +42 -0
  31. data/lib/openstax/accounts/current_user_manager.rb +103 -0
  32. data/lib/openstax/accounts/engine.rb +35 -0
  33. data/lib/openstax/accounts/route_helper.rb +34 -0
  34. data/lib/openstax/accounts/user_provider.rb +15 -0
  35. data/lib/openstax/accounts/version.rb +5 -0
  36. data/lib/openstax_accounts.rb +130 -0
  37. data/spec/controllers/openstax/accounts/dev/users_controller_spec.rb +20 -0
  38. data/spec/controllers/openstax/accounts/sessions_controller_spec.rb +29 -0
  39. data/spec/dummy/README.md +1 -0
  40. data/spec/dummy/Rakefile +7 -0
  41. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  42. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  43. data/spec/dummy/app/controllers/api/application_users_controller.rb +7 -0
  44. data/spec/dummy/app/controllers/api/dummy_controller.rb +11 -0
  45. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  46. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  47. data/spec/dummy/config/application.rb +53 -0
  48. data/spec/dummy/config/boot.rb +10 -0
  49. data/spec/dummy/config/database.yml +25 -0
  50. data/spec/dummy/config/environment.rb +5 -0
  51. data/spec/dummy/config/environments/development.rb +29 -0
  52. data/spec/dummy/config/environments/production.rb +69 -0
  53. data/spec/dummy/config/environments/test.rb +35 -0
  54. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  55. data/spec/dummy/config/initializers/inflections.rb +15 -0
  56. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  57. data/spec/dummy/config/initializers/openstax_accounts.rb +11 -0
  58. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  59. data/spec/dummy/config/initializers/session_store.rb +8 -0
  60. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  61. data/spec/dummy/config/locales/en.yml +5 -0
  62. data/spec/dummy/config/routes.rb +11 -0
  63. data/spec/dummy/config.ru +4 -0
  64. data/spec/dummy/db/schema.rb +31 -0
  65. data/spec/dummy/public/404.html +26 -0
  66. data/spec/dummy/public/422.html +26 -0
  67. data/spec/dummy/public/500.html +25 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/script/rails +6 -0
  70. data/spec/factories/openstax_accounts_user.rb +6 -0
  71. data/spec/lib/openstax_accounts_spec.rb +24 -0
  72. data/spec/models/openstax/accounts/user_spec.rb +13 -0
  73. data/spec/spec_helper.rb +41 -0
  74. metadata +401 -0
metadata ADDED
@@ -0,0 +1,401 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openstax_accounts
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - JP Slavinsky
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-04-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - !ruby/object:Gem::Dependency
31
+ name: omniauth
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '1.1'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '1.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: omniauth-oauth2
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '1.1'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '1.1'
62
+ - !ruby/object:Gem::Dependency
63
+ name: oauth2
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: squeel
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: lev
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '2.0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '2.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: openstax_utilities
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '1.2'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '1.2'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sass-rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '3.1'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '3.1'
142
+ - !ruby/object:Gem::Dependency
143
+ name: uglifier
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '1.0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '1.0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: sqlite3
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: rspec-rails
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: capybara
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: factory_girl_rails
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
223
+ name: quiet_assets
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: thin
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ! '>='
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ description: Rails common code and bindings and for 'accounts' API
255
+ email:
256
+ - jps@kindlinglabs.com
257
+ executables: []
258
+ extensions: []
259
+ extra_rdoc_files: []
260
+ files:
261
+ - app/assets/javascripts/openstax/accounts/application.js
262
+ - app/assets/stylesheets/openstax/accounts/application.css
263
+ - app/assets/stylesheets/openstax/accounts/dev.css.scss
264
+ - app/controllers/openstax/accounts/application_controller.rb
265
+ - app/controllers/openstax/accounts/dev/dev_controller.rb
266
+ - app/controllers/openstax/accounts/dev/users_controller.rb
267
+ - app/controllers/openstax/accounts/sessions_controller.rb
268
+ - app/handlers/openstax/accounts/dev/users_search.rb
269
+ - app/handlers/openstax/accounts/sessions_omniauth_authenticated.rb
270
+ - app/helpers/openstax/accounts/application_helper.rb
271
+ - app/models/openstax/accounts/user.rb
272
+ - app/routines/openstax/accounts/dev/create_user.rb
273
+ - app/routines/openstax/accounts/search_users.rb
274
+ - app/views/layouts/openstax/accounts/application.html.erb
275
+ - app/views/openstax/accounts/dev/users/login.html.erb
276
+ - app/views/openstax/accounts/dev/users/search.js.erb
277
+ - app/views/openstax/accounts/shared/_attention.html.erb
278
+ - app/views/openstax/accounts/users/_action_create_form.html.erb
279
+ - app/views/openstax/accounts/users/_action_dialog.html.erb
280
+ - app/views/openstax/accounts/users/_action_list.html.erb
281
+ - app/views/openstax/accounts/users/_action_search.html.erb
282
+ - app/views/openstax/accounts/users/action_search.js.erb
283
+ - config/initializers/extend_builtins.rb
284
+ - config/routes.rb
285
+ - db/migrate/0_create_openstax_accounts_users.rb
286
+ - lib/omniauth/strategies/openstax.rb
287
+ - lib/openstax/accounts/action_list.rb
288
+ - lib/openstax/accounts/current_user_manager.rb
289
+ - lib/openstax/accounts/engine.rb
290
+ - lib/openstax/accounts/route_helper.rb
291
+ - lib/openstax/accounts/user_provider.rb
292
+ - lib/openstax/accounts/version.rb
293
+ - lib/openstax_accounts.rb
294
+ - spec/factories/openstax_accounts_user.rb
295
+ - MIT-LICENSE
296
+ - Rakefile
297
+ - README.md
298
+ - spec/controllers/openstax/accounts/dev/users_controller_spec.rb
299
+ - spec/controllers/openstax/accounts/sessions_controller_spec.rb
300
+ - spec/dummy/app/assets/javascripts/application.js
301
+ - spec/dummy/app/assets/stylesheets/application.css
302
+ - spec/dummy/app/controllers/api/application_users_controller.rb
303
+ - spec/dummy/app/controllers/api/dummy_controller.rb
304
+ - spec/dummy/app/controllers/application_controller.rb
305
+ - spec/dummy/app/helpers/application_helper.rb
306
+ - spec/dummy/config/application.rb
307
+ - spec/dummy/config/boot.rb
308
+ - spec/dummy/config/database.yml
309
+ - spec/dummy/config/environment.rb
310
+ - spec/dummy/config/environments/development.rb
311
+ - spec/dummy/config/environments/production.rb
312
+ - spec/dummy/config/environments/test.rb
313
+ - spec/dummy/config/initializers/backtrace_silencers.rb
314
+ - spec/dummy/config/initializers/inflections.rb
315
+ - spec/dummy/config/initializers/mime_types.rb
316
+ - spec/dummy/config/initializers/openstax_accounts.rb
317
+ - spec/dummy/config/initializers/secret_token.rb
318
+ - spec/dummy/config/initializers/session_store.rb
319
+ - spec/dummy/config/initializers/wrap_parameters.rb
320
+ - spec/dummy/config/locales/en.yml
321
+ - spec/dummy/config/routes.rb
322
+ - spec/dummy/config.ru
323
+ - spec/dummy/db/schema.rb
324
+ - spec/dummy/public/404.html
325
+ - spec/dummy/public/422.html
326
+ - spec/dummy/public/500.html
327
+ - spec/dummy/public/favicon.ico
328
+ - spec/dummy/Rakefile
329
+ - spec/dummy/README.md
330
+ - spec/dummy/script/rails
331
+ - spec/lib/openstax_accounts_spec.rb
332
+ - spec/models/openstax/accounts/user_spec.rb
333
+ - spec/spec_helper.rb
334
+ homepage: http://github.com/openstax/accounts-rails
335
+ licenses: []
336
+ post_install_message:
337
+ rdoc_options: []
338
+ require_paths:
339
+ - lib
340
+ required_ruby_version: !ruby/object:Gem::Requirement
341
+ none: false
342
+ requirements:
343
+ - - ! '>='
344
+ - !ruby/object:Gem::Version
345
+ version: '0'
346
+ segments:
347
+ - 0
348
+ hash: -2337536802800212146
349
+ required_rubygems_version: !ruby/object:Gem::Requirement
350
+ none: false
351
+ requirements:
352
+ - - ! '>='
353
+ - !ruby/object:Gem::Version
354
+ version: '0'
355
+ segments:
356
+ - 0
357
+ hash: -2337536802800212146
358
+ requirements: []
359
+ rubyforge_project:
360
+ rubygems_version: 1.8.25
361
+ signing_key:
362
+ specification_version: 3
363
+ summary: Rails common code and bindings and for 'accounts' API
364
+ test_files:
365
+ - spec/controllers/openstax/accounts/dev/users_controller_spec.rb
366
+ - spec/controllers/openstax/accounts/sessions_controller_spec.rb
367
+ - spec/dummy/app/assets/javascripts/application.js
368
+ - spec/dummy/app/assets/stylesheets/application.css
369
+ - spec/dummy/app/controllers/api/application_users_controller.rb
370
+ - spec/dummy/app/controllers/api/dummy_controller.rb
371
+ - spec/dummy/app/controllers/application_controller.rb
372
+ - spec/dummy/app/helpers/application_helper.rb
373
+ - spec/dummy/config/application.rb
374
+ - spec/dummy/config/boot.rb
375
+ - spec/dummy/config/database.yml
376
+ - spec/dummy/config/environment.rb
377
+ - spec/dummy/config/environments/development.rb
378
+ - spec/dummy/config/environments/production.rb
379
+ - spec/dummy/config/environments/test.rb
380
+ - spec/dummy/config/initializers/backtrace_silencers.rb
381
+ - spec/dummy/config/initializers/inflections.rb
382
+ - spec/dummy/config/initializers/mime_types.rb
383
+ - spec/dummy/config/initializers/openstax_accounts.rb
384
+ - spec/dummy/config/initializers/secret_token.rb
385
+ - spec/dummy/config/initializers/session_store.rb
386
+ - spec/dummy/config/initializers/wrap_parameters.rb
387
+ - spec/dummy/config/locales/en.yml
388
+ - spec/dummy/config/routes.rb
389
+ - spec/dummy/config.ru
390
+ - spec/dummy/db/schema.rb
391
+ - spec/dummy/public/404.html
392
+ - spec/dummy/public/422.html
393
+ - spec/dummy/public/500.html
394
+ - spec/dummy/public/favicon.ico
395
+ - spec/dummy/Rakefile
396
+ - spec/dummy/README.md
397
+ - spec/dummy/script/rails
398
+ - spec/factories/openstax_accounts_user.rb
399
+ - spec/lib/openstax_accounts_spec.rb
400
+ - spec/models/openstax/accounts/user_spec.rb
401
+ - spec/spec_helper.rb