Sha256: f467fbee1e4770665bbf613c3bcf7c003952c3bcb7d26d21d6515362dd7399a1
Contents?: true
Size: 661 Bytes
Versions: 5
Compression:
Stored size: 661 Bytes
Contents
module Aua::Agents::Others KNOWN_CLIENTS = %w(1PasswordThumbs) def self.extend?(agent) KNOWN_CLIENTS.include?(agent.app) || (agent.app == "Microsoft" && agent.products[1] == "Office") || agent.products[-1] == "Word" end def type :Others end def name @name ||= begin if app == "Microsoft" && products[1] == "Office" :MSOffice elsif products[-1] == "Word" :MSWord else app.to_sym end end end def version @version ||= begin return version_of("Word") if name == :MSWord return version_of("Office") if name == :MSOffice super end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
aua-0.2.0 | lib/aua/agents/others.rb |
aua-0.1.3 | lib/aua/agents/others.rb |
aua-0.1.2 | lib/aua/agents/others.rb |
aua-0.1.1 | lib/aua/agents/others.rb |
aua-0.1.0 | lib/aua/agents/others.rb |