2 use inc::Module::Install 0.87;
3 use Module::Install::AuthorTests;
5 if ( -e 'MANIFEST.SKIP' ) {
6 system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' )
7 and die("Could not run pod2text on lib/Catalyst/Plugin/Session.pm");
10 is_upgrading_needed();
14 name 'Catalyst-Plugin-Session';
15 all_from 'lib/Catalyst/Plugin/Session.pm';
17 requires 'Catalyst::Runtime' => '5.71001';
18 requires 'namespace::clean' => '0.10';
20 requires 'File::Spec';
21 requires 'File::Temp';
22 requires 'List::Util';
23 requires 'Object::Signature';
24 requires 'MRO::Compat';
25 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00801';
26 requires 'Moose' => '0.76';
27 requires 'HTML::Entities';
29 # an indirect dep. needs a certain version.
30 requires 'Tie::RefHash' => '1.34';
33 requires 'Test::More' => '0.88';
35 test_requires 'Test::Deep';
36 test_requires 'Test::Exception';
37 test_requires 'Test::WWW::Mechanize::PSGI';
38 resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-Plugin-Session.git';
40 author_tests 't/author';
44 sub is_upgrading_needed {
50 foreach my $module (keys %state) {
51 my $package = 'Catalyst::Plugin::Session::State::' . $module;
53 next if not eval "require $package;";
55 if( not eval { $package->VERSION( $state{ $module } ); } ) {
57 ********** NOTE **********
59 $package must also be updated!
61 The currently installed version is *not* compatible with this version of
62 Catalyst::Plugin::Session!
64 The updated versions have been added to the prerequisites.
66 **************************