rubygems/rubygems — Issue #260: rubygems installed into wrong dir when proxy set in .gemrc
Author: ryenus
Created: 2012-01-12 06:16:44+00:00
State: open

Here is my `~/.gemrc`

$ cat ~/.gemrc
gem: --no-ri --no-rdoc -p http://myproxy
rdoc: --inline-source --line-numbers

In which I set the proxy with `-p http://myproxy`, and this confuses the setup command, which ends up with:

RubyGems 1.8.15 installed
...
RubyGems installed the following executables:
/home/user/.rvm/gems/ruby-1.9.2-p290/gems/rubygems-update-1.8.15/http:/myproxy/bin/gem

Looks like the installer incorrectly takes `-p` as `--prefix` and uses the proxy-url as the prefix path, weird.