On Tue, Mar 25, 2008 at 5: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.

http://groups.google.com/group/comp.lang.ruby/msg/730266613bde1047

Dir[] doesn't allow backslashes.

Regards,

Dan
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to