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'); |
33e5de96 |
16 | requires('Module::Pluggable::Object' => undef); |
17 | requires('LWP::UserAgent' => '2.033'); |
33e5de96 |
18 | requires('Class::Inspector' => '1.13'); |
8f00a41b |
19 | requires('URI::Find' => undef); |
def65dcc |
20 | requires('MRO::Compat' => '0.10'); |
8f00a41b |
21 | |
930013e6 |
22 | requires 'namespace::autoclean'; |
149182b3 |
23 | test_requires 'Test::More' => '0.88'; |
5ebf67a4 |
24 | |
4a1b40cd |
25 | author_requires 'Test::Pod' => 1.14; |
26 | author_requires 'Module::Info'; |
27 | author_requires 'File::Find::Rule'; |
28 | |
29 | author_tests 'xt/'; |
30 | |
ebba5325 |
31 | feature 'JSON (application/json) support', |
32 | -default => 0, |
be35ac1b |
33 | 'JSON' => '2.12', |
2f7533ed |
34 | 'JSON::XS' => '2.2222'; |
ebba5325 |
35 | |
63d41fcd |
36 | author_requires 'JSON' => '2.12'; |
37 | author_requires 'JSON::XS' => '2.2222'; |
38 | |
47c3e6b3 |
39 | feature 'YAML:Syck (for YAML)', |
40 | -default => 0, |
41 | 'YAML::Syck' => '0.67'; |
42 | author_requires 'YAML::Syck'; |
43 | |
44 | feature 'HTML::Parser (for HTML input)', |
45 | -default => 0, |
46 | 'HTML::Parser' => undef; |
47 | author_requires 'HTML::Parser'; |
48 | |
46ca391e |
49 | feature 'Data::Taxi (text/x-data-taxi) support (deprecated)', |
8f00a41b |
50 | -default => 0, |
51 | 'Data::Taxi' => undef; |
52 | |
63d41fcd |
53 | author_requires 'Data::Taxi'; |
54 | |
8f00a41b |
55 | feature 'Config::General (text/x-config-general) support', |
56 | -default => 0, |
57 | 'Config::General' => undef; |
63d41fcd |
58 | author_requires 'Config::General'; |
8f00a41b |
59 | |
60 | feature 'PHP::Serialization (text/x-php-serialization) support', |
61 | -default => 0, |
62 | 'PHP::Serialization' => undef; |
63d41fcd |
63 | author_requires 'PHP::Serialization'; |
8f00a41b |
64 | |
65 | feature 'FreezeThaw (application/x-freezethaw) support', |
66 | -default => 0, |
67 | 'FreezeThaw' => undef; |
63d41fcd |
68 | author_requires 'FreezeThaw'; |
8f00a41b |
69 | |
70 | feature 'XML::Simple (text/xml) support', |
71 | -default => 0, |
72 | 'XML::Simple' => undef; |
63d41fcd |
73 | author_requires 'XML::Simple'; |
33e5de96 |
74 | |
33e5de96 |
75 | auto_install; |
7328f0ab |
76 | |
63d41fcd |
77 | if ($Module::Install::AUTHOR) { |
78 | system("pod2text lib/Catalyst/Action/REST.pm > README") |
79 | and die $!; |
80 | } |
81 | |
c1f00522 |
82 | repository 'git://git.shadowcat.co.uk/catagits/Catalyst-Action-REST.git'; |
38c3a9b2 |
83 | |
5ec67ed4 |
84 | add_metadata( x_authority => 'cpan:BOBTFISH' ); |
85 | |
7328f0ab |
86 | WriteAll; |
87 | |