Bugs item #28371, was opened at 2010-07-10 09:39
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28371&group_id=126

Category: `gem install` command
Group: None
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: Luis Lavena (luislavena)
Assigned to: Luis Lavena (luislavena)
Summary: Gem.find_home should expand all the paths, including Windows

Initial Comment:
On Windows, find_home look for environment variables like HOME, USERPROFILE and 
HOMEDRIVE + HOMEPATH

The problem is that it directly assign the value obtained from it to user_home, 
disregarding if these variables contain slashes or backslashes.

On fetching of gems, RubyGems uses user_home to download and store remote 
specifications and quick indexes, which uses FileUtils.mkdir_p to create the 
folder structure.

The problem at this point is that FileUtils is not aware of backslashes and 
thus, failing.

Having consistent slashes using File.expand_path will be more consistent and 
reduce the chances of errors.


----------------------------------------------------------------------

>Comment By: John Barnette (jbarnette)
Date: 2010-11-13 05:40

Message:
Agreed. Commit this and close when you get a chance.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28371&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to