Running Eventmachine on Windows for Mailcatcher
The current build of EventMachine available on RubyGems.org doesn’t work on Windows, at least with pure Ruby functionality.
Attempting to get the bug files from the repo HEAD, I cloned and built the gem:
git clone https://github.com/eventmachine/eventmachine
gem build eventmachine.gemspec
gem install eventmachine-1.3.0.dev.1.gem
I then set this version number in the mailcatcher.gemspec and attempted to build the mailcatcher gem, but:
bundle exec rake assets
rake aborted!
ExecJS::ProgramError: TypeError: Object doesn't support this property or method
(in C:/Users/nitin.katkam/Documents/GitHub/mailcatcher/assets/javascripts/mailcatcher.js.coffee)
I tried again with NodeJS 18.14.0 unzipped and added to the PATH, and bundle exec rake package
created a gem file… but on attempting to install the gem, it complains about conflicting dependencies because thin-1.8 doesn’t want to use our newly built eventmachine whereas we’ve hardcoded our mailcatcher gemspec to use the specific version that we’ve built.
I cloned thin, bumped up the version, attempted to install mailcatcher, and then faye-websocket complains about the dependency version conflict.
Fix that, and the head of thin complains of not being able to load thin-parser.