add check to make sure finalize_session() was actually called
[catagits/Catalyst-Plugin-Session.git] / Build.PL
CommitLineData
37160715 1use strict;
2use Module::Build;
3
4my $build = Module::Build->new(
5 create_makefile_pl => 'traditional',
6 license => 'perl',
7 module_name => 'Catalyst::Plugin::Session',
8 requires => {
eb14a509 9 'perl' => '5.8.1',
10 'Catalyst' => '5.49',
11 'Test::MockObject' => '1.01',
12 'Digest' => 0,
13 'Object::Signature' => 0,
14 'File::Temp' => 0,
15 'File::Spec' => 0,
16 'Test::Deep' => 0,
17 'Test::More' => 0,
18 'Test::Exception' => 0,
37160715 19 },
45c0711b 20 reccomends => {
21
22 # for live_app.t
23 'Test::WWW::Mechanize::Catalyst' => 0,
340449a2 24 'Catalyst::Plugin::Session::Cookie' => '0.03',
45c0711b 25 },
26 create_readme => 1,
27 sign => 1,
37160715 28);
29$build->create_build_script;
30
340449a2 31
32my %state = (
33 Cookie => 0.03,
34 URI => 0.02,
35);
36
37foreach my $module (keys %state) {
38 eval "require Catalyst::Plugin::Session::State::$module" and
39 eval { "Catalyst::Plugin::Session::State::$module"->VERSION($state{$module}) }
40 || warn <<WARN
41
42********** NOTE **********
43**************************
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
50**************************
51**************************
52WARN
53}