lib/aua/agents/others.rb in aua-0.2.0 vs lib/aua/agents/others.rb in aua-0.2.1
- old
+ new
@@ -1,7 +1,7 @@
module Aua::Agents::Others
- KNOWN_CLIENTS = %w(1PasswordThumbs)
+ KNOWN_CLIENTS = %w(1PasswordThumbs 1PasswordThumbs1)
def self.extend?(agent)
KNOWN_CLIENTS.include?(agent.app) ||
(agent.app == "Microsoft" && agent.products[1] == "Office") ||
agent.products[-1] == "Word"
@@ -15,19 +15,22 @@
@name ||= begin
if app == "Microsoft" && products[1] == "Office"
:MSOffice
elsif products[-1] == "Word"
:MSWord
+ elsif app == "1PasswordThumbs1"
+ :"1PasswordThumbs"
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
+ return "1" if app == "1PasswordThumbs1"
super
end
end
end
\ No newline at end of file