Use rubygems behind http proxy

Today I wanted to use ruby gems behind a http proxy. First step to do, set the HTTP_PROXY environment variable:

set HTTP_PROXY=http://user:password@proxy:port/

Then install your gem with parameters set:

gem install <name here> --http-proxy --source http://rubygems.org