monarchy 2.0.4 → 2.0.5
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/.codeclimate.yml +4 -3
- data/.github_changelog_generator +1 -1
- data/CHANGELOG.md +10 -2
- data/Gemfile.lock +1 -1
- data/lib/monarchy/acts_as_user.rb +2 -1
- data/lib/monarchy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06424c3fd8fd9422b232967b61867089bc1411e4
|
|
4
|
+
data.tar.gz: 2d1fea1e4a50bbb1f64a02c156f16ee980bae7ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdc98fcda0e37b21191488d55daa1380698a89cb0c55cf147feeae57965862b47fa0f6214aa8ae33c986fa080a9f3c23a6364b8ba360a54fcbef46f215ae6e69
|
|
7
|
+
data.tar.gz: 63eb3b30a58961cf0561f866aea7c9812db0f14a12cb914c3b04ef9900250d25b47ad8ace94e5164c0c0d4583bfcdebfde5b6c43f089d1270542219f43796e9b
|
data/.codeclimate.yml
CHANGED
data/.github_changelog_generator
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
future-release=2.0.
|
|
1
|
+
future-release=2.0.5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [2.0.
|
|
4
|
-
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.0.
|
|
3
|
+
## [2.0.5](https://github.com/Exelord/Monarchy/tree/2.0.5) (2016-11-10)
|
|
4
|
+
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.0.4...2.0.5)
|
|
5
|
+
|
|
6
|
+
**Merged pull requests:**
|
|
7
|
+
|
|
8
|
+
- Accesible roles fix [\#62](https://github.com/Exelord/Monarchy/pull/62) ([PoslinskiNet](https://github.com/PoslinskiNet))
|
|
9
|
+
- Fix codeclimate [\#61](https://github.com/Exelord/Monarchy/pull/61) ([Exelord](https://github.com/Exelord))
|
|
10
|
+
|
|
11
|
+
## [v2.0.4](https://github.com/Exelord/Monarchy/tree/v2.0.4) (2016-11-06)
|
|
12
|
+
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.0.0-beta.1...v2.0.4)
|
|
5
13
|
|
|
6
14
|
**Closed issues:**
|
|
7
15
|
|
data/Gemfile.lock
CHANGED
|
@@ -58,7 +58,8 @@ module Monarchy
|
|
|
58
58
|
resource_roles(resource).order('level desc')
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
accessible_roles.present?
|
|
61
|
+
return accessible_roles if accessible_roles.present?
|
|
62
|
+
inheritnce ? descendant_role(resource) : Monarchy.role_class.none
|
|
62
63
|
end
|
|
63
64
|
|
|
64
65
|
def resource_and_inheritance_roles(resource)
|
data/lib/monarchy/version.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.5
|
|
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-
|
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|