bsm_oa 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +180 -0
  6. data/Rakefile +21 -0
  7. data/app/controllers/bsm_oa/accounts_controller.rb +12 -0
  8. data/app/controllers/bsm_oa/applications_controller.rb +35 -0
  9. data/app/controllers/bsm_oa/authorizations_controller.rb +80 -0
  10. data/app/controllers/bsm_oa/roles_controller.rb +58 -0
  11. data/app/views/bsm_oa/accounts/show.json.jbuilder +7 -0
  12. data/app/views/bsm_oa/applications/_application.html.erb +15 -0
  13. data/app/views/bsm_oa/applications/_application.json.jbuilder +1 -0
  14. data/app/views/bsm_oa/applications/_inputs.html.erb +11 -0
  15. data/app/views/bsm_oa/applications/create.json.jbuilder +1 -0
  16. data/app/views/bsm_oa/applications/edit.html.erb +10 -0
  17. data/app/views/bsm_oa/applications/index.html.erb +24 -0
  18. data/app/views/bsm_oa/applications/index.json.jbuilder +1 -0
  19. data/app/views/bsm_oa/applications/new.html.erb +10 -0
  20. data/app/views/bsm_oa/applications/show.json.jbuilder +1 -0
  21. data/app/views/bsm_oa/applications/update.json.jbuilder +1 -0
  22. data/app/views/bsm_oa/authorizations/_authorization.json.jbuilder +1 -0
  23. data/app/views/bsm_oa/authorizations/_inputs.html.erb +2 -0
  24. data/app/views/bsm_oa/authorizations/edit.html.erb +10 -0
  25. data/app/views/bsm_oa/authorizations/index.html.erb +0 -0
  26. data/app/views/bsm_oa/authorizations/index.json.jbuilder +1 -0
  27. data/app/views/bsm_oa/authorizations/new.html.erb +11 -0
  28. data/app/views/bsm_oa/authorizations/toggle.js.erb +9 -0
  29. data/app/views/bsm_oa/authorizations/toggle.json.jbuilder +1 -0
  30. data/app/views/bsm_oa/roles/_authorization.html.erb +17 -0
  31. data/app/views/bsm_oa/roles/_inputs.html.erb +5 -0
  32. data/app/views/bsm_oa/roles/_role.html.erb +16 -0
  33. data/app/views/bsm_oa/roles/_role.json.jbuilder +2 -0
  34. data/app/views/bsm_oa/roles/create.json.jbuilder +1 -0
  35. data/app/views/bsm_oa/roles/edit.html.erb +10 -0
  36. data/app/views/bsm_oa/roles/index.html.erb +19 -0
  37. data/app/views/bsm_oa/roles/index.json.jbuilder +2 -0
  38. data/app/views/bsm_oa/roles/new.html.erb +10 -0
  39. data/app/views/bsm_oa/roles/show.html.erb +41 -0
  40. data/app/views/bsm_oa/roles/show.json.jbuilder +1 -0
  41. data/app/views/bsm_oa/roles/update.json.jbuilder +1 -0
  42. data/bsm_oa.gemspec +37 -0
  43. data/config.ru +7 -0
  44. data/db/migrate/20150507113313_bsm_oa_create_doorkeeper_tables.rb +43 -0
  45. data/db/migrate/20150513155732_bsm_oa_create_tables.rb +16 -0
  46. data/lib/bsm_oa/application_mixin.rb +37 -0
  47. data/lib/bsm_oa/authorization.rb +49 -0
  48. data/lib/bsm_oa/config.rb +19 -0
  49. data/lib/bsm_oa/engine.rb +27 -0
  50. data/lib/bsm_oa/role.rb +28 -0
  51. data/lib/bsm_oa/routes.rb +24 -0
  52. data/lib/bsm_oa/version.rb +3 -0
  53. data/lib/bsm_oa.rb +25 -0
  54. data/spec/controllers/bsm_oa/accounts_controller_spec.rb +35 -0
  55. data/spec/controllers/bsm_oa/applications_controller_spec.rb +114 -0
  56. data/spec/controllers/bsm_oa/authorizations_controller_spec.rb +164 -0
  57. data/spec/controllers/bsm_oa/roles_controller_spec.rb +140 -0
  58. data/spec/factories.rb +23 -0
  59. data/spec/internal/config/database.yml +3 -0
  60. data/spec/internal/config/routes.rb +3 -0
  61. data/spec/internal/db/combustion_test.sqlite +0 -0
  62. data/spec/internal/db/schema.rb +13 -0
  63. data/spec/internal/log/.gitignore +1 -0
  64. data/spec/internal/public/favicon.ico +0 -0
  65. data/spec/lib/bsm_oa/application_mixin_spec.rb +48 -0
  66. data/spec/lib/bsm_oa/authorization_spec.rb +53 -0
  67. data/spec/lib/bsm_oa/config_spec.rb +20 -0
  68. data/spec/lib/bsm_oa/role_spec.rb +22 -0
  69. data/spec/spec_helper.rb +64 -0
  70. metadata +372 -0
