Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue 16 "Wrong::Config.read_here_or_higher can't handle absolute paths" #31

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

Conversation

arild-jacobsen
Copy link

I'm not the most experienced Rubyist, but I've been enjoying using Wrong, and thought I'd have a go at fixing this issue since most of my hobbyprogramming is done on windows.

My approach is simply to check whether a path is absolute or relative by calling File.file? on it.

…lute paths". Checks whether path is absolute or relative simply by calling File.file? on the path.
@amatsuda
Copy link
Contributor

Why not just File.expand_path(file, dir) ?

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

Successfully merging this pull request may close these issues.

3 participants