allows 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'allows'
3
- s.version = '0.2.1'
3
+ s.version = '0.3.0'
4
4
  s.date = '2012-09-24'
5
5
  s.summary = "Simple Authorization library"
6
6
  s.description = "Simple Authorization for Rails"
@@ -1,14 +1,16 @@
1
- class NoPermissionChecker < Exception
2
- end
1
+ module Allows
2
+ class NoPermissionChecker < Exception
3
+ end
3
4
 
4
- class NoDefinedPermissions < Exception
5
- end
5
+ class NoDefinedPermissions < Exception
6
+ end
6
7
 
7
- class NoPermissionDefinedForAction < Exception
8
- end
8
+ class NoPermissionDefinedForAction < Exception
9
+ end
9
10
 
10
- class NoInstanceVariable < Exception
11
- end
11
+ class NoInstanceVariable < Exception
12
+ end
12
13
 
13
- class Unauthorized < Exception
14
- end
14
+ class Unauthorized < Exception
15
+ end
16
+ end
@@ -58,7 +58,7 @@ class AllowsTest < MiniTest::Unit::TestCase
58
58
  def test_generate_unauthorized
59
59
  TestControllerNone.set_permissions
60
60
 
61
- assert_raises Unauthorized do
61
+ assert_raises Allows::Unauthorized do
62
62
  TestControllerNone.new.check_permissions
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: