helios-technologies/json-rpc — pull request #1 by hallelujah (2012-07-17 14:08:47+00:00)
Title: Fixing rack response body #each with ruby 1.9 

Sorry I did not write tests ;)

The explanation of the issue can be found here :

http://rack.rubyforge.org/doc/SPEC.html

> The Body
>
> The Body must respond to each and must only yield String values. The Body itself should not be an instance of String, as this will break in Ruby 1.9. If the Body responds to close, it will be called after iteration. If the Body responds to to_path, it must return a String identifying the location of a file whose contents are identical to that produced by calling each; this may be used by the server as an alternative, possibly more efficient way to transport the response. The Body commonly is an Array of Strings, the application instance itself, or a File-like object.