Imported Upstream version 1.72
gregor herrmann
9 years ago
20 | 20 |
"Olaf Alders <olaf\@wundercounter.com> (current maintainer)"
|
21 | 21 |
],
|
22 | 22 |
"dist_name" => "HTTP-BrowserDetect",
|
23 | |
"dist_version" => "1.71",
|
|
23 |
"dist_version" => "1.72",
|
24 | 24 |
"license" => "perl",
|
25 | 25 |
"module_name" => "HTTP::BrowserDetect",
|
26 | 26 |
"recommends" => {},
|
|
32 | 32 |
},
|
33 | 33 |
"script_files" => [],
|
34 | 34 |
"test_requires" => {
|
35 | |
"File::Slurp" => 0,
|
36 | 35 |
"FindBin" => 0,
|
37 | 36 |
"JSON::PP" => 0,
|
|
37 |
"Path::Tiny" => 0,
|
38 | 38 |
"Test::FailWarnings" => 0,
|
39 | 39 |
"Test::More" => 0,
|
40 | 40 |
"Test::Most" => 0,
|
|
44 | 44 |
|
45 | 45 |
|
46 | 46 |
my %fallback_build_requires = (
|
47 | |
"File::Slurp" => 0,
|
48 | 47 |
"FindBin" => 0,
|
49 | 48 |
"JSON::PP" => 0,
|
50 | 49 |
"Module::Build" => "0.3601",
|
|
50 |
"Path::Tiny" => 0,
|
51 | 51 |
"Test::FailWarnings" => 0,
|
52 | 52 |
"Test::More" => 0,
|
53 | 53 |
"Test::Most" => 0,
|
12 | 12 |
* Hao Wu <hwu@intellisurvey.com>
|
13 | 13 |
* Jon Jensen <jon@endpoint.com>
|
14 | 14 |
* Maros Kollar <maros@k-1.com>
|
15 | |
* Olaf Alders <olaf@Macintosh-9.local>
|
16 | 15 |
* Olaf Alders <olaf@wundersolutions.com>
|
17 | 16 |
* Olivier Bilodeau <olivier@bottomlesspit.org>
|
18 | 17 |
* Paul Findlay <paul@findlay.net.nz>
|
0 | 0 |
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
|
1 | 4 |
|
2 | 5 |
1.71 2014-05-19 22:38:52 America/Toronto
|
3 | 6 |
- Fixes warnings on "frakenagent" (Douglas Christopher Wilson)
|
40 | 40 |
},
|
41 | 41 |
"test" : {
|
42 | 42 |
"requires" : {
|
43 | |
"File::Slurp" : "0",
|
44 | 43 |
"FindBin" : "0",
|
45 | 44 |
"JSON::PP" : "0",
|
|
45 |
"Path::Tiny" : "0",
|
46 | 46 |
"Test::FailWarnings" : "0",
|
47 | 47 |
"Test::More" : "0",
|
48 | 48 |
"Test::Most" : "0",
|
|
62 | 62 |
"web" : "https://github.com/oalders/http-browserdetect"
|
63 | 63 |
}
|
64 | 64 |
},
|
65 | |
"version" : "1.71",
|
|
65 |
"version" : "1.72",
|
66 | 66 |
"x_contributors" : [
|
67 | 67 |
"Aran Deltac <bluefeet@gmail.com>",
|
68 | 68 |
"David Ihnen <davidihnen@gmail.com>",
|
|
71 | 71 |
"Hao Wu <hwu@intellisurvey.com>",
|
72 | 72 |
"Jon Jensen <jon@endpoint.com>",
|
73 | 73 |
"Maros Kollar <maros@k-1.com>",
|
74 | |
"Olaf Alders <olaf@Macintosh-9.local>",
|
75 | 74 |
"Olaf Alders <olaf@wundersolutions.com>",
|
76 | 75 |
"Olivier Bilodeau <olivier@bottomlesspit.org>",
|
77 | 76 |
"Paul Findlay <paul@findlay.net.nz>",
|
28 | 28 |
"warnings" => 0
|
29 | 29 |
},
|
30 | 30 |
"TEST_REQUIRES" => {
|
31 | |
"File::Slurp" => 0,
|
32 | 31 |
"FindBin" => 0,
|
33 | 32 |
"JSON::PP" => 0,
|
|
33 |
"Path::Tiny" => 0,
|
34 | 34 |
"Test::FailWarnings" => 0,
|
35 | 35 |
"Test::More" => 0,
|
36 | 36 |
"Test::Most" => 0,
|
37 | 37 |
"Test::NoWarnings" => 0
|
38 | 38 |
},
|
39 | |
"VERSION" => "1.71",
|
|
39 |
"VERSION" => "1.72",
|
40 | 40 |
"test" => {
|
41 | 41 |
"TESTS" => "t/*.t"
|
42 | 42 |
}
|
|
44 | 44 |
|
45 | 45 |
|
46 | 46 |
my %FallbackPrereqs = (
|
47 | |
"File::Slurp" => 0,
|
48 | 47 |
"FindBin" => 0,
|
49 | 48 |
"JSON::PP" => 0,
|
50 | 49 |
"Module::Build" => "0.3601",
|
|
50 |
"Path::Tiny" => 0,
|
51 | 51 |
"Test::FailWarnings" => 0,
|
52 | 52 |
"Test::More" => 0,
|
53 | 53 |
"Test::Most" => 0,
|
2 | 2 |
an HTTP user agent string
|
3 | 3 |
|
4 | 4 |
VERSION
|
5 | |
version 1.71
|
|
5 |
version 1.72
|
6 | 6 |
|
7 | 7 |
SYNOPSIS
|
8 | 8 |
use HTTP::BrowserDetect;
|
6 | 6 |
};
|
7 | 7 |
|
8 | 8 |
on 'test' => sub {
|
9 | |
requires "File::Slurp" => "0";
|
10 | 9 |
requires "FindBin" => "0";
|
11 | 10 |
requires "JSON::PP" => "0";
|
|
11 |
requires "Path::Tiny" => "0";
|
12 | 12 |
requires "Test::FailWarnings" => "0";
|
13 | 13 |
requires "Test::More" => "0";
|
14 | 14 |
requires "Test::Most" => "0";
|
4 | 4 |
license = Perl_5
|
5 | 5 |
copyright_holder = Lee Semel
|
6 | 6 |
copyright_year = 2014
|
7 | |
version = 1.71
|
|
7 |
version = 1.72
|
8 | 8 |
main_module = lib/HTTP/BrowserDetect.pm
|
9 | 9 |
|
10 | 10 |
[GatherDir]
|
5 | 5 |
use Test::Most;
|
6 | 6 |
use Test::FailWarnings;
|
7 | 7 |
|
8 | |
use File::Slurp;
|
9 | 8 |
use FindBin;
|
10 | 9 |
use JSON::PP;
|
|
10 |
use Path::Tiny qw( path );
|
11 | 11 |
|
12 | 12 |
# test that the module loads without errors
|
13 | 13 |
my $w;
|
14 | 14 |
{
|
15 | 15 |
local $SIG{__WARN__} = sub { $w = shift };
|
16 | |
require_ok( 'HTTP::BrowserDetect' );
|
|
16 |
require HTTP::BrowserDetect;
|
17 | 17 |
}
|
18 | |
ok !$w;
|
|
18 |
ok( !$w, 'no warnings on require' );
|
19 | 19 |
|
20 | |
my $json = read_file( "$FindBin::Bin/useragents.json" );
|
|
20 |
my $json = path( "$FindBin::Bin/useragents.json" )->slurp;
|
21 | 21 |
|
22 | 22 |
my $tests = JSON::PP->new->ascii->decode( $json );
|
23 | 23 |
|