Bugs item #28371, was opened at 2010-07-10 13: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: Closed
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: Luis Lavena (luislavena)
Date: 2010-11-13 11:10

Message:
Resolved by 
https://github.com/rubygems/rubygems/commit/147872fac455454379986010be04998f5fcc8adb


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

Comment By: John Barnette (jbarnette)
Date: 2010-11-13 10: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