Codebase list libhttp-browserdetect-perl / 5f5dbf6
Imported Upstream version 1.72 gregor herrmann 9 years ago
10 changed file(s) with 20 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
2020 "Olaf Alders <olaf\@wundercounter.com> (current maintainer)"
2121 ],
2222 "dist_name" => "HTTP-BrowserDetect",
23 "dist_version" => "1.71",
23 "dist_version" => "1.72",
2424 "license" => "perl",
2525 "module_name" => "HTTP::BrowserDetect",
2626 "recommends" => {},
3232 },
3333 "script_files" => [],
3434 "test_requires" => {
35 "File::Slurp" => 0,
3635 "FindBin" => 0,
3736 "JSON::PP" => 0,
37 "Path::Tiny" => 0,
3838 "Test::FailWarnings" => 0,
3939 "Test::More" => 0,
4040 "Test::Most" => 0,
4444
4545
4646 my %fallback_build_requires = (
47 "File::Slurp" => 0,
4847 "FindBin" => 0,
4948 "JSON::PP" => 0,
5049 "Module::Build" => "0.3601",
50 "Path::Tiny" => 0,
5151 "Test::FailWarnings" => 0,
5252 "Test::More" => 0,
5353 "Test::Most" => 0,
1212 * Hao Wu <hwu@intellisurvey.com>
1313 * Jon Jensen <jon@endpoint.com>
1414 * Maros Kollar <maros@k-1.com>
15 * Olaf Alders <olaf@Macintosh-9.local>
1615 * Olaf Alders <olaf@wundersolutions.com>
1716 * Olivier Bilodeau <olivier@bottomlesspit.org>
1817 * Paul Findlay <paul@findlay.net.nz>
00 Revision history for Perl extension HTTP::BrowserDetect.
1
2 1.72 2014-06-18 23:34:27 America/Toronto
3 - Remove File::Slurp from tests in favour of Path::Tiny
14
25 1.71 2014-05-19 22:38:52 America/Toronto
36 - Fixes warnings on "frakenagent" (Douglas Christopher Wilson)
4040 },
4141 "test" : {
4242 "requires" : {
43 "File::Slurp" : "0",
4443 "FindBin" : "0",
4544 "JSON::PP" : "0",
45 "Path::Tiny" : "0",
4646 "Test::FailWarnings" : "0",
4747 "Test::More" : "0",
4848 "Test::Most" : "0",
6262 "web" : "https://github.com/oalders/http-browserdetect"
6363 }
6464 },
65 "version" : "1.71",
65 "version" : "1.72",
6666 "x_contributors" : [
6767 "Aran Deltac <bluefeet@gmail.com>",
6868 "David Ihnen <davidihnen@gmail.com>",
7171 "Hao Wu <hwu@intellisurvey.com>",
7272 "Jon Jensen <jon@endpoint.com>",
7373 "Maros Kollar <maros@k-1.com>",
74 "Olaf Alders <olaf@Macintosh-9.local>",
7574 "Olaf Alders <olaf@wundersolutions.com>",
7675 "Olivier Bilodeau <olivier@bottomlesspit.org>",
7776 "Paul Findlay <paul@findlay.net.nz>",
2828 "warnings" => 0
2929 },
3030 "TEST_REQUIRES" => {
31 "File::Slurp" => 0,
3231 "FindBin" => 0,
3332 "JSON::PP" => 0,
33 "Path::Tiny" => 0,
3434 "Test::FailWarnings" => 0,
3535 "Test::More" => 0,
3636 "Test::Most" => 0,
3737 "Test::NoWarnings" => 0
3838 },
39 "VERSION" => "1.71",
39 "VERSION" => "1.72",
4040 "test" => {
4141 "TESTS" => "t/*.t"
4242 }
4444
4545
4646 my %FallbackPrereqs = (
47 "File::Slurp" => 0,
4847 "FindBin" => 0,
4948 "JSON::PP" => 0,
5049 "Module::Build" => "0.3601",
50 "Path::Tiny" => 0,
5151 "Test::FailWarnings" => 0,
5252 "Test::More" => 0,
5353 "Test::Most" => 0,
22 an HTTP user agent string
33
44 VERSION
5 version 1.71
5 version 1.72
66
77 SYNOPSIS
88 use HTTP::BrowserDetect;
66 };
77
88 on 'test' => sub {
9 requires "File::Slurp" => "0";
109 requires "FindBin" => "0";
1110 requires "JSON::PP" => "0";
11 requires "Path::Tiny" => "0";
1212 requires "Test::FailWarnings" => "0";
1313 requires "Test::More" => "0";
1414 requires "Test::Most" => "0";
44 license = Perl_5
55 copyright_holder = Lee Semel
66 copyright_year = 2014
7 version = 1.71
7 version = 1.72
88 main_module = lib/HTTP/BrowserDetect.pm
99
1010 [GatherDir]
11 use warnings;
22
33 package HTTP::BrowserDetect;
4 $HTTP::BrowserDetect::VERSION = '1.71';
4 $HTTP::BrowserDetect::VERSION = '1.72';
55 use vars qw(@ALL_TESTS);
66
77 # Operating Systems
15101510
15111511 =head1 VERSION
15121512
1513 version 1.71
1513 version 1.72
15141514
15151515 =head1 SYNOPSIS
15161516
55 use Test::Most;
66 use Test::FailWarnings;
77
8 use File::Slurp;
98 use FindBin;
109 use JSON::PP;
10 use Path::Tiny qw( path );
1111
1212 # test that the module loads without errors
1313 my $w;
1414 {
1515 local $SIG{__WARN__} = sub { $w = shift };
16 require_ok( 'HTTP::BrowserDetect' );
16 require HTTP::BrowserDetect;
1717 }
18 ok !$w;
18 ok( !$w, 'no warnings on require' );
1919
20 my $json = read_file( "$FindBin::Bin/useragents.json" );
20 my $json = path( "$FindBin::Bin/useragents.json" )->slurp;
2121
2222 my $tests = JSON::PP->new->ascii->decode( $json );
2323