aegis 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -9
- data/VERSION +1 -1
- data/aegis.gemspec +53 -84
- data/lib/aegis/has_role.rb +1 -1
- metadata +21 -37
- data/.gitignore +0 -3
data/Rakefile
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
3
|
|
5
4
|
desc 'Default: run unit tests.'
|
6
5
|
task :default => :test
|
@@ -12,14 +11,6 @@ Rake::TestTask.new(:test) do |t|
|
|
12
11
|
t.verbose = true
|
13
12
|
end
|
14
13
|
|
15
|
-
desc 'Generate documentation for the aegis plugin.'
|
16
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
17
|
-
rdoc.rdoc_dir = 'rdoc'
|
18
|
-
rdoc.title = 'Aegis'
|
19
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
20
|
-
rdoc.rdoc_files.include('README')
|
21
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
|
-
end
|
23
14
|
|
24
15
|
begin
|
25
16
|
require 'jeweler'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.8
|
data/aegis.gemspec
CHANGED
@@ -1,105 +1,74 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
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
|
-
s.name =
|
8
|
-
s.version = "1.1.
|
7
|
+
s.name = "aegis"
|
8
|
+
s.version = "1.1.8"
|
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"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2014-05-28"
|
13
|
+
s.description = "Aegis is a role-based permission system, where all users are given a role. It is possible to define detailed and complex permissions for each role very easily."
|
14
|
+
s.email = "github@makandra.de"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
"test/app_root/app/models/soldier.rb",
|
38
|
-
"test/app_root/app/models/trust_fund_kid.rb",
|
39
|
-
"test/app_root/app/models/user.rb",
|
40
|
-
"test/app_root/app/models/user_subclass.rb",
|
41
|
-
"test/app_root/app/models/veteran_soldier.rb",
|
42
|
-
"test/app_root/config/boot.rb",
|
43
|
-
"test/app_root/config/database.yml",
|
44
|
-
"test/app_root/config/environment.rb",
|
45
|
-
"test/app_root/config/environments/in_memory.rb",
|
46
|
-
"test/app_root/config/environments/mysql.rb",
|
47
|
-
"test/app_root/config/environments/postgresql.rb",
|
48
|
-
"test/app_root/config/environments/sqlite.rb",
|
49
|
-
"test/app_root/config/environments/sqlite3.rb",
|
50
|
-
"test/app_root/config/routes.rb",
|
51
|
-
"test/app_root/db/migrate/20090408115228_create_users.rb",
|
52
|
-
"test/app_root/db/migrate/20090429075648_create_soldiers.rb",
|
53
|
-
"test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb",
|
54
|
-
"test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb",
|
55
|
-
"test/app_root/lib/console_with_fixtures.rb",
|
56
|
-
"test/app_root/log/.gitignore",
|
57
|
-
"test/app_root/script/console",
|
58
|
-
"test/has_role_options_test.rb",
|
59
|
-
"test/has_role_test.rb",
|
60
|
-
"test/permissions_test.rb",
|
61
|
-
"test/test_helper.rb",
|
62
|
-
"test/validation_test.rb"
|
63
|
-
]
|
64
|
-
s.homepage = %q{http://github.com/makandra/aegis}
|
65
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
66
|
-
s.require_paths = ["lib"]
|
67
|
-
s.rubygems_version = %q{1.3.5}
|
68
|
-
s.summary = %q{Role-based permissions for your user models.}
|
69
|
-
s.test_files = [
|
19
|
+
"MIT-LICENSE",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"aegis.gemspec",
|
24
|
+
"lib/aegis.rb",
|
25
|
+
"lib/aegis/constants.rb",
|
26
|
+
"lib/aegis/has_role.rb",
|
27
|
+
"lib/aegis/normalization.rb",
|
28
|
+
"lib/aegis/permission_error.rb",
|
29
|
+
"lib/aegis/permission_evaluator.rb",
|
30
|
+
"lib/aegis/permissions.rb",
|
31
|
+
"lib/aegis/role.rb",
|
32
|
+
"lib/rails/active_record.rb",
|
33
|
+
"test/app_root/app/controllers/application_controller.rb",
|
34
|
+
"test/app_root/app/models/old_soldier.rb",
|
35
|
+
"test/app_root/app/models/permissions.rb",
|
36
|
+
"test/app_root/app/models/soldier.rb",
|
70
37
|
"test/app_root/app/models/trust_fund_kid.rb",
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
"test/permissions_test.rb"
|
38
|
+
"test/app_root/app/models/user.rb",
|
39
|
+
"test/app_root/app/models/user_subclass.rb",
|
40
|
+
"test/app_root/app/models/veteran_soldier.rb",
|
41
|
+
"test/app_root/config/boot.rb",
|
42
|
+
"test/app_root/config/database.yml",
|
43
|
+
"test/app_root/config/environment.rb",
|
44
|
+
"test/app_root/config/environments/in_memory.rb",
|
45
|
+
"test/app_root/config/environments/mysql.rb",
|
46
|
+
"test/app_root/config/environments/postgresql.rb",
|
47
|
+
"test/app_root/config/environments/sqlite.rb",
|
48
|
+
"test/app_root/config/environments/sqlite3.rb",
|
49
|
+
"test/app_root/config/routes.rb",
|
50
|
+
"test/app_root/db/migrate/20090408115228_create_users.rb",
|
51
|
+
"test/app_root/db/migrate/20090429075648_create_soldiers.rb",
|
52
|
+
"test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb",
|
53
|
+
"test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb",
|
54
|
+
"test/app_root/lib/console_with_fixtures.rb",
|
55
|
+
"test/app_root/log/.gitignore",
|
56
|
+
"test/app_root/script/console",
|
57
|
+
"test/has_role_options_test.rb",
|
58
|
+
"test/has_role_test.rb",
|
59
|
+
"test/permissions_test.rb",
|
60
|
+
"test/test_helper.rb",
|
61
|
+
"test/validation_test.rb"
|
96
62
|
]
|
63
|
+
s.homepage = "http://github.com/makandra/aegis"
|
64
|
+
s.require_paths = ["lib"]
|
65
|
+
s.rubygems_version = "1.8.25"
|
66
|
+
s.summary = "Role-based permissions for your user models."
|
97
67
|
|
98
68
|
if s.respond_to? :specification_version then
|
99
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
100
69
|
s.specification_version = 3
|
101
70
|
|
102
|
-
if Gem::Version.new(Gem::
|
71
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
103
72
|
else
|
104
73
|
end
|
105
74
|
else
|
data/lib/aegis/has_role.rb
CHANGED
@@ -26,7 +26,7 @@ module Aegis
|
|
26
26
|
|
27
27
|
self.class_eval do
|
28
28
|
|
29
|
-
|
29
|
+
class_attribute :aegis_role_name_reader, :aegis_role_name_writer, :aegis_default_role_name
|
30
30
|
|
31
31
|
unless method_defined?(:after_initialize)
|
32
32
|
def after_initialize
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aegis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 8
|
10
|
+
version: 1.1.8
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Henning Koch
|
@@ -9,8 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
18
|
+
date: 2014-05-28 00:00:00 Z
|
14
19
|
dependencies: []
|
15
20
|
|
16
21
|
description: Aegis is a role-based permission system, where all users are given a role. It is possible to define detailed and complex permissions for each role very easily.
|
@@ -22,7 +27,6 @@ extensions: []
|
|
22
27
|
extra_rdoc_files:
|
23
28
|
- README.rdoc
|
24
29
|
files:
|
25
|
-
- .gitignore
|
26
30
|
- MIT-LICENSE
|
27
31
|
- README.rdoc
|
28
32
|
- Rakefile
|
@@ -66,58 +70,38 @@ files:
|
|
66
70
|
- test/permissions_test.rb
|
67
71
|
- test/test_helper.rb
|
68
72
|
- test/validation_test.rb
|
69
|
-
has_rdoc: true
|
70
73
|
homepage: http://github.com/makandra/aegis
|
71
74
|
licenses: []
|
72
75
|
|
73
76
|
post_install_message:
|
74
|
-
rdoc_options:
|
75
|
-
|
77
|
+
rdoc_options: []
|
78
|
+
|
76
79
|
require_paths:
|
77
80
|
- lib
|
78
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
79
83
|
requirements:
|
80
84
|
- - ">="
|
81
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
82
89
|
version: "0"
|
83
|
-
version:
|
84
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
85
92
|
requirements:
|
86
93
|
- - ">="
|
87
94
|
- !ruby/object:Gem::Version
|
95
|
+
hash: 3
|
96
|
+
segments:
|
97
|
+
- 0
|
88
98
|
version: "0"
|
89
|
-
version:
|
90
99
|
requirements: []
|
91
100
|
|
92
101
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.8.25
|
94
103
|
signing_key:
|
95
104
|
specification_version: 3
|
96
105
|
summary: Role-based permissions for your user models.
|
97
|
-
test_files:
|
98
|
-
|
99
|
-
- test/app_root/app/models/veteran_soldier.rb
|
100
|
-
- test/app_root/app/models/permissions.rb
|
101
|
-
- test/app_root/app/models/soldier.rb
|
102
|
-
- test/app_root/app/models/user_subclass.rb
|
103
|
-
- test/app_root/app/models/old_soldier.rb
|
104
|
-
- test/app_root/app/models/user.rb
|
105
|
-
- test/app_root/app/controllers/application_controller.rb
|
106
|
-
- test/app_root/config/environment.rb
|
107
|
-
- test/app_root/config/environments/mysql.rb
|
108
|
-
- test/app_root/config/environments/postgresql.rb
|
109
|
-
- test/app_root/config/environments/sqlite3.rb
|
110
|
-
- test/app_root/config/environments/in_memory.rb
|
111
|
-
- test/app_root/config/environments/sqlite.rb
|
112
|
-
- test/app_root/config/boot.rb
|
113
|
-
- test/app_root/config/routes.rb
|
114
|
-
- test/app_root/db/migrate/20090429075648_create_soldiers.rb
|
115
|
-
- test/app_root/db/migrate/20090408115228_create_users.rb
|
116
|
-
- test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb
|
117
|
-
- test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb
|
118
|
-
- test/app_root/lib/console_with_fixtures.rb
|
119
|
-
- test/validation_test.rb
|
120
|
-
- test/test_helper.rb
|
121
|
-
- test/has_role_options_test.rb
|
122
|
-
- test/has_role_test.rb
|
123
|
-
- test/permissions_test.rb
|
106
|
+
test_files: []
|
107
|
+
|
data/.gitignore
DELETED