aegis 1.1.7 → 1.1.8

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.
Files changed (6) hide show
  1. data/Rakefile +0 -9
  2. data/VERSION +1 -1
  3. data/aegis.gemspec +53 -84
  4. data/lib/aegis/has_role.rb +1 -1
  5. metadata +21 -37
  6. 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.7
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 the gemspec command
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 = %q{aegis}
8
- s.version = "1.1.7"
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 = %q{2010-02-24}
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{github@makandra.de}
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
- ".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
- ]
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
- "test/app_root/app/models/veteran_soldier.rb",
72
- "test/app_root/app/models/permissions.rb",
73
- "test/app_root/app/models/soldier.rb",
74
- "test/app_root/app/models/user_subclass.rb",
75
- "test/app_root/app/models/old_soldier.rb",
76
- "test/app_root/app/models/user.rb",
77
- "test/app_root/app/controllers/application_controller.rb",
78
- "test/app_root/config/environment.rb",
79
- "test/app_root/config/environments/mysql.rb",
80
- "test/app_root/config/environments/postgresql.rb",
81
- "test/app_root/config/environments/sqlite3.rb",
82
- "test/app_root/config/environments/in_memory.rb",
83
- "test/app_root/config/environments/sqlite.rb",
84
- "test/app_root/config/boot.rb",
85
- "test/app_root/config/routes.rb",
86
- "test/app_root/db/migrate/20090429075648_create_soldiers.rb",
87
- "test/app_root/db/migrate/20090408115228_create_users.rb",
88
- "test/app_root/db/migrate/20091110075649_create_trust_fund_kids.rb",
89
- "test/app_root/db/migrate/20091110075648_create_veteran_soldiers.rb",
90
- "test/app_root/lib/console_with_fixtures.rb",
91
- "test/validation_test.rb",
92
- "test/test_helper.rb",
93
- "test/has_role_options_test.rb",
94
- "test/has_role_test.rb",
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
71
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
103
72
  else
104
73
  end
105
74
  else
@@ -26,7 +26,7 @@ module Aegis
26
26
 
27
27
  self.class_eval do
28
28
 
29
- class_inheritable_accessor :aegis_role_name_reader, :aegis_role_name_writer, :aegis_default_role_name
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
- version: 1.1.7
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: 2010-02-24 00:00:00 +01:00
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
- - --charset=UTF-8
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.3.5
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
- - test/app_root/app/models/trust_fund_kid.rb
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
@@ -1,3 +0,0 @@
1
- doc
2
- pkg
3
- *.gem