r62128 - 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

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Aug 28 14:13:28 UTC 2010


Author: gregoa
Date: Sat Aug 28 14:13:19 2010
New Revision: 62128

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

Removed:
    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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Build.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Build.PL Sat Aug 28 14:13:19 2010
@@ -23,7 +23,7 @@
     'Olaf Alders <olaf at wundercounter.com> (current maintainer)'
   ],
   'dist_name' => 'HTTP-BrowserDetect',
-  'dist_version' => '1.16',
+  'dist_version' => '1.17',
   '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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Changes (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Changes Sat Aug 28 14:13:19 2010
@@ -1,4 +1,8 @@
 Revision history for Perl extension HTTP::BrowserDetect.
+
+1.17 2010-08-28
+    - Added support for Mobile Safari, Links and Elinks (Jon Jensen)
+    - Added more UserAgents to test suite (Jon Jensen)
 
 1.16 2010-08-19
     - Added support for the < 3.0 Safari public versions (Jon Jensen)

Modified: branches/upstream/libhttp-browserdetect-perl/current/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhttp-browserdetect-perl/current/INSTALL?rev=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/INSTALL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/INSTALL Sat Aug 28 14:13:19 2010
@@ -1,14 +1,29 @@
 
 This is the Perl distribution HTTP-BrowserDetect.
 
-## Installation
+Installing HTTP-BrowserDetect is straightforward.
 
-HTTP-BrowserDetect installation is straightforward.
-If your CPAN shell is set up, you should just be able to do
+## 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:
 
     % cpan HTTP::BrowserDetect
 
-Download it, unpack it, then build it as per the usual:
+## Manual installation
+
+As a last resort, you can manually install it. Download the tarball, untar it,
+then build it:
 
     % perl Makefile.PL
     % make && make test
@@ -17,11 +32,13 @@
 
     % 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 in POD.
-So you can do:
+HTTP-BrowserDetect documentation is available as POD.
+You can run perldoc from a shell to read the documentation:
 
     % 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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/MANIFEST (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/MANIFEST Sat Aug 28 14:13:19 2010
@@ -11,7 +11,6 @@
 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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/META.yml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/META.yml Sat Aug 28 14:13:19 2010
@@ -13,7 +13,7 @@
   ExtUtils::MakeMaker: 6.31
   Module::Build: 0.3601
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.102221, CPAN::Meta::Converter version 2.102160'
+generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
 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.16
+version: 1.17

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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL Sat Aug 28 14:13:19 2010
@@ -31,7 +31,7 @@
     'Exporter' => '0',
     'vars' => '0'
   },
-  'VERSION' => '1.16',
+  'VERSION' => '1.17',
   '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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/README (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/README Sat Aug 28 14:13:19 2010
@@ -3,7 +3,7 @@
     an HTTP user agent string
 
 VERSION
-    version 1.16
+    version 1.17
 
 SYNOPSIS
         use HTTP::BrowserDetect;
@@ -230,7 +230,7 @@
    aol aol3 aol4 aol5 aol6
    webtv
    opera opera3 opera4 opera5 opera6 opera7
-   lynx links
+   lynx links elinks
    emacs
    staroffice
    lotusnotes
@@ -240,6 +240,7 @@
    curl
    realplayer
    netfront
+   mobile_safari
     Netscape 6, even though its called six, in the User-Agent string has
     version number 5. The nav6 and nav6up methods correctly handle this
     quirk. The Firefox test correctly detects the older-named versions of
@@ -249,7 +250,8 @@
     Returns undef on failure. Otherwise returns one of the following:
 
     Netscape, Firefox, Safari, Chrome, MSIE, WebTV, AOL Browser, Opera,
-    Mosaic, Lynx, RealPlayer, IceWeasel, curl, puf, NetFront
+    Mosaic, Lynx, Links, ELinks, RealPlayer, IceWeasel, curl, puf, NetFront,
+    Mobile Safari
 
   gecko_version()
     If a Gecko rendering engine is used (as in Mozilla or Firefox), returns

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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/dist.ini (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/dist.ini Sat Aug 28 14:13:19 2010
@@ -3,7 +3,7 @@
 license = Perl_5
 copyright_holder = Lee Semel
 copyright_year   = 2010
-version = 1.16
+version = 1.17
 main_module = lib/HTTP/BrowserDetect.pm
 
 [MetaResources]
@@ -19,4 +19,4 @@
 [ModuleBuild]
 [PodWeaver]
 
-[UploadToCPAN]
+[UploadToCPAN]

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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm Sat Aug 28 14:13:19 2010
@@ -1,7 +1,7 @@
 use strict;
 package HTTP::BrowserDetect;
 BEGIN {
-  $HTTP::BrowserDetect::VERSION = '1.16';
+  $HTTP::BrowserDetect::VERSION = '1.17';
 }
 
 use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS);
@@ -57,7 +57,8 @@
     aol5        aol6        neoplanet
     neoplanet2  avantgo     emacs
     mozilla     gecko       r1
-    iceweasel   netfront
+    iceweasel   netfront    mobile_safari
+    elinks
 );
 
 # Robots
@@ -242,6 +243,7 @@
         = (    ( index( $ua, "safari" ) != -1 )
             || ( index( $ua, "applewebkit" ) != -1 ) )
         && ( index( $ua, "chrome" ) == -1 );
+    $tests->{MOBILE_SAFARI} = ($tests->{SAFARI} && index($ua, " mobile safari/") >= 0);
 
     # Chrome Version
     if ( $tests->{CHROME} ) {
@@ -381,6 +383,7 @@
     $tests->{KONQUEROR}  = ( index( $ua, "konqueror" ) != -1 );
     $tests->{LYNX}       = ( index( $ua, "lynx" ) != -1 );
     $tests->{LINKS}      = ( index( $ua, "links" ) != -1 );
+    $tests->{ELINKS}     = ( index( $ua, "elinks" ) != -1 );
     $tests->{WEBTV}      = ( index( $ua, "webtv" ) != -1 );
     $tests->{MOSAIC}     = ( index( $ua, "mosaic" ) != -1 );
     $tests->{PUF}        = ( index( $ua, "puf" ) != -1 );
@@ -700,11 +703,14 @@
         $browser_string = 'Opera'       if $self->opera;
         $browser_string = 'Mosaic'      if $self->mosaic;
         $browser_string = 'Lynx'        if $self->lynx;
+        $browser_string = 'Links'       if $self->links;
         $browser_string = 'RealPlayer'  if $self->realplayer;
         $browser_string = 'IceWeasel'   if $self->iceweasel;
         $browser_string = 'curl'        if $self->curl;
         $browser_string = 'puf'         if $self->puf;
         $browser_string = 'NetFront'    if $self->netfront;
+        $browser_string = 'Mobile Safari' if $self->mobile_safari;
+        $browser_string = 'ELinks'      if $self->elinks;
     }
     return $browser_string;
 }
@@ -1066,7 +1072,7 @@
 
 =head1 VERSION
 
-version 1.16
+version 1.17
 
 =head1 SYNOPSIS
 
@@ -1330,7 +1336,7 @@
 
 =head3 opera opera3 opera4 opera5 opera6 opera7
 
-=head3 lynx links
+=head3 lynx links elinks
 
 =head3 emacs
 
@@ -1349,6 +1355,8 @@
 =head3 realplayer
 
 =head3 netfront
+
+=head3 mobile_safari
 
 Netscape 6, even though its called six, in the User-Agent string has version
 number 5. The nav6 and nav6up methods correctly handle this quirk. The Firefox
@@ -1360,7 +1368,7 @@
 Returns undef on failure.  Otherwise returns one of the following:
 
 Netscape, Firefox, Safari, Chrome, MSIE, WebTV, AOL Browser, Opera, Mosaic,
-Lynx, RealPlayer, IceWeasel, curl, puf, NetFront
+Lynx, Links, ELinks, RealPlayer, IceWeasel, curl, puf, NetFront, Mobile Safari
 
 =head2 gecko_version()
 

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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/author-critic.t Sat Aug 28 14:13:19 2010
@@ -16,5 +16,4 @@
 
 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();

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=62128&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml Sat Aug 28 14:13:19 2010
@@ -1111,29 +1111,13 @@
 device: iphone
 device_name: iPhone
 ---
-browser_string: ~
-major: ~
-match: ~
-minor: ~
-no_match: ~
-os: ~
-other: ~
-useragent: 'Internetf Explorer 6 (MSIE 6; Windows XP)'
-version: ~
-language: ~
-country: ~
----
-browser_string: ~
-major: ~
-match: ~
-minor: ~
-no_match: ~
-os: ~
-other: ~
 useragent: 'Links (2.1pre15; Linux 2.4.26-vc4 i586; x)'
-version: ~
-language: ~
-country: ~
+match:
+  - linux
+  - unix
+  - links
+browser_string: Links
+os: Linux
 ---
 browser_string: MSIE
 major: 8
@@ -1247,20 +1231,19 @@
 language: ~
 country: ~
 engine_string: MSIE
