lib/rollout.rb in rolloutbr-2.0.4br vs lib/rollout.rb in rolloutbr-2.0.5br
- old
+ new
@@ -75,13 +75,13 @@
end
end
end
- @storage_hash = {}
+ @storage_hash = {:temp => "richard"}
@cleared = Time.now
-
+
class << self
attr_accessor :storage_hash, :cleared
end
@@ -163,10 +163,10 @@
puts "Time.now: #{Time.now}"
puts "self.class.cleared + period: #{self.class.cleared + period}"
puts "Comp: #{Time.now >= (self.class.cleared + period)}"
if force || !self.class.cleared || Time.now >= (self.class.cleared + period)
puts "forced"
- self.class.storage_hash = {}
+ self.class.storage_hash = {:temp => "richard2"}
self.class.cleared = Time.now
end
if self.class.storage_hash[feature].nil?
puts "nil"
self.class.storage_hash[feature] = @storage.get(key(feature)) rescue '0||'