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.
- checksums.yaml +4 -4
- data/.codeclimate.yml +26 -0
- data/.gitignore +6 -6
- data/.rubocop.yml +3 -3
- data/CHANGELOG.md +11 -0
- data/Gemfile +4 -3
- data/Gemfile.lock +54 -53
- data/README.md +1 -0
- data/app/models/monarchy/hierarchy.rb +0 -1
- data/docs/acts_as_hierarchy.md +45 -0
- data/docs/acts_as_resource.md +103 -0
- data/docs/acts_as_user.md +52 -0
- data/docs/configuration.md +54 -0
- data/docs/installation.md +30 -0
- data/docs/usage.md +22 -0
- data/dummy/.rspec +2 -0
- data/dummy/README.rdoc +28 -0
- data/dummy/Rakefile +7 -0
- data/dummy/app/assets/images/.keep +0 -0
- data/dummy/app/assets/javascripts/application.js +13 -0
- data/dummy/app/assets/stylesheets/application.css +15 -0
- data/dummy/app/controllers/application_controller.rb +6 -0
- data/dummy/app/controllers/concerns/.keep +0 -0
- data/dummy/app/helpers/application_helper.rb +3 -0
- data/dummy/app/mailers/.keep +0 -0
- data/dummy/app/models/.keep +0 -0
- data/dummy/app/models/concerns/.keep +0 -0
- data/dummy/app/models/member.rb +4 -0
- data/dummy/app/models/memo.rb +5 -0
- data/dummy/app/models/project.rb +12 -0
- data/dummy/app/models/resource.rb +4 -0
- data/dummy/app/models/role.rb +4 -0
- data/dummy/app/models/status.rb +5 -0
- data/dummy/app/models/task.rb +5 -0
- data/dummy/app/models/user.rb +4 -0
- data/dummy/app/views/layouts/application.html.erb +14 -0
- data/dummy/bin/bundle +4 -0
- data/dummy/bin/rails +5 -0
- data/dummy/bin/rake +5 -0
- data/dummy/bin/setup +30 -0
- data/dummy/config/application.rb +25 -0
- data/dummy/config/boot.rb +6 -0
- data/dummy/config/database.yml +10 -0
- data/dummy/config/environment.rb +6 -0
- data/dummy/config/environments/development.rb +42 -0
- data/dummy/config/environments/production.rb +80 -0
- data/dummy/config/environments/test.rb +43 -0
- data/dummy/config/initializers/assets.rb +12 -0
- data/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/dummy/config/initializers/cookies_serializer.rb +4 -0
- data/dummy/config/initializers/filter_parameter_logging.rb +5 -0
- data/dummy/config/initializers/inflections.rb +17 -0
- data/dummy/config/initializers/mime_types.rb +5 -0
- data/dummy/config/initializers/monarchy.rb +46 -0
- data/dummy/config/initializers/session_store.rb +4 -0
- data/dummy/config/initializers/wrap_parameters.rb +15 -0
- data/dummy/config/locales/en.yml +23 -0
- data/dummy/config/routes.rb +57 -0
- data/dummy/config/secrets.yml +22 -0
- data/dummy/config.ru +5 -0
- data/dummy/db/migrate/20160220215254_monarchy_create_users.rb +7 -0
- data/dummy/db/migrate/20160221132205_monarchy_create_hierarchies.rb +22 -0
- data/dummy/db/migrate/20160221133215_monarchy_create_memberships.rb +38 -0
- data/dummy/db/migrate/20160221142305_create_memo_resource.rb +8 -0
- data/dummy/db/migrate/20160221142309_create_project_resource.rb +8 -0
- data/dummy/db/migrate/20160221154113_create_resource_resource.rb +8 -0
- data/dummy/db/migrate/20160306124820_add_memo_to_resource.rb +6 -0
- data/dummy/db/migrate/20160502212213_parent_as_setup.rb +7 -0
- data/dummy/db/migrate/20160815163909_task_model.rb +10 -0
- data/dummy/db/migrate/20160818205534_status.rb +9 -0
- data/dummy/db/schema.rb +111 -0
- data/dummy/lib/assets/.keep +0 -0
- data/dummy/public/404.html +67 -0
- data/dummy/public/422.html +67 -0
- data/dummy/public/500.html +66 -0
- data/dummy/public/favicon.ico +0 -0
- data/dummy/spec +1 -0
- data/lib/generators/templates/config.rb +44 -7
- data/lib/monarchy/acts_as_hierarchy.rb +12 -11
- data/lib/monarchy/acts_as_member.rb +8 -17
- data/lib/monarchy/acts_as_resource.rb +35 -22
- data/lib/monarchy/acts_as_user.rb +51 -39
- data/lib/monarchy/exceptions.rb +135 -0
- data/lib/monarchy/tasks.rb +1 -1
- data/lib/monarchy/validators.rb +83 -0
- data/lib/monarchy/version.rb +1 -1
- data/lib/monarchy.rb +21 -8
- data/monarchy.gemspec +4 -4
- 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:
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
263
|
+
version: 1.3.1
|
192
264
|
requirements: []
|
193
265
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
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.
|