Commit | Line | Data |
06e8ee7c |
1 | use inc::Module::Install 0.87; |
0455600a |
2 | use Module::Install::AuthorTests; |
84f65b2e |
3 | |
7048c24e |
4 | if ( -e 'MANIFEST.SKIP' ) { |
7550f095 |
5 | system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' ) |
6 | and die("Could not run pod2text on lib/Catalyst/Plugin/Session.pm"); |
7048c24e |
7 | } |
8 | |
9 | is_upgrading_needed(); |
10 | |
11 | perl_version '5.008'; |
12 | |
13 | name 'Catalyst-Plugin-Session'; |
14 | all_from 'lib/Catalyst/Plugin/Session.pm'; |
15 | |
93fd6a1d |
16 | requires 'Catalyst::Runtime' => '5.71001'; |
c0c50a2c |
17 | requires 'namespace::clean' => '0.10'; |
7048c24e |
18 | requires 'Digest'; |
19 | requires 'File::Spec'; |
20 | requires 'File::Temp'; |
21 | requires 'Object::Signature'; |
2842d938 |
22 | requires 'MRO::Compat'; |
53aa1451 |
23 | requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00801'; |
24 | requires 'Moose' => '0.76'; |
7048c24e |
25 | |
26 | # an indirect dep. needs a certain version. |
52feb18b |
27 | requires 'Tie::RefHash' => '1.34'; |
7048c24e |
28 | |
29 | # for Test::Store |
834ab0b8 |
30 | requires 'Test::More' => '0.88'; |
7048c24e |
31 | |
32 | test_requires 'Test::Deep'; |
33 | test_requires 'Test::Exception'; |
83a3f0e9 |
34 | test_requires 'Test::WWW::Mechanize::PSGI'; |
f9515efa |
35 | resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-Plugin-Session.git'; |
42117cb1 |
36 | |
0455600a |
37 | author_tests 't/author'; |
38 | |
7048c24e |
39 | WriteAll; |
40 | |
41 | sub is_upgrading_needed { |
42 | my %state = ( |
43 | Cookie => 0.03, |
44 | URI => 0.02, |
45 | ); |
46 | |
47 | foreach my $module (keys %state) { |
c0430ac1 |
48 | my $package = 'Catalyst::Plugin::Session::State::' . $module; |
49 | |
50 | next if not eval "require $package;"; |
84f65b2e |
51 | |
c0430ac1 |
52 | if( not eval { $package->VERSION( $state{ $module } ); } ) { |
53 | warn <<WARN; |
84f65b2e |
54 | ********** NOTE ********** |
84f65b2e |
55 | |
c0430ac1 |
56 | $package must also be updated! |
84f65b2e |
57 | |
58 | The currently installed version is *not* compatible with this version of |
59 | Catalyst::Plugin::Session! |
60 | |
2c1e330d |
61 | The updated versions have been added to the prerequisites. |
84f65b2e |
62 | |
63 | ************************** |
84f65b2e |
64 | WARN |
7048c24e |
65 | } |
84f65b2e |
66 | } |
67 | } |