Sha256: abb9f93d8c3ba11e76e885cf3a98063ef4dd029e2f6d0f8f8cf3aae35dda45f5

Contents?: true

Size: 754 Bytes

Versions: 13

Compression:

Stored size: 754 Bytes

Contents

module Honeybadger
  Dependency.register do
    requirement { defined?(::Delayed::Plugin) }
    requirement { defined?(::Delayed::Worker.plugins) }
    requirement do
      if delayed_job_honeybadger = defined?(::Delayed::Plugins::Honeybadger)
        Honeybadger.write_verbose_log("Support for Delayed Job has been moved " \
                                      "to the honeybadger gem. Please remove " \
                                      "delayed_job_honeybadger from your " \
                                      "Gemfile.", :warn)
      end
      !delayed_job_honeybadger
    end

    injection do
      require 'honeybadger/integrations/delayed_job/plugin'
      ::Delayed::Worker.plugins << Integrations::DelayedJob::Plugin
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
honeybadger-1.16.7 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.6 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.5 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.4 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.3 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.2 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.1 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.16.0 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.15.3 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.15.2 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.15.1 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.15.0 lib/honeybadger/integrations/delayed_job.rb
honeybadger-1.14.0 lib/honeybadger/integrations/delayed_job.rb