Sha256: 855c2d33611e68746ff8a7fd52d14815b4ebaa9be911d3cef4d509504ad7ab12

Contents?: true

Size: 243 Bytes

Versions: 69

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

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

    def call(env)
      @app.call(env)
    ensure
      Collectors::Coverage.instance.report_coverage
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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