mhfs/sidekiq-failures — pull request #12 by cheald (2012-11-18 20:31:35+00:00)
Title: Prevent sidekiq-failures from loading up sidekiq/processor (and thus Celluloid actors) except for inside a Sidekiq server context

sidekiq-failures currently requires `sidekiq/processor`, which spins up Celluloid actors every time the app is run in any context (rake, app instance, etc), rather than just in the context of a sidekiq server.

This patch simply modifies the way that sidekiq-failures is added to the middleware chain so that it'll only be done as part of the server configuration process, rather than all the time.

Tests pass under ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]