Sha256: 9365450cd9fc92d2617841735efdec42e4ff59f828c8abf6636d29909fcd5eab

Contents?: true

Size: 830 Bytes

Versions: 6

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##
WhatWeb::Plugin.define "Meta-Author" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-10-14
  @version = "0.1"
  @description = "This plugin retrieves the @author = name from the meta name tag - info: http://www.webmarketingnow.com/tips/meta-tags-uncovered.html#author"

  # Matches #
  @matches = [

    # Get author's name
    { string: /<meta[^>^=]+name[\s]*=[\s]*['"]?author['"]?[^>^=]+content[\s]*=[\s]*['"]([^'^"^>]+)/i },
    { string: /<meta[^>^=]+content[\s]*=[\s]*['"]([^"^'^>]+)['"][^>^=]+name[\s]*=[\s]*['"]?author['"]?/i },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/meta-author.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/meta-author.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/meta-author.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/meta-author.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/meta-author.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/meta-author.rb