lib/rollout.rb in rolloutbr-2.0.1br vs lib/rollout.rb in rolloutbr-2.0.2br
- old
+ new
@@ -156,17 +156,17 @@
puts "force: #{force}"
puts "!@@cleared: #{!@@cleared}"
puts "Time.now: #{Time.now}"
puts "@@cleared + period: #{@@cleared + period}"
puts "Comp: #{Time.now >= (@@cleared + period)}"
- if force || !@@cleared || Time.now >= (@@cleared + period)
+ if force
puts "forced"
@@storage_hash = {}
@@cleared = Time.now
end
if @@storage_hash[feature].nil?
puts "nil"
- @@storage_hash[feature] = @storage.get(key(feature)) || '0||'
+ @@storage_hash[feature] = @storage.get(key(feature)) rescue '0||'
end
string = @@storage_hash[feature]
if string || !migrate?
Feature.new(feature, string)
else