Add monkey patch for eventmachine 1.0.4

This commit is contained in:
Samuel Cochran 2015-01-29 21:43:35 +11:00
parent d3336535ae
commit 757eafe337

View File

@ -6,6 +6,16 @@ require "active_support/all"
require "eventmachine" require "eventmachine"
require "thin" require "thin"
if EventMachine::VERSION == "1.0.4"
module EventMachine
# Monkey patch fix for 10deb4
# See https://github.com/eventmachine/eventmachine/issues/569
def self.reactor_running?
(@reactor_running || false)
end
end
end
require "mail_catcher/events" require "mail_catcher/events"
require "mail_catcher/mail" require "mail_catcher/mail"
require "mail_catcher/smtp" require "mail_catcher/smtp"