From: Phillip Gawlowski Date: 2009-12-27T10:42:53+09:00 Subject: Re: question about multiple ruby + gems installations for dev/test/prod On 27.12.2009 02:12, Alex Rice wrote: > Phillip Gawlowski wrote: > > I still am puzzled as to why my prod environment is using gems from the > test environment. There must be a dotfile or config file somewhere in > the gem directory. Does anyknow know where the gem path is actualy > stored in the ruby install, if it's not in .gemrc and not in GEM_PATH > and GEM_HOM? I hacked up a quick script (after digging through rubygem's sources): PS C:\Scripts> ruby .\gemconfig.rb sitedir: C:/Ruby/lib/ruby/site_ruby bindir: C:/Ruby/bin sitelibdir: C:/Ruby/lib/ruby/site_ruby/1.8 datadir: C:/Ruby/share vendordir: EXEEXT: .exe libdir: C:/Ruby/lib vendorlibdir: ruby_install_name: ruby RUBY_SO_NAME: msvcrt-ruby18 ruby_version: 1.8 arch: i386-mingw32 PS C:\Scripts> cat .\gemconfig.rb require "rubygems" Gem::ConfigMap.each do |config,value| puts "#{config}: #{value}" end PS C:\Scripts> The path seems to be built on runtime (I don't have a .gemrc defined in my home dir). So, this raises the question, if your production environment is isolated from the development and testing environments, and if so, how? (Mind, this is a question out of curiosity, to get to the root of the problem :) -- Phillip Gawlowski