From 9abb447a573751b87e26ce35f4f05d58290f4c41 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 8 Jul 2010 23:21:18 +0000 Subject: restore Rainbows::HttpResponse.write for Cramp Cramp monkey patches Rainbows internals for WebSockets support and we forgot about it. Add a new integration test to ensure this continues to work in the future (and force us to update the test for newer Cramp). --- lib/rainbows.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 7bc9a92..4e9578b 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -33,7 +33,7 @@ module Rainbows require 'rainbows/const' require 'rainbows/http_server' - require 'rainbows/http_response' + require 'rainbows/response' require 'rainbows/base' require 'rainbows/tee_input' autoload :Sendfile, 'rainbows/sendfile' @@ -127,4 +127,5 @@ module Rainbows autoload :Fiber, 'rainbows/fiber' # core class autoload :ByteSlice, 'rainbows/byte_slice' autoload :StreamFile, 'rainbows/stream_file' + autoload :HttpResponse, 'rainbows/http_response' # deprecated end -- cgit v1.2.3-24-ge0c7