Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Correct user's home directory detection (windows compatibility for ruby >= 1.9.3p362) #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pavel-manylov
Copy link

We could use Dir.home instead of this code, but it will not be compatible with old rubies.

(For ruby >= 1.9.3p362 on windows File.expand_path '.ruby-uuid', '~' will return "C:\\current\\app\\path\\~\\.ruby-uuid")

…by >= 1.9.3p362)

We could use Dir.home instead of this code, but it will not be compatible with old rubies
@pavel-manylov
Copy link
Author

By the way, this ruby behavior fixed in trunk now. https://bugs.ruby-lang.org/issues/8034

@luisfernandos
Copy link

Thanks the fix worked for me in windows !!!
when this will be merged ? The current version (2.3.7) doesn't have it

@sigmike
Copy link
Contributor

sigmike commented Oct 9, 2013

I installed Ruby 1.9.3p448 and it solved this issue. The merge is not required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants