NAME
Dist::Zilla::Role::Author::YANICK::Changelog - provides an accessor for the changelog
VERSION
version 0.6.0
SYNOPSIS
package
Dist::Zilla::Plugin::Foo;
use
Moose;
qith
qw/
Dist::Zilla::Role::Plugin
Dist::Zilla::Role::FileMunger
/
;
roles
=> [
qw/ Author::YANICK::Changelog /
],
};
sub
munge_files {
my
$self
=
shift
;
my
$changes
=
$self
->changes;
...
$self
->save_changelog(
$changes
);
}
DESCRIPTION
Allows to access directly the distribution's changelog.
ATTRIBUTES
changelog_name()
The name of the changelog file. Defaults to Changes
.
METHODS
changelog_file
Returns the changelog file object.
changelog()
Returns a CPAN::Changes object representing the changelog.
save_changelog( $changes )
Commit $changes as the changelog file for the distribution.
AUTHOR
Yanick Champoux <yanick@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.