access-granted 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/access-granted.gemspec +1 -1
- data/lib/generators/templates/access_policy.rb +2 -2
- 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: 9d05f9e124c62d1c23281ac49ed7c482b8751698
|
4
|
+
data.tar.gz: 7eb253b29b09538e3cef0f6f7d8f3cf217589c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93bb115a1c3868245441187628a7d59fd603208f445c59b519837be4ad492ff76179e42b087af7d72dc845e9989bd133467d57dd4e8c184a1e923ca57450abdc
|
7
|
+
data.tar.gz: 56d85a6e5dc4b4f71fe8755d2e635d24b36e14d5d96f7a2912d0ede6915c0f0edcfad46d0cb032ca21cc2f76706af40962871b1aec50d9f8f506c95154046222
|
data/access-granted.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "access-granted"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.4"
|
8
8
|
spec.authors = ["Piotrek Okoński"]
|
9
9
|
spec.email = ["piotrek@okonski.org"]
|
10
10
|
spec.description = %q{Role based authorization gem}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class AccessPolicy
|
2
2
|
include AccessGranted::Policy
|
3
3
|
|
4
|
-
def configure
|
4
|
+
def configure
|
5
5
|
# Example policy for AccessGranted.
|
6
6
|
# For more details check the README at
|
7
7
|
#
|
@@ -24,7 +24,7 @@ class AccessPolicy
|
|
24
24
|
# role :member, proc { |user| user.registered? } do
|
25
25
|
# can :create, Post
|
26
26
|
# can :create, Comment
|
27
|
-
# can [:update, :destroy], Post do |post|
|
27
|
+
# can [:update, :destroy], Post do |post, user|
|
28
28
|
# post.author == user
|
29
29
|
# end
|
30
30
|
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access-granted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotrek Okoński
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|