access_manager 0.0.5 → 0.0.6

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: 71d67851f3222a13cc9c73a036a9113c4938a050
4
- data.tar.gz: c8cea65c4b197524cf8c3094a07d5a454c16efd4
3
+ metadata.gz: 27681d637de0b8195a21099f3d17169106a61c2c
4
+ data.tar.gz: 8498a6330271d30be5b34ed07d8ee906747e0f5c
5
5
  SHA512:
6
- metadata.gz: bddac2278bf8b534d468e290dc05712ea487af39cc5146d50330079e19ce2040bfca38f934f045d87f13a70a1645306bf0da0cb190b586efd4eb2f4ce3c75524
7
- data.tar.gz: 5b096128d64e5c11677b7dca6f4074844deaf98bc606ad7ad7eed041637d7048c9c6360b5cc8e11bb38dcf19749d1f263f4eb83e33a8a5af51fca984ada6bcab
6
+ metadata.gz: 988f12727b9276cee92f88708f754f0776dabab2ae508a050bf44e672a976623edf6022cd66d50dccccd281e412c4121c9050511a91469e64cd6c8fb1aa8c562
7
+ data.tar.gz: 952db84790759b65452d8102ce72cfd35ffec9bf573fd882844790e97908f1cc4ea43ca07dd1716abb67d0eb24192b2f0f79a1bcc9853244d83888e6b77ae32a
data/CHANGELOG.md CHANGED
@@ -17,3 +17,7 @@
17
17
  ## v0.0.5
18
18
 
19
19
  * Save all user grant keys as symbols
20
+
21
+ ## v0.0.6
22
+
23
+ * Actions are deduced now by action_codes method
@@ -1,11 +1,11 @@
1
1
  module AccessManager
2
2
  module Control
3
3
  def can_access?(controller, action)
4
- actions.any? { |user_action| self.class.access_granted?(controller, action, user_action) }
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
- actions.map(&:to_s).include?(action.to_s)
8
+ action_codes.map(&:to_s).include?(action.to_s)
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module AccessManager
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  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.5
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-02-18 00:00:00.000000000 Z
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.0
75
+ rubygems_version: 2.2.2
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Manage grants in your applications