access_manager 0.0.5 → 0.0.6
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/CHANGELOG.md +4 -0
- data/lib/access_manager/control.rb +2 -2
- data/lib/access_manager/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27681d637de0b8195a21099f3d17169106a61c2c
|
|
4
|
+
data.tar.gz: 8498a6330271d30be5b34ed07d8ee906747e0f5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 988f12727b9276cee92f88708f754f0776dabab2ae508a050bf44e672a976623edf6022cd66d50dccccd281e412c4121c9050511a91469e64cd6c8fb1aa8c562
|
|
7
|
+
data.tar.gz: 952db84790759b65452d8102ce72cfd35ffec9bf573fd882844790e97908f1cc4ea43ca07dd1716abb67d0eb24192b2f0f79a1bcc9853244d83888e6b77ae32a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module AccessManager
|
|
2
2
|
module Control
|
|
3
3
|
def can_access?(controller, action)
|
|
4
|
-
|
|
4
|
+
action_codes.any? { |user_action| self.class.access_granted?(controller, action, user_action) }
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def can?(action)
|
|
8
|
-
|
|
8
|
+
action_codes.map(&:to_s).include?(action.to_s)
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: access_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matias Hick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
74
|
rubyforge_project:
|
|
75
|
-
rubygems_version: 2.2.
|
|
75
|
+
rubygems_version: 2.2.2
|
|
76
76
|
signing_key:
|
|
77
77
|
specification_version: 4
|
|
78
78
|
summary: Manage grants in your applications
|