monarchy 1.1.5 → 2.0.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +26 -0
  3. data/.gitignore +6 -6
  4. data/.rubocop.yml +3 -3
  5. data/CHANGELOG.md +11 -0
  6. data/Gemfile +4 -3
  7. data/Gemfile.lock +54 -53
  8. data/README.md +1 -0
  9. data/app/models/monarchy/hierarchy.rb +0 -1
  10. data/docs/acts_as_hierarchy.md +45 -0
  11. data/docs/acts_as_resource.md +103 -0
  12. data/docs/acts_as_user.md +52 -0
  13. data/docs/configuration.md +54 -0
  14. data/docs/installation.md +30 -0
  15. data/docs/usage.md +22 -0
  16. data/dummy/.rspec +2 -0
  17. data/dummy/README.rdoc +28 -0
  18. data/dummy/Rakefile +7 -0
  19. data/dummy/app/assets/images/.keep +0 -0
  20. data/dummy/app/assets/javascripts/application.js +13 -0
  21. data/dummy/app/assets/stylesheets/application.css +15 -0
  22. data/dummy/app/controllers/application_controller.rb +6 -0
  23. data/dummy/app/controllers/concerns/.keep +0 -0
  24. data/dummy/app/helpers/application_helper.rb +3 -0
  25. data/dummy/app/mailers/.keep +0 -0
  26. data/dummy/app/models/.keep +0 -0
  27. data/dummy/app/models/concerns/.keep +0 -0
  28. data/dummy/app/models/member.rb +4 -0
  29. data/dummy/app/models/memo.rb +5 -0
  30. data/dummy/app/models/project.rb +12 -0
  31. data/dummy/app/models/resource.rb +4 -0
  32. data/dummy/app/models/role.rb +4 -0
  33. data/dummy/app/models/status.rb +5 -0
  34. data/dummy/app/models/task.rb +5 -0
  35. data/dummy/app/models/user.rb +4 -0
  36. data/dummy/app/views/layouts/application.html.erb +14 -0
  37. data/dummy/bin/bundle +4 -0
  38. data/dummy/bin/rails +5 -0
  39. data/dummy/bin/rake +5 -0
  40. data/dummy/bin/setup +30 -0
  41. data/dummy/config/application.rb +25 -0
  42. data/dummy/config/boot.rb +6 -0
  43. data/dummy/config/database.yml +10 -0
  44. data/dummy/config/environment.rb +6 -0
  45. data/dummy/config/environments/development.rb +42 -0
  46. data/dummy/config/environments/production.rb +80 -0
  47. data/dummy/config/environments/test.rb +43 -0
  48. data/dummy/config/initializers/assets.rb +12 -0
  49. data/dummy/config/initializers/backtrace_silencers.rb +8 -0
  50. data/dummy/config/initializers/cookies_serializer.rb +4 -0
  51. data/dummy/config/initializers/filter_parameter_logging.rb +5 -0
  52. data/dummy/config/initializers/inflections.rb +17 -0
  53. data/dummy/config/initializers/mime_types.rb +5 -0
  54. data/dummy/config/initializers/monarchy.rb +46 -0
  55. data/dummy/config/initializers/session_store.rb +4 -0
  56. data/dummy/config/initializers/wrap_parameters.rb +15 -0
  57. data/dummy/config/locales/en.yml +23 -0
  58. data/dummy/config/routes.rb +57 -0
  59. data/dummy/config/secrets.yml +22 -0
  60. data/dummy/config.ru +5 -0
  61. data/dummy/db/migrate/20160220215254_monarchy_create_users.rb +7 -0
  62. data/dummy/db/migrate/20160221132205_monarchy_create_hierarchies.rb +22 -0
  63. data/dummy/db/migrate/20160221133215_monarchy_create_memberships.rb +38 -0
  64. data/dummy/db/migrate/20160221142305_create_memo_resource.rb +8 -0
  65. data/dummy/db/migrate/20160221142309_create_project_resource.rb +8 -0
  66. data/dummy/db/migrate/20160221154113_create_resource_resource.rb +8 -0
  67. data/dummy/db/migrate/20160306124820_add_memo_to_resource.rb +6 -0
  68. data/dummy/db/migrate/20160502212213_parent_as_setup.rb +7 -0
  69. data/dummy/db/migrate/20160815163909_task_model.rb +10 -0
  70. data/dummy/db/migrate/20160818205534_status.rb +9 -0
  71. data/dummy/db/schema.rb +111 -0
  72. data/dummy/lib/assets/.keep +0 -0
  73. data/dummy/public/404.html +67 -0
  74. data/dummy/public/422.html +67 -0
  75. data/dummy/public/500.html +66 -0
  76. data/dummy/public/favicon.ico +0 -0
  77. data/dummy/spec +1 -0
  78. data/lib/generators/templates/config.rb +44 -7
  79. data/lib/monarchy/acts_as_hierarchy.rb +12 -11
  80. data/lib/monarchy/acts_as_member.rb +8 -17
  81. data/lib/monarchy/acts_as_resource.rb +35 -22
  82. data/lib/monarchy/acts_as_user.rb +51 -39
  83. data/lib/monarchy/exceptions.rb +135 -0
  84. data/lib/monarchy/tasks.rb +1 -1
  85. data/lib/monarchy/validators.rb +83 -0
  86. data/lib/monarchy/version.rb +1 -1
  87. data/lib/monarchy.rb +21 -8
  88. data/monarchy.gemspec +4 -4
  89. metadata +85 -13
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monarchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 2.0.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Exelord
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 4.2.4
22
+ version: 4.2.7.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,35 +29,35 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 4.2.4
32
+ version: 4.2.7.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: closure_tree
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 6.1.0
39
+ version: 6.2.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 6.1.0
46
+ version: 6.2.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: configurations
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 2.2.0
53
+ version: 2.2.1
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - '='
59
59
  - !ruby/object:Gem::Version
