cbac 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ gemspec
2
+
3
+ group :release do
4
+ gem 'echoe'
5
+ end
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cbac (0.6.5)
5
+
6
+ GEM
7
+ specs:
8
+ allison (2.0.3)
9
+ echoe (4.6.3)
10
+ allison (>= 2.0.3)
11
+ gemcutter (>= 0.7.0)
12
+ rake (>= 0.9.2)
13
+ rdoc (>= 3.6.1)
14
+ rubyforge (>= 2.0.4)
15
+ gemcutter (0.7.1)
16
+ json (1.7.5)
17
+ json_pure (1.7.5)
18
+ rake (0.9.2.2)
19
+ rdoc (3.12)
20
+ json (~> 1.4)
21
+ rubyforge (2.0.4)
22
+ json_pure (>= 1.1.7)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ cbac!
29
+ echoe
data/Manifest CHANGED
@@ -1,7 +1,8 @@
1
+ Gemfile
2
+ Gemfile.lock
1
3
  Manifest
2
4
  README.rdoc
3
5
  Rakefile
4
- cbac.gemspec
5
6
  config/cbac/context_roles.rb
6
7
  config/cbac/privileges.rb
7
8
  context_roles.rb
@@ -57,7 +58,6 @@ spec/rcov.opts
57
58
  spec/spec.opts
58
59
  spec/spec_helper.rb
59
60
  tasks/cbac.rake
60
- test/db/test.sqlite3
61
61
  test/fixtures/cbac_generic_roles.yml
62
62
  test/fixtures/cbac_memberships.yml
63
63
  test/fixtures/cbac_permissions.yml
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ require 'rake'
4
4
  require 'rake/testtask'
5
5
  require 'rake/rdoctask'
6
6
  require 'echoe'
7
+ require 'cbac/version'
7
8
 
8
9
  # Setting default task
9
10
  desc 'Default: run unit tests.'
@@ -28,12 +29,13 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
28
29
  end
29
30
 
30
31
  # Echo information for packaging
31
- Echoe.new('cbac', '0.6.1') do |p|
32
+ Echoe.new('cbac', Cbac::VERSION) do |p|
32
33
  p.summary = "CBAC - Simple authorization system for Rails applications."
33
34
  p.description = "Simple authorization system for Rails applications. Allows you to develop applications with a mixed role based authorization and a context based authorization model. Does not supply authentication."
34
35
  p.url = "http://cbac.rubyforge.org"
35
36
  p.author = "Bert Meerman"
36
37
  p.email = "bertm@rubyforge.org"
37
38
  p.ignore_pattern = []
39
+ p.retain_gemspec = true
38
40
  p.development_dependencies = []
39
41
  end
@@ -2,22 +2,22 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "cbac"
5
- s.version = "0.6.4"
5
+ s.version = "0.6.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bert Meerman"]
9
- s.date = "2012-07-04"
9
+ s.date = "2012-10-23"
10
10
  s.description = "Simple authorization system for Rails applications. Allows you to develop applications with a mixed role based authorization and a context based authorization model. Does not supply authentication."
