Sha256: a94239ae7fbd4d59af9849560b8e26309286c1eb26a8347dc756f78b81c44302

Contents?: true

Size: 587 Bytes

Versions: 55

Compression:

Stored size: 587 Bytes

Contents

Rollbar.plugins.define('rack') do
  dependency { !configuration.disable_monkey_patch }
  dependency { !configuration.disable_rack_monkey_patch }

  execute do
    if defined?(Rack::Builder)
      require 'rollbar/middleware/rack'
      require 'rollbar/middleware/rack/builder'
      Rack::Builder.send(:include, Rollbar::Middleware::Rack::Builder)
    end

    if defined?(Rack::Test::Session)
      require 'rollbar/middleware/rack'
      require 'rollbar/middleware/rack/test_session'
      Rack::Test::Session.send(:include, Rollbar::Middleware::Rack::TestSession)
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
rollbar-3.6.1 lib/rollbar/plugins/rack.rb
rollbar-3.6.0 lib/rollbar/plugins/rack.rb
rollbar-3.5.2 lib/rollbar/plugins/rack.rb
rollbar-3.5.1 lib/rollbar/plugins/rack.rb
rollbar-3.5.0 lib/rollbar/plugins/rack.rb
rollbar-3.4.2 lib/rollbar/plugins/rack.rb
rollbar-3.4.1 lib/rollbar/plugins/rack.rb
rollbar-3.4.0 lib/rollbar/plugins/rack.rb
rollbar-3.3.3 lib/rollbar/plugins/rack.rb
rollbar-3.3.2 lib/rollbar/plugins/rack.rb
rollbar-3.3.1 lib/rollbar/plugins/rack.rb
rollbar-3.3.0 lib/rollbar/plugins/rack.rb
rollbar-3.2.0 lib/rollbar/plugins/rack.rb
rollbar-3.1.2 lib/rollbar/plugins/rack.rb
rollbar-3.1.1 lib/rollbar/plugins/rack.rb
rollbar-3.1.0 lib/rollbar/plugins/rack.rb
rollbar-3.0.1 lib/rollbar/plugins/rack.rb
rollbar-3.0.0 lib/rollbar/plugins/rack.rb
rollbar-2.27.1 lib/rollbar/plugins/rack.rb
rollbar-2.27.0 lib/rollbar/plugins/rack.rb