pkieltyka (owner)

Revisions

gist: 226426 Download_button fork
public
Public Clone URL: git://gist.github.com/226426.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/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!'