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