ae_declarative_authorization 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +5 -5
  2. data/Appraisals +31 -21
  3. data/CHANGELOG +189 -189
  4. data/Gemfile +7 -7
  5. data/Gemfile.lock +68 -60
  6. data/LICENSE.txt +20 -20
  7. data/README.md +620 -620
  8. data/README.rdoc +597 -597
  9. data/Rakefile +35 -33
  10. data/authorization_rules.dist.rb +20 -20
  11. data/declarative_authorization.gemspec +24 -24
  12. data/gemfiles/rails4252.gemfile +10 -10
  13. data/gemfiles/rails4252.gemfile.lock +126 -0
  14. data/gemfiles/rails4271.gemfile +10 -10
  15. data/gemfiles/rails4271.gemfile.lock +126 -0
  16. data/gemfiles/rails507.gemfile +11 -11
  17. data/gemfiles/rails507.gemfile.lock +136 -0
  18. data/gemfiles/rails516.gemfile +11 -0
  19. data/gemfiles/rails516.gemfile.lock +136 -0
  20. data/gemfiles/rails521.gemfile +11 -0
  21. data/gemfiles/rails521.gemfile.lock +144 -0
  22. data/init.rb +5 -5
  23. data/lib/declarative_authorization.rb +18 -18
  24. data/lib/declarative_authorization/authorization.rb +821 -821
  25. data/lib/declarative_authorization/helper.rb +78 -78
  26. data/lib/declarative_authorization/in_controller.rb +713 -713
  27. data/lib/declarative_authorization/in_model.rb +156 -156
  28. data/lib/declarative_authorization/maintenance.rb +215 -215
  29. data/lib/declarative_authorization/obligation_scope.rb +348 -345
  30. data/lib/declarative_authorization/railsengine.rb +5 -5
  31. data/lib/declarative_authorization/reader.rb +549 -549
  32. data/lib/declarative_authorization/test/helpers.rb +261 -261
  33. data/lib/declarative_authorization/version.rb +3 -3
  34. data/lib/generators/authorization/install/install_generator.rb +77 -77
  35. data/lib/generators/authorization/rules/rules_generator.rb +13 -13
  36. data/lib/generators/authorization/rules/templates/authorization_rules.rb +27 -27
  37. data/lib/tasks/authorization_tasks.rake +89 -89
  38. data/log/test.log +15246 -0
  39. data/pkg/ae_declarative_authorization-0.7.1.gem +0 -0
  40. data/pkg/ae_declarative_authorization-0.8.0.gem +0 -0
  41. data/test/authorization_test.rb +1121 -1121
  42. data/test/controller_filter_resource_access_test.rb +573 -573
  43. data/test/controller_test.rb +478 -478
  44. data/test/database.yml +3 -3
  45. data/test/dsl_reader_test.rb +178 -178
  46. data/test/functional/filter_access_to_with_id_in_scope_test.rb +88 -88
  47. data/test/functional/no_filter_access_to_test.rb +79 -79
  48. data/test/functional/params_block_arity_test.rb +39 -39
  49. data/test/helper_test.rb +248 -248
  50. data/test/maintenance_test.rb +46 -46
  51. data/test/model_test.rb +1840 -1840
  52. data/test/profiles/access_checking +20 -0
  53. data/test/schema.sql +60 -60
  54. data/test/test_helper.rb +174 -174
  55. data/test/test_support/minitest_compatibility.rb +26 -26
  56. metadata +17 -5
