Sha256: 8a369696db18ed57850a069f12de6a0031c1c302f667f91665147a429389390e

Contents?: true

Size: 541 Bytes

Versions: 43

Compression:

Stored size: 541 Bytes

Contents

module Rollbar
  module Middleware
    class Rack
      module TestSession
        include ExceptionReporter

        def env_for_with_rollbar(path, env)
          env_for_without_rollbar(path, env)
        rescue Exception => exception
          report_exception_to_rollbar(env, exception)
          raise exception
        end

        def self.included(base)
          base.send(:alias_method, :env_for_without_rollbar, :env_for)
          base.send(:alias_method, :env_for, :env_for_with_rollbar)
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rollbar-3.2.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-3.1.2 lib/rollbar/middleware/rack/test_session.rb
rollbar-3.1.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-3.1.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-3.0.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-3.0.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.27.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.27.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.26.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.26.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.25.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.25.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.24.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.23.2 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.23.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.23.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.22.1 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.22.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.21.0 lib/rollbar/middleware/rack/test_session.rb
rollbar-2.20.2 lib/rollbar/middleware/rack/test_session.rb