README.markdown in sham_rack-1.3.3 vs README.markdown in sham_rack-1.3.4
- old
+ new
@@ -27,10 +27,10 @@
### A simple inline application
require 'sham_rack'
ShamRack.at("www.greetings.com") do |env|
- ["200 OK", { "Content-type" => "text/plain" }, "Hello, world!"]
+ ["200 OK", { "Content-type" => "text/plain" }, ["Hello, world!"]]
end
require 'open-uri'
open("http://www.greetings.com/").read #=> "Hello, world!"