lib/aua-mite/agents/mighty_mite.rb in aua-mite-0.0.6 vs lib/aua-mite/agents/mighty_mite.rb in aua-mite-0.0.7

- old
+ new

@@ -1,9 +1,9 @@ module Aua::Agents::MightyMite def self.extend?(agent) - agent.app == "MightyMite" + agent.app == "MightyMite" || agent.app == "mighty-mite" end def type :ApiClient end @@ -11,8 +11,8 @@ def name :MightyMite end def version - @version ||= parts[1] && parts[1][0] + @version ||= app == "MightyMite" ? parts[1] && parts[1][0] : version_of("mighty-mite") end end \ No newline at end of file