restore Rainbows::HttpResponse.write for Cramp
commit9abb447a573751b87e26ce35f4f05d58290f4c41
authorEric Wong <normalperson@yhbt.net>
Thu, 8 Jul 2010 23:21:18 +0000 (8 23:21 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 8 Jul 2010 23:21:18 +0000 (8 23:21 +0000)
tree1adb0dac9acd99c9add0880751c7e022003776ef
parent235985c6c4b37ed9a170c38052db3ef0772b1527
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).
15 files changed:
lib/rainbows.rb
lib/rainbows/base.rb
lib/rainbows/event_machine.rb
lib/rainbows/fiber/body.rb
lib/rainbows/fiber/rev.rb
lib/rainbows/http_response.rb
lib/rainbows/response.rb [copied from lib/rainbows/http_response.rb with 87% similarity]
lib/rainbows/response/body.rb [moved from lib/rainbows/http_response/body.rb with 98% similarity]
lib/rainbows/rev/client.rb
lib/rainbows/rev/core.rb
lib/rainbows/rev_fiber_spawn.rb
lib/rainbows/writer_thread_pool.rb
lib/rainbows/writer_thread_spawn.rb
t/cramp/rainsocket.ru [new file with mode: 0644]
t/t0501-cramp-rainsocket.sh [new file with mode: 0755]