There is a problem in self.unix? method in command_line.rb file.
The detection of unix os is not always working correctly, for example in windows mignw environment it returns true. BUT the problem is that it is still windows, and DOUBLE quotes MUST be used (or paperclip imagemagic commands stop working).
The fix is simply to use rbconfig and to look at host_os configuration value (see here: http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/).
It would be great if you'd accept the fix, and integrate it into next paperclip release (so windows users won't have to monkey patch it...).
detect unix in a more precise way, so it won't mistakenly return true…
… for mingw32 environments
Use RbConfig to detect platform (fixes #2). Thanks, @alextk
Hi, thanks for this fix - RbConfig is definitely the way to go. In the future, please ensure that the tests all pass before submitting a pull request. Thanks again.