Sha256: 6af2617754d9b011efbd196a6fbafe232c3b55eb611729007966f289e15844be

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

module Aua::Agents::Konqueror
  def self.extend?(agent)
    agent.products.include?("KHTML") &&
    agent.app_comments[1] =~ PATTERN
  end
  
  PATTERN = /Konqueror\/([\d\.]+)/
  
  def type
    :Browser
  end
  
  def name
    @name ||= :Konqueror
  end
  
  def version
    @version ||= app_comments[1] =~ PATTERN && $1
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aua-0.2.2 lib/aua/agents/konqueror.rb
aua-0.2.1 lib/aua/agents/konqueror.rb
aua-0.2.0 lib/aua/agents/konqueror.rb
aua-0.1.3 lib/aua/agents/konqueror.rb
aua-0.1.2 lib/aua/agents/konqueror.rb
aua-0.1.1 lib/aua/agents/konqueror.rb
aua-0.1.0 lib/aua/agents/konqueror.rb