WWW::StatusBadge - Plugin based Status Badge generator
version 0.0.2
use WWW::StatusBadge; my $badge = WWW::StatusBadge->new( 'repo' => 'WWW-StatusBadge.pm', 'dist' => 'WWW-StatusBadge', 'user' => 'ARivottiC', 'branch' => 'develop', ); my $travis_markdown = $badge->travis->markdown; my $coveralls_textile = $badge->coveralls->textile; my $cpan_rst = $badge->badgefury( 'for' => 'perl' )->rst;
A Status Badge is dynamically generated image that provide different information relating to a project, such as coverage, test, build, and can be found in many GitHub repositories.
This module generates the markup necessary to include this badges in any documentation.
For more information see Project status badges, badges/shields on GitHub and Travis CI: Status Images.
Returns the original args used in the constructor.
my $badge = WWW::StatusBadge->new( 'repo' => 'WWW-StatusBadge.pm', 'dist' => 'WWW-StatusBadge', 'user' => 'ARivottiC', 'branch' => 'develop', );
None of the following are required and may vary depending on the plugin used.
The repository name.
The distribution name.
The user name.
The branch name.
Declare the repository as private.
See WWW::StatusBadge::Service for more info.
package WWW::StatusBadge::Plugin::Travis; use WWW::StatusBadge::Service::TravisCI; sub service { return WWW::StatusBadge::Service::TravisCI->new( shift->args, @_ ); } 1;
WWW::StatusBadge::Plugin::Travis
WWW::StatusBadge::Plugin::Coveralls
WWW::StatusBadge::Plugin::BadgeFury
WWW::StatusBadge::Plugin::CPAN
WWW::StatusBadge::Service
André Rivotti Casimiro <rivotti@cpan.org>
This software is Copyright (c) 2014 by André Rivotti Casimiro.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install WWW::StatusBadge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::StatusBadge
CPAN shell
perl -MCPAN -e shell install WWW::StatusBadge
For more information on module installation, please visit the detailed CPAN module installation guide.