Badge-Depot-Plugin-Gratipay
view release on metacpan or search on metacpan
lib/Badge/Depot/Plugin/Gratipay.pm view on Meta::CPAN
use strict;
use warnings;
package Badge::Depot::Plugin::Gratipay;
use Moose;
use namespace::autoclean;
use Types::Standard qw/Str/;
use Types::URI qw/Uri/;
with 'Badge::Depot';
our $VERSION = '0.0103';
# ABSTRACT: Gratipay plugin for Badge::Depot (deprecated)
our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
has user => (
is => 'ro',
isa => Str,
required => 1,
);
has custom_image_url => (
is => 'ro',
isa => Uri,
coerce => 1,
default => 'https://img.shields.io/gratipay/%s.svg',
);
sub BUILD {
my $self = shift;
$self->link_url(sprintf 'https://gratipay.com/%s', $self->user);
$self->image_url(sprintf $self->custom_image_url, $self->user);
$self->image_alt('Gratipay');
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Badge::Depot::Plugin::Gratipay - Gratipay plugin for Badge::Depot (deprecated)
=begin html
<p>
<img src="https://img.shields.io/badge/perl-5.10.1+-blue.svg" alt="Requires Perl 5.10.1+" />
<a href="https://travis-ci.org/Csson/p5-Badge-Depot-Plugin-Gratipay"><img src="https://api.travis-ci.org/Csson/p5-Badge-Depot-Plugin-Gratipay.svg?branch=master" alt="Travis status" /></a>
<a href="http://cpants.cpanauthors.org/release/CSSON/Badge-Depot-Plugin-Gratipay-0.0103"><img src="http://badgedepot.code301.com/badge/kwalitee/CSSON/Badge-Depot-Plugin-Gratipay/0.0103" alt="Distribution kwalitee" /></a>
<a href="http://matrix.cpantesters.org/?dist=Badge-Depot-Plugin-Gratipay%200.0103"><img src="http://badgedepot.code301.com/badge/cpantesters/Badge-Depot-Plugin-Gratipay/0.0103" alt="CPAN Testers result" /></a>
<img src="https://img.shields.io/badge/coverage-96.7%-yellow.svg" alt="coverage 96.7%" />
</p>
=end html
=head1 VERSION
Version 0.0103, released 2018-01-29.
=head1 SYNOPSIS
( run in 0.717 second using v1.01-cache-2.11-cpan-b16cb0d3907 )