From: Bob Potter Date: Tue, 7 Apr 2009 23:36:23 +0000 (-0500) Subject: ruby19 compat: use each_line on string X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/27dd15268c9b519e94a4194bd32bac2d39c6c9fb ruby19 compat: use each_line on string --- diff --git a/client-libraries/ruby/lib/redis.rb b/client-libraries/ruby/lib/redis.rb index 2b0dad5f..b68e9766 100644 --- a/client-libraries/ruby/lib/redis.rb +++ b/client-libraries/ruby/lib/redis.rb @@ -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