On Tue, Mar 25, 2008 at 8:51 PM, Eric Hodel <[EMAIL PROTECTED]> wrote:
>
>  On Mar 23, 2008, at 21:01 PM, Luis Lavena wrote:
>  > Hello List,
>  >
>  > I'm dealing with something related to how GEM_HOME and GEM_PATH is
>  > processed on Windows.
>  >
>  > Take as base $HOME being set on D:/Users/Luis (except for the drive
>  > letter, sounds like *nix).
>  >
>  > set GEM_HOME to %HOME%\.gems, which ends into
>  > D:\\Users\\Luis\\.gems
>  >
>  > set GEM_PATH to %GEM_HOME%;C:/Ruby/lib/ruby/gems/1.8
>  >
>  > Now, Gem::path reply return this array:
>  >
>  > ["D:\\Users\\Luis\\.gems", "C:/Ruby/lib/ruby/gems/1.8"]
>  >
>  > And gem install is capable to install into GEM_HOME.
>  >
>  > Now, 'gem list' do not find the installed gem, unless I change
>  > GEM_HOME definition to use File::SEPARATOR instead of
>  > File::ALT_SEPARATOR...
>
>  I wonder, try:
>
>  p Dir["D:\\Users\\Luis\\.gems/specifications"]
>
>  vs:
>
>  p Dir["D:/Users/Luis/.gems/specifications"]
>
>  Maybe mixing SEPARATOR and ALT_SEPARATOR confuses something inside ruby.
>

Daniel was correct:

irb(main):001:0> p Dir["D:\\Users\\Luis\\.gems/specifications"]
[]
=> nil
irb(main):002:0> p Dir["D:/Users/Luis/.gems/specifications"]
["D:/Users/Luis/.gems/specifications"]

-- 
Luis Lavena
Multimedia systems
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to