/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb: in read_reply
raise Errno::EAGAIN, "Timeout reading from the socket"
end
raise Errno::ECONNRESET,"Connection lost" if !rtype
line = @sock.gets
case rtype
when MINUS
raise MINUS + line.strip...
when PLUS
line.strip
when COLON
line.to_i
when DOLLAR
bulklen = line.to_i
return nil if bulklen == -1
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb: in block in raw_call_command
command << bulk + "\r\n" if bulk
end
@sock.write(command)
results = argvv.map do |argv|
processor = REPLY_PROCESSOR[argv[0]]
processor ? processor.call(read_reply) : read_reply...
end
return pipeline ? results : results[0]
end
def select(*args)
raise "SELECT not allowed, use the :db option when creating the object"
#####################
strack trace:
RuntimeError: -ERR unknown command
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:276:in `read_reply'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:200:in `block in raw_call_command'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:198:in `map'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:198:in `raw_call_command'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:163:in `call_command'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/ezmobius-redis-0.1/lib/redis.rb:153:in `method_missing'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/redis-namespace-0.1.0/lib/redis/namespace.rb:99:in `method_missing'
/Users/peter/Development/other/resque/lib/resque.rb:173:in `info'
/Users/peter/Development/other/resque/examples/demo/app.rb:8:in `block in <class:App>'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/sinatra-0.9.4/lib/sinatra/base.rb:781:in `call'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/sinatra-0.9.4/lib/sinatra/base.rb:781:in `block in route'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/sinatra-0.9.4/lib/sinatra/base.rb:474:in `instance_eval'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/sinatra-0.9.4/lib/sinatra/base.rb:474:in `route_eval'
/Users/peter/.rvm/gems/ruby/1.9.1/gems/sinatra-0.9.4/lib/sinatra/base.rb:463:in `block (2 levels) in route!'