Luis Lavena
6/2/2009 9:31:00 PM
On Jun 2, 10:09 am, "J. D." <jdezen...@gmail.com> wrote:
> I think I might have figured out my own answer, possibly. In case this
> is the wrong answer please post your own reply. But, I think the reason
> why this is happening is because..
>
> C:\Ruby\bin is in my windows path..
>
> So even though I'm going into the C:\Ruby.backup\bin and performing gem
> -v, it is looking in the C:\Ruby\bin path first and not the current
> folder I'm in. I'm assuming it's probably a windows order preference
> with path variables taking precedence over current location.
>
RubyGems gem commands and Ruby ones are using @"ruby" to refer to the
executable.
So if there is a C:\Ruby\bin in the PATH (and is not your backup one),
will be used.
Also, it will try find "ruby" in the current directory and THEN in the
PATH.
Can you paste the output of "gem env" in both cases?
Thank you.
--
Luis Lavena