move all #gets logic to tee_input out of chunked_reader
commit2e913054b36848a05f7ba06c3accbe164c666708
authorEric Wong <normalperson@yhbt.net>
Thu, 16 Jul 2009 08:13:33 +0000 (16 01:13 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 16 Jul 2009 08:13:33 +0000 (16 01:13 -0700)
tree3dbac8d2be3f7ba7a00cd23fff146c40e0a3d747
parenta0f2c4514e969d0a127227201cbdb8e57f71df63
move all #gets logic to tee_input out of chunked_reader

This simplifies chunked_reader substantially with a slight
increase in tee_input complexity.  This is beneficial because
chunked_reader is more complex to begin with and more likely
to experience correctness issues.
lib/unicorn/chunked_reader.rb
lib/unicorn/tee_input.rb
test/unit/test_chunked_reader.rb
test/unit/test_tee_input.rb [new file with mode: 0644]