Skip to content

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

Open
arild-jacobsen wants to merge 1 commit intosconover:masterfrom
arild-jacobsen:fix/chunk_abs_path
Open

Fix for Issue 16 "Wrong::Config.read_here_or_higher can't handle absolute paths"#31
arild-jacobsen wants to merge 1 commit intosconover:masterfrom
arild-jacobsen:fix/chunk_abs_path

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