* New upstream release
* debian/copyright: Update license information
Angel Abad Contreras
13 years ago
24 | 24 | 'Olaf Alders <olaf@wundercounter.com> (current maintainer)' |
25 | 25 | ], |
26 | 26 | 'dist_name' => 'HTTP-BrowserDetect', |
27 | 'dist_version' => '1.19', | |
27 | 'dist_version' => '1.20', | |
28 | 28 | 'license' => 'perl', |
29 | 29 | 'module_name' => 'HTTP::BrowserDetect', |
30 | 30 | 'recommends' => {}, |
0 | 0 | Revision history for Perl extension HTTP::BrowserDetect. |
1 | 1 | |
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 | ||
2 | 7 | 1.19 2010-09-24 |
3 | 8 | - Added support for WebOS (Jesse Thompson) RT #61437 |
4 | 9 |
7 | 7 | README |
8 | 8 | TODO |
9 | 9 | dist.ini |
10 | http-browserdetect.komodoproject | |
10 | 11 | lib/HTTP/BrowserDetect.pm |
11 | 12 | t/01-detect.t |
12 | 13 | t/author-critic.t |
14 | 14 | ExtUtils::MakeMaker: 6.31 |
15 | 15 | Module::Build: 0.3601 |
16 | 16 | 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' | |
18 | 18 | license: perl |
19 | 19 | meta-spec: |
20 | 20 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
26 | 26 | resources: |
27 | 27 | bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-BrowserDetect |
28 | 28 | repository: http://github.com/oalders/http-browserdetect |
29 | version: 1.19 | |
29 | version: 1.20 |
30 | 30 | 'Exporter' => '0', |
31 | 31 | 'vars' => '0' |
32 | 32 | }, |
33 | 'VERSION' => '1.19', | |
33 | 'VERSION' => '1.20', | |
34 | 34 | 'test' => { |
35 | 35 | 'TESTS' => 't/*.t' |
36 | 36 | } |
2 | 2 | an HTTP user agent string |
3 | 3 | |
4 | 4 | VERSION |
5 | version 1.19 | |
5 | version 1.20 | |
6 | 6 | |
7 | 7 | SYNOPSIS |
8 | 8 | use HTTP::BrowserDetect; |
303 | 303 | googlemobile |
304 | 304 | msn (same as bing) |
305 | 305 | puf |
306 | ||
306 | 307 | CREDITS |
307 | 308 | Lee Semel, lee@semel.net (Original Author) |
308 | 309 | |
354 | 355 | Heiko Weber |
355 | 356 | |
356 | 357 | Jon Jensen |
358 | ||
359 | Jesse Thompson | |
360 | ||
361 | Graham Barr | |
362 | ||
363 | Enrico Sorcinelli | |
357 | 364 | |
358 | 365 | TO DO |
359 | 366 | 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 | |
1 | 1 | |
2 | [ Ansgar Burchardt ] | |
2 | 3 | * Update my email address. |
4 | ||
5 | [ Angel Abad ] | |
6 | * New upstream release | |
7 | * debian/copyright: Update license information | |
3 | 8 | |
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 | |
5 | 10 | |
6 | 11 | libhttp-browserdetect-perl (1.19-1) unstable; urgency=low |
7 | 12 |
19 | 19 | This program is free software; you can redistribute it and/or modify |
20 | 20 | it under the terms of the Artistic License, which comes with Perl. |
21 | 21 | . |
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'. | |
24 | 24 | |
25 | 25 | License: GPL-1+ |
26 | 26 | This program is free software; you can redistribute it and/or modify |
28 | 28 | the Free Software Foundation; either version 1, or (at your option) |
29 | 29 | any later version. |
30 | 30 | . |
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'. |
4 | 4 | license = Perl_5 |
5 | 5 | copyright_holder = Lee Semel |
6 | 6 | copyright_year = 2010 |
7 | version = 1.19 | |
7 | version = 1.20 | |
8 | 8 | main_module = lib/HTTP/BrowserDetect.pm |
9 | 9 | |
10 | 10 | [MetaResources] |
13 | 13 | repository.type = git |
14 | 14 | |
15 | 15 | [@Classic] |
16 | [AutoPrereq] | |
16 | [AutoPrereqs] | |
17 | 17 | [CriticTests] |
18 | 18 | [ReadmeFromPod] |
19 | 19 | [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> |
0 | 0 | use strict; |
1 | 1 | package HTTP::BrowserDetect; |
2 | 2 | BEGIN { |
3 | $HTTP::BrowserDetect::VERSION = '1.19'; | |
3 | $HTTP::BrowserDetect::VERSION = '1.20'; | |
4 | 4 | } |
5 | 5 | |
6 | 6 | use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS); |
69 | 69 | slurp webtv staroffice |
70 | 70 | lotusnotes konqueror icab |
71 | 71 | google java googlemobile |
72 | msn msnmobile | |
72 | msn msnmobile facebook | |
73 | 73 | ); |
74 | 74 | |
75 | 75 | # Properties |
408 | 408 | $tests->{WEBCRAWLER} = ( index( $ua, "webcrawler" ) != -1 ); |
409 | 409 | $tests->{LINKEXCHANGE} = ( index( $ua, "lecodechecker" ) != -1 ); |
410 | 410 | $tests->{SLURP} = ( index( $ua, "slurp" ) != -1 ); |
411 | $tests->{FACEBOOK} = ( index( $ua, "facebookexternalhit" ) != -1 ); | |
411 | 412 | $tests->{ROBOT} = ( |
412 | 413 | ( $tests->{WGET} |
413 | 414 | || $tests->{PUF} |
424 | 425 | || $tests->{GOOGLEMOBILE} |
425 | 426 | || $tests->{MSN} |
426 | 427 | || $tests->{MSNMOBILE} |
428 | || $tests->{FACEBOOK} | |
427 | 429 | ) |
428 | 430 | || index( $ua, "bot" ) != -1 |
429 | 431 | || index( $ua, "spider" ) != -1 |
430 | 432 | || index( $ua, "crawl" ) != -1 |
431 | 433 | || 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 | |
434 | 436 | || index( $ua, "reap" ) != -1 |
435 | 437 | || index( $ua, "worm" ) != -1 |
436 | 438 | || index( $ua, "find" ) != -1 |
1079 | 1081 | |
1080 | 1082 | =head1 VERSION |
1081 | 1083 | |
1082 | version 1.19 | |
1084 | version 1.20 | |
1083 | 1085 | |
1084 | 1086 | =head1 SYNOPSIS |
1085 | 1087 | |
1457 | 1459 | |
1458 | 1460 | =head3 puf |
1459 | 1461 | |
1462 | =head3 facebook | |
1463 | ||
1460 | 1464 | =head1 CREDITS |
1461 | 1465 | |
1462 | 1466 | Lee Semel, lee@semel.net (Original Author) |
1510 | 1514 | Heiko Weber |
1511 | 1515 | |
1512 | 1516 | Jon Jensen |
1517 | ||
1518 | Jesse Thompson | |
1519 | ||
1520 | Graham Barr | |
1521 | ||
1522 | Enrico Sorcinelli | |
1513 | 1523 | |
1514 | 1524 | =head1 TO DO |
1515 | 1525 |
15 | 15 | |
16 | 16 | eval "use Test::Perl::Critic"; |
17 | 17 | plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; |
18 | Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; | |
18 | 19 | all_critic_ok(); |
2158 | 2158 | engine_string: KHTML |
2159 | 2159 | device: webos |
2160 | 2160 | device_name: webOS |
2161 | ||
2161 | --- | |
2162 | useragent: 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)' | |
2163 | match: | |
2164 | - robot | |
2165 | ||
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 |