]> git.saurik.com Git - redis.git/commitdiff
ruby19 compat: use each_line on string
authorBob Potter <bobby.potter@gmail.com>
Tue, 7 Apr 2009 23:36:23 +0000 (18:36 -0500)
committerBob Potter <bobby.potter@gmail.com>
Tue, 7 Apr 2009 23:36:23 +0000 (18:36 -0500)
client-libraries/ruby/lib/redis.rb

index 2b0dad5ff8ef9941de039a58a4a586e7e7926973..b68e976685597ce17e36cbb10f6e7d1bb51ecf4e 100644 (file)
@@ -79,7 +79,7 @@ class Redis
    info = {}
    write("INFO\r\n")
    x = get_response
-   x.each do |kv|
+   x.each_line do |kv|
      k,v = kv.split(':', 2)
      k,v = k.chomp, v = v.chomp
      info[k.to_sym] = v
@@ -443,4 +443,4 @@ class Redis
     end
   end
   
-end
\ No newline at end of file
+end