effective_roles 2.8.1 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/effective_roles.rb +3 -3
- data/lib/effective_roles/version.rb +1 -1
- metadata +22 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9272987f28eeb83c5eb73aa729454a7f56207648d45f53eba9fcc4826b40e27f
|
|
4
|
+
data.tar.gz: bf4d67c65d99c15dd008acffdc3bb1c1240b8a180f03de4e3e79c64e1ee13066
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3578e6bfd66d082fb52456ccdd2e58b87fdc17b68742d0fa6e9a261d1e76bd497b51df4dc1aef06b125e6eb95a7cc6c42246d9d2ec995fb435621368775c524
|
|
7
|
+
data.tar.gz: 58432edd89e5e99d74af4a9e5666683a823e0aadda3ac7477794c6ba00702bc8f311a8614813ff832a3a609802e57dc22337ddd70b3ae289e11190abe8404330
|
data/config/effective_roles.rb
CHANGED
|
@@ -5,13 +5,13 @@ EffectiveRoles.setup do |config|
|
|
|
5
5
|
# ========================
|
|
6
6
|
# This setting configures the text that is displayed by form helpers (see README.md)
|
|
7
7
|
#
|
|
8
|
-
# Use this Hash syntax if you want different labels depending on the resource being
|
|
8
|
+
# Use this Hash syntax if you want different labels depending on the resource being edited
|
|
9
9
|
#
|
|
10
10
|
# config.role_descriptions = {
|
|
11
11
|
# 'User' => {
|
|
12
12
|
# :superadmin => 'full access to everything. Can manage users and all website content.',
|
|
13
13
|
# :admin => 'full access to website content. Cannot manage users.',
|
|
14
|
-
# :member => 'cannot access admin area. Can see all content in members-only sections of the website.'
|
|
14
|
+
# :member => 'cannot access admin area. Can see all content in members-only sections of the website.'
|
|
15
15
|
# },
|
|
16
16
|
# 'Effective::Page' => {
|
|
17
17
|
# :superadmin => 'allow superadmins to see this page',
|
|
@@ -47,7 +47,7 @@ EffectiveRoles.setup do |config|
|
|
|
47
47
|
# 2.) Using before_action :set_effective_roles_current_user
|
|
48
48
|
# 3.) Using Effective::CrudController does this automatically.
|
|
49
49
|
#
|
|
50
|
-
# Use this Hash syntax if you want different permissions depending on the resource being
|
|
50
|
+
# Use this Hash syntax if you want different permissions depending on the resource being edited
|
|
51
51
|
#
|
|
52
52
|
# config.assignable_roles = {
|
|
53
53
|
# 'User' => {
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_roles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -109,19 +108,33 @@ dependencies:
|
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
109
|
version: '0'
|
|
111
110
|
- !ruby/object:Gem::Dependency
|
|
112
|
-
name:
|
|
111
|
+
name: haml-rails
|
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
|
114
113
|
requirements:
|
|
115
|
-
- - "
|
|
114
|
+
- - ">="
|
|
116
115
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
116
|
+
version: '0'
|
|
118
117
|
type: :development
|
|
119
118
|
prerelease: false
|
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
120
|
requirements:
|
|
122
|
-
- - "
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '0'
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: wicked
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - ">="
|
|
123
129
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
130
|
+
version: '0'
|
|
131
|
+
type: :development
|
|
132
|
+
prerelease: false
|
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - ">="
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: '0'
|
|
125
138
|
description: Assign multiple roles to any User or other ActiveRecord object. Select
|
|
126
139
|
only the appropriate objects based on intelligent, chainable ActiveRecord::Relation
|
|
127
140
|
finder methods.
|
|
@@ -149,7 +162,6 @@ homepage: https://github.com/code-and-effect/effective_roles
|
|
|
149
162
|
licenses:
|
|
150
163
|
- MIT
|
|
151
164
|
metadata: {}
|
|
152
|
-
post_install_message:
|
|
153
165
|
rdoc_options: []
|
|
154
166
|
require_paths:
|
|
155
167
|
- lib
|
|
@@ -164,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
164
176
|
- !ruby/object:Gem::Version
|
|
165
177
|
version: '0'
|
|
166
178
|
requirements: []
|
|
167
|
-
rubygems_version:
|
|
168
|
-
signing_key:
|
|
179
|
+
rubygems_version: 4.0.17
|
|
169
180
|
specification_version: 4
|
|
170
181
|
summary: Assign multiple roles to any User or other ActiveRecord object. Select only
|
|
171
182
|
the appropriate objects based on intelligent, chainable ActiveRecord::Relation finder
|