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

Version Path
rollbar-3.1.2 lib/rollbar/plugins/sidekiq.rb
rollbar-3.1.1 lib/rollbar/plugins/sidekiq.rb
rollbar-3.1.0 lib/rollbar/plugins/sidekiq.rb
rollbar-3.0.1 lib/rollbar/plugins/sidekiq.rb
rollbar-3.0.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.27.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.27.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.26.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.26.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.25.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.25.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.24.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.23.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.23.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.23.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.22.1 lib/rollbar/plugins/sidekiq.rb
rollbar-2.22.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.21.0 lib/rollbar/plugins/sidekiq.rb
rollbar-2.20.2 lib/rollbar/plugins/sidekiq.rb
rollbar-2.20.1 lib/rollbar/plugins/sidekiq.rb