Sha256: 19261957a2b18fb8ed0ea99c2bdc1c2ff0a3634d6cb608beda2bb906ab3131e8

Contents?: true

Size: 691 Bytes

Versions: 139

Compression:

Stored size: 691 Bytes

Contents

require 'honeybadger/plugin'

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

    execution do
      require 'honeybadger/plugins/delayed_job/plugin'
      ::Delayed::Worker.plugins << Plugins::DelayedJob::Plugin
    end
  end
end

Version data entries

139 entries across 139 versions & 2 rubygems

Version Path
honeybadger-5.23.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.22.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.21.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.20.1 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.20.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.19.2 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.19.1 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.19.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.18.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.17.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.16.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.6 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.5 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.4 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.3 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.2 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.1 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.15.0 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.14.2 lib/honeybadger/plugins/delayed_job.rb
honeybadger-5.14.1 lib/honeybadger/plugins/delayed_job.rb