gem install without sudo
It took me a while to find a clearly documented way to manage
gems without having to use sudo. Just drop these lines into your
~/.zshrc or ~/.bashrc file.
export PATH="$HOME/.gem/ruby/1.8/bin:$PATH"
export GEM_HOME="$HOME/.gem/ruby/1.8"
export GEM_PATH="$HOME/.gem/ruby/1.8"
Easy.