lib/ost.rb in ost-0.0.1 vs lib/ost.rb in ost-0.0.2

- old
+ new

@@ -1,10 +1,9 @@ -require "redis" require "nest" module Ost - VERSION = "0.0.1" + VERSION = "0.0.2" TIMEOUT = ENV["OST_TIMEOUT"] || 2 class Queue attr :ns @@ -53,14 +52,14 @@ def self.[](queue) @queues[queue] end def self.connect(options = {}) - @redis = Redis.new(options) + @redis = Redis.connect(options) end def self.redis - @redis ||= Redis.new + @redis ||= Redis.connect end def self.redis=(redis) @redis = redis end