11
11
  s.email = "bertm@rubyforge.org"
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/cbac.rb", "lib/cbac/cbac_pristine/pristine.rb", "lib/cbac/cbac_pristine/pristine_file.rb", "lib/cbac/cbac_pristine/pristine_permission.rb", "lib/cbac/cbac_pristine/pristine_role.rb", "lib/cbac/config.rb", "lib/cbac/context_role.rb", "lib/cbac/generic_role.rb", "lib/cbac/known_permission.rb", "lib/cbac/membership.rb", "lib/cbac/permission.rb", "lib/cbac/privilege.rb", "lib/cbac/privilege_new_api.rb", "lib/cbac/privilege_set.rb", "lib/cbac/privilege_set_record.rb", "lib/cbac/setup.rb", "lib/generators/cbac/USAGE", "lib/generators/cbac/cbac_generator.rb", "lib/generators/cbac/copy_files/config/cbac.pristine", "lib/generators/cbac/copy_files/config/context_roles.rb", "lib/generators/cbac/copy_files/config/privileges.rb", "lib/generators/cbac/copy_files/controllers/generic_roles_controller.rb", "lib/generators/cbac/copy_files/controllers/memberships_controller.rb", "lib/generators/cbac/copy_files/controllers/permissions_controller.rb", "lib/generators/cbac/copy_files/controllers/upgrade_controller.rb", "lib/generators/cbac/copy_files/fixtures/cbac_generic_roles.yml", "lib/generators/cbac/copy_files/fixtures/cbac_memberships.yml", "lib/generators/cbac/copy_files/fixtures/cbac_permissions.yml", "lib/generators/cbac/copy_files/initializers/cbac_config.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_from_scratch.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_upgrade_path.rb", "lib/generators/cbac/copy_files/stylesheets/cbac.css", "lib/generators/cbac/copy_files/tasks/cbac.rake", "lib/generators/cbac/copy_files/views/generic_roles/index.html.erb", "lib/generators/cbac/copy_files/views/layouts/cbac.html.erb", "lib/generators/cbac/copy_files/views/memberships/_update.html.erb", "lib/generators/cbac/copy_files/views/memberships/index.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_context_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_generic_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/index.html.erb", "lib/generators/cbac/copy_files/views/upgrade/index.html.erb", "tasks/cbac.rake"]
13
- s.files = ["Manifest", "README.rdoc", "Rakefile", "cbac.gemspec", "config/cbac/context_roles.rb", "config/cbac/privileges.rb", "context_roles.rb", "init.rb", "lib/cbac.rb", "lib/cbac/cbac_pristine/pristine.rb", "lib/cbac/cbac_pristine/pristine_file.rb", "lib/cbac/cbac_pristine/pristine_permission.rb", "lib/cbac/cbac_pristine/pristine_role.rb", "lib/cbac/config.rb", "lib/cbac/context_role.rb", "lib/cbac/generic_role.rb", "lib/cbac/known_permission.rb", "lib/cbac/membership.rb", "lib/cbac/permission.rb", "lib/cbac/privilege.rb", "lib/cbac/privilege_new_api.rb", "lib/cbac/privilege_set.rb", "lib/cbac/privilege_set_record.rb", "lib/cbac/setup.rb", "lib/generators/cbac/USAGE", "lib/generators/cbac/cbac_generator.rb", "lib/generators/cbac/copy_files/config/cbac.pristine", "lib/generators/cbac/copy_files/config/context_roles.rb", "lib/generators/cbac/copy_files/config/privileges.rb", "lib/generators/cbac/copy_files/controllers/generic_roles_controller.rb", "lib/generators/cbac/copy_files/controllers/memberships_controller.rb", "lib/generators/cbac/copy_files/controllers/permissions_controller.rb", "lib/generators/cbac/copy_files/controllers/upgrade_controller.rb", "lib/generators/cbac/copy_files/fixtures/cbac_generic_roles.yml", "lib/generators/cbac/copy_files/fixtures/cbac_memberships.yml", "lib/generators/cbac/copy_files/fixtures/cbac_permissions.yml", "lib/generators/cbac/copy_files/initializers/cbac_config.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_from_scratch.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_upgrade_path.rb", "lib/generators/cbac/copy_files/stylesheets/cbac.css", "lib/generators/cbac/copy_files/tasks/cbac.rake", "lib/generators/cbac/copy_files/views/generic_roles/index.html.erb", "lib/generators/cbac/copy_files/views/layouts/cbac.html.erb", "lib/generators/cbac/copy_files/views/memberships/_update.html.erb", "lib/generators/cbac/copy_files/views/memberships/index.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_context_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_generic_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/index.html.erb", "lib/generators/cbac/copy_files/views/upgrade/index.html.erb", "migrations/20110211105533_add_pristine_files_to_cbac_upgrade_path.rb", "privileges.rb", "rails/init.rb", "spec/cbac_pristine_file_spec.rb", "spec/cbac_pristine_permission_spec.rb", "spec/cbac_pristine_role_spec.rb", "spec/rcov.opts", "spec/spec.opts", "spec/spec_helper.rb", "tasks/cbac.rake", "test/db/test.sqlite3", "test/fixtures/cbac_generic_roles.yml", "test/fixtures/cbac_memberships.yml", "test/fixtures/cbac_permissions.yml", "test/fixtures/cbac_privilege_set.yml", "test/test_cbac_actions.rb", "test/test_cbac_authorize_context_roles.rb", "test/test_cbac_authorize_generic_roles.rb", "test/test_cbac_context_role.rb", "test/test_cbac_privilege.rb", "test/test_cbac_privilege_set.rb", "test/test_helper.rb"]
13
+ s.files = ["Gemfile", "Gemfile.lock", "Manifest", "README.rdoc", "Rakefile", "config/cbac/context_roles.rb", "config/cbac/privileges.rb", "context_roles.rb", "init.rb", "lib/cbac.rb", "lib/cbac/cbac_pristine/pristine.rb", "lib/cbac/cbac_pristine/pristine_file.rb", "lib/cbac/cbac_pristine/pristine_permission.rb", "lib/cbac/cbac_pristine/pristine_role.rb", "lib/cbac/config.rb", "lib/cbac/context_role.rb", "lib/cbac/generic_role.rb", "lib/cbac/known_permission.rb", "lib/cbac/membership.rb", "lib/cbac/permission.rb", "lib/cbac/privilege.rb", "lib/cbac/privilege_new_api.rb", "lib/cbac/privilege_set.rb", "lib/cbac/privilege_set_record.rb", "lib/cbac/setup.rb", "lib/generators/cbac/USAGE", "lib/generators/cbac/cbac_generator.rb", "lib/generators/cbac/copy_files/config/cbac.pristine", "lib/generators/cbac/copy_files/config/context_roles.rb", "lib/generators/cbac/copy_files/config/privileges.rb", "lib/generators/cbac/copy_files/controllers/generic_roles_controller.rb", "lib/generators/cbac/copy_files/controllers/memberships_controller.rb", "lib/generators/cbac/copy_files/controllers/permissions_controller.rb", "lib/generators/cbac/copy_files/controllers/upgrade_controller.rb", "lib/generators/cbac/copy_files/fixtures/cbac_generic_roles.yml", "lib/generators/cbac/copy_files/fixtures/cbac_memberships.yml", "lib/generators/cbac/copy_files/fixtures/cbac_permissions.yml", "lib/generators/cbac/copy_files/initializers/cbac_config.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_from_scratch.rb", "lib/generators/cbac/copy_files/migrate/create_cbac_upgrade_path.rb", "lib/generators/cbac/copy_files/stylesheets/cbac.css", "lib/generators/cbac/copy_files/tasks/cbac.rake", "lib/generators/cbac/copy_files/views/generic_roles/index.html.erb", "lib/generators/cbac/copy_files/views/layouts/cbac.html.erb", "lib/generators/cbac/copy_files/views/memberships/_update.html.erb", "lib/generators/cbac/copy_files/views/memberships/index.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_context_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/_update_generic_role.html.erb", "lib/generators/cbac/copy_files/views/permissions/index.html.erb", "lib/generators/cbac/copy_files/views/upgrade/index.html.erb", "migrations/20110211105533_add_pristine_files_to_cbac_upgrade_path.rb", "privileges.rb", "rails/init.rb", "spec/cbac_pristine_file_spec.rb", "spec/cbac_pristine_permission_spec.rb", "spec/cbac_pristine_role_spec.rb", "spec/rcov.opts", "spec/spec.opts", "spec/spec_helper.rb", "tasks/cbac.rake", "test/fixtures/cbac_generic_roles.yml", "test/fixtures/cbac_memberships.yml", "test/fixtures/cbac_permissions.yml", "test/fixtures/cbac_privilege_set.yml", "test/test_cbac_actions.rb", "test/test_cbac_authorize_context_roles.rb", "test/test_cbac_authorize_generic_roles.rb", "test/test_cbac_context_role.rb", "test/test_cbac_privilege.rb", "test/test_cbac_privilege_set.rb", "test/test_helper.rb", "cbac.gemspec"]
14
14
  s.homepage = "http://cbac.rubyforge.org"
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cbac", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "cbac"
18
- s.rubygems_version = "1.8.21"
18
+ s.rubygems_version = "1.8.24"
19
19
  s.summary = "CBAC - Simple authorization system for Rails applications."
