Dist::Zilla::Plugin::CheckChangesHasContent - Ensure Changes has content before releasing
version 0.003
# in dist.ini [CheckChangesHasContent]
This is a "before release" Dist::Zilla plugin that ensures that your Changes file actually has some content since the last release. If it doesn't find any, it will abort the release process.
The algorithm is very naive. It looks for an unindented line starting with the version to be released. It then looks for any text from that line until the next unindented line (or the end of the file), ignoring whitespace.
For example, in the file below, algorithm will find "- blah blah blah":
Changes file for Foo-Bar {{$NEXT}} - blah blah blah 0.001 Wed May 12 13:49:13 EDT 2010 - the first release
If you had nothing but whitespace between {{$NEXT}} and 0.001, the release would be halted.
{{$NEXT}}
0.001
If you name your change log something other than "Changes", you can configure the name with the changelog argument:
changelog
[CheckChangesHasContent] changelog = ChangeLog
Dist::Zilla
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2010 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Dist::Zilla::Plugin::CheckChangesHasContent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::CheckChangesHasContent
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::CheckChangesHasContent
For more information on module installation, please visit the detailed CPAN module installation guide.