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-5.0.1 lib/coverband/integrations/background_middleware.rb
coverband-5.0.1.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.8 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.7 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.6 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.5 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.4 lib/coverband/integrations/background_middleware.rb
coverband-5.0.0.rc.3 lib/coverband/integrations/background_middleware.rb
coverband-4.2.7 lib/coverband/integrations/background_middleware.rb
coverband-4.2.7.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-4.2.6 lib/coverband/integrations/background_middleware.rb
coverband-4.2.5 lib/coverband/integrations/background_middleware.rb
coverband-4.2.5.rc.2 lib/coverband/integrations/background_middleware.rb
coverband-4.2.5.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-4.2.4 lib/coverband/integrations/background_middleware.rb
coverband-4.2.4.rc.3 lib/coverband/integrations/background_middleware.rb
coverband-4.2.4.rc.2 lib/coverband/integrations/background_middleware.rb
coverband-4.2.4.rc.1 lib/coverband/integrations/background_middleware.rb
coverband-4.2.3 lib/coverband/integrations/background_middleware.rb