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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d51db3ea65aec0cc8750fb55cc8c89366fab2e8
4
- data.tar.gz: 074fa237875c2d5604196978c72c4640d6775c44
3
+ metadata.gz: 351c4ddde103a1d700fb7ca810f3a49518cfb566
4
+ data.tar.gz: 3a508b7935a07790c396f69546356b4339507bf9
5
5
  SHA512:
6
- metadata.gz: bb5da0d85c395208135b3d80d1f9ede490d841f1e05591e1b5353f27ccd48c53774d74806c78e76712d456d1b40a4571a2f3981b05e87988768d39d96a1e5007
7
- data.tar.gz: 3e30ee36034e37de353476ab318528fcbe26b0f5bebf0526adc5114beb3cf5af5b32de5b52cb16bb1cc36359a843e297319472878ffeed8be650a46ee898817b
6
+ metadata.gz: 4bc2771a4ba458c49912fee0fe83dd8f778e29046a6e3d14d664cd334088ace2b7d733beae13eb1b4c86898583a0b4021616f0aa2c05935a8175bbab3e9a0c07
7
+ data.tar.gz: 1029ee3cd8024dda2abbf747e33fd093d437c67dc49b630aaebb0b5744b3441a34c05e0f82ff2211140cdea5c888375373d284914fdbc9e468ff16c04a7c28e3
@@ -6,13 +6,21 @@ require 'access_policy/policy_enforcer'
6
6
 
7
7
  module AccessPolicy
8
8
 
9
- class NotDefinedError < StandardError
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 < StandardError
20
+ class NotAuthorizedError < NestedStandardError
13
21
  end
14
22
 
15
- class AuthorizeNotCalledError < StandardError
23
+ class AuthorizeNotCalledError < NestedStandardError
16
24
  end
17
25
 
18
26
  def self.included(base)
@@ -1,3 +1,3 @@
1
1
  module AccessPolicy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-12 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scoped_storage