Stop extending core classes
commit79080e97c0ef1863c1e80a9ddf30c69323af1ca7
authorEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:14:53 +0000 (21 11:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:16:38 +0000 (21 11:16 -0700)
tree1285a6d91ab86827f51615990eef364e238e761b
parent588577cc4852f9dce1bd011451399ce96c00023c
Stop extending core classes

This removes the #unicorn_peeraddr methods from TCPSocket and
UNIXSocket core classes.  Instead, just move that logic into the
only place it needs to be used in HttpRequest.
lib/unicorn/http_request.rb
lib/unicorn/socket.rb
test/unit/test_request.rb
test/unit/test_socket_helper.rb