60
- version: 2.2.0
60
+ version: 2.2.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: active_record_union
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '11.1'
109
+ version: '11.3'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '11.1'
116
+ version: '11.3'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rspec
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -135,10 +135,12 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".codeclimate.yml"
138
139
  - ".gitignore"
139
140
  - ".rspec"
140
141
  - ".rubocop.yml"
141
142
  - ".travis.yml"
143
+ - CHANGELOG.md
142
144
  - CODE_OF_CONDUCT.md
143
145
  - Gemfile
144
146
  - Gemfile.lock
@@ -152,6 +154,74 @@ files:
152
154
  - app/models/monarchy/role.rb
153
155
  - bin/console
154
156
  - bin/setup
157
+ - docs/acts_as_hierarchy.md
158
+ - docs/acts_as_resource.md
159
+ - docs/acts_as_user.md
160
+ - docs/configuration.md
161
+ - docs/installation.md
162
+ - docs/usage.md
163
+ - dummy/.rspec
164
+ - dummy/README.rdoc
165
+ - dummy/Rakefile
166
+ - dummy/app/assets/images/.keep
167
+ - dummy/app/assets/javascripts/application.js
168
+ - dummy/app/assets/stylesheets/application.css
169
+ - dummy/app/controllers/application_controller.rb
170
+ - dummy/app/controllers/concerns/.keep
171
+ - dummy/app/helpers/application_helper.rb
172
+ - dummy/app/mailers/.keep
173
+ - dummy/app/models/.keep
174
+ - dummy/app/models/concerns/.keep
175
+ - dummy/app/models/member.rb
176
+ - dummy/app/models/memo.rb
177
+ - dummy/app/models/project.rb
178
+ - dummy/app/models/resource.rb
179
+ - dummy/app/models/role.rb
180
+ - dummy/app/models/status.rb
181
+ - dummy/app/models/task.rb
182
+ - dummy/app/models/user.rb
183
+ - dummy/app/views/layouts/application.html.erb
184
+ - dummy/bin/bundle
185
+ - dummy/bin/rails
186
+ - dummy/bin/rake
187
+ - dummy/bin/setup
188
+ - dummy/config.ru
189
+ - dummy/config/application.rb
190
+ - dummy/config/boot.rb
191
+ - dummy/config/database.yml
192
+ - dummy/config/environment.rb
193
+ - dummy/config/environments/development.rb
194
+ - dummy/config/environments/production.rb
195
+ - dummy/config/environments/test.rb
196
+ - dummy/config/initializers/assets.rb
197
+ - dummy/config/initializers/backtrace_silencers.rb
198
+ - dummy/config/initializers/cookies_serializer.rb
199
+ - dummy/config/initializers/filter_parameter_logging.rb
200
+ - dummy/config/initializers/inflections.rb
201
+ - dummy/config/initializers/mime_types.rb
202
+ - dummy/config/initializers/monarchy.rb
203
+ - dummy/config/initializers/session_store.rb
204
+ - dummy/config/initializers/wrap_parameters.rb
205
+ - dummy/config/locales/en.yml
206
+ - dummy/config/routes.rb
207
+ - dummy/config/secrets.yml
208
+ - dummy/db/migrate/20160220215254_monarchy_create_users.rb
209
+ - dummy/db/migrate/20160221132205_monarchy_create_hierarchies.rb
210
+ - dummy/db/migrate/20160221133215_monarchy_create_memberships.rb
211
+ - dummy/db/migrate/20160221142305_create_memo_resource.rb
212
+ - dummy/db/migrate/20160221142309_create_project_resource.rb
213
+ - dummy/db/migrate/20160221154113_create_resource_resource.rb
214
+ - dummy/db/migrate/20160306124820_add_memo_to_resource.rb
215
+ - dummy/db/migrate/20160502212213_parent_as_setup.rb
216
+ - dummy/db/migrate/20160815163909_task_model.rb
217
+ - dummy/db/migrate/20160818205534_status.rb
218
+ - dummy/db/schema.rb
219
+ - dummy/lib/assets/.keep
220
+ - dummy/public/404.html
221
+ - dummy/public/422.html
222
+ - dummy/public/500.html
223
+ - dummy/public/favicon.ico
224
+ - dummy/spec
155
225
  - lib/generators/monarchy/resource_generator.rb
156
226
  - lib/generators/monarchy/setup_generator.rb
157
227
  - lib/generators/templates/config.rb
@@ -166,7 +236,9 @@ files:
166
236
  - lib/monarchy/acts_as_role.rb
167
237
  - lib/monarchy/acts_as_user.rb
168
238
  - lib/monarchy/engine.rb
239
+ - lib/monarchy/exceptions.rb
169
240
  - lib/monarchy/tasks.rb
241
+ - lib/monarchy/validators.rb
170
242
  - lib/monarchy/version.rb
171
243
  - monarchy.gemspec
172
244
  - monarchy.png
@@ -186,12 +258,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
258
  version: '0'
187
259
  required_rubygems_version: !ruby/object:Gem::Requirement
188
260
  requirements:
189
- - - ">="
261
+ - - ">"
190
262
  - !ruby/object:Gem::Version
191
- version: '0'
263
+ version: 1.3.1
192
264
  requirements: []
193
265
  rubyforge_project:
194
- rubygems_version: 2.5.1
266
+ rubygems_version: 2.6.7
195
267
  signing_key:
196
268
  specification_version: 4
197
269
  summary: Hierarchical access management system with roles inheritance.