torquebox/torquebox — pull request #155 by jnicklas (2013-04-12 09:27:37+00:00)
Title: Wrap javascript code in an array in Rack response

`File.read` returns a String. String does not respond to `#each` and is therefore not a valid response body for a rack response. The Rack spec makes this clear:

> 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.

This just wraps the resulting String in an Array, which is standard practice for this sort of thing.