Commit | Line | Data |
84f65b2e |
1 | use ExtUtils::MakeMaker; |
2 | |
3 | my %state = ( |
4 | Cookie => 0.03, |
5 | URI => 0.02, |
6 | ); |
7 | |
8 | my @extra; |
9 | |
10 | foreach my $module (keys %state) { |
cfb50316 |
11 | if ( eval "require Catalyst::Plugin::Session::State::$module" and |
325f6ef4 |
12 | ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) { |
84f65b2e |
13 | warn <<WARN; |
14 | |
15 | ********** NOTE ********** |
16 | ************************** |
17 | |
18 | Catalyst::Plugin::Session::State::$module must also be updated! |
19 | |
20 | The currently installed version is *not* compatible with this version of |
21 | Catalyst::Plugin::Session! |
22 | |
2c1e330d |
23 | The updated versions have been added to the prerequisites. |
84f65b2e |
24 | |
25 | ************************** |
26 | ************************** |
27 | WARN |
28 | |
29 | push @extra, "Catalyst::Plugin::Session::State::$module" => $state{$module}; |
30 | } |
31 | } |
32 | |
33 | WriteMakefile |
34 | ( |
35 | 'NAME' => 'Catalyst::Plugin::Session', |
36 | 'VERSION_FROM' => 'lib/Catalyst/Plugin/Session.pm', |
37 | 'PREREQ_PM' => { |
38 | 'Catalyst' => '5.49', |
39 | 'Digest' => '0', |
40 | 'File::Spec' => '0', |
41 | 'File::Temp' => '0', |
42 | 'Object::Signature' => '0', |
43 | 'Test::Deep' => '0', |
44 | 'Test::Exception' => '0', |
45 | 'Test::MockObject' => '1.01', |
46 | 'Test::More' => '0', |
47 | 'Tie::RefHash' => '1.34', |
48 | @extra, |
49 | }, |
50 | 'INSTALLDIRS' => 'site', |
51 | 'EXE_FILES' => [], |
52 | 'SIGN' => 1, |
53 | 'PL_FILES' => {} |
54 | ) |
55 | ; |
56 | |
57 | |