From: Rafael Kitover Date: Wed, 18 May 2011 02:30:05 +0000 (-0400) Subject: add asterisks to items in POD class lists X-Git-Tag: 0.07011~111 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=017d9734748e71204b8133a9b40cb2ec69a2b4a9;p=dbsrgits%2FDBIx-Class-Schema-Loader.git add asterisks to items in POD class lists --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index fbfc4d3..fbf36a7 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -2137,7 +2137,7 @@ sub _pod_class_list { $self->_pod($class, '=over 4'); foreach my $link (@classes) { - $self->_pod($class, "=item L<$link>"); + $self->_pod($class, "=item * L<$link>"); } $self->_pod($class, '=back'); diff --git a/t/23dumpmore.t b/t/23dumpmore.t index 9bd82a6..6c94007 100644 --- a/t/23dumpmore.t +++ b/t/23dumpmore.t @@ -101,10 +101,10 @@ $t->dump_test( qr/package DBICTest::DumpMore::1::Foo;/, qr/\n=head1 NAME\n\nDBICTest::DumpMore::1::Foo\n\n=cut\n\n/, qr/\n=head1 BASE CLASS: L\n\n=cut\n\n/, - qr/\n=head1 ADDITIONAL CLASSES USED\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 ADDITIONAL BASE CLASSES\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 LEFT BASE CLASSES\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 COMPONENTS LOADED\n\n=over 4\n\n=item L\n\n=item L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 ADDITIONAL CLASSES USED\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 ADDITIONAL BASE CLASSES\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 LEFT BASE CLASSES\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 COMPONENTS LOADED\n\n=over 4\n\n=item \* L\n\n=item \* L\n\n=back\n\n=cut\n\n/, qr/\n=head1 ACCESSORS\n\n/, qr/\n=head2 fooid\n\n data_type: 'integer'\n is_auto_increment: 1\n is_nullable: 0\n\n/, qr/\n=head2 footext\n\n data_type: 'text'\n default_value: 'footext'\n extra: {is_footext => 1}\n is_nullable: 1\n\n/, @@ -117,10 +117,10 @@ $t->dump_test( qr/package DBICTest::DumpMore::1::Bar;/, qr/\n=head1 NAME\n\nDBICTest::DumpMore::1::Bar\n\n=cut\n\n/, qr/\n=head1 BASE CLASS: L\n\n=cut\n\n/, - qr/\n=head1 ADDITIONAL CLASSES USED\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 ADDITIONAL BASE CLASSES\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 LEFT BASE CLASSES\n\n=over 4\n\n=item L\n\n=back\n\n=cut\n\n/, - qr/\n=head1 COMPONENTS LOADED\n\n=over 4\n\n=item L\n\n=item L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 ADDITIONAL CLASSES USED\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 ADDITIONAL BASE CLASSES\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 LEFT BASE CLASSES\n\n=over 4\n\n=item \* L\n\n=back\n\n=cut\n\n/, + qr/\n=head1 COMPONENTS LOADED\n\n=over 4\n\n=item \* L\n\n=item \* L\n\n=back\n\n=cut\n\n/, qr/\n=head1 ACCESSORS\n\n/, qr/\n=head2 barid\n\n data_type: 'integer'\n is_auto_increment: 1\n is_nullable: 0\n\n/, qr/\n=head2 fooref\n\n data_type: 'integer'\n is_foreign_key: 1\n is_nullable: 1\n\n/, diff --git a/t/26dump_use_moose.t b/t/26dump_use_moose.t index 5f8f40c..7eac67a 100644 --- a/t/26dump_use_moose.t +++ b/t/26dump_use_moose.t @@ -35,13 +35,13 @@ $t->dump_test( ], Foo => [ qr/\nuse Moose;\nuse MooseX::NonMoose;\nuse namespace::autoclean;\nextends 'My::ResultBaseClass';\n\n/, - qr/=head1 L ROLES APPLIED\n\n=over 4\n\n=item L\n\n=item L\n\n=back\n\n=cut\n\n/, + qr/=head1 L ROLES APPLIED\n\n=over 4\n\n=item \* L\n\n=item \* L\n\n=back\n\n=cut\n\n/, qr/\nwith 'TestRole', 'TestRole2';\n\n/, qr/\n__PACKAGE__->meta->make_immutable;\n1;(?!\n1;\n)\n.*/, ], Bar => [ qr/\nuse Moose;\nuse MooseX::NonMoose;\nuse namespace::autoclean;\nextends 'My::ResultBaseClass';\n\n/, - qr/=head1 L ROLES APPLIED\n\n=over 4\n\n=item L\n\n=item L\n\n=back\n\n=cut\n\n/, + qr/=head1 L ROLES APPLIED\n\n=over 4\n\n=item \* L\n\n=item \* L\n\n=back\n\n=cut\n\n/, qr/\nwith 'TestRole', 'TestRole2';\n\n/, qr/\n__PACKAGE__->meta->make_immutable;\n1;(?!\n1;\n)\n.*/, ],