mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
ruby19 compat: use each_line on string
This commit is contained in:
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
|
||||
@ -443,4 +443,4 @@ class Redis
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user