20
- s.test_files = ["test/test_cbac_authorize_generic_roles.rb", "test/test_cbac_actions.rb", "test/test_cbac_privilege_set.rb", "test/test_helper.rb", "test/test_cbac_context_role.rb", "test/test_cbac_authorize_context_roles.rb", "test/test_cbac_privilege.rb"]
20
+ s.test_files = ["test/test_cbac_privilege.rb", "test/test_cbac_context_role.rb", "test/test_helper.rb", "test/test_cbac_actions.rb", "test/test_cbac_privilege_set.rb", "test/test_cbac_authorize_context_roles.rb", "test/test_cbac_authorize_generic_roles.rb"]
21
21
 
22
22
  if s.respond_to? :specification_version then
23
23
  s.specification_version = 3
@@ -4,7 +4,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'pristine_permission'
4
4
  module Cbac
5
5
  module CbacPristine
6
6
  class AbstractPristineFile < ActiveRecord::Base
7
- set_table_name "cbac_pristine_files"
7
+ self.table_name = "cbac_pristine_files"
8
8
  attr_accessor :permissions, :generic_roles
9
9
  attr_readonly :file_name
10
10
 
@@ -5,7 +5,7 @@ require 'active_record'
5
5
  module Cbac
6
6
  module CbacPristine
7
7
  class PristinePermission < ActiveRecord::Base
8
- set_table_name 'cbac_staged_permissions'
8
+ self.table_name = 'cbac_staged_permissions'
9
9
 
10
10
  belongs_to :pristine_role, :class_name => "Cbac::CbacPristine::PristineRole"
11
11
  belongs_to :pristine_file, :class_name => "Cbac::CbacPristine::AbstractPristineFile"
