From: Eric Hodel Date: 2009-04-25T09:54:42+09:00 Subject: Re: Odd Ruby/Rubygems/gem path problem On Apr 24, 2009, at 17:38, Pito Salas wrote: > Eric Hodel wrote: >> On Apr 24, 2009, at 13:49, Pito Salas wrote: >> >>> # see that it refuses to see the shoulda gem from the command line >>> $ ruby -rshoulda -e "puts 1" >>> ruby: no such file to load -- shoulda (LoadError) >>> $ ruby -rubygems -rshoulda -e "puts 1" >>> ruby: no such file to load -- shoulda (LoadError) >>> $ ruby -rubygems -rshoulda -e "puts 1" >> >> the -r command line option uses rb_require() the C function, not >> Kernel#require the method. 1.9 does not have this limitation. > > Eric, thanks. I am not sure of the implication of that. Are you saying > therefore that one cannot rely on -rrubygems -rshoulda to work? With ruby 1.8, no. There is a workaround though: ruby -rubygems -e 'require "shoulda"; ...'