r62403 - in /branches/upstream/libhttp-browserdetect-perl/current: Build.PL Changes INSTALL MANIFEST META.yml Makefile.PL README dist.ini lib/HTTP/BrowserDetect.pm t/author-critic.t t/create_config.pl t/useragents.yaml

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Wed Sep 8 05:53:06 UTC 2010


Author: ansgar-guest
Date: Wed Sep  8 05:52:44 2010
New Revision: 62403

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=62403
Log:
[svn-upgrade] new version libhttp-browserdetect-perl (1.18)

Added:
    branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl
Modified:
    branches/upstream/libhttp-browserdetect-perl/current/Build.PL
    branches/upstream/libhttp-browserdetect-perl/current/Changes
    branches/upstream/libhttp-browserdetect-perl/current/INSTALL
    branches/upstream/libhttp-browserdetect-perl/current/MANIFEST
    branches/upstream/libhttp-browserdetect-perl/current/META.yml
    branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL
    branches/upstream/libhttp-browserdetect-perl/current/README
    branches/upstream/libhttp-browserdetect-perl/current/dist.ini
    branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm
    branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t
    branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml

Modified: branches/upstream/libhttp-browserdetect-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/Build.PL?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Build.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Build.PL Wed Sep  8 05:52:44 2010
@@ -23,7 +23,7 @@
     'Olaf Alders <olaf at wundercounter.com> (current maintainer)'
   ],
   'dist_name' => 'HTTP-BrowserDetect',
-  'dist_version' => '1.17',
+  'dist_version' => '1.18',
   'license' => 'perl',
   'module_name' => 'HTTP::BrowserDetect',
   'recommends' => {},

