From: "ara.t.howard" Date: 2008-07-24T01:29:19+09:00 Subject: Re: Multiple GEM repositories On Jul 22, 2008, at 11:57 PM, Eric Hodel wrote: > Yes, in 1.1.0 hrm - what's wrong with this then cfp:~ > cd /tmp cfp:/tmp > gemdir arrayfields /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.6.0 cfp:/tmp > mkdir -p ./gems/1.8/gems/ && cp -r `gemdir arrayfields` ./ gems/1.8/gems/ cfp:/tmp > echo 'raise "foobar"' >> ./gems/1.8/gems/arrayfields-4.6.0/ lib/arrayfields.rb cfp:/tmp > ruby gems/1.8/gems/arrayfields-4.6.0/lib/arrayfields.rb gems/1.8/gems/arrayfields-4.6.0/lib/arrayfields.rb:436: foobar (RuntimeError) cfp:/tmp > GEM_PATH=./gems/1.8/ ruby -r rubygems -e' p Gem.path ' ["./gems/1.8/", "/opt/local/lib/ruby/gems/1.8"] cfp:/tmp > GEM_PATH=./gems/1.8/ ruby -r rubygems -e' require "arrayfields"; p Arrayfields.version ' "4.6.0" cfp:/tmp > GEM_PATH=./gems/1.8/ ruby -r rubygems -e' p Gem.path; gem "arrayfields", "4.6.0"; p $LOAD_PATH.first(2) ' ["./gems/1.8/", "/opt/local/lib/ruby/gems/1.8"] ["/opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.6.0/bin", "/opt/ local/lib/ruby/gems/1.8/gems/arrayfields-4.6.0/lib"] what am i doing wrong? i've never been able to make gem_path behave... cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama