lib/upperkut/strategy.rb in upperkut-0.4.6 vs lib/upperkut/strategy.rb in upperkut-0.5.0
- old
+ new
@@ -4,10 +4,10 @@
class Strategy
include Upperkut::Util
attr_accessor :worker, :redis
- def initialize(worker, redis)
+ def initialize(worker, redis = Redis.new)
self.worker = worker
self.redis = redis
end
def push_items(items = [])