@@ -2,7 +2,7 @@ require 'active_record'
2
2
  module Cbac
3
3
  module CbacPristine
4
4
  class PristineRole < ActiveRecord::Base
5
- set_table_name "cbac_staged_roles"
5
+ self.table_name = "cbac_staged_roles"
6
6
  attr_readonly :role_type, :role_id, :name
7
7
 
8
8
  def self.ROLE_TYPES
@@ -1,5 +1,5 @@
1
1
  class Cbac::GenericRole < ActiveRecord::Base
2
- set_table_name "cbac_generic_roles"
2
+ self.table_name = "cbac_generic_roles"
3
3
  attr_accessible :remarks, :name
4
4
 
5
5
  has_many :generic_role_members, :class_name => "Cbac::Membership", :foreign_key => "generic_role_id"
@@ -1,5 +1,5 @@
1
1
  class Cbac::KnownPermission < ActiveRecord::Base
2
- set_table_name "cbac_known_permissions"
2
+ self.table_name = "cbac_known_permissions"
3
3
  attr_readonly :permission_type, :permission_number
4
4
 
5
5
  cattr_accessor :PERMISSION_TYPES
@@ -1,4 +1,4 @@
1
1
  class Cbac::Membership < ActiveRecord::Base
2
- set_table_name "cbac_memberships"
2
+ self.table_name = "cbac_memberships"
3
3
  belongs_to :generic_role, :class_name => "Cbac::GenericRole", :foreign_key => "generic_role_id"
4
4
  end
@@ -1,5 +1,5 @@
1
1
  class Cbac::Permission < ActiveRecord::Base
2
- set_table_name "cbac_permissions"
2
+ self.table_name = "cbac_permissions"
3
3
 
4
4
  belongs_to :generic_role, :class_name => "Cbac::GenericRole", :foreign_key => "generic_role_id"
5
5
  belongs_to :privilege_set, :class_name => "Cbac::PrivilegeSetRecord", :foreign_key => "privilege_set_id"
@@ -1,5 +1,5 @@
1
1
  class Cbac::PrivilegeSetRecord < ActiveRecord::Base
2
- set_table_name "cbac_privilege_set"
2
+ self.table_name = "cbac_privilege_set"
3
3
 
4
4
  def set_comment(comment)
5
5
  self.comment = comment if has_attribute?("comment")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Simple authorization system for Rails applications. Allows you to develop
15
15
  applications with a mixed role based authorization and a context based authorization
@@ -62,10 +62,11 @@ extra_rdoc_files:
62
62
  - lib/generators/cbac/copy_files/views/upgrade/index.html.erb
63
63
  - tasks/cbac.rake
64
64
  files:
65
+ - Gemfile
66
+ - Gemfile.lock
65
67
  - Manifest
66
68
  - README.rdoc
67
69
  - Rakefile
68
- - cbac.gemspec
69
70
  - config/cbac/context_roles.rb
70
71
  - config/cbac/privileges.rb
71
72
  - context_roles.rb
@@ -121,7 +122,6 @@ files:
121
122
  - spec/spec.opts
122
123
  - spec/spec_helper.rb
123
124
  - tasks/cbac.rake
124
- - test/db/test.sqlite3
125
125
  - test/fixtures/cbac_generic_roles.yml
126
126
  - test/fixtures/cbac_memberships.yml
127
127
  - test/fixtures/cbac_permissions.yml
@@ -133,6 +133,7 @@ files:
133
133
  - test/test_cbac_privilege.rb
134
134
  - test/test_cbac_privilege_set.rb
135
135
  - test/test_helper.rb
136
+ - cbac.gemspec
136
137
  homepage: http://cbac.rubyforge.org
137
138
  licenses: []
138
139
  post_install_message:
@@ -159,15 +160,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
160
  version: '1.2'
160
161
  requirements: []
161
162
  rubyforge_project: cbac
162
- rubygems_version: 1.8.21
163
+ rubygems_version: 1.8.24
163
164
  signing_key:
164
165
  specification_version: 3
165
166
  summary: CBAC - Simple authorization system for Rails applications.
166
167
  test_files:
167
- - test/test_cbac_authorize_generic_roles.rb
168
+ - test/test_cbac_privilege.rb
169
+ - test/test_cbac_context_role.rb
170
+ - test/test_helper.rb
168
171
  - test/test_cbac_actions.rb
169
172
  - test/test_cbac_privilege_set.rb
170
- - test/test_helper.rb
171
- - test/test_cbac_context_role.rb
172
173
  - test/test_cbac_authorize_context_roles.rb
173
- - test/test_cbac_privilege.rb
174
+ - test/test_cbac_authorize_generic_roles.rb
Binary file