Commit | Line | Data |
7048c24e |
1 | use inc::Module::Install 0.68; |
84f65b2e |
2 | |
7048c24e |
3 | if ( -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 | |
8 | is_upgrading_needed(); |
9 | |
10 | perl_version '5.008'; |
11 | |
12 | name 'Catalyst-Plugin-Session'; |
13 | all_from 'lib/Catalyst/Plugin/Session.pm'; |
14 | |
15 | requires 'Catalyst::Runtime' => '5.7010'; |
16 | requires 'Digest'; |
17 | requires 'File::Spec'; |
18 | requires 'File::Temp'; |
19 | requires 'Object::Signature'; |
2842d938 |
20 | requires 'MRO::Compat'; |
7048c24e |
21 | |
22 | # an indirect dep. needs a certain version. |
52feb18b |
23 | requires 'Tie::RefHash' => '1.34'; |
7048c24e |
24 | |
25 | # for Test::Store |
26 | requires 'Test::More'; |
27 | |
28 | test_requires 'Test::Deep'; |
29 | test_requires 'Test::Exception'; |
30 | test_requires 'Test::MockObject' => '1.01'; |
84f65b2e |
31 | |
7048c24e |
32 | WriteAll; |
33 | |
34 | sub 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 | |
47 | Catalyst::Plugin::Session::State::$module must also be updated! |
48 | |
49 | The currently installed version is *not* compatible with this version of |
50 | Catalyst::Plugin::Session! |
51 | |
2c1e330d |
52 | The updated versions have been added to the prerequisites. |
84f65b2e |
53 | |
54 | ************************** |
84f65b2e |
55 | WARN |
7048c24e |
56 | } |
84f65b2e |
57 | } |
58 | } |