
extlib specs small correction for String#relative_path_from
Reported by Luis Lavena | August 5th, 2008 @ 05:03 PM
Hello DM developers!
I found a small glitch with the String#relative_path_from.
The information used to built the matching was based in a hardcoded and wrong assumption.
It prepend File::SEPARATOR all the time, which is unneeded since Pathname is clever enough to handle that relation successfully.
Also, it affected execution success in Windows because it tried to prepend "/" to "D:/..." (site_dir).
Please see the attached patch (just 1 liner, he).
Thanks in advance for your time reading and looking forward to include this fix in the repository soon.
Regards,
--
Luis Lavena
Comments and changes to this ticket
-
Michael Klishin (antares) August 7th, 2008 @ 02:47 AM
Applied in 33f9be7, thank you. This one can be closed.
-
Dan Kubb (dkubb) November 30th, 2008 @ 01:32 PM
- Assigned user cleared.
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »