Sha256: ec719519af5491ef4c8543b1be7fee53747d4849ac98ee3680064c8e0ab56337
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require "base64" require "coverband" begin require "rack" rescue LoadError puts "error loading Coverband web reporter as Rack is not available" end module Coverband module Reporters class WebPager < Web def index notice = "<strong>Notice:</strong> #{Rack::Utils.escape_html(request.params["notice"])}<br/>" notice = request.params["notice"] ? notice : "" # TODO: remove the call to the store render empty table Coverband::Reporters::HTMLReport.new(Coverband.configuration.store, page: (request.params["page"] || 1).to_i, static: false, base_path: base_path, notice: notice, open_report: false).report end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-6.0.3.rc.3 | lib/coverband/reporters/web_pager.rb |
coverband-6.0.3.rc.2 | lib/coverband/reporters/web_pager.rb |
coverband-6.0.3.rc.1 | lib/coverband/reporters/web_pager.rb |