This also needs a `require 'rubygems'` to work.  It might be best to make that optional though by adding a `rescue nil`.