2 ms·
String.each is the same as String.each_line in ruby 1.8. This code rewrite seems to be the reason that code breaks on ruby 1.9 if body is a string (this is guar
by mtarnovan 17y ago
String.each is the same as String.each_line in ruby 1.8. This code rewrite seems to be the reason that code breaks on ruby 1.9 if body is a string (this is guarded against in the body setter). (ruby 1.9 removes String.each)
http://github.com/josh/rack/tree/master http://github.com/josh/rack/tree/master :
* NOTE: String bodies break in 1.9, use an Array consisting of a single String instead.
p.s. this is definitely worth a 2.3.3 tag and release