installing gems on

7 views
Skip to first unread message

Gurdipe Dosanjh

unread,
Jun 29, 2012, 4:42:26 AM6/29/12
to rubyonra...@googlegroups.com
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:
[ta84@ukird135 ~/projects/RB-3.7-dev01]$


Gurdipe

Colin Law

unread,
Jun 29, 2012, 4:54:43 AM6/29/12
to rubyonra...@googlegroups.com
On 29 June 2012 09:42, Gurdipe Dosanjh <rhomob...@gmail.com> wrote:
> 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

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
Reply all
Reply to author
Forward
0 new messages