class Intrigue::Ident::Check::Zeit

Public Instance Methods

generate_checks(url) click to toggle source
# File lib/checks/zeit.rb, line 6
def generate_checks(url)
  [
    {
      :type => "application",
      :vendor =>"Zeit",
      :product =>"Next.js",
      :match_details =>"x-powered-by header",
      :references => ["https://zeit.co/blog/next"],
      :match_type => :content_headers,
      :match_content =>  /x-powered-by: Next.js/i,
      :dynamic_version => lambda { |x|
        _first_header_capture(x,/sx-powered-by: Next.js\ (.*)/i)
      },
      :examples => ["http://static.invisionapp.com:80"],
      :paths => ["#{url}"]
    }
  ]
end