Badge::Depot::Plugin::Kwalitee - Kwalitee badge for Badge::Depot
Version 0.0103, released 2016-08-12.
If used standalone:
use Badge::Depot::Plugin::Kwalitee;
my $badge = Badge::Depot::Plugin::Kwalitee->new(dist => 'The-Dist', version => '0.1002', author => 'AUTHORID');
print $badge->to_html;
# prints:
<a href="http://cpants.cpanauthors.org/release/AUTHORID/The-Dist-0.1002">
<img src="http://badgedepot.code301.com/badge/kwalitee/AUTHORID/The-Dist/0.1002" alt="Distribution kwalitee" />
</a>
If used with Pod::Weaver::Section::Badges, in weaver.ini:
[Badges]
; other settings
badge = kwalitee
; set author here
-kwalitee_author = AUTHORID
Creates a Kwalitee badge for a distribution.
This class consumes the Badge::Depot role.
This badge tries to use distribution meta data to set the attributes. If that is available most attributes need not be set manually. The following checks are made:
- If the badge is used via Pod::Weaver::Section::Badges during a Dist::Zilla build, then
version
anddist
are set to the values in the Dist::Zilla object. - If there is a
META.json
in the distribution root then that is used to setversion
anddist
.
If neither of those are true, then you should also pass dist
and version
to the constructor.
The releaser's CPAN identity. Required.
Distribution name. With dashes, not colons.
Distribution version.
Default: https://badgedepot.code301.com
Set this if you wish to use another instance of Badge::Depot::App.
https://github.com/Csson/p5-Badge-Depot-Plugin-Kwalitee
https://metacpan.org/release/Badge-Depot-Plugin-Kwalitee
Erik Carlsson info@code301.com
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.