diff options
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r-- | lib/rainbows.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb index acfe911..584c94b 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -149,3 +149,12 @@ end require 'rainbows/error' require 'rainbows/configurator' + +module Unicorn + # this interferes with Rainbows::Client creation with unicorn 5.3 + begin + remove_const :TCPSrv + TCPSrv = Kgio::TCPServer + rescue NameError # unicorn < 5.3.0 + end +end |