thelinuxlich-aegis 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +3 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +195 -0
- data/Rakefile +37 -0
- data/VERSION +1 -0
- data/aegis.gemspec +107 -0
- data/lib/aegis.rb +10 -0
- data/lib/aegis/constants.rb +7 -0
- data/lib/aegis/has_role.rb +110 -0
- data/lib/aegis/normalization.rb +26 -0
- data/lib/aegis/permission_error.rb +5 -0
- data/lib/aegis/permission_evaluator.rb +34 -0
- data/lib/aegis/permissions.rb +107 -0
- data/lib/aegis/role.rb +55 -0
- data/lib/rails/active_record.rb +5 -0
- data/test/app_root/app/controllers/application_controller.rb +2 -0
- data/test/app_root/app/models/old_soldier.rb +6 -0
- data/test/app_root/app/models/permissions.rb +49 -0
- data/test/app_root/app/models/soldier.rb +5 -0
- data/test/app_root/app/models/trust_fund_kid.rb +5 -0
- data/test/app_root/app/models/user.rb +6 -0
- data/test/app_root/app/models/user_subclass.rb +2 -0
- data/test/app_root/app/models/veteran_soldier.rb +6 -0
- data/test/app_root/config/boot.rb +114 -0
- data/test/app_root/config/database.yml +21 -0
- data/test/app_root/config/environment.rb +14 -0
- data/test/app_root/config/environments/in_memory.rb +0 -0
- data/test/app_root/config/environments/mysql.rb +0 -0
- data/test/app_root/config/environments/postgresql.rb +0 -0
- data/test/app_root/config/environments/sqlite.rb +0 -0
- data/test/app_root/config/environments/sqlite3.rb +0 -0
- data/test/app_root/config/routes.rb +4 -0
- data/test/app_root/db/migrate/20090408115228_create_users.rb +14 -0
- data/test/app_root/db/migrate/20090429075648_create_soldiers.rb +14 -0
- data/test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb +14 -0
- data/test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb +15 -0
- data/test/app_root/lib/console_with_fixtures.rb +4 -0
- data/test/app_root/log/.gitignore +1 -0
- data/test/app_root/script/console +7 -0
- data/test/has_role_options_test.rb +64 -0
- data/test/has_role_test.rb +54 -0
- data/test/permissions_test.rb +109 -0
- data/test/test_helper.rb +23 -0
- data/test/validation_test.rb +55 -0
- data/thelinuxlich-aegis.gemspec +109 -0
- metadata +131 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{thelinuxlich-aegis}
|
8
|
+
s.version = "1.1.7"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["thelinuxlich"]
|
12
|
+
s.date = %q{2010-03-23}
|
13
|
+
s.description = %q{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 = %q{thelinuxlich@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"aegis.gemspec",
|
25
|
+
"lib/aegis.rb",
|
26
|
+
"lib/aegis/constants.rb",
|
27
|
+
"lib/aegis/has_role.rb",
|
28
|
+
"lib/aegis/normalization.rb",
|
29
|
+
"lib/aegis/permission_error.rb",
|
30
|
+
"lib/aegis/permission_evaluator.rb",
|
31
|
+
"lib/aegis/permissions.rb",
|
32
|
+
"lib/aegis/role.rb",
|
33
|
+
"lib/rails/active_record.rb",
|
34
|
+
"test/app_root/app/controllers/application_controller.rb",
|
35
|
+
"test/app_root/app/models/old_soldier.rb",
|
36
|
+
"test/app_root/app/models/permissions.rb",
|
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
|
+
"thelinuxlich-aegis.gemspec"
|
64
|
+
]
|
65
|
+
s.homepage = %q{http://github.com/thelinuxlich/aegis}
|
66
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
67
|
+
s.require_paths = ["lib"]
|
68
|
+
s.rubygems_version = %q{1.3.6}
|
69
|
+
s.summary = %q{Role-based permissions for your user models.}
|
70
|
+
s.test_files = [
|
71
|
+
"test/validation_test.rb",
|
72
|
+
"test/test_helper.rb",
|
73
|
+
"test/app_root/app/controllers/application_controller.rb",
|
74
|
+
"test/app_root/app/models/soldier.rb",
|
75
|
+
"test/app_root/app/models/veteran_soldier.rb",
|
76
|
+
"test/app_root/app/models/user_subclass.rb",
|
77
|
+
"test/app_root/app/models/trust_fund_kid.rb",
|
78
|
+
"test/app_root/app/models/user.rb",
|
79
|
+
"test/app_root/app/models/permissions.rb",
|
80
|
+
"test/app_root/app/models/old_soldier.rb",
|
81
|
+
"test/app_root/lib/console_with_fixtures.rb",
|
82
|
+
"test/app_root/config/boot.rb",
|
83
|
+
"test/app_root/config/environments/in_memory.rb",
|
84
|
+
"test/app_root/config/environments/postgresql.rb",
|
85
|
+
"test/app_root/config/environments/mysql.rb",
|
86
|
+
"test/app_root/config/environments/sqlite3.rb",
|
87
|
+
"test/app_root/config/environments/sqlite.rb",
|
88
|
+
"test/app_root/config/environment.rb",
|
89
|
+
"test/app_root/config/routes.rb",
|
90
|
+
"test/app_root/db/migrate/20090408115228_create_users.rb",
|
91
|
+
"test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb",
|
92
|
+
"test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb",
|
93
|
+
"test/app_root/db/migrate/20090429075648_create_soldiers.rb",
|
94
|
+
"test/has_role_test.rb",
|
95
|
+
"test/has_role_options_test.rb",
|
96
|
+
"test/permissions_test.rb"
|
97
|
+
]
|
98
|
+
|
99
|
+
if s.respond_to? :specification_version then
|
100
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
101
|
+
s.specification_version = 3
|
102
|
+
|
103
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
104
|
+
else
|
105
|
+
end
|
106
|
+
else
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: thelinuxlich-aegis
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 1
|
8
|
+
- 7
|
9
|
+
version: 1.1.7
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- thelinuxlich
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-03-23 00:00:00 -03:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
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
|
+
email: thelinuxlich@gmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README.rdoc
|
29
|
+
files:
|
30
|
+
- .gitignore
|
31
|
+
- MIT-LICENSE
|
32
|
+
- README.rdoc
|
33
|
+
- Rakefile
|
34
|
+
- VERSION
|
35
|
+
- aegis.gemspec
|
36
|
+
- lib/aegis.rb
|
37
|
+
- lib/aegis/constants.rb
|
38
|
+
- lib/aegis/has_role.rb
|
39
|
+
- lib/aegis/normalization.rb
|
40
|
+
- lib/aegis/permission_error.rb
|
41
|
+
- lib/aegis/permission_evaluator.rb
|
42
|
+
- lib/aegis/permissions.rb
|
43
|
+
- lib/aegis/role.rb
|
44
|
+
- lib/rails/active_record.rb
|
45
|
+
- test/app_root/app/controllers/application_controller.rb
|
46
|
+
- test/app_root/app/models/old_soldier.rb
|
47
|
+
- test/app_root/app/models/permissions.rb
|
48
|
+
- test/app_root/app/models/soldier.rb
|
49
|
+
- test/app_root/app/models/trust_fund_kid.rb
|
50
|
+
- test/app_root/app/models/user.rb
|
51
|
+
- test/app_root/app/models/user_subclass.rb
|
52
|
+
- test/app_root/app/models/veteran_soldier.rb
|
53
|
+
- test/app_root/config/boot.rb
|
54
|
+
- test/app_root/config/database.yml
|
55
|
+
- test/app_root/config/environment.rb
|
56
|
+
- test/app_root/config/environments/in_memory.rb
|
57
|
+
- test/app_root/config/environments/mysql.rb
|
58
|
+
- test/app_root/config/environments/postgresql.rb
|
59
|
+
- test/app_root/config/environments/sqlite.rb
|
60
|
+
- test/app_root/config/environments/sqlite3.rb
|
61
|
+
- test/app_root/config/routes.rb
|
62
|
+
- test/app_root/db/migrate/20090408115228_create_users.rb
|
63
|
+
- test/app_root/db/migrate/20090429075648_create_soldiers.rb
|
64
|
+
- test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb
|
65
|
+
- test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb
|
66
|
+
- test/app_root/lib/console_with_fixtures.rb
|
67
|
+
- test/app_root/log/.gitignore
|
68
|
+
- test/app_root/script/console
|
69
|
+
- test/has_role_options_test.rb
|
70
|
+
- test/has_role_test.rb
|
71
|
+
- test/permissions_test.rb
|
72
|
+
- test/test_helper.rb
|
73
|
+
- test/validation_test.rb
|
74
|
+
- thelinuxlich-aegis.gemspec
|
75
|
+
has_rdoc: true
|
76
|
+
homepage: http://github.com/thelinuxlich/aegis
|
77
|
+
licenses: []
|
78
|
+
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options:
|
81
|
+
- --charset=UTF-8
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
requirements: []
|
99
|
+
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 1.3.6
|
102
|
+
signing_key:
|
103
|
+
specification_version: 3
|
104
|
+
summary: Role-based permissions for your user models.
|
105
|
+
test_files:
|
106
|
+
- test/validation_test.rb
|
107
|
+
- test/test_helper.rb
|
108
|
+
- test/app_root/app/controllers/application_controller.rb
|
109
|
+
- test/app_root/app/models/soldier.rb
|
110
|
+
- test/app_root/app/models/veteran_soldier.rb
|
111
|
+
- test/app_root/app/models/user_subclass.rb
|
112
|
+
- test/app_root/app/models/trust_fund_kid.rb
|
113
|
+
- test/app_root/app/models/user.rb
|
114
|
+
- test/app_root/app/models/permissions.rb
|
115
|
+
- test/app_root/app/models/old_soldier.rb
|
116
|
+
- test/app_root/lib/console_with_fixtures.rb
|
117
|
+
- test/app_root/config/boot.rb
|
118
|
+
- test/app_root/config/environments/in_memory.rb
|
119
|
+
- test/app_root/config/environments/postgresql.rb
|
120
|
+
- test/app_root/config/environments/mysql.rb
|
121
|
+
- test/app_root/config/environments/sqlite3.rb
|
122
|
+
- test/app_root/config/environments/sqlite.rb
|
123
|
+
- test/app_root/config/environment.rb
|
124
|
+
- test/app_root/config/routes.rb
|
125
|
+
- test/app_root/db/migrate/20090408115228_create_users.rb
|
126
|
+
- test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb
|
127
|
+
- test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb
|
128
|
+
- test/app_root/db/migrate/20090429075648_create_soldiers.rb
|
129
|
+
- test/has_role_test.rb
|
130
|
+
- test/has_role_options_test.rb
|
131
|
+
- test/permissions_test.rb
|