r62405 - in /trunk/libhttp-browserdetect-perl: Build.PL Changes INSTALL MANIFEST META.yml Makefile.PL README debian/changelog debian/copyright 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 06:14:36 UTC 2010


Author: ansgar-guest
Date: Wed Sep  8 06:14:19 2010
New Revision: 62405

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=62405
Log:
* New upstream release.
* debian/copyright: Refer to "Debian systems" instead of "Debian GNU/Linux
  systems".

Added:
    trunk/libhttp-browserdetect-perl/t/create_config.pl
      - copied unchanged from r62404, branches/upstream/libhttp-browserdetect-perl/current/t/create_config.pl
Modified:
    trunk/libhttp-browserdetect-perl/Build.PL
    trunk/libhttp-browserdetect-perl/Changes
    trunk/libhttp-browserdetect-perl/INSTALL
    trunk/libhttp-browserdetect-perl/MANIFEST
    trunk/libhttp-browserdetect-perl/META.yml
    trunk/libhttp-browserdetect-perl/Makefile.PL
    trunk/libhttp-browserdetect-perl/README
    trunk/libhttp-browserdetect-perl/debian/changelog
    trunk/libhttp-browserdetect-perl/debian/copyright
    trunk/libhttp-browserdetect-perl/dist.ini
    trunk/libhttp-browserdetect-perl/lib/HTTP/BrowserDetect.pm
    trunk/libhttp-browserdetect-perl/t/author-critic.t
    trunk/libhttp-browserdetect-perl/t/useragents.yaml

Modified: trunk/libhttp-browserdetect-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/Build.PL?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/Build.PL (original)
+++ trunk/libhttp-browserdetect-perl/Build.PL Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/Changes?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/Changes (original)
+++ trunk/libhttp-browserdetect-perl/Changes Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/INSTALL?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/INSTALL (original)
+++ trunk/libhttp-browserdetect-perl/INSTALL Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/MANIFEST?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/MANIFEST (original)
+++ trunk/libhttp-browserdetect-perl/MANIFEST Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/META.yml?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/META.yml (original)
+++ trunk/libhttp-browserdetect-perl/META.yml Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/Makefile.PL?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/Makefile.PL (original)
+++ trunk/libhttp-browserdetect-perl/Makefile.PL Wed Sep  8 06:14:19 2010
@@ -31,7 +31,7 @@
     'Exporter' => '0',
     'vars' => '0'
   },
-  'VERSION' => '1.17',
+  'VERSION' => '1.18',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: trunk/libhttp-browserdetect-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/README?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/README (original)
+++ trunk/libhttp-browserdetect-perl/README Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/debian/changelog?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/debian/changelog (original)
+++ trunk/libhttp-browserdetect-perl/debian/changelog Wed Sep  8 06:14:19 2010
@@ -1,3 +1,11 @@
+libhttp-browserdetect-perl (1.18-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/copyright: Refer to "Debian systems" instead of "Debian GNU/Linux
+    systems".
+
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Wed, 08 Sep 2010 15:13:30 +0900
+
 libhttp-browserdetect-perl (1.17-1) unstable; urgency=low
 
   * New upstream release.

Modified: trunk/libhttp-browserdetect-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/debian/copyright?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/debian/copyright (original)
+++ trunk/libhttp-browserdetect-perl/debian/copyright Wed Sep  8 06:14:19 2010
@@ -20,7 +20,7 @@
  This program is free software; you can redistribute it and/or modify
  it under the terms of the Artistic License, which comes with Perl.
  .
- On Debian GNU/Linux systems, the complete text of the Artistic License
+ On Debian systems, the complete text of the Artistic License
  can be found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
@@ -29,5 +29,5 @@
  the Free Software Foundation; either version 1, or (at your option)
  any later version.
  .
- On Debian GNU/Linux systems, the complete text of version 1 of the
- General Public License can be found in `/usr/share/common-licenses/GPL-1'.
+ On Debian systems, the complete text of version 1 of the General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.

Modified: trunk/libhttp-browserdetect-perl/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/dist.ini?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/dist.ini (original)
+++ trunk/libhttp-browserdetect-perl/dist.ini Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/lib/HTTP/BrowserDetect.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/lib/HTTP/BrowserDetect.pm?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/lib/HTTP/BrowserDetect.pm (original)
+++ trunk/libhttp-browserdetect-perl/lib/HTTP/BrowserDetect.pm Wed Sep  8 06:14:19 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: trunk/libhttp-browserdetect-perl/t/author-critic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/t/author-critic.t?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/t/author-critic.t (original)
+++ trunk/libhttp-browserdetect-perl/t/author-critic.t Wed Sep  8 06:14:19 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();

Modified: trunk/libhttp-browserdetect-perl/t/useragents.yaml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-browserdetect-perl/t/useragents.yaml?rev=62405&op=diff
==============================================================================
--- trunk/libhttp-browserdetect-perl/t/useragents.yaml (original)
+++ trunk/libhttp-browserdetect-perl/t/useragents.yaml Wed Sep  8 06:14:19 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