Using Bundler for Ruby Gems

2014/09/30

I want to try fumbling with Ruby and especially all the cool Gems.

Simply using rubygems is causing annoyances, so after searching online and consulting wiser people I am trying out Bundler.

Using Bundler does require one manual gem installation, namely Bundler itself.

First, I set the path for installed gems by adding the following to my .zshrc:

export GEM_HOME="$HOME/.gems"

I did not set gemhome in my .gemrc file since $HOME and ~ were not expanded. Running gem env reveals that the executable directory is $GEM_HOME/bin, which I add to my PATH.

Bundler is now installed by running

gem install bundler

Bundler’s webpage describes how to manage gems.

>> Home