X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FOptional%2FDependencies.pm;h=68707142f696104ea4954fcabdbe6723f51883a1;hb=6a5b809ee59551d3362f03af7762e11456420c8e;hp=06752bb7d74d52eb07407f87177ad3c14b990590;hpb=2b48ebff2d13ae5314aa62942434bd4e697ad1ab;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Optional/Dependencies.pm b/lib/DBIx/Class/Optional/Dependencies.pm index 06752bb..6870714 100644 --- a/lib/DBIx/Class/Optional/Dependencies.pm +++ b/lib/DBIx/Class/Optional/Dependencies.pm @@ -16,6 +16,14 @@ my $moose_basic = { 'MooseX::Types' => '0.21', }; +my $admin_basic = { + %$moose_basic, + 'MooseX::Types::Path::Class' => '0.05', + 'MooseX::Types::JSON' => '0.02', + 'namespace::autoclean' => '0.09', + 'parent' => '0.223', +}; + my $reqs = { dist => { #'Module::Install::Pod::Inherit' => '0.01', @@ -35,16 +43,26 @@ my $reqs = { admin => { req => { + %$admin_basic, + }, + pod => { + title => 'DBIx::Class::Admin', + desc => 'Modules required for the DBIx::Class administrative library', + }, + }, + + admin_script => { + req => { %$moose_basic, - 'MooseX::Types::Path::Class'=> '0.05', - 'MooseX::Types::JSON' => '0.02', - 'Try::Tiny' => '0.02', - 'namespace::autoclean' => '0.09', - 'parent' => '0.223', + %$admin_basic, 'Getopt::Long::Descriptive' => '0.081', 'JSON::Any' => '1.22', 'Text::CSV' => '1.16', }, + pod => { + title => 'dbicadmin', + desc => 'Modules required for the CLI DBIx::Class interface dbicadmin', + }, }, deploy => { @@ -231,8 +249,20 @@ sub _check_deps { sub _gen_pod { my $class = shift; + my $modfn = __PACKAGE__ . '.pm'; + $modfn =~ s/\:\:/\//g; my @chunks = ( + <<"EOC", +######################################################################### +##################### A U T O G E N E R A T E D ######################## +######################################################################### +# +# The contents of this POD file are auto-generated. Any changes you make +# will be lost. If you need to change the generated text edit _gen_pod() +# at the end of $modfn +# +EOC '=head1 NAME', "$class - Optional module dependency specifications", '=head1 DESCRIPTION', @@ -299,7 +329,7 @@ EOD '=item Arguments: $group_name', '=item Returns: 1|0', '=back', - 'Returns true or false depending on whether all modules required by $group_name are present on the system and loadable', + 'Returns true or false depending on whether all modules required by C<$group_name> are present on the system and loadable', '=head2 req_missing_for', '=over', @@ -330,7 +360,10 @@ EOD Returns a hashref containing the actual errors that occured while attempting to load each module in the requirement group. EOD - + '=head1 AUTHOR', + 'See L.', + '=head1 LICENSE', + 'You may distribute this code under the same terms as Perl itself', ); my $fn = __FILE__;