ar_rollout 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ class Rollout < ActiveRecord::Base
2
2
  attr_accessible :name, :group, :user_id, :percentage
3
3
 
4
4
  def match?(user)
5
+ return false unless user
5
6
  enabled? && (match_user?(user) || match_group?(user) || match_percentage?(user))
6
7
  end
7
8
 
@@ -1,3 +1,3 @@
1
1
  module ArRollout
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_rollout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-09-05 00:00:00.000000000 Z
14
+ date: 2012-09-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 1.8.23
140
+ rubygems_version: 1.8.24
141
141
  signing_key:
142
142
  specification_version: 3
143
143
  summary: An ActiveRecord version of Rollout gem (https://github.com/jamesgolick/rollout).