role_authorization 0.9.3 → 0.9.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dc19823edcfd347a5c7be4b26940b762a0f26ec
4
- data.tar.gz: 953fdc032983b7311a0cdfdd451c342e10126d83
3
+ metadata.gz: 541af4a356ba28b6269226465dd9d76acfdb5e89
4
+ data.tar.gz: 43f87d74caf25d3e66b48accd568c3eb4fc2f573
5
5
  SHA512:
6
- metadata.gz: a2436729de7b0d3962e422d69da2e9e75e5aeef3fcd124486923fe93e6e4d3df8554520cfbc63b61328909acfbbd64a3c36ce3fcbde3d74355bed171530f99d0
7
- data.tar.gz: afa1a08c1a306b72425f9f1138624f3efc11c8d64abdb6b7a204f4bc3489183da2872a9ece9ebfc6830c1a24931efa075518dcdfeac2866337fe46888c3edadc
6
+ metadata.gz: d42c4e46eb0f447c13406932e359ad109a39d92936184b6a19d58d4260970a00894096ed9b1ac754046bec177ba51d45a74734445454dcc69fe4cd2f2fbb6b3a
7
+ data.tar.gz: acbb4805825873e73d35769219a55d1510bcef976bb4fa6433ee47b466fe3f1d63a9b007c23449bb089a8dbe68a995339569392181c025c652db5ca510f44c31
@@ -20,15 +20,15 @@ module RoleAuthorization
20
20
  end
21
21
 
22
22
  module InstanceMethods
23
- def cache_user(role_name, user_id, scope)
23
+ def cache_user(role_name, user_id, scope = nil)
24
24
  if @cache_user_ids
25
- role(role_name).add_user(user_id)
25
+ role(role_name).add_user(user_id, scope)
26
26
  end
27
27
  end
28
28
 
29
- def uncache_user(role_name, user_id)
29
+ def uncache_user(role_name, user_id, scope = nil)
30
30
  if @cache_user_ids
31
- role(role_name).remove_user(user_id)
31
+ role(role_name).remove_user(user_id, scope)
32
32
  end
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: role_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John 'asceth' Long