aua 0.1.2 → 0.1.3

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,14 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/aua/compare/v0.1.2...master)
3
+ [full changelog](http://github.com/yolk/aua/compare/v0.1.3...master)
4
+
5
+ ### 0.1.3 / 2011-01-28
6
+
7
+ [full changelog](http://github.com/yolk/aua/compare/v0.1.2...v0.1.3)
8
+
9
+ * Some Darwin build number additions
10
+ * Added Zend_Http_Client as ApiClient
11
+ * Added TumblrRSSSyndication as FeedReader
4
12
 
5
13
  ### 0.1.2 / 2011-01-28
6
14
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aua (0.1.1)
4
+ aua (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,28 +1,32 @@
1
1
  module Aua::Agents::ApiClients
2
- KNOWN_CLIENTS = %w(curl Zendesk Python-urllib Ruby PEAR NativeHost Java AppEngine-Google Twisted)
2
+ KNOWN_CLIENTS = %w(curl Zend_Http_Client Zendesk Python-urllib Ruby PEAR NativeHost Java AppEngine-Google Twisted)
3
3
 
4
4
  def self.extend?(agent)
5
5
  KNOWN_CLIENTS.include?(agent.app) ||
6
- agent.raw =~ /^Yahoo Pipes ([\d\.]+)$/ ||
7
- agent.app =~ /^Systemeinstellungen/ ||
8
- agent.app =~ /^SystemUIServer/
6
+ agent.raw =~ PATTERN_YAHOO_PIPES ||
7
+ agent.app =~ PATTERN_GERMAN_SYSTEM_PREFS ||
8
+ agent.app =~ PATTERN_SYSTEM_UI_SEVER
9
9
  end
10
10
 
11
+ PATTERN_YAHOO_PIPES = /^Yahoo Pipes ([\d\.]+)$/
12
+ PATTERN_GERMAN_SYSTEM_PREFS = /^Systemeinstellungen/
13
+ PATTERN_SYSTEM_UI_SEVER = /^SystemUIServer/
14
+
11
15
  def type
12
16
  :ApiClient
13
17
  end
14
18
 
15
19
  def name
16
20
  @name ||= begin
17
- if raw =~ /^Yahoo Pipes ([\d\.]+)$/
21
+ if raw =~ PATTERN_YAHOO_PIPES
18
22
  :YahooPipes
19
23
  elsif app == "PEAR"
20
24
  :PearPHP
21
25
  elsif app == "NativeHost"
22
26
  :CappucinosNativeHost
23
- elsif app =~ /^Systemeinstellungen/
27
+ elsif app =~ PATTERN_GERMAN_SYSTEM_PREFS
24
28
  :SystemPreferences
25
- elsif app =~ /^SystemUIServer/
29
+ elsif app =~ PATTERN_SYSTEM_UI_SEVER
26
30
  :SystemUIServer
27
31
  elsif app == "Twisted"
28
32
  :PythonTwistedPageGetter
@@ -2,7 +2,8 @@ module Aua::Agents::FeedReader
2
2
  KNOWN_CLIENTS = %w(AppleSyndication Netvibes Windows-RSS-Platform Vienna NewsGatorOnline NewsFire NetNewsWire MWFeedParser SimplePie MagpieRSS Feedfetcher-Google Apple-PubSub)
3
3
 
4
4
  def self.extend?(agent)
5
- KNOWN_CLIENTS.include?(agent.app)
5
+ KNOWN_CLIENTS.include?(agent.app) ||
6
+ (agent.app == "Tumblr" && agent.products.include?("RSS") && agent.products.include?("syndication"))
6
7
  end
7
8
 
8
9
  def type
@@ -10,6 +11,7 @@ module Aua::Agents::FeedReader
10
11
  end
11
12
 
12
13
  def name
14
+ return :TumblrRSSSyndication if app == "Tumblr"
13
15
  app.to_sym
14
16
  end
15
17
 
@@ -28,10 +28,12 @@ module Aua::OperatingSystems::Mac
28
28
  '9.7.0' => '10.5.7',
29
29
  '9.8.0' => '10.5.8',
30
30
  '10.0' => '10.6',
31
+ '10.0.0' => '10.6',
31
32
  '10.1.0' => '10.6.1',
32
33
  '10.2.0' => '10.6.2',
33
34
  '10.3.0' => '10.6.3',
34
35
  '10.4.0' => '10.6.4',
36
+ '10.4.1' => '10.6.4',
35
37
  '10.5.0' => '10.6.5',
36
38
  '10.6.0' => '10.6.6'
37
39
  }
@@ -1,3 +1,3 @@
1
1
  class Aua
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -291,6 +291,8 @@ describe Aua do
291
291
  { :type => :ApiClient, :name => :YahooPipes, :version => "2.0", :os_name => nil, :os_version => nil, :platform => nil },
292
292
  "Zendesk" =>
293
293
  { :type => :ApiClient, :name => :Zendesk, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
294
+ "Zend_Http_Client" =>
295
+ { :type => :ApiClient, :name => :Zend_Http_Client, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
294
296
  "Python-urllib/2.6" =>
295
297
  { :type => :ApiClient, :name => :"Python-urllib", :version => "2.6", :os_name => nil, :os_version => nil, :platform => nil },
296
298
  "Ruby" =>
@@ -317,8 +319,8 @@ describe Aua do
317
319
  { :type => :ApiClient, :name => :PythonTwistedPageGetter, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
318
320
 
319
321
  # Others
320
- "1PasswordThumbs/1 CFNetwork/454.11.5 Darwin/10.6.0 (i386) (MacBookPro4%2C1)" =>
321
- { :type => :Others, :name => :"1PasswordThumbs", :version => "1", :os_name => :MacOSX, :os_version => "10.6.6", :platform => :Macintosh },
322
+ "1PasswordThumbs/1 CFNetwork/454.11.5 Darwin/10.0.0 (i386) (MacBookPro4%2C1)" =>
323
+ { :type => :Others, :name => :"1PasswordThumbs", :version => "1", :os_name => :MacOSX, :os_version => "10.6", :platform => :Macintosh },
322
324
  "Mozilla/5.0 (Macintosh; Intel Mac OS X) Word/12.25.0" =>
323
325
  { :type => :Others, :name => :MSWord, :version => "12.25.0", :os_name => :MacOSX, :os_version => nil, :platform => :Macintosh },
324
326
  "Microsoft Office/14.0 (Windows NT 6.1; Microsoft Outlook 14.0.5128; Pro; ms-office; MSOffice 14)" =>
@@ -343,8 +345,8 @@ describe Aua do
343
345
  { :type => :FeedReader, :name => :Vienna, :version => "2.5.0.2501", :os_name => nil, :os_version => nil, :platform => nil },
344
346
  "NewsGatorOnline/2.0 (http://www.newsgator.com; 1 subscribers)" =>
345
347
  { :type => :FeedReader, :name => :NewsGatorOnline, :version => "2.0", :os_name => nil, :os_version => nil, :platform => nil },
346
- "NewsFire/84 CFNetwork/454.11.5 Darwin/10.6.0 (i386) (iMac11%2C3)" =>
347
- { :type => :FeedReader, :name => :NewsFire, :version => "84", :os_name => :MacOSX, :os_version => "10.6.6", :platform => :Macintosh },
348
+ "NewsFire/84 CFNetwork/454.11.5 Darwin/10.4.1 (i386) (iMac11%2C3)" =>
349
+ { :type => :FeedReader, :name => :NewsFire, :version => "84", :os_name => :MacOSX, :os_version => "10.6.4", :platform => :Macintosh },
348
350
  "NetNewsWire/3.2b24 (Mac OS X; http://www.newsgator.com/Individuals/NetNewsWire/)" =>
349
351
  { :type => :FeedReader, :name => :NetNewsWire, :version => "3.2b24", :os_name => nil, :os_version => nil, :platform => nil },
350
352
  "MWFeedParser" =>
@@ -363,6 +365,8 @@ describe Aua do
363
365
  { :type => :FeedReader, :name => :Netvibes, :version => nil, :os_name => nil, :os_version => nil, :platform => nil },
364
366
  "AppleSyndication/38" =>
365
367
  { :type => :FeedReader, :name => :AppleSyndication, :version => "38", :os_name => nil, :os_version => nil, :platform => nil },
368
+ "Tumblr/1.0 RSS syndication (+http://www.tumblr.com/) (support@tumblr.com)" =>
369
+ { :type => :FeedReader, :name => :TumblrRSSSyndication, :version => "1.0", :os_name => nil, :os_version => nil, :platform => nil },
366
370
 
367
371
  # SearchBots
368
372
  "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" =>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sebastian Munz