Dist::Zilla Needs Support The Second

So part two of support day here in the Dist-Pen

In my last post I had a look at the [Support] section plug-in and now I am going to have a closer look to see if I can create my own custom version of it.

The first thing I want to do is get rid of the 'perldoc' blurb and I can accomplish that by simply making that attribute false (0) in my 'weaver.ini' file


[Support]
++perldoc = 0
[Legal]

'Bugs' is the next blurb that I am looking at and I should be able just to turn it on by specifying that I want to use the 'metadata' rather than the default 'rt' so all I need to do is

[Support]
perldoc = 0
++bugs= metadata
[Legal]

and it should just work for me.

Next I am going to look at the 'websites' blurb. I initially though I could add in my own fake web site item on this list but on second reading of the POD I see that I can either have all, none or just a select few from the default list of nine different sites. I do not like that long list of nine sites so I will only pick the two I like the most and add them in as follows;


[Support]
perldoc = 0
bugs= metadata
++websites = kwalitee, Testers
[Legal]

Now I can just forget the 'irc' link for now and from my last post I say that the plug-in was smart enough to figure out that I am using Github so I do not have to change the 'repository_link' at all. However, I really do not like the default blurb for it so I will swap it out for one I like;

[Support]
perldoc = 0
bugs= metadata
websites = kwalitee, Testers
++repository_content = This code is free software. Change it as you like. Patches and comments are welcome.
[Legal]

So that is all done now just give it a the clean and build with dzil and I get


Undefined subroutine &Pod::Weaver::Section::Support::_add_websites_Testers called at /usr/local/share/perl/5.18.2/Pod/Weaver/Section/Support.pm line 508.
opps! I guess case matters for the websites so a quick change to that

--websites =  kwalitee,  Testers
++websites =  kwalitee,  testers
and the clean and build again I get

=head1 SUPPORT

=head2 Websites

The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
=over 4
=item *
CPANTS
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.

L<http://cpants.cpanauthors.org/dist/Database-Accessor>
=item *
CPAN Testers
The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.

L<http://www.cpantesters.org/distro/D/Database-Accessor>
=back
=head2 Bugs / Feature Requests
Please report any bugs or feature requests by email to C<test@test.com>, or through the web interface at L<https://github.com/byterock/database-accessor/issues>. You will be automatically notified of any progress on the request by the system.
=head2 Source Code
This code is free software. Change it as you like. Patches and comments are welcome.
L<https://github.com/byterock/database-accessor>

git clone https://github.com/byterock/database-accessor.git


So a very good start on it but I still would like to get my custom website in the websites blurb and I think I can do that by using the websites_content attribute and adding it in there. I will give this a try and see what come up

[Support]
perldoc = 0
bugs= metadata
websites = kwalitee, testers
++websites_content = This code has a home page at L<http://database.accessor.org> /n I addition ++following websites have more information about this module, and may be of help to you
repository_content = This code is free software. Change it as you like. Patches and comments are welcome.
[Legal]

and after a clean and build I get

=head2 Websites

This code has a home page at L<http://database.accessor.org> /n I addition following websites have more information about this module, and may be of help to you

So that is all great and good and I think this plug-in is a keeper that I will be using in the future.

6a00d8341bfb8d53ef00e5538498aa8833-800wi.jpg


Leave a comment

About byterock

user-pic Long time Perl guy, a few CPAN mods allot of work on DBD::Oracle and a few YAPC presentations