I've been working on a gem that lets you force TCPSocket to use a proxy.
I haven't pushed it to rubygems yet but you can clone my repo and install it
and try it out.
https://github.com/samuelkadolph/ruby-proxifier

On Tue, Jul 19, 2011 at 2:30 AM, Anurag Priyam <anurag08priyam / gmail.com>wrote:

> > require 'net/http'
> > proxy_uri     = URI.parse(ENV['http_proxy'])
> > proxy_class = Net::HTTP::Proxy(proxy.host, proxy.port)
>
> I meant,
>
> proxy_class = Net::HTTP::Proxy(proxy_url.host, proxy_url.port)
>
> --
> Anurag Priyam
> http://about.me/yeban/
>
>


-- 

*Samuel Kadolph
*E samuel / kadolph.com