esp-auth 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +28 -0
  3. data/Rakefile +28 -0
  4. data/app/assets/images/esp_auth/gh_icons.png +0 -0
  5. data/app/assets/images/esp_auth/inline_error_arrow.png +0 -0
  6. data/app/assets/images/esp_auth/wood.jpg +0 -0
  7. data/app/assets/javascripts/esp_auth/application.js +4 -0
  8. data/app/assets/javascripts/esp_auth/jquery.noisy.min.js +3 -0
  9. data/app/assets/javascripts/esp_auth/permissions.js +62 -0
  10. data/app/assets/stylesheets/esp_auth/application.css +11 -0
  11. data/app/assets/stylesheets/esp_auth/buttons.sass +300 -0
  12. data/app/assets/stylesheets/esp_auth/jquery_ui.sass +1493 -0
  13. data/app/assets/stylesheets/esp_auth/pagination.sass +19 -0
  14. data/app/assets/stylesheets/esp_auth/permissions.sass +150 -0
  15. data/app/assets/stylesheets/esp_auth/shared.sass +84 -0
  16. data/app/controllers/esp_auth/application_controller.rb +11 -0
  17. data/app/controllers/esp_auth/omniauth_callbacks_controller.rb +11 -0
  18. data/app/controllers/esp_auth/permissions_controller.rb +13 -0
  19. data/app/controllers/esp_auth/sessions_controller.rb +16 -0
  20. data/app/controllers/esp_auth/users_controller.rb +24 -0
  21. data/app/models/user_search.rb +13 -0
  22. data/app/views/esp_auth/permissions/new.html.erb +23 -0
  23. data/app/views/esp_auth/shared/_footer.html.erb +12 -0
  24. data/app/views/esp_auth/shared/_header.html.erb +24 -0
  25. data/app/views/esp_auth/users/index.html.erb +53 -0
  26. data/app/views/layouts/esp_auth/application.html.erb +18 -0
  27. data/config/initializers/devise.rb +223 -0
  28. data/config/locales/ru.yml +35 -0
  29. data/config/routes.rb +25 -0
  30. data/lib/esp-auth.rb +19 -0
  31. data/lib/esp_auth/engine.rb +41 -0
  32. data/lib/esp_auth/spec_helper.rb +68 -0
  33. data/lib/esp_auth/version.rb +3 -0
  34. data/lib/generators/esp_auth/install/install_generator.rb +49 -0
  35. data/lib/generators/esp_auth/install/templates/app/controllers/manage/application_controller.rb +3 -0
  36. data/lib/generators/esp_auth/install/templates/app/models/ability.rb +41 -0
  37. data/lib/generators/esp_auth/install/templates/app/models/context.rb +27 -0
  38. data/lib/generators/esp_auth/install/templates/app/models/permission.rb +69 -0
  39. data/lib/generators/esp_auth/install/templates/app/models/subcontext.rb +21 -0
  40. data/lib/generators/esp_auth/install/templates/app/models/user.rb +67 -0
  41. data/lib/generators/esp_auth/install/templates/config/locales/permissions_enum.ru.yml +6 -0
  42. data/lib/generators/esp_auth/install/templates/config/schedule.rb +5 -0
  43. data/lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_contexts.rb +12 -0
  44. data/lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_permissions.rb +11 -0
  45. data/lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_subcontexts.rb +9 -0
  46. data/lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_users.rb +29 -0
  47. data/lib/generators/esp_auth/install/templates/db/seeds.rb +4 -0
  48. data/lib/generators/esp_auth/install/templates/spec/models/ability_spec.rb +83 -0
  49. data/lib/omniauth/strategies/identity.rb +15 -0
  50. data/lib/tasks/sync.rake +17 -0
  51. metadata +453 -0
