typo fixing
[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';
19
20# an indirect dep. needs a certain version.
21requires 'Tie::Refhash' => '1.34';
22
23# for Test::Store
24requires 'Test::More';
25
26test_requires 'Test::Deep';
27test_requires 'Test::Exception';
28test_requires 'Test::MockObject' => '1.01';
84f65b2e 29
7048c24e 30WriteAll;
31
32sub is_upgrading_needed {
33 my %state = (
34 Cookie => 0.03,
35 URI => 0.02,
36 );
37
38 foreach my $module (keys %state) {
39 if ( eval "require Catalyst::Plugin::Session::State::$module" and
40 ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
41 warn <<WARN;
84f65b2e 42
43********** NOTE **********
84f65b2e 44
45Catalyst::Plugin::Session::State::$module must also be updated!
46
47The currently installed version is *not* compatible with this version of
48Catalyst::Plugin::Session!
49
2c1e330d 50The updated versions have been added to the prerequisites.
84f65b2e 51
52**************************
84f65b2e 53WARN
7048c24e 54 }
84f65b2e 55 }
56}