GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Fork of dustin/beanstalk-client-ruby
Description: Ruby client for beanstalkd
Homepage: http://xph.us/software/beanstalkd/
Clone URL: git://github.com/kr/beanstalk-client-ruby.git
Correctly mark jobs that aren't actually reserved.
kr (author)
Sun Jul 20 23:44:13 -0700 2008
commit  f1c14a46ec1447c3c91f3b99a37627a16a702755
tree    5ab30744849b6c0cedec746bf05c793e00d2aff0
parent  8915c23559f81cb88ed1272d54356dd33eb62268
...
194
195
196
197
 
198
199
200
...
194
195
196
 
197
198
199
200
0
@@ -194,7 +194,7 @@ module Beanstalk
0
       id, bytes = check_resp(word).map{|s| s.to_i}
0
       body = read_bytes(bytes)
0
       raise 'bad trailer' if read_bytes(2) != "\r\n"
0
- [id, body]
0
+ [id, body, word == 'RESERVED']
0
     end
0
 
0
     def read_yaml(word)

Comments

    No one has commented yet.