aua-mite 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.md CHANGED
@@ -1,6 +1,12 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.3...master)
3
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.4...master)
4
+
5
+ ### 0.0.4 / 2011-02-16
6
+
7
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.3...v0.0.4)
8
+
9
+ * Added TimeLog support
4
10
 
5
11
  ### 0.0.3 / 2011-02-16
6
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aua-mite (0.0.2)
4
+ aua-mite (0.0.3)
5
5
  aua (>= 0.1.0)
6
6
 
7
7
  GEM
@@ -1,8 +1,9 @@
1
1
  module Aua::Agents::Fuerst
2
2
 
3
+ PATTERN = /^(DynaMite|GrandTotal|TimeLog)/
4
+
3
5
  def self.extend?(agent)
4
- agent.app == "DynaMite" || agent.app == "GrandTotal" ||
5
- agent.app =~ /^DynaMite/ || agent.app =~ /^GrandTotal/
6
+ agent.app =~ PATTERN
6
7
  end
7
8
 
8
9
  def type
@@ -10,13 +11,13 @@ module Aua::Agents::Fuerst
10
11
  end
11
12
 
12
13
  def name
13
- @name ||= app =~ /^GrandTotal/ ? :GrandTotal : :DynaMite
14
+ @name ||= app.match(PATTERN)[1].to_sym
14
15
  end
15
16
 
16
17
  def version
17
18
  @version ||= begin
18
- return versions.first if app == "DynaMite" || app == "GrandTotal"
19
- app.sub(/^DynaMite|GrandTotal/, "")
19
+ return versions.first if app == "DynaMite" || app == "GrandTotal" || app == "TimeLog"
20
+ app.sub(PATTERN, "")
20
21
  end
21
22
  end
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module AuaMite
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -52,6 +52,8 @@ describe "Mite Extension" do
52
52
  { :type => :ApiClient, :name => :"mite.mobile", :version => "1.2", :os_name => :MacOSX, :os_version => "10.6.4", :platform => :Macintosh },
53
53
  "mite.net - connector/1.2.1.0 (Microsoft Windows NT 6.1.7600.0)" =>
54
54
  { :type => :ApiClient, :name => :"mite.net", :version => "1.2.1.0", :os_name => :Windows, :os_version => "NT 6.1.7600.0", :platform => :Windows },
55
+ "TimeLog/4.5.7 CFNetwork/454.11.5 Darwin/10.6.0 (i386) (MacBookPro6%2C1)" =>
56
+ { :type => :ApiClient, :name => :TimeLog, :version => "4.5.7", :os_name => :MacOSX, :os_version => "10.6.6", :platform => :Macintosh },
55
57
 
56
58
  # mite.go
57
59
  "mite.go/1.0 CFNetwork/459 Darwin/10.0.0d3" =>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sebastian Munz