aua-mite 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c67f02e730575fcf96ad8ec555f5bb82d1bbaeb
4
- data.tar.gz: 0e15c405e696e125bf2c1753300e9f13f9b017fa
3
+ metadata.gz: d6d45709ef3ceefdff35952afc88e03dfc3807f4
4
+ data.tar.gz: 5ecdaaca83c1bf74a8c42fd17f076ddc3e00d7f6
5
5
  SHA512:
6
- metadata.gz: cce8abc391601e9f4ec04dd12e51888d2e6cf79789f8ef23096bd3aafbe022f29f31bdaf84312434deab71205323b76175eef0d95d9ceb7892e02adb963e0bb4
7
- data.tar.gz: 199bd25edd5984d9326b1faaf09baa014f5b0901779ee953f079dd235b6dabb816f0a5254ab1f27a188f821381e442d299a899b4c07ea326c59fda75ce3d4932
6
+ metadata.gz: 002eefdc2ddbc5c6f287292056b7541b029a39dbdc99ac32248fb53e000aefd6f2edc1dcfd86933b71a86c9c232e676b00ba396e1f002cc82a8e9661aeb7523a
7
+ data.tar.gz: 7a4ed098cf1a7520981f324120a7e6e83dedcba6510f39b026498b06ee207f67b5093b601041c3843957fca5b59bb980cace6807ceee282e429862401c6c1767
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p247
1
+ 2.2.2
data/CHANGES.md CHANGED
@@ -1,6 +1,17 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.5...master)
3
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.7...master)
4
+
5
+ ### 0.0.7 / 2015-08-05
6
+
7
+ [full changelog](http://github.com/yolk/aua-mite/compare/v0.0.6...v0.0.7)
8
+
9
+ * Added Clockson detection
10
+ * Anytime fixes
11
+ * Misc mobile mite clients
12
+ * Misc mite clients
13
+ * Use aua original specs after extending parsing
14
+ * mite.go 2 parsing fixed
4
15
 
5
16
  ### 0.0.5 / 2012-03-29
6
17
 
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  aua-mite
2
2
  =============
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/aua-mite.png)](http://badge.fury.io/rb/aua-mite) [![Build Status](https://travis-ci.org/yolk/aua-mite.png)](https://travis-ci.org/yolk/aua-mite)
5
+
4
6
  Extension for [aua](https://github.com/yolk/aua) to recognize custom mite api clients by there user agent string.
5
7
 
6
8
  Not very useful for anyone outside of mite/yolk. But maybe handy as a example of extending aua.
@@ -14,6 +16,6 @@ Installation
14
16
  BlaBla
15
17
  -------
16
18
 
17
- Copyright (c) 2011 Yolk Sebastian Munz & Julia Soergel GbR
19
+ Copyright (c) 2011-2013 Yolk Sebastian Munz & Julia Soergel GbR
18
20
 
19
21
  Beyond that, the implementation is licensed under the MIT License.
data/aua-mite.gemspec CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Sebastian Munz"]
10
10
  s.email = ["sebastian@yo.lk"]
11
+ s.license = 'MIT'
11
12
  s.homepage = "https://github.com/yolk/aua-mite"
12
13
  s.summary = %q{Extension for aua to recognize custom mite api clients by there user agent string.}
13
14
  s.description = %q{Extension for aua (https://github.com/yolk/aua) to recognize custom mite api clients by there user agent string. Not very useful for anyone outside of mite/yolk. But maybe handy as a example of extending aua.}
@@ -1,7 +1,7 @@
1
1
  module Aua::Agents::Anytime
2
2
 
3
3
  def self.extend?(agent)
4
- agent.app == "Anytime"
4
+ agent.app == "Anytime" || agent.app == "anytime"
5
5
  end
6
6
 
7
7
  def type
@@ -13,15 +13,27 @@ module Aua::Agents::Anytime
13
13
  end
14
14
 
15
15
  def version
16
- products[1]
16
+ products[1] || version_of("anytime") || version_of("Anytime")
17
17
  end
18
18
 
19
19
  def platform
20
- @platform ||= app_comments.first =~ /^iPod/ ? :iPod : :iPhone
20
+ @platform ||= begin
21
+ if app_comments.first =~ /^iPod/
22
+ :iPod
23
+ elsif app_comments.first =~ /^iPad/
24
+ :iPad
25
+ else
26
+ :iPhone
27
+ end
28
+ end
21
29
  end
22
30
 
23
31
  def os_version
24
- @os_version ||= $1 if comments[1] && (comments[1][1] || "") =~ /iPhone OS ([\d\.]+)/
32
+ @os_version ||= if comments[1] && (comments[1][1] || "") =~ /iPhone OS ([\d\.]+)/
33
+ $1
34
+ elsif app_comments[1] =~ /iOS ([\d\.]+)/
35
+ $1
36
+ end
25
37
  end
26
38
 
27
39
  def os_name
@@ -0,0 +1,42 @@
1
+ module Aua::Agents::Clockson
2
+
3
+ def self.extend?(agent)
4
+ agent.app == "Clockson" || agent.app == "clockson"
5
+ end
6
+
7
+ def type
8
+ :ApiClient
9
+ end
10
+
11
+ def version
12
+ (version_of(name) || version_of("clockson")).sub(/^v/, "")
13
+ end
14
+
15
+ def name
16
+ :Clockson
17
+ end
18
+
19
+ def platform
20
+ @platform ||= begin
21
+ if app_comments.first =~ /^iPod/
22
+ :iPod
23
+ elsif app_comments.first =~ /^iPad/
24
+ :iPad
25
+ else
26
+ :iPhone
27
+ end
28
+ end
29
+ end
30
+
31
+ def os_version
32
+ @os_version ||= begin
33
+ if app_comments[1] =~ /iOS ([\d\.]+)/
34
+ $1
35
+ end
36
+ end
37
+ end
38
+
39
+ def os_name
40
+ :iOS
41
+ end
42
+ end
@@ -1,7 +1,7 @@
1
1
  module Aua::Agents::MightyMite
2
2
 
3
3
  def self.extend?(agent)
4
- agent.app == "MightyMite"
4
+ agent.app == "MightyMite" || agent.app == "mighty-mite"
5
5
  end
6
6
 
7
7
  def type
@@ -13,6 +13,6 @@ module Aua::Agents::MightyMite
13
13
  end
14
14
 
15
15
  def version
16
- @version ||= parts[1] && parts[1][0]
16
+ @version ||= app == "MightyMite" ? parts[1] && parts[1][0] : version_of("mighty-mite")
17
17
  end
18
18
  end
@@ -1,14 +1,42 @@
1
1
  module Aua::Agents::Misc
2
2
 
3
3
  CLIENTS = {
4
- "OpenResearch-Dashboard" => "OpenResearch-Dashboard",
5
- "Mitey" => "Mitey",
6
- "my_app_name" => "my_app_name",
7
- "mite_summary" => "mite_summary"
4
+ "OpenResearch-Dashboard" => :"OpenResearch-Dashboard",
5
+ "Mitey" => :Mitey,
6
+ "my_app_name" => :my_app_name,
7
+ "mite_summary" => :mite_summary,
8
+ "Fire2mite" => :Fire2mite,
9
+ "jira-mite" => :jiramite,
10
+ "ledger2mite" => :ledger2mite,
11
+ "Mite2Excel" => :Mite2Excel,
12
+ "mite2mail" => :mite2mail,
13
+ "mite2pdf" => :mite2pdf,
14
+ "MiteBoard" => :MiteBoard,
15
+ "MiteFM" => :"MiteFM",
16
+ "mitecommander" => :"mitecommander",
17
+ "mityvoice" => :mityvoice,
18
+ "MiteYourMite" => :MiteYourMite,
19
+ "mite" => :mite,
20
+ "mitevaluator" => :mitevaluator,
21
+ "mitetracking" => :mitetracking,
22
+ "miteTestv1" => :"miteTestv1",
23
+ "mitesh" => :mitesh,
24
+ "mite+scopevisio" => :"mite+scopevisio",
25
+ "miter" => :miter,
26
+ "miteNX" => :"miteNX",
27
+ "mitemigrate" => :mitemigrate,
28
+ "mitematemarser" => :mitematemarser,
29
+ "MiteliciousToday" => :MiteliciousToday,
30
+ "Mitelicious" => :Mitelicious,
31
+ "mite_invoice" => :"mite-invoice"
8
32
  }
9
33
 
34
+ GIT2MITE_PATTERN = /^git(lab)?2mitev([\d\.]+)/
35
+ JIRAMITE_PATTERN = /^jira-mite-([\d\.]+)$/
36
+ MITE_STD_PATTERN = /^[Mm]ite-[\-a-zA-Z]+$/
37
+
10
38
  def self.extend?(agent)
11
- !!CLIENTS[agent.app]
39
+ !!CLIENTS[agent.app] || agent.app =~ MITE_STD_PATTERN || agent.app =~ GIT2MITE_PATTERN || agent.app =~ JIRAMITE_PATTERN
12
40
  end
13
41
 
14
42
  def type
@@ -16,10 +44,16 @@ module Aua::Agents::Misc
16
44
  end
17
45
 
18
46
  def name
19
- CLIENTS[app].to_sym
47
+ return :git2mite if app =~ GIT2MITE_PATTERN
48
+ return :jiramite if app =~ JIRAMITE_PATTERN
49
+ return app.to_sym if app =~ MITE_STD_PATTERN
50
+ CLIENTS[app]
20
51
  end
21
52
 
22
53
  def version
23
- nil
54
+ return $2 if app =~ GIT2MITE_PATTERN
55
+ return $1 if app =~ JIRAMITE_PATTERN
56
+ v = (super || version_of(app) || "").split(";", 2)[0]
57
+ v =~ /^com\./ ? nil : (v ? v.sub(/^v/, "") : v)
24
58
  end
25
59
  end
@@ -0,0 +1,59 @@
1
+ module Aua::Agents::MiscMobiles
2
+
3
+ def self.extend?(agent)
4
+ BYTEPOETS.include?(agent.app) ||
5
+ agent.app == "MightyMiteToday" ||
6
+ agent.app == "MiteClocks" ||
7
+ agent.app == "MiteTimer"
8
+ end
9
+
10
+ BYTEPOETS = ["BytepoetsMite", "com.bytepoets.mightymite", "com.bytepoets.MightyMite"]
11
+ IOS_VERSION_PATTERN = /(iOS|iPhone OS) ([\d\.]+)/
12
+
13
+ def type
14
+ :ApiClient
15
+ end
16
+
17
+ def version
18
+ version_of(name) || (parts[1] && parts[1][0] =~ /^[\d\.]+$/ ? parts[1][0] : nil) || version_of(app)
19
+ end
20
+
21
+ def name
22
+ BYTEPOETS.include?(app) ? :BytepoetsMite : app.to_sym
23
+ end
24
+
25
+ def platform
26
+ @platform ||= begin
27
+ if app_comments.first =~ /^iPod/
28
+ :iPod
29
+ elsif app_comments.first =~ /^iPad/
30
+ :iPad
31
+ else
32
+ :iPhone
33
+ end
34
+ end
35
+ end
36
+
37
+ def os_version
38
+ @os_version ||= begin
39
+ if app_comments[0] =~ IOS_VERSION_PATTERN ||
40
+ app_comments[1] =~ IOS_VERSION_PATTERN ||
41
+ comments[1] && comments[1][1] =~ IOS_VERSION_PATTERN
42
+ $2
43
+ end
44
+ end
45
+ end
46
+
47
+ def os_name
48
+ :iOS
49
+ end
50
+
51
+ def app_comments
52
+ org = super
53
+ if org && org != ""
54
+ org
55
+ else
56
+ comments[1]
57
+ end
58
+ end
59
+ end
@@ -1,7 +1,7 @@
1
1
  module Aua::Agents::MiteGo
2
2
 
3
3
  def self.extend?(agent)
4
- agent.app == "mite.go" &&
4
+ (agent.app == "mite.go" || agent.app == "MiteGo") &&
5
5
  ((agent.products.index("Darwin") && agent.products[agent.products.index("Darwin")] = "NoDarwin") || true)
6
6
  end
7
7
 
@@ -13,10 +13,16 @@ module Aua::Agents::MiteGo
13
13
  @name ||= :"mite.go"
14
14
  end
15
15
 
16
+ def version
17
+ super || version_of(app)
18
+ end
19
+
16
20
  def platform
17
21
  @platform ||= begin
18
22
  if app_comments.first =~ /^iPod/
19
23
  :iPod
24
+ elsif app_comments.first =~ /^iPad/
25
+ :iPad
20
26
  else
21
27
  :iPhone
22
28
  end
@@ -25,8 +31,8 @@ module Aua::Agents::MiteGo
25
31
 
26
32
  def os_version
27
33
  @os_version ||= begin
28
- if app_comments[1] =~ /iPhone OS ([\d\.]+)/
29
- $1
34
+ if app_comments[1] =~ /(iPhone OS|iOS) ([\d\.]+)/
35
+ $2
30
36
  end
31
37
  end
32
38
  end
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  Aua::Agents.default << Aua::Agents::Fuerst << Aua::Agents::MiteGo <<
6
6
  Aua::Agents::StandardMiteClient << Aua::Agents::AllMite <<
7
- Aua::Agents::Anytime << Aua::Agents::Eon << Aua::Agents::MightyMite <<
8
- Aua::Agents::Misc
7
+ Aua::Agents::Anytime << Aua::Agents::Eon << Aua::Agents::MightyMite <<
8
+ Aua::Agents::Misc << Aua::Agents::Clockson << Aua::Agents::MiscMobiles
@@ -1,3 +1,3 @@
1
1
  module AuaMite
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -60,8 +60,18 @@ describe "Mite Extension" do
60
60
  { :type => :ApiClient, :name => :"mite.go", :version => "1.0", :os_name => :iOS, :os_version => nil, :platform => :iPhone },
61
61
  "mite.go/1.1 (iPhone1,2; iPhone OS 4.2.1; de)" =>
62
62
  { :type => :ApiClient, :name => :"mite.go", :version => "1.1", :os_name => :iOS, :os_version => "4.2.1", :platform => :iPhone },
63
+ "MiteGo/2.0 (iPhone; iOS 9.0; Scale/3.00)" =>
64
+ { :type => :ApiClient, :name => :"mite.go", :version => "2.0", :os_name => :iOS, :os_version => "9.0", :platform => :iPhone },
65
+ "MiteGo/2.0 (iPad; iOS 7.1.2; Scale/2.00)" =>
66
+ { :type => :ApiClient, :name => :"mite.go", :version => "2.0", :os_name => :iOS, :os_version => "7.1.2", :platform => :iPad },
67
+ "MiteGo/20141030 (iPhone; iOS 8.1.1; Scale/2.00)" =>
68
+ { :type => :ApiClient, :name => :"mite.go", :version => "20141030", :os_name => :iOS, :os_version => "8.1.1", :platform => :iPhone },
69
+ "MiteGo/2.0-beta3 (iPhone Simulator; iOS 8.1; Scale/2.00)" =>
70
+ { :type => :ApiClient, :name => :"mite.go", :version => "2.0-beta3", :os_name => :iOS, :os_version => "8.1", :platform => :iPhone },
63
71
 
64
72
  # Anytime
73
+ "anytime/1.0 (iPhone; iOS 7.0.2; Scale/2.00)" =>
74
+ { :type => :ApiClient, :name => :Anytime, :version => "1.0", :os_name => :iOS, :os_version => "7.0.2", :platform => :iPhone },
65
75
  "Anytime 1.0 (iPhone Simulator; iPhone OS 4.2; en_US)" =>
66
76
  { :type => :ApiClient, :name => :Anytime, :version => "1.0", :os_name => :iOS, :os_version => "4.2", :platform => :iPhone },
67
77
  "Anytime 1.0 (iPhone; iPhone OS 4.2.1; de_DE)" =>
@@ -86,6 +96,44 @@ describe "Mite Extension" do
86
96
  # MightyMite
87
97
  "MightyMite 2.3.2 (Macintosh; Mac OS X 10.8.4; de_AT)" =>
88
98
  { :type => :ApiClient, :name => :MightyMite, :version => "2.3.2", :os_name => nil, :os_version => nil, :platform => nil},
99
+ "mighty-mite/0.1 CFNetwork/672.0.2 Darwin/12.5.0" =>
100
+ { :type => :ApiClient, :name => :MightyMite, :version => "0.1", :os_name => :MacOSX, :os_version => "10.8.5", :platform => :Macintosh},
101
+
102
+ # Clockson
103
+ "Clockson/1.01 (iPhone; iOS 7.1.1; Scale/2.00)" =>
104
+ { :type => :ApiClient, :name => :Clockson, :version => "1.01", :os_name => :iOS, :os_version => "7.1.1", :platform => :iPhone },
105
+ "Clockson/1.01 (iPhone; iOS 7.1.1; Scale/2.00),clockson/v1.0 (http://ninjaconcept.com/clockson)" =>
106
+ { :type => :ApiClient, :name => :Clockson, :version => "1.01", :os_name => :iOS, :os_version => "7.1.1", :platform => :iPhone },
107
+ "Clockson/1.0 CFNetwork/672.0.8 Darwin/14.0.0" =>
108
+ { :type => :ApiClient, :name => :Clockson, :version => "1.0", :os_name => :Darwin, :os_version => "14.0.0", :platform => :Darwin },
109
+ "Clockson/1.0 (iPad; iOS 7.1.1; Scale/2.00)" =>
110
+ { :type => :ApiClient, :name => :Clockson, :version => "1.0", :os_name => :iOS, :os_version => "7.1.1", :platform => :iPad },
111
+ "Clockson/1.0 (iPhone; iOS 8.0.2; Scale/2.00)" =>
112
+ { :type => :ApiClient, :name => :Clockson, :version => "1.0", :os_name => :iOS, :os_version => "8.0.2", :platform => :iPhone },
113
+ "Clockson/1.1 (iPhone; iOS 9.0; Scale/2.00),clockson/v1.0 (http://ninjaconcept.com/clockson)" =>
114
+ { :type => :ApiClient, :name => :Clockson, :version => "1.1", :os_name => :iOS, :os_version => "9.0", :platform => :iPhone },
115
+ "Clockson/1.1 (iPhone Simulator; iOS 8.1; Scale/2.00),clockson/v1.0 (http://ninjaconcept.com/clockson)" =>
116
+ { :type => :ApiClient, :name => :Clockson, :version => "1.1", :os_name => :iOS, :os_version => "8.1", :platform => :iPhone },
117
+ "clockson/v0.2 (https://github.com/basiszwo)" =>
118
+ { :type => :ApiClient, :name => :Clockson, :version => "0.2", :os_name => :iOS, :os_version => nil, :platform => :iPhone },
119
+ "clockson/v1.0 (http://ninjaconcept.com/clockson)" =>
120
+ { :type => :ApiClient, :name => :Clockson, :version => "1.0", :os_name => :iOS, :os_version => nil, :platform => :iPhone },
121
+
122
+ # Misc Mobiles
123
+ "BytepoetsMite 1.0 (iPhone; iPhone OS 6.0; de_AT)" =>
124
+ { :type => :ApiClient, :name => :BytepoetsMite, :version => "1.0", :os_name => :iOS, :os_version => "6.0", :platform => :iPhone },
125
+ "com.bytepoets.mightymite/1.0 (unknown, iPhone OS 6.0.2, iPhone, Scale/2.000000)" =>
126
+ { :type => :ApiClient, :name => :BytepoetsMite, :version => "1.0", :os_name => :iOS, :os_version => "6.0.2", :platform => :iPhone },
127
+ "com.bytepoets.MightyMite/2.3.2 (unknown)" =>
128
+ { :type => :ApiClient, :name => :BytepoetsMite, :version => "2.3.2", :os_name => :iOS, :os_version => nil, :platform => :iPhone },
129
+ "MightyMiteToday/1 (iPhone; iOS 8.1.1; Scale/2.00)" =>
130
+ { :type => :ApiClient, :name => :MightyMiteToday, :version => "1", :os_name => :iOS, :os_version => "8.1.1", :platform => :iPhone },
131
+ "MiteClocks/1.0 (iPhone; iOS 7.0.4; Scale/2.00)" =>
132
+ { :type => :ApiClient, :name => :MiteClocks, :version => "1.0", :os_name => :iOS, :os_version => "7.0.4", :platform => :iPhone },
133
+ "MiteClocks/1.0 CFNetwork/672.0.8 Darwin/14.0.0" =>
134
+ { :type => :ApiClient, :name => :MiteClocks, :version => "1.0", :os_name => :Darwin, :os_version => "14.0.0", :platform => :Darwin },
135
+ "MiteTimer/1.0 (iPhone Simulator; iOS 8.2; Scale/2.00)" =>
136
+ { :type => :ApiClient, :name => :MiteTimer, :version => "1.0", :os_name => :iOS, :os_version => "8.2", :platform => :iPhone },
89
137
 
90
138
  # Misc.
91
139
  "OpenResearch-Dashboard" =>
@@ -96,6 +144,105 @@ describe "Mite Extension" do
96
144
  { :type => :ApiClient, :name => :my_app_name, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
97
145
  "mite_summary" =>
98
146
  { :type => :ApiClient, :name => :mite_summary, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
147
+ "Fire2mite/v0.9 (user@email.com)" =>
148
+ { :type => :ApiClient, :name => :Fire2mite, :version => "0.9", :os_name => nil, :os_version => nil, :platform => nil},
149
+ "git2mitev0.1.0(Ondrej Brinkel <user@email.com>)" =>
150
+ { :type => :ApiClient, :name => :git2mite, :version => "0.1.0", :os_name => nil, :os_version => nil, :platform => nil},
151
+ "gitlab2mitev0.0.1(Ondrej Brinkel <user@email.com>)" =>
152
+ { :type => :ApiClient, :name => :git2mite, :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil},
153
+ "gitlab2mitev0.0.4(Ondrej Brinkel <user@email.com>)" =>
154
+ { :type => :ApiClient, :name => :git2mite, :version => "0.0.4", :os_name => nil, :os_version => nil, :platform => nil},
155
+ "jira-mite-0.1 (user@email.com)" =>
156
+ { :type => :ApiClient, :name => :jiramite, :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil},
157
+ "jira-mite" =>
158
+ { :type => :ApiClient, :name => :jiramite, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
159
+ "ledger2mite/v0.1" =>
160
+ { :type => :ApiClient, :name => :ledger2mite, :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil},
161
+ "Mite2Excel" =>
162
+ { :type => :ApiClient, :name => :Mite2Excel, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
163
+ "mite2mail" =>
164
+ { :type => :ApiClient, :name => :mite2mail, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
165
+ "mite2pdf" =>
166
+ { :type => :ApiClient, :name => :mite2pdf, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
167
+ "mite-backup/v1.0 (https://github.com/yolk)" =>
168
+ { :type => :ApiClient, :name => :"mite-backup", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
169
+ "mite-backup/0.1.1" =>
170
+ { :type => :ApiClient, :name => :"mite-backup", :version => "0.1.1", :os_name => nil, :os_version => nil, :platform => nil},
171
+ "mite-AlfredApp integration/v0.0.1 (http://mjays.net)" =>
172
+ { :type => :ApiClient, :name => :"mite-AlfredApp", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
173
+ "mite-cli" =>
174
+ { :type => :ApiClient, :name => :"mite-cli", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
175
+ "MiteBoard 1.0 rv:1 (Macintosh; Mac OS X 10.6.7; de_DE)" =>
176
+ { :type => :ApiClient, :name => :MiteBoard, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
177
+ "mitecommander/0.1.0 user@email.com" =>
178
+ { :type => :ApiClient, :name => :mitecommander, :version => "0.1.0", :os_name => nil, :os_version => nil, :platform => nil},
179
+ "mite-compiler/v1.0 (user@email.com)" =>
180
+ { :type => :ApiClient, :name => :"mite-compiler", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
181
+ "mite-exporter/v1.0" =>
182
+ { :type => :ApiClient, :name => :"mite-exporter", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
183
+ "mite-export/v1.0" =>
184
+ { :type => :ApiClient, :name => :"mite-export", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
185
+ "mite-faxport <0.0.1>" =>
186
+ { :type => :ApiClient, :name => :"mite-faxport", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
187
+ "MiteFM/v0.9 (user@email.com)" =>
188
+ { :type => :ApiClient, :name => :"MiteFM", :version => "0.9", :os_name => nil, :os_version => nil, :platform => nil},
189
+ "mite-import (stephan.poetschner@slice-dice.de)" =>
190
+ { :type => :ApiClient, :name => :"mite-import", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
191
+ "mite-info/v1.0.0 (user@email.com)" =>
192
+ { :type => :ApiClient, :name => :"mite-info", :version => "1.0.0", :os_name => nil, :os_version => nil, :platform => nil},
193
+ "mite_invoice/0.0.1" =>
194
+ { :type => :ApiClient, :name => :"mite-invoice", :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil},
195
+ "mite-invoice/0.1.0" =>
196
+ { :type => :ApiClient, :name => :"mite-invoice", :version => "0.1.0", :os_name => nil, :os_version => nil, :platform => nil},
197
+ "Mitelicious/com.kreait.Mitelicious (1; OS Version 8.1.3 (Build 12B466))" =>
198
+ { :type => :ApiClient, :name => :"Mitelicious", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
199
+ "MiteliciousToday/com.kreait.Mitelicious.MiteliciousToday (1; OS Version 8.2 (Build 12D508))" =>
200
+ { :type => :ApiClient, :name => :"MiteliciousToday", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
201
+ "mitematemarser/0.2.1 (user@email.com)" =>
202
+ { :type => :ApiClient, :name => :"mitematemarser", :version => "0.2.1", :os_name => nil, :os_version => nil, :platform => nil},
203
+ "mitemigrate/0.0.1" =>
204
+ { :type => :ApiClient, :name => :"mitemigrate", :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil},
205
+ "mite-ngn/v1.0 (user@email.com)" =>
206
+ { :type => :ApiClient, :name => :"mite-ngn", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
207
+ "miteNX" =>
208
+ { :type => :ApiClient, :name => :miteNX, :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
209
+ "Mite-Parser/v0.1.0" =>
210
+ { :type => :ApiClient, :name => :"Mite-Parser", :version => "0.1.0", :os_name => nil, :os_version => nil, :platform => nil},
211
+ "mite-php/v1.0" =>
212
+ { :type => :ApiClient, :name => :"mite-php", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
213
+ "mite-projects/v0.0.1" =>
214
+ { :type => :ApiClient, :name => :"mite-projects", :version => "0.0.1", :os_name => nil, :os_version => nil, :platform => nil},
215
+ "mite-py" =>
216
+ { :type => :ApiClient, :name => :"mite-py", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
217
+ "miter" =>
218
+ { :type => :ApiClient, :name => :"miter", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
219
+ "mite-reader/0.1;mite-rb/0.5.1" =>
220
+ { :type => :ApiClient, :name => :"mite-reader", :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil},
221
+ "mite-rest-test" =>
222
+ { :type => :ApiClient, :name => :"mite-rest-test", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
223
+ "mite-salary/v1.0 (user@email.com)" =>
224
+ { :type => :ApiClient, :name => :"mite-salary", :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil},
225
+ "mite+scopevisio/0.1;mite-rb/0.5.3" =>
226
+ { :type => :ApiClient, :name => :"mite+scopevisio", :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil},
227
+ "mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite+scopevisio/0.1;mite-rb/0.5.3" =>
228
+ { :type => :ApiClient, :name => :"mite+scopevisio", :version => "0.1", :os_name => nil, :os_version => nil, :platform => nil},
229
+ "mitesh/v0.0 (http://martinpallmann.de)" =>
230
+ { :type => :ApiClient, :name => :"mitesh", :version => "0.0", :os_name => nil, :os_version => nil, :platform => nil},
231
+
232
+ "mite-test/v1.2.3" =>
233
+ { :type => :ApiClient, :name => :"mite-test", :version => "1.2.3", :os_name => nil, :os_version => nil, :platform => nil},
234
+ "miteTestv1/v1.2.3" =>
235
+ { :type => :ApiClient, :name => :"miteTestv1", :version => "1.2.3", :os_name => nil, :os_version => nil, :platform => nil},
236
+ "mitetracking/v2.2.3" =>
237
+ { :type => :ApiClient, :name => :"mitetracking", :version => "2.2.3", :os_name => nil, :os_version => nil, :platform => nil},
238
+ "mite/v1.2.3" =>
239
+ { :type => :ApiClient, :name => :"mite", :version => "1.2.3", :os_name => nil, :os_version => nil, :platform => nil},
240
+ "mitevaluator (user@email.com)" =>
241
+ { :type => :ApiClient, :name => :"mitevaluator", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
242
+ "MiteYourMite" =>
243
+ { :type => :ApiClient, :name => :"MiteYourMite", :version => nil, :os_name => nil, :os_version => nil, :platform => nil},
244
+ "mityvoice/v1.2.5" =>
245
+ { :type => :ApiClient, :name => :"mityvoice", :version => "1.2.5", :os_name => nil, :os_version => nil, :platform => nil},
99
246
  }
100
247
 
101
248
  EXAMPLES_MITE.each do |string, values|
@@ -111,3 +258,8 @@ describe "Mite Extension" do
111
258
 
112
259
  end
113
260
 
261
+ aua_specs_path = File.expand_path("../../../aua/spec/aua_spec.rb", __FILE__)
262
+ if File.exists?(aua_specs_path)
263
+ require aua_specs_path
264
+ end
265
+
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aua-mite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-18 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aua
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.4.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: guard-rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.1.9
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.1.9
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: growl
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.0.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.0.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rb-fsevent
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.3.9
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.3.9
83
83
  description: Extension for aua (https://github.com/yolk/aua) to recognize custom mite
@@ -89,9 +89,9 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
93
- - .ruby-version
94
- - .travis.yml
92
+ - ".gitignore"
93
+ - ".ruby-version"
94
+ - ".travis.yml"
95
95
  - CHANGES.md
96
96
  - Gemfile
97
97
  - Guardfile
@@ -103,17 +103,20 @@ files:
103
103
  - lib/aua-mite/agents.rb
104
104
  - lib/aua-mite/agents/all_mite.rb
105
105
  - lib/aua-mite/agents/anytime.rb
106
+ - lib/aua-mite/agents/clockson.rb
106
107
  - lib/aua-mite/agents/eon.rb
107
108
  - lib/aua-mite/agents/fuerst.rb
108
109
  - lib/aua-mite/agents/mighty_mite.rb
109
110
  - lib/aua-mite/agents/misc.rb
111
+ - lib/aua-mite/agents/misc_mobiles.rb
110
112
  - lib/aua-mite/agents/mite_go.rb
111
113
  - lib/aua-mite/agents/standard_mite_client.rb
112
114
  - lib/aua-mite/version.rb
113
115
  - spec/aua-mite_spec.rb
114
116
  - spec/spec_helper.rb
115
117
  homepage: https://github.com/yolk/aua-mite
116
- licenses: []
118
+ licenses:
119
+ - MIT
117
120
  metadata: {}
118
121
  post_install_message:
119
122
  rdoc_options: []
@@ -121,17 +124,17 @@ require_paths:
121
124
  - lib
122
125
  required_ruby_version: !ruby/object:Gem::Requirement
123
126
  requirements:
124
- - - '>='
127
+ - - ">="
125
128
  - !ruby/object:Gem::Version
126
129
  version: '0'
127
130
  required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  requirements:
129
- - - '>='
132
+ - - ">="
130
133
  - !ruby/object:Gem::Version
131
134
  version: '0'
132
135
  requirements: []
133
136
  rubyforge_project: aua-mite
134
- rubygems_version: 2.0.3
137
+ rubygems_version: 2.4.5
135
138
  signing_key:
136
139
  specification_version: 4
137
140
  summary: Extension for aua to recognize custom mite api clients by there user agent