aegis 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/aegis.gemspec +12 -13
- data/lib/aegis/has_role.rb +3 -3
- metadata +9 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/aegis.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{aegis}
|
8
|
-
s.version = "2.4.
|
8
|
+
s.version = "2.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Henning Koch", "Tobias Kraze"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-08}
|
13
13
|
s.description = %q{Aegis is an authorization solution for Ruby on Rails that supports roles and a RESTish, resource-style declaration of permission rules.}
|
14
14
|
s.email = %q{henning.koch@makandra.de}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -80,7 +80,13 @@ Also see http://wiki.github.com/makandra/aegis/controller-integration
|
|
80
80
|
s.rubygems_version = %q{1.3.6}
|
81
81
|
s.summary = %q{Complete authorization solution for Rails}
|
82
82
|
s.test_files = [
|
83
|
-
"spec/
|
83
|
+
"spec/aegis/controller_spec.rb",
|
84
|
+
"spec/aegis/has_role_spec.rb",
|
85
|
+
"spec/aegis/loader_spec.rb",
|
86
|
+
"spec/aegis/permissions_spec.rb",
|
87
|
+
"spec/aegis/sieve_spec.rb",
|
88
|
+
"spec/aegis/spec/matchers_spec.rb",
|
89
|
+
"spec/app_root/app/controllers/application_controller.rb",
|
84
90
|
"spec/app_root/app/controllers/reviews_controller.rb",
|
85
91
|
"spec/app_root/app/controllers/songs_controller.rb",
|
86
92
|
"spec/app_root/app/models/permissions.rb",
|
@@ -100,13 +106,7 @@ Also see http://wiki.github.com/makandra/aegis/controller-integration
|
|
100
106
|
"spec/app_root/db/migrate/003_create_reviews.rb",
|
101
107
|
"spec/app_root/lib/console_with_fixtures.rb",
|
102
108
|
"spec/controllers/reviews_controller_spec.rb",
|
103
|
-
"spec/spec_helper.rb"
|
104
|
-
"spec/aegis/has_role_spec.rb",
|
105
|
-
"spec/aegis/loader_spec.rb",
|
106
|
-
"spec/aegis/permissions_spec.rb",
|
107
|
-
"spec/aegis/sieve_spec.rb",
|
108
|
-
"spec/aegis/spec/matchers_spec.rb",
|
109
|
-
"spec/aegis/controller_spec.rb"
|
109
|
+
"spec/spec_helper.rb"
|
110
110
|
]
|
111
111
|
|
112
112
|
if s.respond_to? :specification_version then
|
@@ -119,4 +119,3 @@ Also see http://wiki.github.com/makandra/aegis/controller-integration
|
|
119
119
|
else
|
120
120
|
end
|
121
121
|
end
|
122
|
-
|
data/lib/aegis/has_role.rb
CHANGED
@@ -28,9 +28,9 @@ module Aegis
|
|
28
28
|
send :define_method, :has_role? do |role_name|
|
29
29
|
role_names.include?(role_name.to_s)
|
30
30
|
end
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
|
32
|
+
prototype = respond_to?(:singleton_class) ? singleton_class : metaclass
|
33
|
+
prototype.send :define_method, :validates_role do |*validate_options|
|
34
34
|
validate_options = validate_options[0] || {}
|
35
35
|
|
36
36
|
send :define_method, :validate_role do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 2.4.
|
8
|
+
- 1
|
9
|
+
version: 2.4.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Henning Koch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-08 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -116,6 +116,12 @@ signing_key:
|
|
116
116
|
specification_version: 3
|
117
117
|
summary: Complete authorization solution for Rails
|
118
118
|
test_files:
|
119
|
+
- spec/aegis/controller_spec.rb
|
120
|
+
- spec/aegis/has_role_spec.rb
|
121
|
+
- spec/aegis/loader_spec.rb
|
122
|
+
- spec/aegis/permissions_spec.rb
|
123
|
+
- spec/aegis/sieve_spec.rb
|
124
|
+
- spec/aegis/spec/matchers_spec.rb
|
119
125
|
- spec/app_root/app/controllers/application_controller.rb
|
120
126
|
- spec/app_root/app/controllers/reviews_controller.rb
|
121
127
|
- spec/app_root/app/controllers/songs_controller.rb
|
@@ -137,9 +143,3 @@ test_files:
|
|
137
143
|
- spec/app_root/lib/console_with_fixtures.rb
|
138
144
|
- spec/controllers/reviews_controller_spec.rb
|
139
145
|
- spec/spec_helper.rb
|
140
|
-
- spec/aegis/has_role_spec.rb
|
141
|
-
- spec/aegis/loader_spec.rb
|
142
|
-
- spec/aegis/permissions_spec.rb
|
143
|
-
- spec/aegis/sieve_spec.rb
|
144
|
-
- spec/aegis/spec/matchers_spec.rb
|
145
|
-
- spec/aegis/controller_spec.rb
|