Commit 27dd1526 authored by Bob Potter's avatar Bob Potter
Browse files

ruby19 compat: use each_line on string

parent 5fba9f71
...@@ -79,7 +79,7 @@ class Redis ...@@ -79,7 +79,7 @@ class Redis
info = {} info = {}
write("INFO\r\n") write("INFO\r\n")
x = get_response x = get_response
x.each do |kv| x.each_line do |kv|
k,v = kv.split(':', 2) k,v = kv.split(':', 2)
k,v = k.chomp, v = v.chomp k,v = k.chomp, v = v.chomp
info[k.to_sym] = v info[k.to_sym] = v
...@@ -443,4 +443,4 @@ class Redis ...@@ -443,4 +443,4 @@ class Redis
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment