Sha256: c6173a21855d7502e89698e3a1eabdb6969b6b52d72880fe05b86499e51fd64d
Contents?: true
Size: 980 Bytes
Versions: 48
Compression:
Stored size: 980 Bytes
Contents
Rollbar.plugins.define('sidekiq >= 3') do require_dependency('sidekiq') dependency { !configuration.disable_monkey_patch } dependency { defined?(Sidekiq) } dependency { Sidekiq::VERSION.split('.')[0].to_i >= 3 } execute do require 'rollbar/plugins/sidekiq/plugin' Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Rollbar::Sidekiq::ClearScope end config.error_handlers << proc do |e, context| Rollbar::Sidekiq.handle_exception(context, e) end end end end Rollbar.plugins.define('sidekiq < 3') do require_dependency('sidekiq') dependency { !configuration.disable_monkey_patch } dependency { defined?(Sidekiq) } dependency { Sidekiq::VERSION.split('.')[0].to_i < 3 } execute do require 'rollbar/plugins/sidekiq/plugin' Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Rollbar::Sidekiq end end end end
Version data entries
48 entries across 48 versions & 1 rubygems