1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

ruby19 compat: use each_line on string

This commit is contained in:
Bob Potter 2009-04-07 18:36:23 -05:00
parent 5fba9f717b
commit 27dd15268c

@ -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