@@ -1,27 +1,27 @@
1
- require 'minitest/assertions'
2
-
3
- module Minitest
4
- module Assertions
5
-
6
- # test/unit backwards compatibility methods
7
- alias :assert_raise :assert_raises
8
- alias :assert_not_empty :refute_empty
9
- alias :assert_not_equal :refute_equal
10
- alias :assert_not_in_delta :refute_in_delta
11
- alias :assert_not_in_epsilon :refute_in_epsilon
12
- alias :assert_not_includes :refute_includes
13
- alias :assert_not_instance_of :refute_instance_of
14
- alias :assert_not_kind_of :refute_kind_of
15
- alias :assert_no_match :refute_match
16
- alias :assert_not_nil :refute_nil
17
- alias :assert_not_operator :refute_operator
18
- alias :assert_not_predicate :refute_predicate
19
- alias :assert_not_respond_to :refute_respond_to
20
- alias :assert_not_same :refute_same
21
-
22
- def assert_nothing_raised(*)
23
- yield
24
- end
25
-
26
- end
1
+ require 'minitest/assertions'
2
+
3
+ module Minitest
4
+ module Assertions
5
+
6
+ # test/unit backwards compatibility methods
7
+ alias :assert_raise :assert_raises
8
+ alias :assert_not_empty :refute_empty
9
+ alias :assert_not_equal :refute_equal
10
+ alias :assert_not_in_delta :refute_in_delta
11
+ alias :assert_not_in_epsilon :refute_in_epsilon
12
+ alias :assert_not_includes :refute_includes
13
+ alias :assert_not_instance_of :refute_instance_of
14
+ alias :assert_not_kind_of :refute_kind_of
15
+ alias :assert_no_match :refute_match
16
+ alias :assert_not_nil :refute_nil
17
+ alias :assert_not_operator :refute_operator
18
+ alias :assert_not_predicate :refute_predicate
19
+ alias :assert_not_respond_to :refute_respond_to
20
+ alias :assert_not_same :refute_same
21
+
22
+ def assert_nothing_raised(*)
23
+ yield
24
+ end
25
+
26
+ end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_declarative_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-16 00:00:00.000000000 Z
12
+ date: 2018-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blockenspiel
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: 4.2.5.2
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '5.1'
37
+ version: '6'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 4.2.5.2
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.1'
47
+ version: '6'
48
48
  description: ae_declarative_authorization is a Rails gem for maintainable authorization
49
49
  based on readable authorization rules.
50
50
  email: dev@appfolio.com
@@ -63,8 +63,15 @@ files:
63
63
  - authorization_rules.dist.rb
64
64
  - declarative_authorization.gemspec
65
65
  - gemfiles/rails4252.gemfile
66
+ - gemfiles/rails4252.gemfile.lock
66
67
  - gemfiles/rails4271.gemfile
68
+ - gemfiles/rails4271.gemfile.lock
67
69
  - gemfiles/rails507.gemfile
70
+ - gemfiles/rails507.gemfile.lock
71
+ - gemfiles/rails516.gemfile
72
+ - gemfiles/rails516.gemfile.lock
73
+ - gemfiles/rails521.gemfile
74
+ - gemfiles/rails521.gemfile.lock
68
75
  - init.rb
69
76
  - lib/declarative_authorization.rb
70
77
  - lib/declarative_authorization/authorization.rb
@@ -81,6 +88,9 @@ files:
81
88
  - lib/generators/authorization/rules/rules_generator.rb
82
89
  - lib/generators/authorization/rules/templates/authorization_rules.rb
83
90
  - lib/tasks/authorization_tasks.rake
91
+ - log/test.log
92
+ - pkg/ae_declarative_authorization-0.7.1.gem
93
+ - pkg/ae_declarative_authorization-0.8.0.gem
84
94
  - test/authorization_test.rb
85
95
  - test/controller_filter_resource_access_test.rb
86
96
  - test/controller_test.rb
@@ -92,6 +102,7 @@ files:
92
102
  - test/helper_test.rb
93
103
  - test/maintenance_test.rb
94
104
  - test/model_test.rb
105
+ - test/profiles/access_checking
95
106
  - test/schema.sql
96
107
  - test/test_helper.rb
97
108
  - test/test_support/minitest_compatibility.rb
@@ -115,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
126
  version: '0'
116
127
  requirements: []
117
128
  rubyforge_project:
118
- rubygems_version: 2.5.2
129
+ rubygems_version: 2.7.7
119
130
  signing_key:
120
131
  specification_version: 4
121
132
  summary: ae_declarative_authorization is a Rails gem for maintainable authorization
@@ -132,6 +143,7 @@ test_files:
132
143
  - test/helper_test.rb
133
144
  - test/maintenance_test.rb
134
145
  - test/model_test.rb
146
+ - test/profiles/access_checking
135
147
  - test/schema.sql
136
148
  - test/test_helper.rb
137
149
  - test/test_support/minitest_compatibility.rb