Codebase list libhttp-browserdetect-perl / 8539da5
[svn-upgrade] new version libhttp-browserdetect-perl (1.21) Jonathan Yu 13 years ago
10 changed file(s) with 136 addition(s) and 129 deletion(s). Raw diff Collapse all Expand all
1111 'FindBin' => '0',
1212 'Module::Build' => '0.3601',
1313 'Test::More' => '0',
14 'YAML::Tiny' => '0'
14 'YAML' => '0'
1515 },
1616 'configure_requires' => {
1717 'ExtUtils::MakeMaker' => '6.31',
2424 'Olaf Alders <olaf@wundercounter.com> (current maintainer)'
2525 ],
2626 'dist_name' => 'HTTP-BrowserDetect',
27 'dist_version' => '1.20',
27 'dist_version' => '1.21',
2828 'license' => 'perl',
2929 'module_name' => 'HTTP::BrowserDetect',
3030 'recommends' => {},
00 Revision history for Perl extension HTTP::BrowserDetect.
11
2 1.21 2010-12-23
3 - Test suite now uses YAML rather than YAML::Tiny as YAML::Tiny 1.46
4 refuses to load useragents.yaml
5 - Alphabetically re-ordered some of the documentation
6
27 1.20 2010-11-23
38 - Be a little more selective in marking ua as robot when contains search
49 or seek (Graham Barr)
1212 t/01-detect.t
1313 t/author-critic.t
1414 t/release-pod-coverage.t
15 t/release-pod-syntax.t
1615 t/useragents.yaml
99 FindBin: 0
1010 Module::Build: 0.3601
1111 Test::More: 0
12 YAML::Tiny: 0
12 YAML: 0
1313 configure_requires:
1414 ExtUtils::MakeMaker: 6.31
1515 Module::Build: 0.3601
1616 dynamic_config: 0
17 generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.102400'
17 generated_by: 'Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.102400'
1818 license: perl
1919 meta-spec:
2020 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2424 Exporter: 0
2525 vars: 0
2626 resources:
27 bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-BrowserDetect
28 repository: http://github.com/oalders/http-browserdetect
29 version: 1.20
27 bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=HTTP-BrowserDetect
28 homepage: http://github.com/oalders/http-browserdetect/tree
29 repository: git://github.com/oalders/http-browserdetect.git
30 version: 1.21
1616 'FindBin' => '0',
1717 'Module::Build' => '0.3601',
1818 'Test::More' => '0',
19 'YAML::Tiny' => '0'
19 'YAML' => '0'
2020 },
2121 'CONFIGURE_REQUIRES' => {
2222 'ExtUtils::MakeMaker' => '6.31',
3030 'Exporter' => '0',
3131 'vars' => '0'
3232 },
33 'VERSION' => '1.20',
33 'VERSION' => '1.21',
3434 'test' => {
3535 'TESTS' => 't/*.t'
3636 }
22 an HTTP user agent string
33
44 VERSION
5 version 1.20
5 version 1.21
66
77 SYNOPSIS
88 use HTTP::BrowserDetect;
217217 value. Some methods also test for the browser version, saving you from
218218 checking the version separately.
219219
220 aol aol3 aol4 aol5 aol6
221 chrome
222 curl
223 emacs
224 firefox
225 gecko
226 icab
227 ie ie3 ie4 ie4up ie5 ie55 ie6 ie7 ie8
228 java
229 konqueror
230 lotusnotes
231 lynx links elinks
232 mobile_safari
233 mosaic
234 mozilla
235 neoplanet neoplanet2
236 netfront
220237 netscape nav2 nav3 nav4 nav4up nav45 nav45up navgold nav6 nav6up
221 gecko
222 mozilla
223 firefox
238 opera opera3 opera4 opera5 opera6 opera7
239 realplayer
224240 safari
225 chrome
226 ie ie3 ie4 ie4up ie5 ie55 ie6 ie7 ie8
227 neoplanet neoplanet2
228 mosaic
229 aol aol3 aol4 aol5 aol6
241 staroffice
230242 webtv
231 opera opera3 opera4 opera5 opera6 opera7
232 lynx links elinks
233 emacs
234 staroffice
235 lotusnotes
236 icab
237 konqueror
238 java
239 curl
240 realplayer
241 netfront
242 mobile_safari
243243 Netscape 6, even though its called six, in the User-Agent string has
244244 version number 5. The nav6 and nav6up methods correctly handle this
245245 quirk. The Firefox test correctly detects the older-named versions of
289289 false value. This is by no means a complete list of robots that exist on
290290 the Web.
291291
292 wget
292 altavista
293 facebook
293294 getright
294 yahoo
295 altavista
296 lycos
297 infoseek
298 lwp
299 webcrawler
300 linkexchange
301 slurp
302295 google
303296 googlemobile
297 infoseek
298 linkexchange
299 lwp
300 lycos
304301 msn (same as bing)
305302 puf
306 facebook
303 slurp
304 webcrawler
305 wget
306 yahoo
307307 CREDITS
308308 Lee Semel, lee@semel.net (Original Author)
309309
44 license = Perl_5
55 copyright_holder = Lee Semel
66 copyright_year = 2010
7 version = 1.20
7 version = 1.21
88 main_module = lib/HTTP/BrowserDetect.pm
99
10 [GatherDir]
11 [PruneCruft]
12 [ManifestSkip]
13 [MetaYAML]
14 [License]
15 [PodCoverageTests]
16 [ExtraTests]
17 [ExecDir]
18 [ShareDir]
19 [PkgVersion]
20
21 [MakeMaker]
22 [Manifest]
23
24 [TestRelease]
25 [ConfirmRelease]
26 [UploadToCPAN]
27
1028 [MetaResources]
11 bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-BrowserDetect
12 repository.url = http://github.com/oalders/http-browserdetect
13 repository.type = git
29 [Bugtracker]
30 [GithubMeta]
1431
15 [@Classic]
1632 [AutoPrereqs]
33
1734 [CriticTests]
1835 [ReadmeFromPod]
1936 [InstallGuide]
2037 [ModuleBuild]
2138 [PodWeaver]
39 [CopyReadmeFromBuild]
2240
23 [UploadToCPAN]
00 use strict;
11 package HTTP::BrowserDetect;
22 BEGIN {
3 $HTTP::BrowserDetect::VERSION = '1.20';
3 $HTTP::BrowserDetect::VERSION = '1.21';
44 }
55
66 use vars qw(@ISA @EXPORT @EXPORT_OK @ALL_TESTS);
10811081
10821082 =head1 VERSION
10831083
1084 version 1.20
1084 version 1.21
10851085
10861086 =head1 SYNOPSIS
10871087
13211321 Some methods also test for the browser version, saving you from checking the
13221322 version separately.
13231323
1324 =head3 aol aol3 aol4 aol5 aol6
1325
1326 =head3 chrome
1327
1328 =head3 curl
1329
1330 =head3 emacs
1331
1332 =head3 firefox
1333
1334 =head3 gecko
1335
1336 =head3 icab
1337
1338 =head3 ie ie3 ie4 ie4up ie5 ie55 ie6 ie7 ie8
1339
1340 =head3 java
1341
1342 =head3 konqueror
1343
1344 =head3 lotusnotes
1345
1346 =head3 lynx links elinks
1347
1348 =head3 mobile_safari
1349
1350 =head3 mosaic
1351
1352 =head3 mozilla
1353
1354 =head3 neoplanet neoplanet2
1355
1356 =head3 netfront
1357
13241358 =head3 netscape nav2 nav3 nav4 nav4up nav45 nav45up navgold nav6 nav6up
13251359
1326 =head3 gecko
1327
1328 =head3 mozilla
1329
1330 =head3 firefox
1360 =head3 opera opera3 opera4 opera5 opera6 opera7
1361
1362 =head3 realplayer
13311363
13321364 =head3 safari
13331365
1334 =head3 chrome
1335
1336 =head3 ie ie3 ie4 ie4up ie5 ie55 ie6 ie7 ie8
1337
1338 =head3 neoplanet neoplanet2
1339
1340 =head3 mosaic
1341
1342 =head3 aol aol3 aol4 aol5 aol6
1366 =head3 staroffice
13431367
13441368 =head3 webtv
1345
1346 =head3 opera opera3 opera4 opera5 opera6 opera7
1347
1348 =head3 lynx links elinks
1349
1350 =head3 emacs
1351
1352 =head3 staroffice
1353
1354 =head3 lotusnotes
1355
1356 =head3 icab
1357
1358 =head3 konqueror
1359
1360 =head3 java
1361
1362 =head3 curl
1363
1364 =head3 realplayer
1365
1366 =head3 netfront
1367
1368 =head3 mobile_safari
13691369
13701370 Netscape 6, even though its called six, in the User-Agent string has version
13711371 number 5. The nav6 and nav6up methods correctly handle this quirk. The Firefox
14311431 The following additional methods are available, each returning a true or false
14321432 value. This is by no means a complete list of robots that exist on the Web.
14331433
1434 =head3 altavista
1435
1436 =head3 facebook
1437
1438 =head3 getright
1439
1440 =head3 google
1441
1442 =head3 googlemobile
1443
1444 =head3 infoseek
1445
1446 =head3 linkexchange
1447
1448 =head3 lwp
1449
1450 =head3 lycos
1451
1452 =head3 msn (same as bing)
1453
1454 =head3 puf
1455
1456 =head3 slurp
1457
1458 =head3 webcrawler
1459
14341460 =head3 wget
14351461
1436 =head3 getright
1437
14381462 =head3 yahoo
1439
1440 =head3 altavista
1441
1442 =head3 lycos
1443
1444 =head3 infoseek
1445
1446 =head3 lwp
1447
1448 =head3 webcrawler
1449
1450 =head3 linkexchange
1451
1452 =head3 slurp
1453
1454 =head3 google
1455
1456 =head3 googlemobile
1457
1458 =head3 msn (same as bing)
1459
1460 =head3 puf
1461
1462 =head3 facebook
14631463
14641464 =head1 CREDITS
14651465
55 use Data::Dump qw( dump );
66 use FindBin;
77 use Test::More qw( no_plan );
8 use YAML::Tiny qw( LoadFile );
8 use YAML qw( LoadFile );
99 require_ok( 'HTTP::BrowserDetect' );
1010
1111 my @tests = LoadFile( "$FindBin::Bin/useragents.yaml" );
+0
-15
t/release-pod-syntax.t less more
0 #!perl
1
2 BEGIN {
3 unless ($ENV{RELEASE_TESTING}) {
4 require Test::More;
5 Test::More::plan(skip_all => 'these tests are for release candidate testing');
6 }
7 }
8
9 use Test::More;
10
11 eval "use Test::Pod 1.41";
12 plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
13
14 all_pod_files_ok();