-#---
-#browser_string: Netscape
-#major: 6
-#match:
-#  - windows
-#  - safari
-#minor: 0.1
-#no_match: ~
-#os: Win98
-#other: ~
-#useragent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.12.1 (KHTML, like Gecko) Version/3.0.1 Safari/522.12.2
-#version: 6.1
-#language: EN
-#country: ~
+---
+useragent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.12.1 (KHTML, like Gecko) Version/3.0.1 Safari/522.12.2
+match:
+  - windows
+  - winxp
+  - safari
+browser_string: Safari
+os: WinXP
+public_version: 3.0
+public_major: 3.0
+public_minor: 0
+engine_string: KHTML
+language: EN
 ---
 browser_string: Safari
 match:
@@ -1825,10 +1808,11 @@
 useragent: 'Mozilla/5.0 (Linux; U; Android 1.5; en-us; Google Ion Build/CRB43) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1'
 match:
   - safari
+  - mobile_safari
   - mobile
   - linux
   - android
-browser_string: Safari
+browser_string: Mobile Safari
 public_version: 3.1
 public_major: 3
 public_minor: 0.1
@@ -1993,3 +1977,152 @@
 engine_version: 1.8
 engine_major: 1
 engine_minor: 0.8
+---
+useragent: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/7.0.503.1 Safari/534.6'
+match:
+  - linux
+  - unix
+  - x11
+  - chrome
+browser_string: Chrome
+os: Linux
+public_version: 7.0
+public_major: 7
+public_minor: 0
+engine_string: KHTML
+---
+useragent: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4'
+match:
+  - linux
+  - unix
+  - x11
+  - chrome
+browser_string: Chrome
+os: Linux
+public_version: 5.0
+public_major: 5
+public_minor: 0
+engine_string: KHTML
+---
+useragent: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14427/19.916; U; en) Presto/2.5.25'
+match:
+  - opera
+browser_string: Opera
+public_version: 9.80
+public_major: 9
+public_minor: 0.80
+language: EN
+---
+useragent: 'Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; DROIDX Build/VZW) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17 854X480 motorola DROIDX'
+match:
+  - safari
+  - mobile_safari
+  - mobile
+  - linux
+  - android
+browser_string: Mobile Safari
+public_version: 4.0
+public_major: 4
+public_minor: 0
+version: 5.30
+major: 5
+minor: 0.30
+engine: 5.30
+engine_string: KHTML
+language: EN
+country: US
+---
+useragent: 'Mozilla/5.0 (Linux; U; Android 1.5; en-us; Google Ion Build/CRB43) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1'
+match:
+  - safari
+  - mobile_safari
+  - mobile
+  - linux
+  - android
+browser_string: Mobile Safari
+public_version: 3.1
+public_major: 3
+public_minor: 0.1
+version: 5.25
+major: 5
+minor: 0.25
+engine: 5.25
+engine_string: KHTML
+language: EN
+country: US
+---
+useragent: 'Opera/9.80 (Android; Opera Mini/5.1.21126/19.916; U; en) Presto/2.5.25'
+match:
+  - opera
+  - android
+browser_string: Opera
+os: Android
+public_version: 9.80
+public_major: 9
+public_minor: 0.80
+language: EN
+---
+useragent: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)'
+match:
+  - windows
+  - winnt
+  - winxp
+  - win32
+  - ie
+  - ie4up
+  - ie5up
+  - ie55up
+  - ie6
+browser_string: MSIE
+os: WinXP
+public_version: 6.0
+public_major: 6
+public_minor: 0
+---
+useragent: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.18) Gecko/2010021718 CentOS/3.0.18-1.el5.centos Firefox/3.0.18'
+match:
+  - linux
+  - unix
+  - x11
+  - firefox
+browser_string: Firefox
+os: Linux
+public_version: 3.0
+public_major: 3
+public_minor: 0
+engine_string: Gecko
+engine_version: 1.9
+engine_major: 1
+engine_minor: 0.9
+---
+useragent: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100403 Fedora/3.6.3-4.fc13 Firefox/3.6.3'
+match:
+  - linux
+  - unix
+  - x11
+  - firefox
+browser_string: Firefox
+os: Linux
+public_version: 3.6
+public_major: 3
+public_minor: 0.6
+engine_string: Gecko
+engine_version: 1.9
+engine_major: 1
+engine_minor: 0.9
+---
+useragent: 'ELinks/0.12~pre5-2ubuntu1 (textmode; Ubuntu; Linux 2.6.32-24-generic x86_64; 135x85-2)'
+match:
+  - linux
+  - unix
+  - elinks
+browser_string: ELinks
+os: Linux
+---
+useragent: 'Links (2.2; Linux 2.6.32-24-generic x86_64; 135x85)'
+match:
+  - linux
+  - unix
+  - links
+browser_string: Links
+os: Linux




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