access_policy 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access_policy.rb +11 -3
- data/lib/access_policy/version.rb +1 -1
- 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: 351c4ddde103a1d700fb7ca810f3a49518cfb566
|
4
|
+
data.tar.gz: 3a508b7935a07790c396f69546356b4339507bf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc2771a4ba458c49912fee0fe83dd8f778e29046a6e3d14d664cd334088ace2b7d733beae13eb1b4c86898583a0b4021616f0aa2c05935a8175bbab3e9a0c07
|
7
|
+
data.tar.gz: 1029ee3cd8024dda2abbf747e33fd093d437c67dc49b630aaebb0b5744b3441a34c05e0f82ff2211140cdea5c888375373d284914fdbc9e468ff16c04a7c28e3
|
data/lib/access_policy.rb
CHANGED
@@ -6,13 +6,21 @@ require 'access_policy/policy_enforcer'
|
|
6
6
|
|
7
7
|
module AccessPolicy
|
8
8
|
|
9
|
-
class
|
9
|
+
class NestedStandardError < StandardError
|
10
|
+
attr_reader :original
|
11
|
+
def initialize(msg, original=$!)
|
12
|
+
super(msg)
|
13
|
+
@original = original
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class NotDefinedError < NestedStandardError
|
10
18
|
end
|
11
19
|
|
12
|
-
class NotAuthorizedError <
|
20
|
+
class NotAuthorizedError < NestedStandardError
|
13
21
|
end
|
14
22
|
|
15
|
-
class AuthorizeNotCalledError <
|
23
|
+
class AuthorizeNotCalledError < NestedStandardError
|
16
24
|
end
|
17
25
|
|
18
26
|
def self.included(base)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dieter Späth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scoped_storage
|