johnsbrn-has_permission 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/permission/base.rb +3 -3
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 4
3
3
  :major: 0
4
4
  :minor: 2
@@ -28,7 +28,7 @@ module Permission
28
28
  if can_write?(name)
29
29
  object.update_attribute(name, value)
30
30
  else
31
- raise PermissionException.new "#{user} does not have permission to access #{name} on #{object}"
31
+ raise PermissionException.new("#{user} does not have permission to access #{name} on #{object}")
32
32
  end
33
33
  end
34
34
 
@@ -52,7 +52,7 @@ module Permission
52
52
  if can_read?(attr_name)
53
53
  object.read_attribute(attr_name)
54
54
  else
55
- raise PermissionException.new "#{user} does not have permission to access #{attr_name} on #{object}"
55
+ raise PermissionException.new("#{user} does not have permission to access #{attr_name} on #{object}")
56
56
  end
57
57
  end
58
58
 
@@ -60,7 +60,7 @@ module Permission
60
60
  if can_write?(attr_name)
61
61
  object.write_attribute(attr_name, value)
62
62
  else
63
- raise PermissionException.new "#{user} does not have permission to access #{attr_name} on #{object}"
63
+ raise PermissionException.new("#{user} does not have permission to access #{attr_name} on #{object}")
64
64
  end
65
65
  end
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johnsbrn-has_permission
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Johnson