aua-mite 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.2...master)
3
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.3...master)
4
+
5
+ ### 0.0.3 / 2011-02-16
6
+
7
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.2...v0.0.3)
8
+
9
+ * Added mite.air, mite.enterprise and mite.net support
10
+ * Added Anytime support
4
11
 
5
12
  ### 0.0.2 / 2011-01-28
6
13
 
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aua-mite (0.0.1)
4
+ aua-mite (0.0.2)
5
5
  aua (>= 0.1.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- aua (0.1.0)
10
+ aua (0.2.0)
11
11
  configuration (1.2.0)
12
12
  diff-lcs (1.1.2)
13
13
  growl (1.0.3)
@@ -37,7 +37,6 @@ PLATFORMS
37
37
  ruby
38
38
 
39
39
  DEPENDENCIES
40
- aua (>= 0.1.0)
41
40
  aua-mite!
42
41
  growl (>= 1.0.3)
43
42
  guard-rspec (>= 0.1.9)
@@ -0,0 +1,30 @@
1
+ module Aua::Agents::Anytime
2
+
3
+ def self.extend?(agent)
4
+ agent.app == "Anytime"
5
+ end
6
+
7
+ def type
8
+ :ApiClient
9
+ end
10
+
11
+ def name
12
+ :Anytime
13
+ end
14
+
15
+ def version
16
+ products[1]
17
+ end
18
+
19
+ def platform
20
+ @platform ||= app_comments.first =~ /^iPod/ ? :iPod : :iPhone
21
+ end
22
+
23
+ def os_version
24
+ @os_version ||= $1 if comments[1] && (comments[1][1] || "") =~ /iPhone OS ([\d\.]+)/
25
+ end
26
+
27
+ def os_name
28
+ :iOS
29
+ end
30
+ end
@@ -1,9 +1,11 @@
1
1
  module Aua::Agents::StandardMiteClient
2
2
 
3
- KNOWN_CLIENTS = %w(git2mite Mite-on-rails mite.php mite.desk mite-rb jmite Redmine2mite Mantis2mite Billomat hearttp centralstationcrm)
3
+ KNOWN_CLIENTS = %w(git2mite Mite-on-rails mite-rb jmite Redmine2mite Mantis2mite Billomat hearttp centralstationcrm)
4
+ MITE_STANDARD = /^mite\.([a-z]+)/
4
5
 
5
6
  def self.extend?(agent)
6
- KNOWN_CLIENTS.include?(agent.app)
7
+ KNOWN_CLIENTS.include?(agent.app) ||
8
+ agent.app =~ MITE_STANDARD
7
9
  end
8
10
 
9
11
  def type
@@ -16,6 +18,8 @@ module Aua::Agents::StandardMiteClient
16
18
  end
17
19
 
18
20
  def version
19
- super
21
+ return super unless app == "mite.net"
22
+ versions[2]
20
23
  end
24
+
21
25
  end
@@ -3,4 +3,4 @@ Dir["#{File.dirname(__FILE__)}/agents/*.rb"].each do |agent|
3
3
  end
4
4
 
5
5
  Aua::Agents.default << Aua::Agents::Fuerst << Aua::Agents::MiteGo <<
6
- Aua::Agents::StandardMiteClient << Aua::Agents::AllMite
6
+ Aua::Agents::StandardMiteClient << Aua::Agents::AllMite << Aua::Agents::Anytime
@@ -1,3 +1,3 @@
1
1
  module AuaMite
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -42,12 +42,28 @@ describe "Mite Extension" do
42
42
  { :type => :ApiClient, :name => :"Mite-on-rails", :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil },
43
43
  "git2mite/0.0.1" =>
44
44
  { :type => :ApiClient, :name => :git2mite, :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil },
45
+ "mite.air/0.93 (Windows Vista)" =>
46
+ { :type => :ApiClient, :name => :"mite.air", :version => "0.93", :os_name => :Windows, :os_version => "V", :platform => :Windows },
47
+ "mite.air/0.93 (Mac OS 10.5.8)" =>
48
+ { :type => :ApiClient, :name => :"mite.air", :version => "0.93", :os_name => nil, :os_version => nil, :platform => nil },
49
+ "mite.enterprise/0.1 (simple)" =>
50
+ { :type => :ApiClient, :name => :"mite.enterprise", :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil },
51
+ "mite.mobile/1.2 CFNetwork/485.12.7 Darwin/10.4.0" =>
52
+ { :type => :ApiClient, :name => :"mite.mobile", :version => "1.2", :os_name => :MacOSX, :os_version => "10.6.4", :platform => :Macintosh },
53
+ "mite.net - connector/1.2.1.0 (Microsoft Windows NT 6.1.7600.0)" =>
54
+ { :type => :ApiClient, :name => :"mite.net", :version => "1.2.1.0", :os_name => :Windows, :os_version => "NT 6.1.7600.0", :platform => :Windows },
45
55
 
46
56
  # mite.go
47
57
  "mite.go/1.0 CFNetwork/459 Darwin/10.0.0d3" =>
48
58
  { :type => :ApiClient, :name => :"mite.go", :version => "1.0", :os_name => :iOS, :os_version => nil, :platform => :iPhone },
49
59
  "mite.go/1.1 (iPhone1,2; iPhone OS 4.2.1; de)" =>
50
60
  { :type => :ApiClient, :name => :"mite.go", :version => "1.1", :os_name => :iOS, :os_version => "4.2.1", :platform => :iPhone },
61
+
62
+ # Anytime
63
+ "Anytime 1.0 (iPhone Simulator; iPhone OS 4.2; en_US)" =>
64
+ { :type => :ApiClient, :name => :Anytime, :version => "1.0", :os_name => :iOS, :os_version => "4.2", :platform => :iPhone },
65
+ "Anytime 1.0 (iPhone; iPhone OS 4.2.1; de_DE)" =>
66
+ { :type => :ApiClient, :name => :Anytime, :version => "1.0", :os_name => :iOS, :os_version => "4.2.1", :platform => :iPhone },
51
67
 
52
68
  # hearttp
53
69
  "hearttp/0.0.1" =>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sebastian Munz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-28 00:00:00 +01:00
17
+ date: 2011-02-16 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -115,6 +115,7 @@ files:
115
115
  - lib/aua-mite.rb
116
116
  - lib/aua-mite/agents.rb
117
117
  - lib/aua-mite/agents/all_mite.rb
118
+ - lib/aua-mite/agents/anytime.rb
118
119
  - lib/aua-mite/agents/fuerst.rb
119
120
  - lib/aua-mite/agents/mite_go.rb
120
121
  - lib/aua-mite/agents/standard_mite_client.rb