gem install behind a proxy

Created by: hyder

In the doc: sudo gem install bundler. This works fine if the user is not behind a proxy server.

If the installing user is behind a proxy, the proxy option must be set as thus:

sudo gem install --http-proxy=http://my.proxy:port_number bundler