logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CPAN::Changes::Release - A release in a CPAN Changes file

Attributes

version
       The version number of the release.

   date
       The date for the release.

   note
       The note attached to the release.

   entries
       An array ref of entries in the release.

   line
       The line number that the release starts at.

Authors

       See CPAN::Changes for authors.

Description

       A changelog is made up of one or more releases. This object provides access to all of the key data that
       embodies a release including the version number, date of release, and all of the changelog information
       lines.

Legacy Methods

changesadd_changesset_changesclear_changesgroupsadd_groupdelete_groupdelete_empty_groupsget_groupattach_groupgroup_values

Methods

serialize
       Returns the changes entry for the release in string form.

   clone
       Returns a new release object with the same data. Can be given any attributes to set them differently in
       the new object.

   has_entries
       Returns true if there are changes entries in this release.

   find_entry
       Accepts a string or a regex, returns a matching entry object.

   add_entry
       Adds a changes entry. Accepts a changes entry object or a string.

   remove_entry
       Given a string or a changes entry object, removes the entry from the release.

Name

       CPAN::Changes::Release - A release in a CPAN Changes file

See Also

       •   CPAN::Changes

Synopsis

         my $release = CPAN::Changes::Release->new(
           version => '0.01',
           date    => '2015-07-20',
         );

         $release->add_entry('This is a change');

See Also