aua 0.2.0 → 0.2.1

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/compare/v0.2.0...master)
3
+ [full changelog](http://github.com/yolk/aua/compare/v0.2.1...master)
4
+
5
+ ### 0.2.1 / 2011-01-28
6
+
7
+ [full changelog](http://github.com/yolk/aua/compare/v0.2.0...v0.2.1)
8
+
9
+ * Added support for facebookexternalhit, Wget and others
4
10
 
5
11
  ### 0.2.0 / 2011-01-28
6
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aua (0.1.3)
4
+ aua (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  module Aua::Agents::ApiClients
2
- KNOWN_CLIENTS = %w(curl Zend_Http_Client Zendesk Python-urllib Ruby PEAR NativeHost Java AppEngine-Google Twisted)
2
+ KNOWN_CLIENTS = %w(facebookexternalhit Wget curl Zend_Http_Client Zendesk Python-httplib2 Python-urllib Ruby PEAR HTTP_Request2 NativeHost Java AppEngine-Google Twisted)
3
3
 
4
4
  def self.extend?(agent)
5
5
  KNOWN_CLIENTS.include?(agent.app) ||
@@ -20,8 +20,8 @@ module Aua::Agents::ApiClients
20
20
  @name ||= begin
21
21
  if raw =~ PATTERN_YAHOO_PIPES
22
22
  :YahooPipes
23
- elsif app == "PEAR"
24
- :PearPHP
23
+ elsif app == "PEAR" || app == "HTTP_Request2"
24
+ :PearPHPHttpRequest
25
25
  elsif app == "NativeHost"
26
26
  :CappucinosNativeHost
27
27
  elsif app =~ PATTERN_GERMAN_SYSTEM_PREFS
@@ -1,5 +1,5 @@
1
1
  module Aua::Agents::Others
2
- KNOWN_CLIENTS = %w(1PasswordThumbs)
2
+ KNOWN_CLIENTS = %w(1PasswordThumbs 1PasswordThumbs1)
3
3
 
4
4
  def self.extend?(agent)
5
5
  KNOWN_CLIENTS.include?(agent.app) ||
@@ -17,6 +17,8 @@ module Aua::Agents::Others
17
17
  :MSOffice
18
18
  elsif products[-1] == "Word"
19
19
  :MSWord
20
+ elsif app == "1PasswordThumbs1"
21
+ :"1PasswordThumbs"
20
22
  else
21
23
  app.to_sym
22
24
  end
@@ -27,6 +29,7 @@ module Aua::Agents::Others
27
29
  @version ||= begin
28
30
  return version_of("Word") if name == :MSWord
29
31
  return version_of("Office") if name == :MSOffice
32
+ return "1" if app == "1PasswordThumbs1"
30
33
  super
31
34
  end
32
35
  end
data/lib/aua/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Aua
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/spec/aua_spec.rb CHANGED
@@ -287,6 +287,10 @@ describe Aua do
287
287
  # ApiClients
288
288
  "curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 OpenSSL/0.9.8l zlib/1.2.3" =>
289
289
  { :type => :ApiClient, :name => :curl, :version => "7.20.0", :os_name => :Linux, :os_version => nil, :platform => :X11 },
290
+ "Wget/1.12 (linux-gnu)" =>
291
+ { :type => :ApiClient, :name => :Wget, :version => "1.12", :os_name => :Linux, :os_version => nil, :platform => :X11 },
292
+ "Wget/1.10.1 (simple)" =>
293
+ { :type => :ApiClient, :name => :Wget, :version => "1.10.1", :os_name => nil, :os_version => nil, :platform => nil },
290
294
  "Yahoo Pipes 2.0" =>
291
295
  { :type => :ApiClient, :name => :YahooPipes, :version => "2.0", :os_name => nil, :os_version => nil, :platform => nil },
292
296
  "Zendesk" =>
@@ -295,10 +299,14 @@ describe Aua do
295
299
  { :type => :ApiClient, :name => :Zend_Http_Client, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
296
300
  "Python-urllib/2.6" =>
297
301
  { :type => :ApiClient, :name => :"Python-urllib", :version => "2.6", :os_name => nil, :os_version => nil, :platform => nil },
302
+ "Python-httplib2/$Rev$ (simple)" =>
303
+ { :type => :ApiClient, :name => :"Python-httplib2", :version => "$Rev$", :os_name => nil, :os_version => nil, :platform => nil },
298
304
  "Ruby" =>
299
305
  { :type => :ApiClient, :name => :Ruby, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
300
306
  "PEAR HTTP_Request class ( http://pear.php.net/ )" =>
301
- { :type => :ApiClient, :name => :PearPHP, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
307
+ { :type => :ApiClient, :name => :PearPHPHttpRequest, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
308
+ "HTTP_Request2/0.5.1 (http://pear.php.net/package/http_request2) PHP/5.3.2" =>
309
+ { :type => :ApiClient, :name => :PearPHPHttpRequest, :version => "0.5.1", :os_name => nil, :os_version => nil, :platform => nil },
302
310
  "NativeHost" =>
303
311
  { :type => :ApiClient, :name => :CappucinosNativeHost, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
304
312
  "Java/1.6.0_20" =>
@@ -317,10 +325,14 @@ describe Aua do
317
325
  { :type => :ApiClient, :name => :"AppEngine-Google", :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
318
326
  "Twisted PageGetter" =>
319
327
  { :type => :ApiClient, :name => :PythonTwistedPageGetter, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
328
+ "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" =>
329
+ { :type => :ApiClient, :name => :facebookexternalhit, :version => "1.1", :os_name => nil, :os_version => nil, :platform => nil },
320
330
 
321
331
  # Others
322
332
  "1PasswordThumbs/1 CFNetwork/454.11.5 Darwin/10.0.0 (i386) (MacBookPro4%2C1)" =>
323
333
  { :type => :Others, :name => :"1PasswordThumbs", :version => "1", :os_name => :MacOSX, :os_version => "10.6", :platform => :Macintosh },
334
+ "1PasswordThumbs1 CFNetwork/438.16 Darwin/9.8.0 (i386) (MacBook5%2C1)" =>
335
+ { :type => :Others, :name => :"1PasswordThumbs", :version => "1", :os_name => :MacOSX, :os_version => "10.5.8", :platform => :Macintosh },
324
336
  "Mozilla/5.0 (Macintosh; Intel Mac OS X) Word/12.25.0" =>
325
337
  { :type => :Others, :name => :MSWord, :version => "12.25.0", :os_name => :MacOSX, :os_version => nil, :platform => :Macintosh },
326
338
  "Microsoft Office/14.0 (Windows NT 6.1; Microsoft Outlook 14.0.5128; Pro; ms-office; MSOffice 14)" =>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
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