role_based_authorization 0.1.6 → 0.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/README.rdoc CHANGED
@@ -36,7 +36,6 @@ The library poses few and very reasonable constraints on your application. Namel
36
36
  * that your controllers provide a 'current_user' method
37
37
  * that the user object (returned by the 'current_user' method) implements the following two methods:
38
38
  * role: returning the role of the current user; roles can be anything (I personally use integers). This is usually implemented by adding a 'role' column to your model.
39
- * description: used for logging purposes
40
39
 
41
40
  == Permission statements
42
41
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -162,7 +162,7 @@ module RoleBasedAuthorization
162
162
  controller = controller_name if controller.nil? && respond_to?(:controller_name)
163
163
 
164
164
  AUTHORIZATION_LOGGER.info("user %s requested access to method %s:%s using ids:%s" %
165
- [ user && user.description + "(id:#{user.id} role:#{user.role})" || 'none',
165
+ [ user && user.inspect + "(id:#{user.id} role:#{user.role})" || 'none',
166
166
  controller,
167
167
  action,
168
168
  ids.inspect])
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{role_based_authorization}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roberto Esposito"]
@@ -8,7 +8,6 @@ class DummyUser
8
8
  def login() return 'test' end
9
9
  def role() return @role end
10
10
  def role=(new_role) @role = new_role end
11
- def description() return "user" end
12
11
  end
13
12
 
14
13
  class DummyController < ActionController::Base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: role_based_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Esposito