Bug in rake 0.8.7 on Windows

I have a workaround for a small problem with rake 0.8.7 on Windows, in case anyone else is having a problem with it.

The symptom is that anything you try to do with rake gives you an error message which contains the text

 

<path>/ruby/bin/rake:23:in `load': no such file to load -- "file/name/goes/here"

 

Note the " " marks around the file name.

Rake calls Gem.bin_path which puts an extra set of "" marks around the string it returns (possibly only if the path has a space in it).  This breaks load, so the last line of <path>ruby/bin/rake does not run.

A workaround for this is to change it to be

 

load Gem.bin_path('rake', 'rake', version).gsub("\"","")

 

(although it may be better to hunt down the problem in Gem.bin_path)

Trackback URL for this post:

http://brains.parslow.net/trackback/1530