mirror of https://mirror.osredm.com/root/redis.git
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…
Reference in New Issue