Sha256: 5c074c5c076e3c2c18db4553018f2994dcd83247915c1faecfdadea7d9894fc4
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true module SiteHealth # Checks if HTML-meta title is present class PageNotFound < Checker name 'page_not_found' issue_types( not_found: { title: 'Page not found', detail: 'The server responded with 404 - page not found.', severity: :medium, priority: :high, } ) protected def check if page.missing? add_data(not_found: true) add_issue_type(:not_found) return end add_data(not_found: false) end end SiteHealth.register_checker(PageNotFound) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
site_health-0.2.0 | lib/site_health/checkers/page_not_found.rb |