Sha256: ac266caad60e2ffe1b26f0b90cce977b50a87becb03875b77564ef41ac2885ac

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

module Aua::Agents::Konqueror
  def self.extend?(agent)
    agent.products.include?("KHTML") &&
    (agent.app_comments[1] =~ PATTERN ||
    agent.products.include?("Konqueror"))
  end

  PATTERN = /Konqueror\/([\d\.]+)/

  def type
    :Browser
  end

  def name
    @name ||= :Konqueror
  end

  def version
    @version ||= app_comments[1] =~ PATTERN && $1 || version_of("Konqueror")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aua-0.3.2 lib/aua/agents/konqueror.rb
aua-0.3.1 lib/aua/agents/konqueror.rb
aua-0.3.0 lib/aua/agents/konqueror.rb
aua-0.2.6 lib/aua/agents/konqueror.rb