The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dist::Zilla::Role::Author::YANICK::Changelog - provides an accessor for the changelog

VERSION

version 0.1.2

SYNOPSIS

    package Dist::Zilla::Plugin::Foo;

    use Moose;

    qith qw/ 
        Dist::Zilla::Role::Plugin
        Dist::Zilla::Role::FileMunger
    /;

    with 'Dist::Zilla::Role::Author::YANICK::RequireZillaRole' => {
        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@babyl.dyndns.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.