r61535 - in /branches/upstream/libhttp-browserdetect-perl/current: Build.PL Changes META.yml Makefile.PL README dist.ini lib/HTTP/BrowserDetect.pm t/useragents.yaml

angelabad-guest at users.alioth.debian.org angelabad-guest at users.alioth.debian.org
Fri Aug 13 21:40:39 UTC 2010


Author: angelabad-guest
Date: Fri Aug 13 21:40:16 2010
New Revision: 61535

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

Modified:
    branches/upstream/libhttp-browserdetect-perl/current/Build.PL
    branches/upstream/libhttp-browserdetect-perl/current/Changes
    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/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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Build.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Build.PL Fri Aug 13 21:40:16 2010
@@ -23,7 +23,7 @@
     'Olaf Alders <olaf at wundercounter.com> (current maintainer)'
   ],
   'dist_name' => 'HTTP-BrowserDetect',
-  'dist_version' => '1.12',
+  'dist_version' => '1.13',
   '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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Changes (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Changes Fri Aug 13 21:40:16 2010
@@ -1,9 +1,13 @@
 Revision history for Perl extension HTTP::BrowserDetect.
+
+1.13 2010-08-10
+    - Firefox Mobile (Fennec) is now detected as mobile RT #60186 (Jacob Rask)
+    - Double digit Opera version #s now detected correctly RT #50717, #59817
 
 1.12 2010-08-01
     - Added msn and msnmobile (Luke Saunders: f5c87a17b8fa2b09e294)
     - Added googlemobile (Luke Saunders: ec28d49d7218b43788b9)
-    - SymbOS and Opera Mobi added to mobile detection (RT #59817)
+    - SymbOS and Opera Mobi added to mobile detection RT #59817 (Jacob Rask)
     - Distribution is now managed with Dist::Zilla
     
 1.11 2010-06-03

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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/META.yml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/META.yml Fri Aug 13 21:40:16 2010
@@ -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.12
+version: 1.13

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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/Makefile.PL Fri Aug 13 21:40:16 2010
@@ -31,7 +31,7 @@
     'Exporter' => '0',
     'vars' => '0'
   },
-  'VERSION' => '1.12',
+  'VERSION' => '1.13',
   '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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/README (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/README Fri Aug 13 21:40:16 2010
@@ -3,7 +3,7 @@
     an HTTP user agent string
 
 VERSION
-    version 1.12
+    version 1.13
 
 SYNOPSIS
         use HTTP::BrowserDetect;
@@ -348,6 +348,8 @@
 
     Luke Saunders
 
+    Jacob Rask
+
 TO DO
     The _engine() method currently only handles Gecko. It needs to be
     expanded to handle other rendering engines.

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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/dist.ini (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/dist.ini Fri Aug 13 21:40:16 2010
@@ -3,7 +3,7 @@
 license = Perl_5
 copyright_holder = Lee Semel 
 copyright_year   = 2010
-version = 1.12 
+version = 1.13
 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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/lib/HTTP/BrowserDetect.pm Fri Aug 13 21:40:16 2010
@@ -1,7 +1,7 @@
 use strict;
 package HTTP::BrowserDetect;
 BEGIN {
-  $HTTP::BrowserDetect::VERSION = '1.12';
+  $HTTP::BrowserDetect::VERSION = '1.13';
 }
 
 use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS);
@@ -187,6 +187,15 @@
         $minor = $2;
         $beta  = $3;
 
+    }
+    
+    # Opera needs to be dealt with specifically
+    # http://dev.opera.com/articles/view/opera-ua-string-changes/
+    # 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;
     }
 
     $major = 0 if !$major;
@@ -469,6 +478,7 @@
             || index( $ua, "android" ) != -1
             || index( $ua, "symbos" ) != -1
             || index( $ua, "opera mobi" ) != -1
+            || index( $ua, "fennec" ) != -1
             || $tests->{PSP}
     );
 
@@ -1010,7 +1020,7 @@
 
 =head1 VERSION
 
-version 1.12
+version 1.13
 
 =head1 SYNOPSIS
 
@@ -1432,6 +1442,8 @@
 
 Luke Saunders
 
+Jacob Rask
+
 =head1 TO DO
 
 The _engine() method currently only handles Gecko.  It needs to be expanded to

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=61535&op=diff
==============================================================================
--- branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml (original)
+++ branches/upstream/libhttp-browserdetect-perl/current/t/useragents.yaml Fri Aug 13 21:40:16 2010
@@ -1451,9 +1451,26 @@
 useragent: 'Opera/9.80 (S60; SymbOS; Opera Mobi/320; U; sv) Presto/2.4.15 Version/10.00'
 language: ~
 country: ~
-public_version: 9.80
-public_major: 9.80 
+public_version: 10.0
+public_major: 10.0 
 public_minor: .0
-version: 9.80 
-major: 9 
-minor: .8
+version: 10.0 
+major: 10 
+minor: .0
+---
+browser_string: ~
+match:
+  - firefox 
+  - mobile
+no_match: ~
+os: ~
+other: ~
+useragent: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.5) Gecko/20100614 Firefox/3.6.5pre Fennec/1.1'
+language: ~
+country: ~
+public_version: 3.6 
+public_major: 3 
+public_minor: .6
+version: 3.6 
+major: 3 
+minor: .6




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