Rakefile fails on cygwin because the cygwin platform name does not include "win32". Example:
Robe..@HORVICKLAPTOP ~/merbsrc
$ rake install
(in /home/Robert/merbsrc)
rake package
(in /home/Robert/merbsrc)
Successfully built RubyGem?
Name: merb
Version: 0.4.2
File: merb-0.4.2.gem
sudo gem install pkg/merb-0.4.2 --no-rdoc --no-ri
rake aborted!
Command failed with status (127): [sudo gem install pkg/merb-0.4.2 --no-rdoc ...]
/home/Robert/merbsrc/rakefile:84
(See full trace by running task with --trace)
Changing the regex from /win32/ to /win32|cygwin/ resolved the issue.
I'm attaching a patch.