Tumblog

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 RUBYOPT environment variable. On OSX, for example, adding export RUBYOPT=rubygems in your ~/.profile file. (Fine!)

See the rubygems documentation for further informations.

  • sofadesign posted this
  • -->

    Derniers projets

    +

    Services

    Code

    –––
    Sofa Design, Développement web / Conception et création de sites internet / Design / Expertise et formation