metadata ADDED
@@ -0,0 +1,372 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bsm_oa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Andy Born
8
+ - Dimitrij Denissenko
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-06-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '4.1'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '4.1'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: doorkeeper
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0.rc
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0.rc
48
+ - !ruby/object:Gem::Dependency
49
+ name: responders
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: jbuilder
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.2'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.2'
76
+ - !ruby/object:Gem::Dependency
77
+ name: bsm-models
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: has_scope
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.6'
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.6'
104
+ - !ruby/object:Gem::Dependency
105
+ name: simple_form
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.1'
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.1'
118
+ - !ruby/object:Gem::Dependency
119
+ name: jquery-rails
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ - !ruby/object:Gem::Dependency
133
+ name: rails
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '4.1'
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '4.1'
146
+ - !ruby/object:Gem::Dependency
147
+ name: combustion
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.5.3
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.5.3
160
+ - !ruby/object:Gem::Dependency
161
+ name: rspec-rails
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: factory_girl
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ type: :development
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ - !ruby/object:Gem::Dependency
189
+ name: json_spec
190
+ requirement: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ type: :development
196
+ prerelease: false
197
+ version_requirements: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ - !ruby/object:Gem::Dependency
203
+ name: faker
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ - !ruby/object:Gem::Dependency
217
+ name: shoulda-matchers
218
+ requirement: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ - !ruby/object:Gem::Dependency
231
+ name: database_cleaner
232
+ requirement: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ type: :development
238
+ prerelease: false
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ - !ruby/object:Gem::Dependency
245
+ name: sqlite3
246
+ requirement: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ type: :development
252
+ prerelease: false
253
+ version_requirements: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ description: Opinionated toolbox for building centralised authorities
259
+ email: info@blacksquaremedia.com
260
+ executables: []
261
+ extensions: []
262
+ extra_rdoc_files: []
263
+ files:
264
+ - ".gitignore"
265
+ - ".travis.yml"
266
+ - Gemfile
267
+ - Gemfile.lock
268
+ - Rakefile
269
+ - app/controllers/bsm_oa/accounts_controller.rb
270
+ - app/controllers/bsm_oa/applications_controller.rb
271
+ - app/controllers/bsm_oa/authorizations_controller.rb
272
+ - app/controllers/bsm_oa/roles_controller.rb
273
+ - app/views/bsm_oa/accounts/show.json.jbuilder
274
+ - app/views/bsm_oa/applications/_application.html.erb
275
+ - app/views/bsm_oa/applications/_application.json.jbuilder
276
+ - app/views/bsm_oa/applications/_inputs.html.erb
277
+ - app/views/bsm_oa/applications/create.json.jbuilder
278
+ - app/views/bsm_oa/applications/edit.html.erb
279
+ - app/views/bsm_oa/applications/index.html.erb
280
+ - app/views/bsm_oa/applications/index.json.jbuilder
281
+ - app/views/bsm_oa/applications/new.html.erb
282
+ - app/views/bsm_oa/applications/show.json.jbuilder
283
+ - app/views/bsm_oa/applications/update.json.jbuilder
284
+ - app/views/bsm_oa/authorizations/_authorization.json.jbuilder
285
+ - app/views/bsm_oa/authorizations/_inputs.html.erb
286
+ - app/views/bsm_oa/authorizations/edit.html.erb
287
+ - app/views/bsm_oa/authorizations/index.html.erb
288
+ - app/views/bsm_oa/authorizations/index.json.jbuilder
289
+ - app/views/bsm_oa/authorizations/new.html.erb
290
+ - app/views/bsm_oa/authorizations/toggle.js.erb
291
+ - app/views/bsm_oa/authorizations/toggle.json.jbuilder
292
+ - app/views/bsm_oa/roles/_authorization.html.erb
293
+ - app/views/bsm_oa/roles/_inputs.html.erb
294
+ - app/views/bsm_oa/roles/_role.html.erb
295
+ - app/views/bsm_oa/roles/_role.json.jbuilder
296
+ - app/views/bsm_oa/roles/create.json.jbuilder
297
+ - app/views/bsm_oa/roles/edit.html.erb
298
+ - app/views/bsm_oa/roles/index.html.erb
299
+ - app/views/bsm_oa/roles/index.json.jbuilder
300
+ - app/views/bsm_oa/roles/new.html.erb
301
+ - app/views/bsm_oa/roles/show.html.erb
302
+ - app/views/bsm_oa/roles/show.json.jbuilder
303
+ - app/views/bsm_oa/roles/update.json.jbuilder
304
+ - bsm_oa.gemspec
305
+ - config.ru
306
+ - db/migrate/20150507113313_bsm_oa_create_doorkeeper_tables.rb
307
+ - db/migrate/20150513155732_bsm_oa_create_tables.rb
308
+ - lib/bsm_oa.rb
309
+ - lib/bsm_oa/application_mixin.rb
310
+ - lib/bsm_oa/authorization.rb
311
+ - lib/bsm_oa/config.rb
312
+ - lib/bsm_oa/engine.rb
313
+ - lib/bsm_oa/role.rb
314
+ - lib/bsm_oa/routes.rb
315
+ - lib/bsm_oa/version.rb
316
+ - spec/controllers/bsm_oa/accounts_controller_spec.rb
317
+ - spec/controllers/bsm_oa/applications_controller_spec.rb
318
+ - spec/controllers/bsm_oa/authorizations_controller_spec.rb
319
+ - spec/controllers/bsm_oa/roles_controller_spec.rb
320
+ - spec/factories.rb
321
+ - spec/internal/config/database.yml
322
+ - spec/internal/config/routes.rb
323
+ - spec/internal/db/combustion_test.sqlite
324
+ - spec/internal/db/schema.rb
325
+ - spec/internal/log/.gitignore
326
+ - spec/internal/public/favicon.ico
327
+ - spec/lib/bsm_oa/application_mixin_spec.rb
328
+ - spec/lib/bsm_oa/authorization_spec.rb
329
+ - spec/lib/bsm_oa/config_spec.rb
330
+ - spec/lib/bsm_oa/role_spec.rb
331
+ - spec/spec_helper.rb
332
+ homepage: https://github.org/bsm/oa
333
+ licenses:
334
+ - MIT
335
+ metadata: {}
336
+ post_install_message:
337
+ rdoc_options: []
338
+ require_paths:
339
+ - lib
340
+ required_ruby_version: !ruby/object:Gem::Requirement
341
+ requirements:
342
+ - - ">="
343
+ - !ruby/object:Gem::Version
344
+ version: '0'
345
+ required_rubygems_version: !ruby/object:Gem::Requirement
346
+ requirements:
347
+ - - ">="
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
350
+ requirements: []
351
+ rubyforge_project:
352
+ rubygems_version: 2.4.7
353
+ signing_key:
354
+ specification_version: 4
355
+ summary: Rails Open Authority engine
356
+ test_files:
357
+ - spec/controllers/bsm_oa/accounts_controller_spec.rb
358
+ - spec/controllers/bsm_oa/applications_controller_spec.rb
359
+ - spec/controllers/bsm_oa/authorizations_controller_spec.rb
360
+ - spec/controllers/bsm_oa/roles_controller_spec.rb
361
+ - spec/factories.rb
362
+ - spec/internal/config/database.yml
363
+ - spec/internal/config/routes.rb
364
+ - spec/internal/db/combustion_test.sqlite
365
+ - spec/internal/db/schema.rb
366
+ - spec/internal/log/.gitignore
367
+ - spec/internal/public/favicon.ico
368
+ - spec/lib/bsm_oa/application_mixin_spec.rb
369
+ - spec/lib/bsm_oa/authorization_spec.rb
370
+ - spec/lib/bsm_oa/config_spec.rb
371
+ - spec/lib/bsm_oa/role_spec.rb
372
+ - spec/spec_helper.rb