diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-08 05:54:25 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-08 05:56:10 +0000 |
commit | 0fea004ab093ec4f59d919915a505a136326bd8a (patch) | |
tree | fa67ead511fd79cedf45d81c9e97fdb1d10cc0c4 /lib | |
parent | 5ece8c1c33f10e6496dfe5ae1d0d368293278d2d (diff) | |
download | unicorn-0fea004ab093ec4f59d919915a505a136326bd8a.tar.gz |
"stringio" is part of the Ruby distro and we use it in multiple places, so avoid re-requiring it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn.rb | 1 | ||||
-rw-r--r-- | lib/unicorn/http_request.rb | 1 | ||||
-rw-r--r-- | lib/unicorn/tee_input.rb | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index e60dd61..9e2d1c6 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -2,6 +2,7 @@ require 'fcntl' require 'etc' +require 'stringio' require 'rack' require 'unicorn/socket_helper' require 'unicorn/const' diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 8c369cf..65870ed 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -1,6 +1,5 @@ # -*- encoding: binary -*- -require 'stringio' require 'unicorn_http' module Unicorn diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index c0f916e..a11420a 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -1,5 +1,4 @@ # -*- encoding: binary -*- -require 'stringio' # acts like tee(1) on an input input to provide a input-like stream # while providing rewindable semantics through a File/StringIO backing |