Codebase list libhttp-browserdetect-perl / b391384
* New upstream release * debian/copyright: Update license information Angel Abad Contreras 13 years ago
13 changed file(s) with 166 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
2424 'Olaf Alders <olaf@wundercounter.com> (current maintainer)'
2525 ],
2626 'dist_name' => 'HTTP-BrowserDetect',
27 'dist_version' => '1.19',
27 'dist_version' => '1.20',
2828 'license' => 'perl',
2929 'module_name' => 'HTTP::BrowserDetect',
3030 'recommends' => {},
00 Revision history for Perl extension HTTP::BrowserDetect.
11
2 1.20 2010-11-23
3 - Be a little more selective in marking ua as robot when contains search
4 or seek (Graham Barr)
5 - Add facebook crawler as a robot (Graham Barr) (Enrico Sorcinelli)
6
27 1.19 2010-09-24
38 - Added support for WebOS (Jesse Thompson) RT #61437
49
77 README
88 TODO
99 dist.ini
10 http-browserdetect.komodoproject
1011 lib/HTTP/BrowserDetect.pm
1112 t/01-detect.t
1213 t/author-critic.t
1414 ExtUtils::MakeMaker: 6.31
1515 Module::Build: 0.3601
1616 dynamic_config: 0
17 generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
17 generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.102400'
1818 license: perl
1919 meta-spec:
2020 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2626 resources:
2727 bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-BrowserDetect
2828 repository: http://github.com/oalders/http-browserdetect
29 version: 1.19
29 version: 1.20
3030 'Exporter' => '0',
3131 'vars' => '0'
3232 },
33 'VERSION' => '1.19',
33 'VERSION' => '1.20',
3434 'test' => {
3535 'TESTS' => 't/*.t'
3636 }
22 an HTTP user agent string
33
44 VERSION
5 version 1.19
5 version 1.20
66
77 SYNOPSIS
88 use HTTP::BrowserDetect;
303303 googlemobile
304304 msn (same as bing)
305305 puf
306 facebook
306307 CREDITS
307308 Lee Semel, lee@semel.net (Original Author)
308309
354355 Heiko Weber
355356
356357 Jon Jensen
358
359 Jesse Thompson
360
361 Graham Barr
362
363 Enrico Sorcinelli
357364
358365 TO DO
359366 The _engine() method currently only handles Gecko. It needs to be
0 libhttp-browserdetect-perl (1.19-2) UNRELEASED; urgency=low
0 libhttp-browserdetect-perl (1.20-1) unstable; urgency=low
11
2 [ Ansgar Burchardt ]
23 * Update my email address.
4
5 [ Angel Abad ]
6 * New upstream release
7 * debian/copyright: Update license information
38
4 -- Ansgar Burchardt <ansgar@debian.org> Mon, 01 Nov 2010 11:16:51 +0100
9 -- Angel Abad <angelabad@gmail.com> Wed, 24 Nov 2010 13:44:47 +0100
510
611 libhttp-browserdetect-perl (1.19-1) unstable; urgency=low
712
1919 This program is free software; you can redistribute it and/or modify
2020 it under the terms of the Artistic License, which comes with Perl.
2121 .
22 On Debian GNU/Linux systems, the complete text of the Artistic License
23 can be found in `/usr/share/common-licenses/Artistic'.
22 On Debian systems, the complete text of the Artistic License can be
23 found in `/usr/share/common-licenses/Artistic'.
2424
2525 License: GPL-1+
2626 This program is free software; you can redistribute it and/or modify
2828 the Free Software Foundation; either version 1, or (at your option)
2929 any later version.
3030 .
31 On Debian GNU/Linux systems, the complete text of version 1 of the
32 General Public License can be found in `/usr/share/common-licenses/GPL-1'.
31 On Debian systems, the complete text of version 1 of the General
32 Public License can be found in `/usr/share/common-licenses/GPL-1'.
44 license = Perl_5
55 copyright_holder = Lee Semel
66 copyright_year = 2010
7 version = 1.19
7 version = 1.20
88 main_module = lib/HTTP/BrowserDetect.pm
99
1010 [MetaResources]
1313 repository.type = git
1414
1515 [@Classic]
16 [AutoPrereq]
16 [AutoPrereqs]
1717 [CriticTests]
1818 [ReadmeFromPod]
1919 [InstallGuide]
0 <?xml version="1.0" encoding="UTF-8"?>
1 <!-- Komodo Project File - DO NOT EDIT -->
2 <project id="018c76ef-85a2-0d4c-87a2-15d228772baf" kpf_version="5" name="http-browserdetect.komodoproject">
3 <preference-set idref="018c76ef-85a2-0d4c-87a2-15d228772baf">
4 <boolean id="import_live">1</boolean>
5 </preference-set>
6 </project>
00 use strict;
11 package HTTP::BrowserDetect;
22 BEGIN {
3 $HTTP::BrowserDetect::VERSION = '1.19';
3 $HTTP::BrowserDetect::VERSION = '1.20';
44 }
55
66 use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS);
6969 slurp webtv staroffice
7070 lotusnotes konqueror icab
7171 google java googlemobile
72 msn msnmobile
72 msn msnmobile facebook
7373 );
7474
7575 # Properties
408408 $tests->{WEBCRAWLER} = ( index( $ua, "webcrawler" ) != -1 );
409409 $tests->{LINKEXCHANGE} = ( index( $ua, "lecodechecker" ) != -1 );
410410 $tests->{SLURP} = ( index( $ua, "slurp" ) != -1 );
411 $tests->{FACEBOOK} = ( index( $ua, "facebookexternalhit" ) != -1 );
411412 $tests->{ROBOT} = (
412413 ( $tests->{WGET}
413414 || $tests->{PUF}
424425 || $tests->{GOOGLEMOBILE}
425426 || $tests->{MSN}
426427 || $tests->{MSNMOBILE}
428 || $tests->{FACEBOOK}
427429 )
428430 || index( $ua, "bot" ) != -1
429431 || index( $ua, "spider" ) != -1
430432 || index( $ua, "crawl" ) != -1
431433 || index( $ua, "agent" ) != -1
432 || index( $ua, "seek" ) != -1
433 || index( $ua, "search" ) != -1
434 || $ua =~ /seek (?! mo (?: toolbar )? \s+ \d+\.\d+ )/x
435 || $ua =~ /search (?! [\w\s]* toolbar \b | bar \b )/x
434436 || index( $ua, "reap" ) != -1
435437 || index( $ua, "worm" ) != -1
436438 || index( $ua, "find" ) != -1
10791081
10801082 =head1 VERSION
10811083
1082 version 1.19
1084 version 1.20
10831085
10841086 =head1 SYNOPSIS
10851087
14571459
14581460 =head3 puf
14591461
1462 =head3 facebook
1463
14601464 =head1 CREDITS
14611465
14621466 Lee Semel, lee@semel.net (Original Author)
15101514 Heiko Weber
15111515
15121516 Jon Jensen
1517
1518 Jesse Thompson
1519
1520 Graham Barr
1521
1522 Enrico Sorcinelli
15131523
15141524 =head1 TO DO
15151525
1515
1616 eval "use Test::Perl::Critic";
1717 plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
18 Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
1819 all_critic_ok();
21582158 engine_string: KHTML
21592159 device: webos
21602160 device_name: webOS
2161
2161 ---
2162 useragent: 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)'
2163 match:
2164 - robot
2165 - facebook
2166 ---
2167 useragent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.10 NET_mmhpset SearchToolbar/1.2'
2168 browser_string: Firefox
2169 language: EN
2170 country: US
2171 major: 3
2172 match:
2173 - windows
2174 - win32
2175 - winnt
2176 minor: 0.6
2177 no_match:
2178 - robot
2179 ---
2180 useragent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 SearchToolbar'
2181 browser_string: Firefox
2182 language: EN
2183 country: US
2184 major: 3
2185 match:
2186 - windows
2187 - win32
2188 - winnt
2189 minor: 0.6
2190 no_match:
2191 - robot
2192 ---
2193 useragent: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; GTB6.6; PicMorphSearchToolbar 1.2; InfoPath.2)'
2194 browser_string: MSIE
2195 major: 6
2196 match:
2197 - windows
2198 - win32
2199 - winnt
2200 - ie
2201 - ie4up
2202 - ie5up
2203 - ie55up
2204 minor: 0
2205 no_match:
2206 - robot
2207 ---
2208 useragent: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.5; SearchToolbar 1.2)'
2209 browser_string: MSIE
2210 major: 6
2211 match:
2212 - windows
2213 - win32
2214 - winnt
2215 - ie
2216 - ie4up
2217 - ie5up
2218 - ie55up
2219 minor: 0
2220 no_match:
2221 - robot
2222 ---
2223 useragent: 'Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.5400; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Seekmo 10.0.430.0; 3P_UPCPC 1.0.21.2; .NET CLR 3.5.30729; Tablet PC 2.0; .NET CLR 3.0.30729; .NET4.0C)'
2224 browser_string: AOL Browser
2225 major: 7
2226 match:
2227 - windows
2228 - win32
2229 - winnt
2230 - dotnet
2231 - ie
2232 - ie7
2233 - ie4up
2234 - ie5up
2235 - ie55up
2236 minor: 0
2237 no_match:
2238 - robot
2239 ---
2240 useragent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; SeekmoToolbar 4.8.4)'
2241 browser_string: MSIE
2242 major: 7
2243 match:
2244 - windows
2245 - win32
2246 - winnt
2247 - dotnet
2248 - ie
2249 - ie7
2250 - ie4up
2251 - ie5up
2252 - ie55up
2253 minor: 0
2254 no_match:
2255 - robot
2256 ---
2257 useragent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 1.1.4322; Seekmo 10.3.79.0)'
2258 browser_string: MSIE
2259 major: 7
2260 match:
2261 - windows
2262 - win32
2263 - winnt
2264 - dotnet
2265 - ie
2266 - ie7
2267 - ie4up
2268 - ie5up
2269 - ie55up
2270 minor: 0
2271 no_match:
2272 - robot