installing gems on

Hi

I am working in a linux ruby rails environment and would like to install some gems but ensure that i they only work within my branch of the code and are not put into the gem path so that they are visible to everyone else

How can I do this?

my current gem env is

[ta84@ukird135 ~/projects/RB-3.7-dev01]$ gem env

RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.6

  • RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i686-linux]

  • INSTALLATION DIRECTORY: /appl/apache/dev/development/ruby/lib/ruby/gems/1.8

  • RUBY EXECUTABLE: /appl/apache/dev/development/ruby/bin/ruby

  • EXECUTABLE DIRECTORY: /appl/apache/dev/development/ruby/bin

  • RUBYGEMS PLATFORMS:

  • ruby

  • x86-linux

  • GEM PATHS:

  • /appl/apache/dev/development/ruby/lib/ruby/gems/1.8

  • /home/ta84/.gem/ruby/1.8

  • GEM CONFIGURATION:

  • :update_sources => true

  • :verbose => true

  • :benchmark => false

  • :backtrace => false

  • :bulk_threshold => 1000

  • REMOTE SOURCES:

  • http://rubygems.org/

[ta84@ukird135 ~/projects/RB-3.7-dev01]$

Gurdipe

Use rvm, then each user and rails app can have a different set of gems https://rvm.io

In fact it is highly recommended to use rvm anyway.

Colin