bitroles 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bitroles.rb CHANGED
@@ -39,7 +39,7 @@ module Bitroles
39
39
  scope :#{role.pluralize}, -> { where(['#{roles_mask} & ? > 0', 2**#{roles}.index('#{role}')]) }
40
40
 
41
41
  def is_#{role}?
42
- role? '#{role}'
42
+ has_role? '#{role}'
43
43
  end
44
44
 
45
45
  def #{role}=(val)
@@ -1,3 +1,3 @@
1
1
  module Bitroles
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitroles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -65,5 +65,5 @@ rubyforge_project:
65
65
  rubygems_version: 1.8.24
66
66
  signing_key:
67
67
  specification_version: 3
68
- summary: Bitroles gem v0.2.1
68
+ summary: Bitroles gem v0.2.2
69
69
  test_files: []