metadata ADDED
@@ -0,0 +1,453 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: esp-auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - http://openteam.ru
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ancestry
16
+ requirement: &9571120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *9571120
25
+ - !ruby/object:Gem::Dependency
26
+ name: cancan
27
+ requirement: &9570700 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *9570700
36
+ - !ruby/object:Gem::Dependency
37
+ name: compass
38
+ requirement: &9570200 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 0.12.alpha.4
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *9570200
47
+ - !ruby/object:Gem::Dependency
48
+ name: curb
49
+ requirement: &9569780 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *9569780
58
+ - !ruby/object:Gem::Dependency
59
+ name: default_value_for
60
+ requirement: &9569320 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *9569320
69
+ - !ruby/object:Gem::Dependency
70
+ name: devise
71
+ requirement: &9568900 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *9568900
80
+ - !ruby/object:Gem::Dependency
81
+ name: devise-russian
82
+ requirement: &9568480 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *9568480
91
+ - !ruby/object:Gem::Dependency
92
+ name: omniauth
93
+ requirement: &9564260 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *9564260
102
+ - !ruby/object:Gem::Dependency
103
+ name: omniauth-oauth2
104
+ requirement: &9588320 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *9588320
113
+ - !ruby/object:Gem::Dependency
114
+ name: formtastic
115
+ requirement: &9587900 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *9587900
124
+ - !ruby/object:Gem::Dependency
125
+ name: has_enum
126
+ requirement: &9587480 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *9587480
135
+ - !ruby/object:Gem::Dependency
136
+ name: has_scope
137
+ requirement: &9587060 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *9587060
146
+ - !ruby/object:Gem::Dependency
147
+ name: has_searcher
148
+ requirement: &9586640 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ type: :runtime
155
+ prerelease: false
156
+ version_requirements: *9586640
157
+ - !ruby/object:Gem::Dependency
158
+ name: inherited_resources
159
+ requirement: &9586220 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: *9586220
168
+ - !ruby/object:Gem::Dependency
169
+ name: kaminari
170
+ requirement: &9585780 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ type: :runtime
177
+ prerelease: false
178
+ version_requirements: *9585780
179
+ - !ruby/object:Gem::Dependency
180
+ name: progress_bar
181
+ requirement: &9585320 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ type: :runtime
188
+ prerelease: false
189
+ version_requirements: *9585320
190
+ - !ruby/object:Gem::Dependency
191
+ name: rails
192
+ requirement: &9584880 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :runtime
199
+ prerelease: false
200
+ version_requirements: *9584880
201
+ - !ruby/object:Gem::Dependency
202
+ name: sass
203
+ requirement: &9584420 !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :runtime
210
+ prerelease: false
211
+ version_requirements: *9584420
212
+ - !ruby/object:Gem::Dependency
213
+ name: sass-rails
214
+ requirement: &9583980 !ruby/object:Gem::Requirement
215
+ none: false
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ type: :runtime
221
+ prerelease: false
222
+ version_requirements: *9583980
223
+ - !ruby/object:Gem::Dependency
224
+ name: sunspot_rails
225
+ requirement: &9583540 !ruby/object:Gem::Requirement
226
+ none: false
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ type: :runtime
232
+ prerelease: false
233
+ version_requirements: *9583540
234
+ - !ruby/object:Gem::Dependency
235
+ name: whenever
236
+ requirement: &9583080 !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ type: :runtime
243
+ prerelease: false
244
+ version_requirements: *9583080
245
+ - !ruby/object:Gem::Dependency
246
+ name: guard
247
+ requirement: &9582640 !ruby/object:Gem::Requirement
248
+ none: false
249
+ requirements:
250
+ - - ! '>='
251
+ - !ruby/object:Gem::Version
252
+ version: '0'
253
+ type: :development
254
+ prerelease: false
255
+ version_requirements: *9582640
256
+ - !ruby/object:Gem::Dependency
257
+ name: guard-rspec
258
+ requirement: &9582180 !ruby/object:Gem::Requirement
259
+ none: false
260
+ requirements:
261
+ - - ! '>='
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: *9582180
267
+ - !ruby/object:Gem::Dependency
268
+ name: guard-spork
269
+ requirement: &9581740 !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - ! '>='
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ type: :development
276
+ prerelease: false
277
+ version_requirements: *9581740
278
+ - !ruby/object:Gem::Dependency
279
+ name: rspec-rails
280
+ requirement: &9581280 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: *9581280
289
+ - !ruby/object:Gem::Dependency
290
+ name: russian
291
+ requirement: &9580840 !ruby/object:Gem::Requirement
292
+ none: false
293
+ requirements:
294
+ - - ! '>='
295
+ - !ruby/object:Gem::Version
296
+ version: '0'
297
+ type: :development
298
+ prerelease: false
299
+ version_requirements: *9580840
300
+ - !ruby/object:Gem::Dependency
301
+ name: shoulda-matchers
302
+ requirement: &9596760 !ruby/object:Gem::Requirement
303
+ none: false
304
+ requirements:
305
+ - - ! '>='
306
+ - !ruby/object:Gem::Version
307
+ version: '0'
308
+ type: :development
309
+ prerelease: false
310
+ version_requirements: *9596760
311
+ - !ruby/object:Gem::Dependency
312
+ name: spork
313
+ requirement: &9596320 !ruby/object:Gem::Requirement
314
+ none: false
315
+ requirements:
316
+ - - ! '>='
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ type: :development
320
+ prerelease: false
321
+ version_requirements: *9596320
322
+ - !ruby/object:Gem::Dependency
323
+ name: sqlite3
324
+ requirement: &9595900 !ruby/object:Gem::Requirement
325
+ none: false
326
+ requirements:
327
+ - - ! '>='
328
+ - !ruby/object:Gem::Version
329
+ version: '0'
330
+ type: :development
331
+ prerelease: false
332
+ version_requirements: *9595900
333
+ - !ruby/object:Gem::Dependency
334
+ name: sunspot_solr
335
+ requirement: &9595440 !ruby/object:Gem::Requirement
336
+ none: false
337
+ requirements:
338
+ - - ! '>='
339
+ - !ruby/object:Gem::Version
340
+ version: '0'
341
+ type: :development
342
+ prerelease: false
343
+ version_requirements: *9595440
344
+ - !ruby/object:Gem::Dependency
345
+ name: therubyracer
346
+ requirement: &9595000 !ruby/object:Gem::Requirement
347
+ none: false
348
+ requirements:
349
+ - - ! '>='
350
+ - !ruby/object:Gem::Version
351
+ version: '0'
352
+ type: :development
353
+ prerelease: false
354
+ version_requirements: *9595000
355
+ - !ruby/object:Gem::Dependency
356
+ name: uglifier
357
+ requirement: &9594580 !ruby/object:Gem::Requirement
358
+ none: false
359
+ requirements:
360
+ - - ! '>='
361
+ - !ruby/object:Gem::Version
362
+ version: '0'
363
+ type: :development
364
+ prerelease: false
365
+ version_requirements: *9594580
366
+ description: Description of EspAuth.
367
+ email:
368
+ - mail@openteam.ru
369
+ executables: []
370
+ extensions: []
371
+ extra_rdoc_files: []
372
+ files:
373
+ - app/assets/images/esp_auth/inline_error_arrow.png
374
+ - app/assets/images/esp_auth/wood.jpg
375
+ - app/assets/images/esp_auth/gh_icons.png
376
+ - app/assets/stylesheets/esp_auth/shared.sass
377
+ - app/assets/stylesheets/esp_auth/pagination.sass
378
+ - app/assets/stylesheets/esp_auth/application.css
379
+ - app/assets/stylesheets/esp_auth/jquery_ui.sass
380
+ - app/assets/stylesheets/esp_auth/permissions.sass
381
+ - app/assets/stylesheets/esp_auth/buttons.sass
382
+ - app/assets/javascripts/esp_auth/jquery.noisy.min.js
383
+ - app/assets/javascripts/esp_auth/application.js
384
+ - app/assets/javascripts/esp_auth/permissions.js
385
+ - app/models/user_search.rb
386
+ - app/controllers/esp_auth/sessions_controller.rb
387
+ - app/controllers/esp_auth/omniauth_callbacks_controller.rb
388
+ - app/controllers/esp_auth/users_controller.rb
389
+ - app/controllers/esp_auth/application_controller.rb
390
+ - app/controllers/esp_auth/permissions_controller.rb
391
+ - app/views/layouts/esp_auth/application.html.erb
392
+ - app/views/esp_auth/permissions/new.html.erb
393
+ - app/views/esp_auth/shared/_footer.html.erb
394
+ - app/views/esp_auth/shared/_header.html.erb
395
+ - app/views/esp_auth/users/index.html.erb
396
+ - config/initializers/devise.rb
397
+ - config/routes.rb
398
+ - config/locales/ru.yml
399
+ - lib/omniauth/strategies/identity.rb
400
+ - lib/generators/esp_auth/install/install_generator.rb
401
+ - lib/generators/esp_auth/install/templates/spec/models/ability_spec.rb
402
+ - lib/generators/esp_auth/install/templates/app/models/subcontext.rb
403
+ - lib/generators/esp_auth/install/templates/app/models/permission.rb
404
+ - lib/generators/esp_auth/install/templates/app/models/user.rb
405
+ - lib/generators/esp_auth/install/templates/app/models/context.rb
406
+ - lib/generators/esp_auth/install/templates/app/models/ability.rb
407
+ - lib/generators/esp_auth/install/templates/app/controllers/manage/application_controller.rb
408
+ - lib/generators/esp_auth/install/templates/config/schedule.rb
409
+ - lib/generators/esp_auth/install/templates/config/locales/permissions_enum.ru.yml
410
+ - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_users.rb
411
+ - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_contexts.rb
412
+ - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_subcontexts.rb
413
+ - lib/generators/esp_auth/install/templates/db/migrate/esp_auth_create_permissions.rb
414
+ - lib/generators/esp_auth/install/templates/db/seeds.rb
415
+ - lib/tasks/sync.rake
416
+ - lib/esp_auth/engine.rb
417
+ - lib/esp_auth/version.rb
418
+ - lib/esp_auth/spec_helper.rb
419
+ - lib/esp-auth.rb
420
+ - MIT-LICENSE
421
+ - Rakefile
422
+ - README.rdoc
423
+ homepage:
424
+ licenses: []
425
+ post_install_message:
426
+ rdoc_options: []
427
+ require_paths:
428
+ - lib
429
+ required_ruby_version: !ruby/object:Gem::Requirement
430
+ none: false
431
+ requirements:
432
+ - - ! '>='
433
+ - !ruby/object:Gem::Version
434
+ version: '0'
435
+ segments:
436
+ - 0
437
+ hash: 3895043902140604063
438
+ required_rubygems_version: !ruby/object:Gem::Requirement
439
+ none: false
440
+ requirements:
441
+ - - ! '>='
442
+ - !ruby/object:Gem::Version
443
+ version: '0'
444
+ segments:
445
+ - 0
446
+ hash: 3895043902140604063
447
+ requirements: []
448
+ rubyforge_project:
449
+ rubygems_version: 1.8.15
450
+ signing_key:
451
+ specification_version: 3
452
+ summary: Summary of EspAuth.
453
+ test_files: []