
Patch for bug in Rakefile with Pathname.glob being called on Array
Reported by Joey B | April 8th, 2008 @ 10:21 PM
I couldn't get a rake install to fly on a fresh pull of dm-core because my Ruby 1.8.5 on Mac OS 10.4 was complaining that Pathname.glob should not be called on an Array (on line 49 ... during the building of the PACKAGE_FILES list).
After inspecting the Ruby docs, it looks as though Pathname.glob is supposed to be called on a String (not an Array).
So, I created a tiny patch so that Pathname.glob is called on each element of the Array via a collect and then the resulting Array of Strings and Arrays is flattened ... everything else stays the same.
My bottom line: the rake install now succeeds for me.
If other people don't see the problem, maybe I'm crazy. It seems like a problem that others should have experienced before me? The bug that I'm fixing with this patch (if it is a bug) was introduced more than a month ago (pre-git)...
Comments and changes to this ticket
-
-
Dan Kubb (dkubb) April 9th, 2008 @ 01:44 PM
- State changed from new to resolved
- Assigned user set to Dan Kubb (dkubb)
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 »