Making rubygems available for all your ruby scripts
- adding
require 'rubygems'at the begining of your scripts (ouch!) - calling ruby with the rubygems option:
ruby -rubygems my_script.rb(better) - setting the
RUBYOPTenvironment variable. On OSX, for example, addingexport RUBYOPT=rubygemsin your~/.profilefile. (Fine!)
See the rubygems documentation for further informations.
