Checking in changes prior to tagging of version 0.19_01. Changelog diff is:
[catagits/Catalyst-Plugin-Session.git] / Makefile.PL
CommitLineData
7048c24e 1use inc::Module::Install 0.68;
84f65b2e 2
7048c24e 3if ( -e 'MANIFEST.SKIP' ) {
7550f095 4 system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' )
5 and die("Could not run pod2text on lib/Catalyst/Plugin/Session.pm");
7048c24e 6}
7
8is_upgrading_needed();
9
10perl_version '5.008';
11
12name 'Catalyst-Plugin-Session';
13all_from 'lib/Catalyst/Plugin/Session.pm';
14
15requires 'Catalyst::Runtime' => '5.7010';
16requires 'Digest';
17requires 'File::Spec';
18requires 'File::Temp';
19requires 'Object::Signature';
2842d938 20requires 'MRO::Compat';
7048c24e 21
22# an indirect dep. needs a certain version.
52feb18b 23requires 'Tie::RefHash' => '1.34';
7048c24e 24
25# for Test::Store
26requires 'Test::More';
27
28test_requires 'Test::Deep';
29test_requires 'Test::Exception';
30test_requires 'Test::MockObject' => '1.01';
84f65b2e 31
7048c24e 32WriteAll;
33
34sub is_upgrading_needed {
35 my %state = (
36 Cookie => 0.03,
37 URI => 0.02,
38 );
39
40 foreach my $module (keys %state) {
41 if ( eval "require Catalyst::Plugin::Session::State::$module" and
42 ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
43 warn <<WARN;
84f65b2e 44
45********** NOTE **********
84f65b2e 46
47Catalyst::Plugin::Session::State::$module must also be updated!
48
49The currently installed version is *not* compatible with this version of
50Catalyst::Plugin::Session!
51
2c1e330d 52The updated versions have been added to the prerequisites.
84f65b2e 53
54**************************
84f65b2e 55WARN
7048c24e 56 }
84f65b2e 57 }
58}