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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 246a35a6a2cb45ef63cc43536becfb22c88387a5
4
- data.tar.gz: aae201ebfddf0b130961b0ca675863f32cc276ac
3
+ metadata.gz: 9d05f9e124c62d1c23281ac49ed7c482b8751698
4
+ data.tar.gz: 7eb253b29b09538e3cef0f6f7d8f3cf217589c86
5
5
  SHA512:
6
- metadata.gz: 3b8277e5bf9ad6fdd843d572c0ef707b6e4c28c7bcc4e3dd4178037320ba8bae2b58566865dfff19c4853f01e8034f4512d83321d85ecc087ca79e8d68d4d79b
7
- data.tar.gz: b477974a51014c347694dd2f4000936faa2ad4f595bcab22e3dbd8e56ab5cc40f08ddeec1978241ccf66e6899680f4948435530fe5daee185a5185b6e8e3f0cd
6
+ metadata.gz: 93bb115a1c3868245441187628a7d59fd603208f445c59b519837be4ad492ff76179e42b087af7d72dc845e9989bd133467d57dd4e8c184a1e923ca57450abdc
7
+ data.tar.gz: 56d85a6e5dc4b4f71fe8755d2e635d24b36e14d5d96f7a2912d0ede6915c0f0edcfad46d0cb032ca21cc2f76706af40962871b1aec50d9f8f506c95154046222
@@ -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.3"
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(user)
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.3
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-24 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler