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
Report the correct size when body wasn't a string.
kr (author)
Tue Jul 15 14:55:39 -0700 2008
commit  d49d2424bdaa80e68dd83b11ab1dea723605b91e
tree    8f2fc489dc7f19156d3b1d3a68a415c66b3c5ca4
parent  b387f01911d5cea2f251e694e4892234ff94325c
...
50
51
52
 
53
54
55
...
50
51
52
53
54
55
56
0
@@ -50,6 +50,7 @@ module Beanstalk
0
     end
0
 
0
     def put(body, pri=65536, delay=0, ttr=120)
0
+ body = body.to_s # Make sure that body.size gives a useful number
0
       interact("put #{pri} #{delay} #{ttr} #{body.size}\r\n#{body}\r\n",
0
                %w(INSERTED BURIED))[0].to_i
0
     end

Comments

    No one has commented yet.