roles_for_mongoid 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  gem.add_dependency 'bson', '~> 1.0.7'
14
14
  gem.add_dependency "activesupport", '~> 3.0.0'
15
15
  gem.add_dependency "require_all", '~> 1.2.0'
16
- gem.add_dependency "sugar-high", '~> 0.2.10'
16
+ gem.add_dependency "sugar-high", '~> 0.2.11'
17
17
  gem.add_dependency "roles_generic", '~> 0.2.7'
18
18
 
19
19
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -36,7 +36,7 @@ module RoleStrategy::Mongoid
36
36
  # assign roles
37
37
  def roles=(*_roles)
38
38
  _roles = get_roles(_roles)
39
- return nil if !_roles || _roles.empty?
39
+ return nil if roles.none?
40
40
 
41
41
  role_relations = role_class.find_roles(_roles)
42
42
  self.send("#{role_attribute}=", role_relations)
@@ -32,7 +32,7 @@ module RoleStrategy::Mongoid
32
32
  # assign roles
33
33
  def roles=(*_roles)
34
34
  _roles = get_roles(_roles)
35
- return nil if !_roles || _roles.empty?
35
+ return nil if roles.none?
36
36
 
37
37
  first_role = _roles.flatten.first
38
38
  role_relation = role_class.find_role(first_role)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{roles_for_mongoid}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -81,7 +81,7 @@ Gem::Specification.new do |s|
81
81
  s.add_runtime_dependency(%q<bson>, ["~> 1.0.7"])
82
82
  s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
83
83
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
84
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.2.10"])
84
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.2.11"])
85
85
  s.add_runtime_dependency(%q<roles_generic>, ["~> 0.2.7"])
86
86
  else
87
87
  s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.22"])
@@ -89,7 +89,7 @@ Gem::Specification.new do |s|
89
89
  s.add_dependency(%q<bson>, ["~> 1.0.7"])
90
90
  s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
91
91
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
92
- s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
92
+ s.add_dependency(%q<sugar-high>, ["~> 0.2.11"])
93
93
  s.add_dependency(%q<roles_generic>, ["~> 0.2.7"])
94
94
  end
95
95
  else
@@ -98,7 +98,7 @@ Gem::Specification.new do |s|
98
98
  s.add_dependency(%q<bson>, ["~> 1.0.7"])
99
99
  s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
100
100
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
101
- s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
101
+ s.add_dependency(%q<sugar-high>, ["~> 0.2.11"])
102
102
  s.add_dependency(%q<roles_generic>, ["~> 0.2.7"])
103
103
  end
104
104
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -107,8 +107,8 @@ dependencies:
107
107
  segments:
108
108
  - 0
109
109
  - 2
110
- - 10
111
- version: 0.2.10
110
+ - 11
111
+ version: 0.2.11
112
112
  type: :runtime
113
113
  version_requirements: *id006
114
114
  - !ruby/object:Gem::Dependency