Sha256: 294cc319944174a16657d263548d37d1fa694503aaf0d2ec0f662f2f8d4b1cb5
Contents?: true
Size: 980 Bytes
Versions: 7
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::ResetScope 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
7 entries across 7 versions & 1 rubygems