Closed randycoulman closed 9 years ago
This seems good, I will merge it when preparing rake 10.4
@randycoulman HI, I merged your pull request on new rake canonical repository.
see. https://github.com/ruby/rake/commit/91af6938586545f46fda26e51d9833c833304788 and https://github.com/ruby/rake/commit/66e495a1fed576b7201520fcd3b9804d53fc93b3
These two commits allow client code to use Pathnames when working with Rake. The first commit allows transparent use of Pathnames in FileList, file/directory tasks, and as task prerequisites. The second adds the
ext
andpathname
extension methods toPathname
.I believe I caught all of the places where Pathnames might be used, but it is possible that I missed something.
The basic philosophy I followed was to convert incoming Pathnames to strings as soon as possible, and allow Rake to work with strings as it always has.
I'd like to find a way to have the
ext
andpathmap
extensions defined automatically if the client code requires 'pathmap'; I didn't want to make Rake requirepathmap
itself and force it into client code.