eaco 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/features/authorization_parse_error.feature +157 -0
  4. data/features/enterprise_authorization.feature +159 -0
  5. data/features/rails_integration.feature +1 -1
  6. data/features/role_based_authorization.feature +30 -7
  7. data/features/step_definitions/actor_steps.rb +29 -25
  8. data/features/step_definitions/enterprise_steps.rb +81 -0
  9. data/features/step_definitions/error_steps.rb +49 -0
  10. data/features/step_definitions/fixture_steps.rb +14 -0
  11. data/features/step_definitions/resource_steps.rb +16 -24
  12. data/features/support/env.rb +4 -2
  13. data/lib/eaco.rb +2 -0
  14. data/lib/eaco/actor.rb +4 -3
  15. data/lib/eaco/adapters/active_record.rb +1 -1
  16. data/lib/eaco/adapters/active_record/compatibility.rb +19 -14
  17. data/lib/eaco/adapters/active_record/compatibility/scoped.rb +25 -0
  18. data/lib/eaco/adapters/active_record/compatibility/v40.rb +11 -3
  19. data/lib/eaco/adapters/active_record/compatibility/v41.rb +14 -3
  20. data/lib/eaco/adapters/active_record/compatibility/v42.rb +10 -2
  21. data/lib/eaco/controller.rb +16 -3
  22. data/lib/eaco/coverage.rb +83 -0
  23. data/lib/eaco/cucumber/active_record.rb +13 -18
  24. data/lib/eaco/cucumber/active_record/department.rb +4 -0
  25. data/lib/eaco/cucumber/active_record/position.rb +2 -0
  26. data/lib/eaco/cucumber/active_record/schema.rb +20 -2
  27. data/lib/eaco/cucumber/active_record/user.rb +9 -0
  28. data/lib/eaco/cucumber/active_record/user/designators.rb +4 -1
  29. data/lib/eaco/cucumber/active_record/user/designators/authenticated.rb +54 -0
  30. data/lib/eaco/cucumber/active_record/user/designators/department.rb +58 -0
  31. data/lib/eaco/cucumber/active_record/user/designators/position.rb +53 -0
  32. data/lib/eaco/cucumber/active_record/user/designators/user.rb +4 -0
  33. data/lib/eaco/cucumber/world.rb +115 -5
  34. data/lib/eaco/designator.rb +7 -2
  35. data/lib/eaco/dsl.rb +9 -1
  36. data/lib/eaco/dsl/acl.rb +2 -2
  37. data/lib/eaco/dsl/actor.rb +6 -3
  38. data/lib/eaco/dsl/base.rb +5 -0
  39. data/lib/eaco/error.rb +10 -1
  40. data/lib/eaco/rake.rb +1 -0
  41. data/lib/eaco/rake/default_task.rb +29 -9
  42. data/lib/eaco/rake/utils.rb +38 -0
  43. data/lib/eaco/version.rb +1 -1
  44. data/spec/eaco/acl_spec.rb +34 -0
  45. data/spec/spec_helper.rb +3 -3
  46. metadata +18 -2
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'rspec'
2
2
  require 'byebug'
3
3
 
4
- require 'coveralls'
5
- Coveralls.wear!
4
+ require 'eaco/coverage'
5
+ Eaco::Coverage.start!
6
6
 
7
7
  require 'eaco'
8
8
 
@@ -59,7 +59,7 @@ RSpec.configure do |config|
59
59
  # Print the 5 slowest examples and example groups at the
60
60
  # end of the spec run, to help surface which specs are running
61
61
  # particularly slow.
62
- config.profile_examples = 5
62
+ # config.profile_examples = 5
63
63
 
64
64
  # Run specs in random order to surface order dependencies. If you find an
65
65
  # order dependency and want to debug it, you can fix the order by providing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcello Barnaba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -212,9 +212,14 @@ files:
212
212
  - eaco.gemspec
213
213
  - features/active_record.example.yml
214
214
  - features/active_record.travis.yml
215
+ - features/authorization_parse_error.feature
216
+ - features/enterprise_authorization.feature
215
217
  - features/rails_integration.feature
216
218
  - features/role_based_authorization.feature
217
219
  - features/step_definitions/actor_steps.rb
220
+ - features/step_definitions/enterprise_steps.rb
221
+ - features/step_definitions/error_steps.rb
222
+ - features/step_definitions/fixture_steps.rb
218
223
  - features/step_definitions/resource_steps.rb
219
224
  - features/support/env.rb
220
225
  - gemfiles/rails_3.2.gemfile
@@ -227,6 +232,7 @@ files:
227
232
  - lib/eaco/adapters.rb
228
233
  - lib/eaco/adapters/active_record.rb
229
234
  - lib/eaco/adapters/active_record/compatibility.rb
235
+ - lib/eaco/adapters/active_record/compatibility/scoped.rb
230
236
  - lib/eaco/adapters/active_record/compatibility/v32.rb
231
237
  - lib/eaco/adapters/active_record/compatibility/v40.rb
232
238
  - lib/eaco/adapters/active_record/compatibility/v41.rb
@@ -235,6 +241,7 @@ files:
235
241
  - lib/eaco/adapters/couchrest_model.rb
236
242
  - lib/eaco/adapters/couchrest_model/couchdb_lucene.rb
237
243
  - lib/eaco/controller.rb
244
+ - lib/eaco/coverage.rb
238
245
  - lib/eaco/cucumber.rb
239
246
  - lib/eaco/cucumber/active_record.rb
240
247
  - lib/eaco/cucumber/active_record/department.rb
@@ -243,6 +250,9 @@ files:
243
250
  - lib/eaco/cucumber/active_record/schema.rb
244
251
  - lib/eaco/cucumber/active_record/user.rb
245
252
  - lib/eaco/cucumber/active_record/user/designators.rb
253
+ - lib/eaco/cucumber/active_record/user/designators/authenticated.rb
254
+ - lib/eaco/cucumber/active_record/user/designators/department.rb
255
+ - lib/eaco/cucumber/active_record/user/designators/position.rb
246
256
  - lib/eaco/cucumber/active_record/user/designators/user.rb
247
257
  - lib/eaco/cucumber/world.rb
248
258
  - lib/eaco/designator.rb
@@ -257,6 +267,7 @@ files:
257
267
  - lib/eaco/railtie.rb
258
268
  - lib/eaco/rake.rb
259
269
  - lib/eaco/rake/default_task.rb
270
+ - lib/eaco/rake/utils.rb
260
271
  - lib/eaco/resource.rb
261
272
  - lib/eaco/version.rb
262
273
  - spec/eaco/acl_spec.rb
@@ -303,9 +314,14 @@ summary: Authorization framework
303
314
  test_files:
304
315
  - features/active_record.example.yml
305
316
  - features/active_record.travis.yml
317
+ - features/authorization_parse_error.feature
318
+ - features/enterprise_authorization.feature
306
319
  - features/rails_integration.feature
307
320
  - features/role_based_authorization.feature
308
321
  - features/step_definitions/actor_steps.rb
322
+ - features/step_definitions/enterprise_steps.rb
323
+ - features/step_definitions/error_steps.rb
324
+ - features/step_definitions/fixture_steps.rb
309
325
  - features/step_definitions/resource_steps.rb
310
326
  - features/support/env.rb
311
327
  - spec/eaco/acl_spec.rb