plusjade/jekyll-bootstrap — Issue #46: Theme Install Fails on Windows due to Permissions Error
Author: 3martini
Created: 2012-02-23 21:31:14+00:00
State: open

OS: Windows 7
Environment: Msys / MinGW

The root problem might actually be a ruby on msys bug but just in case anyone has the same issue I am posting this here for fellow windows hackers.

The rake theme:install task refuses to work for me, when it tries to move "_theme_packages/_tmp" to a named folder, it invariably fails. The exact command is:

` mv(tmp_path, new_path)`

After much testing it appears that the yaml manifest file of the theme is not being closed after `manifest = YAML.load_file(manifest)` is called. Thus the "_tmp" directory cannot be deleted.

The workaround is to first open the file using Ruby IO and then use `YAML.load()`

Pull request will be provided soon.