authorization-san 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/authorization.rb CHANGED
@@ -1,2 +1,5 @@
1
1
  require 'authorization/allow_access'
2
- require 'authorization/block_access'
2
+ require 'authorization/block_access'
3
+
4
+ ActionController::Base.send(:include, Authorization::BlockAccess)
5
+ ActionController::Base.send(:extend, Authorization::AllowAccess)
data/rails/init.rb CHANGED
@@ -1,4 +1 @@
1
- require 'authorization'
2
-
3
- ActionController::Base.send(:include, Authorization::BlockAccess)
4
- ActionController::Base.send(:extend, Authorization::AllowAccess)
1
+ require 'authorization'
data/test/test_helper.rb CHANGED
@@ -20,7 +20,11 @@ module AuthorizationSanTest
20
20
  $:.unshift(File.join(rails_directory, 'activerecord', 'lib'))
21
21
  else
22
22
  puts 'rubygems'
23
- require 'rubygems' rescue LoadError
23
+ begin
24
+ require 'rubygems'
25
+ gem 'rails', '< 3.0'
26
+ rescue LoadError
27
+ end
24
28
  end
25
29
 
26
30
  require 'test/unit'
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorization-san
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ hash: 19
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 2
10
+ version: 1.0.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Manfred Stienstra
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-01-29 00:00:00 +01:00
18
+ date: 2011-02-23 00:00:00 +01:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -29,35 +35,70 @@ files:
29
35
  - lib/authorization/allow_access.rb
30
36
  - lib/authorization/block_access.rb
31
37
  - rails/init.rb
38
+ - examples/administrations_controller.rb
39
+ - examples/application.rb
40
+ - examples/application_with_multiple_auth_methods.rb
41
+ - examples/authenticated_controller.rb
42
+ - examples/page_controller_with_full_policy.rb
43
+ - examples/pages_controller.rb
44
+ - examples/public_controller.rb
45
+ - examples/users_controller.rb
46
+ - test/cases/behaviour_test.rb
47
+ - test/cases/internals_test.rb
48
+ - test/cases/structural_test.rb
49
+ - test/controllers/all.rb
50
+ - test/controllers/application_controller.rb
51
+ - test/controllers/authenticated_controller.rb
52
+ - test/controllers/broken_block_controller.rb
53
+ - test/controllers/complicated_controller.rb
54
+ - test/controllers/multiple_roles_controller.rb
55
+ - test/controllers/public_controller.rb
56
+ - test/controllers/users_controller.rb
57
+ - test/models/resource.rb
58
+ - test/test_helper.rb
32
59
  has_rdoc: true
33
60
  homepage: http://fingertips.github.com
34
61
  licenses: []
35
62
 
36
63
  post_install_message:
37
- rdoc_options:
38
- - --charset=UTF-8
64
+ rdoc_options: []
65
+
39
66
  require_paths:
40
67
  - lib
41
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
42
70
  requirements:
43
71
  - - ">="
44
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
45
76
  version: "0"
46
- version:
47
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
48
79
  requirements:
49
80
  - - ">="
50
81
  - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
51
85
  version: "0"
52
- version:
53
86
  requirements: []
54
87
 
55
88
  rubyforge_project:
56
- rubygems_version: 1.3.5
89
+ rubygems_version: 1.5.2
57
90
  signing_key:
58
91
  specification_version: 3
59
92
  summary: A plugin for authorization in a ReSTful application.
60
93
  test_files:
94
+ - examples/administrations_controller.rb
95
+ - examples/application.rb
96
+ - examples/application_with_multiple_auth_methods.rb
97
+ - examples/authenticated_controller.rb
98
+ - examples/page_controller_with_full_policy.rb
99
+ - examples/pages_controller.rb
100
+ - examples/public_controller.rb
101
+ - examples/users_controller.rb
61
102
  - test/cases/behaviour_test.rb
62
103
  - test/cases/internals_test.rb
63
104
  - test/cases/structural_test.rb
@@ -71,11 +112,3 @@ test_files:
71
112
  - test/controllers/users_controller.rb
72
113
  - test/models/resource.rb
73
114
  - test/test_helper.rb
74
- - examples/administrations_controller.rb
75
- - examples/application.rb
76
- - examples/application_with_multiple_auth_methods.rb
77
- - examples/authenticated_controller.rb
78
- - examples/page_controller_with_full_policy.rb
79
- - examples/pages_controller.rb
80
- - examples/public_controller.rb
81
- - examples/users_controller.rb