Commit | Line | Data |
63d41fcd |
1 | use strict; |
2 | use warnings; |
398c5a1b |
3 | use inc::Module::Install; |
63d41fcd |
4 | use Module::Install::AuthorRequires; |
4a1b40cd |
5 | use Module::Install::AuthorTests; |
7328f0ab |
6 | |
7 | perl_version '5.8.1'; |
8 | |
9 | name 'Catalyst-Action-REST'; |
c7cecf65 |
10 | all_from 'lib/Catalyst/Action/REST.pm'; |
7328f0ab |
11 | |
d54b6460 |
12 | requires 'Moose' => '1.03'; |
149182b3 |
13 | requires 'namespace::autoclean'; |
786c212f |
14 | requires('Catalyst::Runtime' => '5.80030'); |
33e5de96 |
15 | requires('Params::Validate' => '0.76'); |
16 | requires('YAML::Syck' => '0.67'); |
8aa1a2ee |
17 | requires('HTML::Parser' => undef); |
33e5de96 |
18 | requires('Module::Pluggable::Object' => undef); |
19 | requires('LWP::UserAgent' => '2.033'); |
20 | requires('Data::Serializer' => '0.36'); |
21 | requires('Class::Inspector' => '1.13'); |
8f00a41b |
22 | requires('URI::Find' => undef); |
def65dcc |
23 | requires('MRO::Compat' => '0.10'); |
8f00a41b |
24 | |
930013e6 |
25 | requires 'namespace::autoclean'; |
149182b3 |
26 | test_requires 'Test::More' => '0.88'; |
5ebf67a4 |
27 | |
4a1b40cd |
28 | author_requires 'Test::Pod' => 1.14; |
29 | author_requires 'Module::Info'; |
30 | author_requires 'File::Find::Rule'; |
31 | |
32 | author_tests 'xt/'; |
33 | |
ebba5325 |
34 | feature 'JSON (application/json) support', |
35 | -default => 0, |
be35ac1b |
36 | 'JSON' => '2.12', |
2f7533ed |
37 | 'JSON::XS' => '2.2222'; |
ebba5325 |
38 | |
63d41fcd |
39 | author_requires 'JSON' => '2.12'; |
40 | author_requires 'JSON::XS' => '2.2222'; |
41 | |
46ca391e |
42 | feature 'Data::Taxi (text/x-data-taxi) support (deprecated)', |
8f00a41b |
43 | -default => 0, |
44 | 'Data::Taxi' => undef; |
45 | |
63d41fcd |
46 | author_requires 'Data::Taxi'; |
47 | |
8f00a41b |
48 | feature 'Config::General (text/x-config-general) support', |
49 | -default => 0, |
50 | 'Config::General' => undef; |
63d41fcd |
51 | author_requires 'Config::General'; |
8f00a41b |
52 | |
53 | feature 'PHP::Serialization (text/x-php-serialization) support', |
54 | -default => 0, |
55 | 'PHP::Serialization' => undef; |
63d41fcd |
56 | author_requires 'PHP::Serialization'; |
8f00a41b |
57 | |
58 | feature 'FreezeThaw (application/x-freezethaw) support', |
59 | -default => 0, |
60 | 'FreezeThaw' => undef; |
63d41fcd |
61 | author_requires 'FreezeThaw'; |
8f00a41b |
62 | |
63 | feature 'XML::Simple (text/xml) support', |
64 | -default => 0, |
65 | 'XML::Simple' => undef; |
63d41fcd |
66 | author_requires 'XML::Simple'; |
33e5de96 |
67 | |
33e5de96 |
68 | auto_install; |
7328f0ab |
69 | |
63d41fcd |
70 | if ($Module::Install::AUTHOR) { |
71 | system("pod2text lib/Catalyst/Action/REST.pm > README") |
72 | and die $!; |
73 | } |
74 | |
c1f00522 |
75 | repository 'git://git.shadowcat.co.uk/catagits/Catalyst-Action-REST.git'; |
38c3a9b2 |
76 | |
5ec67ed4 |
77 | add_metadata( x_authority => 'cpan:BOBTFISH' ); |
78 | |
7328f0ab |
79 | WriteAll; |
80 | |