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