Sha256: 8822a085aad6c530349f8041e1601f5c94ccc90952e67b45c3134f91a7a5f332

Contents?: true

Size: 296 Bytes

Versions: 69

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module Coverband
  class BackgroundMiddleware
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    ensure
      AtExit.register
      Background.start if Coverband.configuration.background_reporting_enabled
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
coverband-6.1.4 lib/coverband/integrations/background_middleware.rb
coverband-6.1.3 lib/coverband/integrations/background_middleware.rb
coverband-6.1.2 lib/coverband/integrations/background_middleware.rb
coverband-6.1.2.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-6.1.1 lib/coverband/integrations/background_middleware.rb
coverband-6.1.0 lib/coverband/integrations/background_middleware.rb
coverband-6.0.3.rc.4 lib/coverband/integrations/background_middleware.rb
coverband-6.0.3.rc.3 lib/coverband/integrations/background_middleware.rb
coverband-6.0.3.rc.2 lib/coverband/integrations/background_middleware.rb
coverband-6.0.3.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-6.0.2 lib/coverband/integrations/background_middleware.rb
coverband-6.0.1 lib/coverband/integrations/background_middleware.rb
coverband-6.0.1.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-6.0.0 lib/coverband/integrations/background_middleware.rb
coverband-5.2.6.rc.6 lib/coverband/integrations/background_middleware.rb
coverband-5.2.3.2 lib/coverband/integrations/background_middleware.rb
coverband-5.2.6.rc.5 lib/coverband/integrations/background_middleware.rb
coverband-5.2.3.1 lib/coverband/integrations/background_middleware.rb
coverband-5.2.6.rc.4 lib/coverband/integrations/background_middleware.rb
coverband-5.2.6.rc.3 lib/coverband/integrations/background_middleware.rb