permission_policy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d2d704aebcb898411f640cda58737c5388bfb22
4
- data.tar.gz: 26e0e5ac6d4651a91cf53e24595e60d2aa6c5bed
3
+ metadata.gz: 1e1762c7aaad4769ba3c48d5c6492791f8e5bb67
4
+ data.tar.gz: 638cdbb47ae95440b50b26c11916e6a779a919e6
5
5
  SHA512:
6
- metadata.gz: 826d4dabf7338132e1c8ffbdeebe22ec5c44538664f851e8f78278d726fae1efb2dffcbc618d176aacf4e7b79d9aba98c751d87a8b2d40c5e823dccdfb6948e1
7
- data.tar.gz: a88607bf6a5ca746102a6d892d329d83b2ceb25081ce106721aa5a5719e8b7434d5fdfeaf0e177aaad029b6de2a614c3c21e29742415353aae6cc7cfeb430cad
6
+ metadata.gz: 7880ff541ce50d13c811510f4a7761a0672692865f1458f3ffcb3fbf75b6e163d948ed61286f76082e9184d9fb2fd133546611bc13e9c7d598e33ecc1a7edc3a
7
+ data.tar.gz: 46592fea7b72463cb0a64ddafc62f1f05c4aaca207d48e59aadd034c97e77a82ae0125b987b9480a8a0103ebd98c070efb2dfe1708b579153a58802214c9c990
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ # 0.1.2
3
+
4
+ * [EXPERIMENTAL BUGFIX] possibility to read yml permission file
5
+
6
+
2
7
  # 0.1.1
3
8
 
4
9
  * [EXPERIMENT] possibility to read yml permission file
@@ -28,7 +28,7 @@ module PermissionPolicy
28
28
  def permitted?(feature, action, role)
29
29
  ensure_definition!(feature, action, role)
30
30
 
31
- permissions[feature][action].include? role
31
+ permissions[feature][action] && permissions[feature][action].include?(role)
32
32
  end
33
33
 
34
34
  private
@@ -1,3 +1,3 @@
1
1
  module PermissionPolicy
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permission_policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Schaden