Module::Changes::Entire - an entire Changes file
use Module::Changes; my $changes = Module::Changes->make_object_for_type('entire'); print $changes->newest_release->version;
This class represents an entire Changes file.
See Module::Changes for the definition of the terms revision, version, subversion and alpha.
This class inherits all methods from Module::Changes::Base.
$changes->name('Foo-Bar'); my $name = $changes->name;
Set or get the overall distribution name of the Changes file.
$changes->releases_unshift($release); for my $release ($changes->releases) { ... }
This is an array accessor giving access to all the releases contained in the Changes file. See Class::Accessor::Complex's mk_array_accessors() for which methods are available.
mk_array_accessors()
print $changes->newest_release->version;
Returns the most recent release object.
$changes->add_empty_release(sub { my $release = shift; ... });
Adds a release object. Its version number is taken from the previously most recent release. Its author is also taken from the the previous release.
Takes a coderef argument. The empty release object is passed to the coderef before adding it to the list of releases. The coderef might manipulate the version number, for example.
$changes->add_new_revision;
Add a new release. Its version number is taken from the previously most recent release, increased to the next revision. Its author is also taken from the the previous release.
For example, if the previous release was version v0.02, the new release will be version v1.00.
v0.02
v1.00
$changes->add_new_version;
Add a new release. Its version number is taken from the previous release, increased to the next version. Its author is also taken from the the previous release.
For example, if the previous release was version v0.02, the new release will be version v0.03. If it was v0.02_01, it will still be v0.03.
v0.03
v0.02_01
$changes->add_new_subversion;
Add a new release. Its version number is taken from the previous release, increased to the next subversion. Its author is also taken from the the previous release.
For example, if the previous release was version v0.02, the new release will be version v0.02.01.
v0.02.01
$changes->add_new_alpha;
Add a new release. Its version number is taken from the previous release, increased to the next alpha. Its author is also taken from the the previous release.
For example, if the previous release was version v0.02, the new release will be version v0.02_01.
If you talk about this module in blogs, on del.icio.us or anywhere else, please use the modulechanges tag.
modulechanges
No bugs have been reported.
Please report any bugs or feature requests to bug-module-changes@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-module-changes@rt.cpan.org
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
Marcel Grünauer, <marcel@cpan.org>
<marcel@cpan.org>
Copyright 2007 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Module::Changes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Changes
CPAN shell
perl -MCPAN -e shell install Module::Changes
For more information on module installation, please visit the detailed CPAN module installation guide.