Modified: branches/upstream/libhttp-browserdetect-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/Changes?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Changes (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Changes Wed Sep  8 05:52:44 2010
@@ -1,4 +1,7 @@
 Revision history for Perl extension HTTP::BrowserDetect.
+
+1.18 2010-09-06
+    - Added support for Netfront and Safari on Kindle
 
 1.17 2010-08-28
     - Added support for Mobile Safari, Links and Elinks (Jon Jensen)
@@ -7,7 +10,7 @@
 1.16 2010-08-19
     - Added support for the < 3.0 Safari public versions (Jon Jensen)
     - Added new UserAgents to useragents.yaml (Jon Jensen)
-    
+
 1.15 2010-08-18
     - Re-releasing after some folders unintentionally included in build
 

Modified: branches/upstream/libhttp-browserdetect-perl/current/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/INSTALL?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/INSTALL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/INSTALL Wed Sep  8 05:52:44 2010
@@ -1,29 +1,14 @@
 
 This is the Perl distribution HTTP-BrowserDetect.
 
-Installing HTTP-BrowserDetect is straightforward.
+## Installation
 
-## Installation with cpanm
-
-If you have cpanm, you only need one line:
-
-    % cpanm HTTP::BrowserDetect
-
-If you are installing into a system-wide directory, you may need to pass the
-"-S" flag to cpanm, which uses sudo to install the module:
-
-    % cpanm -S HTTP::BrowserDetect
-
-## Installing with the CPAN shell
-
-Alternatively, if your CPAN shell is set up, you should just be able to do:
+HTTP-BrowserDetect installation is straightforward.
+If your CPAN shell is set up, you should just be able to do
 
     % cpan HTTP::BrowserDetect
 
-## Manual installation
-
-As a last resort, you can manually install it. Download the tarball, untar it,
-then build it:
+Download it, unpack it, then build it as per the usual:
 
     % perl Makefile.PL
     % make && make test
@@ -32,13 +17,11 @@
 
     % make install
 
-If you are installing into a system-wide directory, you may need to run:
-
-    % sudo make install
-
 ## Documentation
 
-HTTP-BrowserDetect documentation is available as POD.
-You can run perldoc from a shell to read the documentation:
+HTTP-BrowserDetect documentation is available as in POD.
+So you can do:
 
     % perldoc HTTP::BrowserDetect
+
+to read the documentation with your favorite pager.

Modified: branches/upstream/libhttp-browserdetect-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/MANIFEST?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/MANIFEST (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/MANIFEST Wed Sep  8 05:52:44 2010
@@ -11,6 +11,7 @@
 lib/HTTP/BrowserDetect.pm
 t/01-detect.t
 t/author-critic.t
+t/create_config.pl
 t/release-pod-coverage.t
 t/release-pod-syntax.t
 t/useragents.yaml

Modified: branches/upstream/libhttp-browserdetect-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/META.yml?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/META.yml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/META.yml Wed Sep  8 05:52:44 2010
@@ -13,7 +13,7 @@
   ExtUtils::MakeMaker: 6.31
   Module::Build: 0.3601
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.102221, CPAN::Meta::Converter version 2.102160'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -25,4 +25,4 @@
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-BrowserDetect
   repository: http://github.com/oalders/http-browserdetect
-version: 1.17
+version: 1.18

Modified: branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL Wed Sep  8 05:52:44 2010
@@ -31,7 +31,7 @@
     'Exporter' => '0',
     'vars' => '0'
   },
-  'VERSION' => '1.17',
+  'VERSION' => '1.18',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: branches/upstream/libhttp-browserdetect-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/README?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/README (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/README Wed Sep  8 05:52:44 2010
@@ -3,7 +3,7 @@
     an HTTP user agent string
 
 VERSION
-    version 1.17
+    version 1.18
 
 SYNOPSIS
         use HTTP::BrowserDetect;
@@ -273,6 +273,7 @@
    iphone
    ipod
    ipad
+   kindle
    palm
    wap
    psp

Modified: branches/upstream/libhttp-browserdetect-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/dist.ini?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/dist.ini (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/dist.ini Wed Sep  8 05:52:44 2010
@@ -3,7 +3,7 @@
 license = Perl_5
 copyright_holder = Lee Semel
 copyright_year   = 2010
-version = 1.17
+version = 1.18
 main_module = lib/HTTP/BrowserDetect.pm
 
 [MetaResources]

Modified: branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm Wed Sep  8 05:52:44 2010
@@ -1,7 +1,7 @@
 use strict;
 package HTTP::BrowserDetect;
 BEGIN {
-  $HTTP::BrowserDetect::VERSION = '1.17';
+  $HTTP::BrowserDetect::VERSION = '1.18';
 }
 
 use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS);
@@ -37,7 +37,7 @@
     palm    audrey      iopener
     wap     blackberry  iphone
     ipod    ipad        ps3
-    psp
+    psp     kindle
 );
 
 # Browsers
@@ -226,6 +226,10 @@
     # Opera/9.80 (S60; SymbOS; Opera Mobi/320; U; sv) Presto/2.4.15 Version/10.00
 
     if ( $ua =~ m{\AOpera.*\sVersion/(\d*)\.(\d*)\z}i) {
+        $major = $1;
+        $minor = $2;
+    }
+    elsif ( $ua =~ m{NetFront/(\d*)\.(\d*) Kindle}i ) {
         $major = $1;
         $minor = $2;
     }
@@ -440,6 +444,7 @@
     $tests->{NETFRONT} = (
            index( $ua, "playstation 3" ) != -1
         || index( $ua, "playstation portable" ) != -1
+        || index( $ua, "netfront" ) != -1
     );
 
     # Devices
@@ -448,6 +453,7 @@
     $tests->{IPHONE}     = ( index( $ua, "iphone" ) != -1 );
     $tests->{IPOD}       = ( index( $ua, "ipod" ) != -1 );
     $tests->{IPAD}       = ( index( $ua, "ipad" ) != -1 );
+    $tests->{KINDLE}     = ( index( $ua, "kindle" ) != -1 );
     $tests->{AUDREY}     = ( index( $ua, "audrey" ) != -1 );
     $tests->{IOPENER}    = ( index( $ua, "i-opener" ) != -1 );
     $tests->{AVANTGO}    = ( index( $ua, "avantgo" ) != -1 );
@@ -1072,7 +1078,7 @@
 
 =head1 VERSION
 
-version 1.17
+version 1.18
 
 =head1 SYNOPSIS
 
@@ -1398,6 +1404,8 @@
 
 =head3 ipad
 
+=head3 kindle
+
 =head3 palm
 
 =head3 wap

Modified: branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t Wed Sep  8 05:52:44 2010
@@ -16,4 +16,5 @@
 
 eval "use Test::Perl::Critic";
 plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
+Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
 all_critic_ok();

Added: branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl?rev=62403&op=file
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl (added)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl Wed Sep  8 05:52:44 2010
@@ -1,0 +1,877 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Data::Dump qw( dump );
+use Test::More qw( no_plan );
+require_ok('HTTP::BrowserDetect');
+
+my @tests = (
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.5) Gecko/20031007 Firebird/0.7",
+    "0.7",
+    0,
+    0.7,
+    "Firefox",
+    "WinXP",
+    "1.5",
+    ["windows", "win32", "winnt", "winxp", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/1.1 (Windows 3.0; I)",
+    "1.1",
+    1,
+    "0.1",
+    "Netscape",
+    "Win3x",
+    undef,
+    ["netscape", "windows", "win3x", "win16"],
+  ],
+  [
+    "Mozilla/1.1 (Windows 3.1; I)",
+    "1.1",
+    1,
+    "0.1",
+    "Netscape",
+    "Win3x",
+    undef,
+    ["netscape", "windows", "win31", "win3x", "win16"],
+  ],
+  [
+    "Mozilla/2.0 (Win95; I)",
+    "2.0",
+    2,
+    0,
+    "Netscape",
+    "Win95",
+    undef,
+    ["netscape", "nav2", "windows", "win32", "win95"],
+  ],
+  [
+    "Mozilla/2.0 (compatible; MSIE 3.01; Windows 95)",
+    "3.01",
+    3,
+    .01,
+    "MSIE",
+    "Win95",
+    undef,
+    ["ie", "ie3", "windows", "win32", "win95"],
+  ],
+  [
+    "Mozilla/2.0 (compatible; MSIE 3.01; Windows NT)",
+    "3.01",
+    3,
+    .01,
+    "MSIE",
+    "WinNT",
+    undef,
+    ["ie", "ie3", "windows", "win32", "winnt"],
+  ],
+  [
+    "Mozilla/2.0 (compatible; MSIE 3.0; AOL 3.0; Windows 95)",
+    "3",
+    3,
+    0,
+    "AOL Browser",
+    "Win95",
+    undef,
+    ["ie", "ie3", "windows", "win32", "win95", "aol", "aol3"],
+  ],
+  [
+    "Mozilla/2.0 (compatible; MSIE 4.0; Windows 95)",
+    "4",
+    4,
+    0,
+    "MSIE",
+    "Win95",
+    undef,
+    ["ie", "ie4", "ie4up", "windows", "win32", "win95"],
+  ],
+  [
+    "Mozilla/3.0 (compatible; MSIE 4.0; Windows 95)",
+    "4.0",
+    4,
+    0,
+    "MSIE",
+    "Win95",
+    undef,
+    ["ie", "ie4", "ie4up", "windows", "win32", "win95"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)",
+    "4.01",
+    4,
+    0.01,
+    "MSIE",
+    "Win95",
+    undef,
+    ["ie", "ie4", "ie4up", "windows", "win32", "win95"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.0b2; Windows NT)",
+    "5.0",
+    5,
+    0,
+    "MSIE",
+    "WinNT",
+    undef,
+    ["ie", "ie5", "ie5up", "ie4up", "windows", "win32", "winnt"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)",
+    "5.5",
+    5,
+    0.5,
+    "MSIE",
+    "WinNT",
+    undef,
+    [
+      "ie",
+      "ie5",
+      "ie5up",
+      "ie55",
+      "ie55up",
+      "ie4up",
+      "windows",
+      "win32",
+      "winnt",
+    ],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) via proxy gateway Something/1.23",
+    "5.5",
+    5,
+    0.5,
+    "MSIE",
+    "Win2k",
+    undef,
+    [
+      "ie",
+      "ie5",
+      "ie5up",
+      "ie55",
+      "ie55up",
+      "ie4up",
+      "windows",
+      "win32",
+      "winnt",
+      "win2k",
+    ],
+  ],
+  [
+    "Mozilla/3.0 (Macintosh; I; PPC)",
+    "3.0",
+    3,
+    0,
+    "Netscape",
+    "Mac",
+    undef,
+    ["netscape", "nav3", "mac", "macppc"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.0; Win32)",
+    "5.0",
+    5,
+    0,
+    "MSIE",
+    undef,
+    undef,
+    ["ie", "ie4up", "ie5", "ie5up", "windows", "win32"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; Opera/3.0; Windows 4.10) 3.50",
+    "3.0",
+    3,
+    0,
+    "Opera",
+    undef,
+    undef,
+    ["opera", "opera3", "windows"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.0b1; Windows NT 5.0)",
+    "5.0",
+    5,
+    0,
+    "MSIE",
+    "Win2k",
+    undef,
+    [
+      "ie",
+      "ie4up",
+      "ie5",
+      "ie5up",
+      "windows",
+      "win32",
+      "winnt",
+      "win2k",
+    ],
+  ],
+  [
+    "Mozilla/4.06 [en] (Win98; I ;Nav)",
+    "4.06",
+    4,
+    0.06,
+    "Netscape",
+    "Win98",
+    undef,
+    ["netscape", "nav4", "nav4up", "windows", "win32", "win98"],
+  ],
+  [
+    "Mozilla/4.5 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386)",
+    "4.5",
+    4,
+    0.5,
+    "Netscape",
+    "Unix",
+    undef,
+    [
+      "netscape",
+      "nav4",
+      "nav4up",
+      "nav45",
+      "nav45up",
+      "bsd",
+      "freebsd",
+      "unix",
+      "x11",
+    ],
+  ],
+  [
+    "Mozilla/3.03Gold (Win95; I)",
+    "3.03",
+    3,
+    0.03,
+    "Netscape",
+    "Win95",
+    undef,
+    ["netscape", "nav3", "navgold", "windows", "win32", "win95"],
+  ],
+  ["Wget/1.4.5", "1.4", 1, 0.4, undef, undef, undef, ["wget", "robot"]],
+  [
+    "libwww-perl/5.11",
+    "5.11",
+    5,
+    0.11,
+    undef,
+    undef,
+    undef,
+    ["lwp", "robot"],
+  ],
+  [
+    "GetRight/3.2.1",
+    "3.2",
+    3,
+    0.2,
+    undef,
+    undef,
+    undef,
+    ["getright", "robot"],
+  ],
+  [
+    "Mozilla/3.0 (compatible; StarOffice/5.1; Linux)",
+    "5.1",
+    5,
+    0.1,
+    undef,
+    "Linux",
+    undef,
+    ["linux", "unix", "staroffice"],
+  ],
+  [
+    "Mozilla/3.0 (compatible; StarOffice/5.1; Win32)",
+    "5.1",
+    5,
+    0.1,
+    undef,
+    undef,
+    undef,
+    ["win32", "windows", "staroffice"],
+  ],
+  [
+    "iCab/Pre2.0 (Macintosh; I; PPC)",
+    "2.0",
+    2,
+    0,
+    undef,
+    "Mac",
+    undef,
+    ["mac", "macppc", "icab"],
+  ],
+  [
+    "Konqueror/1.1.2",
+    "1.1",
+    1,
+    0.1,
+    undef,
+    undef,
+    undef,
+    [
+      "konqueror"
+    ],
+    [
+      "robot", # RT #30705
+    ],
+  ],
+  [
+    "Lotus-Notes/4.5 ( OS/2 )",
+    "4.5",
+    4,
+    0.5,
+    undef,
+    "OS2",
+    undef,
+    ["lotusnotes", "os2"],
+  ],
+  #["Java1.0.2", "0.0", 0, 0, undef, undef, undef, ["java"]],
+  [
+    "Googlebot/1.0 (googlebot\@googlebot.com http://googlebot.com/)",
+    "1.0",
+    1,
+    0,
+    undef,
+    undef,
+    undef,
+    ["google", "robot"],
+  ],
+  ["Nokia-WAP-Toolkit/1.3beta", "1.3", 1, 0.3, undef, undef, undef, ["wap"]],
+  ["Nokia7110/1.0 (30.05)", "1.0", 1, 0, undef, undef, undef, ["wap"]],
+  ["UP.Browser/4.1.2a-XXXX", "4.1", 4, 0.1, undef, undef, undef, ["wap"]],
+  ["Wapalizer/1.0", "1.0", 1, 0, undef, undef, undef, ["wap"]],
+  ["YourWap/1.16", "1.16", 1, 0.16, undef, undef, undef, ["wap"]],
+  [
+    "AmigaVoyager/3.3.50 (AmigaOS/PPC)",
+    "3.3",
+    3,
+    0.3,
+    undef,
+    undef,
+    undef,
+    ["amiga"],
+  ],
+  [
+    "fetch/1.0 FreeBSD/4.0-CURRENT (i386)",
+    "1.0",
+    1,
+    0,
+    undef,
+    "Unix",
+    undef,
+    ["bsd", "freebsd", "unix", "robot"],
+  ],
+  [
+    "Emacs-W3/2.1.105 URL/1.267 ((Unix?) ; TTY ; sparc-sun-solaris2.3)",
+    "2.1",
+    2,
+    0.1,
+    undef,
+    "Unix",
+    undef,
+    ["emacs", "sun", "unix"],
+  ],
+  [
+    "Mozilla/5.001 (windows; U; NT4.0; en-us) Gecko/25250101",
+    "5.001",
+    5,
+    0.001,
+    "Netscape",
+    "WinNT",
+    undef,
+    [
+      "netscape",
+      "nav4up",
+      "nav45up",
+      "windows",
+      "winnt",
+      "win32",
+      "gecko",
+      "nav6",
+      "nav6up",
+      "mozilla",
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/5.001 (Macintosh; N; PPC; ja) Gecko/25250101 MegaCorpBrowser/1.0 (MegaCorp, Inc.)",
+    "5.001",
+    5,
+    0.001,
+    "Netscape",
+    "Mac",
+    undef,
+    [
+      "netscape",
+      "nav4up",
+      "nav45up",
+      "nav6",
+      "nav6up",
+      "mac",
+      "macppc",
+      "mozilla",
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/9.876 (X11; U; Linux 2.2.12-20 i686, en) Gecko/25250101 Netscape/5.432b1 (C-MindSpring)",
+    "5.432",
+    5,
+    0.432,
+    "Netscape",
+    "Linux",
+    undef,
+    [
+      "netscape",
+      "nav4up",
+      "nav45up",
+      "nav6",
+      "nav6up",
+      "linux",
+      "unix",
+      "mozilla",
+      "gecko",
+      "x11",
+    ],
+  ],
+  [
+    "TinyBrowser/2.0 (TinyBrowser Comment) Gecko/20201231",
+    "2.0",
+    2,
+    0,
+    undef,
+    undef,
+    undef,
+    ["gecko"],
+  ],
+  [
+    "TinyBrowser/2.0 (TinyBrowser Comment) Gecko/20201231",
+    "2.000",
+    2,
+    0,
+    undef,
+    undef,
+    undef,
+    ["gecko"],
+  ],
+  [
+    "Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040619 Firefox/0.9",
+    "0.9",
+    0,
+    0.9,
+    "Firefox",
+    "Unix",
+    "1.7",
+    ["unix", "freebsd", "bsd", "x11", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9",
+    "0.9",
+    0,
+    0.9,
+    "Firefox",
+    "WinXP",
+    "1.7",
+    ["windows", "win32", "winnt", "winxp", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040416 Firefox/0.8.0+",
+    "0.8",
+    0,
+    0.8,
+    "Firefox",
+    "Win2k",
+    "1.8a",
+    ["windows", "win32", "winnt", "win2k", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.6) Gecko/20040207 Firefox/0.8",
+    "0.8",
+    0,
+    0.8,
+    "Firefox",
+    "Linux",
+    "1.6",
+    ["unix", "linux", "x11", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20031002 Mozilla Firebird/0.6.1",
+    "0.6",
+    0,
+    0.6,
+    "Firefox",
+    "Linux",
+    "1.5a",
+    ["unix", "linux", "x11", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5",
+    "0.5",
+    0,
+    0.5,
+    "Firefox",
+    "WinNT",
+    "1.3a",
+    ["windows", "win32", "winnt", "firefox", "gecko"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLive",
+    "7.0",
+    7,
+    0,
+    "MSIE",
+    "WinVista",
+    undef,
+    [
+      "windows",
+      "win32",
+      "winnt",
+      "winvista",
+      "dotnet",
+      "ie",
+      "ie7",
+      "ie4up",
+      "ie5up",
+      "ie55up",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5",
+    "2.0",
+    2,
+    0,
+    "Chrome",
+    "WinVista",
+    undef,
+    [
+      "windows",
+      "win32",
+      "winnt",
+      "winvista",
+      "chrome",
+    ],
+    [
+      "safari",
+      "gecko",
+    ],
+  ],
+  # RT #48727
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19.1",
+    "4.0",
+    4,
+    0,
+    "Safari",
+    "WinVista",
+    undef,
+    [
+      "windows",
+      "win32",
+      "winnt",
+      "winvista",
+      "safari",
+    ],
+    [
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1",
+    "1.25",
+    1,
+    0.25,
+    "Safari",
+    "Mac OS X",
+    undef,
+    [
+      "mac",
+      "macosx",
+      "macppc",
+      "safari",
+    ],
+    [
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/106.2 (KHTML, like Gecko) Safari/100.1",
+    "1.0",
+    1,
+    0,
+    "Safari",
+    "Mac OS X",
+    undef,
+    [
+      "mac",
+      "macosx",
+      "macppc",
+      "safari",
+    ],
+    [
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/74 (KHTML, like Gecko) Safari/74",
+    "0.74",
+    0,
+    0.74,
+    "Safari",
+    "Mac OS X",
+    undef,
+    [
+      "mac",
+      "macosx",
+      "macppc",
+      "safari",
+    ],
+    [
+      "gecko",
+    ],
+  ],
+  [
+    "BlackBerry7730/3.7.1 UP.Link/5.1.2.5",
+    "3.7",
+    3,
+    0.7,
+    undef,
+    undef,
+    undef,
+    ["blackberry"],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
+    "6.0",
+    6,
+    0,
+    "MSIE",
+    "Win2k",
+    undef,
+    [
+      "windows",
+      "winnt",
+      "win2k",
+      "win32",
+      "ie",
+      "ie4up",
+      "ie5up",
+      "ie55up",
+      "ie6",
+      "dotnet",
+    ],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
+    "6.0",
+    6,
+    0,
+    "MSIE",
+    "WinXP",
+    undef,
+    [
+      "windows",
+      "winnt",
+      "winxp",
+      "win32",
+      "ie",
+      "ie4up",
+      "ie5up",
+      "ie55up",
+      "ie6",
+    ],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)",
+    "6.0",
+    6,
+    0,
+    "MSIE",
+    "WinXP",
+    undef,
+    [
+      "windows",
+      "winnt",
+      "winxp",
+      "win32",
+      "ie",
+      "ie4up",
+      "ie5up",
+      "ie55up",
+      "ie6",
+      "dotnet",
+    ],
+  ],
+  [
+    "Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC) ",
+    "5.22",
+    5,
+    0.22,
+    "MSIE",
+    "Mac",
+    undef,
+    ["mac", "macppc", "ie", "ie4up", "ie5", "ie5up"],
+  ],
+  [
+    "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02",
+    "7.02",
+    7,
+    0.02,
+    "Netscape",
+    "Mac OS X",
+    "1.0.2",
+    [
+      "mac",
+      "macppc",
+      "netscape",
+      "nav4up",
+      "nav45up",
+      "nav6up",
+      "gecko",
+      "macosx",
+      "mozilla",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (X11; U; Linux 2.4.3-20mdk i586; en-US; rv:0.9.1) Gecko/20010611",
+    "5",
+    5,
+    0,
+    "Netscape",
+    "Linux",
+    "0.9.1",
+    [
+      "linux",
+      "netscape",
+      "nav4up",
+      "nav45up",
+      "nav6",
+      "nav6up",
+      "unix",
+      "x11",
+      "gecko",
+      "mozilla",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (SymbianOS/9.1; U; en-us) AppleWebKit/413 (KHTML, like Gecko) Safari/413 UP.Link/6.3.1.15.0",
+    4.13,
+    4,
+    0.13,
+    "Safari",
+    undef,
+    undef,
+    [
+      "safari",
+    ],
+    [
+      "gecko",
+    ],
+  ],
+  [
+    "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008062901 IceWeasel/3.0",
+    3.0,
+    3,
+    0,
+    "Iceweasel",
+    undef,
+    undef,
+    ["windows", "win32", "winnt", "winxp", "firefox", "gecko",],
+  ],
+  [
+    "libcurl-agent/1.0",
+    1,
+    1,
+    0,
+    "curl",
+    undef,
+    undef,
+    ["curl"],
+  ],
+  [
+    "puf/0.93.2a (Linux 2.4.20-19.9; i686)",
+    0.93,
+    0,
+    0.93,
+    "puf",
+    undef,
+    undef,
+    ["puf","robot",],
+    ["mobile",],
+  ],
+  [
+    "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0_2 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5C1 Safari/525.20",
+    undef,
+    undef,
+    undef,
+    "safari",
+    undef,
+    undef,
+    ["safari", "mobile"],
+  ],
+  # test for uninitialized value warnings RT #8547
+  [
+    "Internetf Explorer 6 (MSIE 6; Windows XP)",
+  ],
+  # test for uninitialized value warnings RT #8547
+  [
+    "Links (2.1pre15; Linux 2.4.26-vc4 i586; x)",
+  ],
+
+  # These tests all have issues with returning undef rather than 0 for
+  # version numbers.  Need to explore this to see what the correct behaviour
+  # should be
+
+  #[
+  #  "AmigaVoyager (compatible; AmigaVoyager; AmigaOS)",
+  #  "0.0",
+  #  0,
+  #  0,
+  #  undef,
+  #  undef,
+  #  undef,
+  #  ["amiga"],
+  #],
+  #[
+  #  "AvantGo 3.2 (compatible; AvantGo 3.2)",
+  #  "0.0",
+  #  0,
+  #  0,
+  #  undef,
+  #  undef,
+  #  undef,
+  #  ["palm", "avantgo"],
+  #],
+  #["Nothing", undef, undef, 0, undef, undef, undef, [""]], # does this make sense?
+  #[undef, "0.0", 0, 0, undef, undef, undef, [""]],
+);
+
+
+use YAML::Tiny qw( Dump DumpFile );
+
+my $string = Dump( @tests );
+#print $string;
+
+my @yaml = ( );
+
+foreach my $test ( @tests ) {
+    my ( $ua, $version, $major, $minor, $browser, $os, $other, $match, $no_match ) = @{$test};
+    my $desc = {
+        useragent => $ua,
+        version => $version,
+        major   => $major,
+        minor   => $minor,
+        browser => $browser,
+        os      => $os,
+        other   => $other,
+        match   => $match,
+        no_match    => $no_match,
+    };
+
+    push @yaml, $desc;
+
+}
+
+my $yaml = Dump ( @yaml );
+
+print $yaml;
+
+DumpFile( 'useragents.yaml', @yaml );

Modified: branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml?rev=62403&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml Wed Sep  8 05:52:44 2010
@@ -2126,3 +2126,26 @@
   - links
 browser_string: Links
 os: Linux
+---
+useragent: 'Mozilla/4.0 (compatible; Linux 2.6.22) NetFront/3.4 Kindle/2.5 (screen 600x800; rotate)'
+match:
+  - kindle
+  - linux
+  - netfront
+browser_string: NetFront
+os: linux
+public_version: 3.4 
+public_major: 3 
+public_minor: 0.4 
+---
+useragent: 'Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate)'
+match:
+  - kindle
+  - linux
+  - safari
+browser_string: Safari 
+os: Linux
+public_version: 4.0 
+public_major: 4 
+public_minor: 0
+




More information about the Pkg-perl-cvs-commits mailing list