[Rubygems-developers] Patch that fixes Proxy authorization problem (407)

Jim Weirich jim.weirich at gmail.com
Thu Dec 15 16:59:51 EST 2005

On 12/15/05, Anatol Pomozov <anatol.pomozov at gmail.com> wrote:
> I have response from one guy who tried it. And it says that storing login
> and password in HTTP_PROXY makes collision with Perl Package Manager format
> that expect have following EnvVariables
> So I suggest redo a little my patch and use following algorithm
>   http_proxy = options() || ENV['HTTP_PROXY']
>   if http_proxy contains login and lassword
>     proxy_user = extract login from http_proxy
>      proxy_password = extract password from http_proxy
>   else
>     proxy_user = HTTP['http_proxy_user']
>     proxy_password = ENV['http_proxy_pass']
>   end

I'm going to request a unit or functional test for this logic.  Thanks.

> Have gem something like central config file where could be stored http_proxy
> settings??

Yes, you will find it in $HOME/.gemrc (or the equivalent in windows).

-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rubygems-developers mailing list