Class: Intrigue::Ident::Check::Zeit
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#generate_checks(url) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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 |