App-RewriteVersion

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

 rewrite_version

     my $bool = $app->rewrite_version($file, $version);
     my $bool = $app->rewrite_version($file, $version, is_trial => $is_trial);

    Rewrites the version of the file at $file to $version if it has a
    version assignment in the form our $VERSION = '...';. Returns true if
    the version was rewritten, or false if no version assignment was found.
    If is_trial is true, # TRIAL will be appended to the version assignment
    line when rewriting. The -TRIAL indication is not part of the version
    and should be added to the name of the archive you upload to PAUSE,
    which is outside of the scope of this tool. An exception will be thrown
    if an invalid version is passed, or an I/O error occurs. A warning will
    be printed if $version is lower than the version previously declared in
    the file.

 rewrite_versions

     $app = $app->rewrite_versions($version);
     $app = $app->rewrite_versions($version, dist_dir => $dist_dir);
     $app = $app->rewrite_versions($version, is_trial => 1);

lib/App/RewriteVersion.pm  view on Meta::CPAN

=head2 rewrite_version

 my $bool = $app->rewrite_version($file, $version);
 my $bool = $app->rewrite_version($file, $version, is_trial => $is_trial);

Rewrites the version of the file at C<$file> to C<$version> if it has a version
assignment in the form C<our $VERSION = '...';>. Returns true if the version
was rewritten, or false if no version assignment was found. If C<is_trial> is
true, C<# TRIAL> will be appended to the version assignment line when
rewriting. The C<-TRIAL> indication is not part of the version and should be
added to the name of the archive you upload to PAUSE, which is outside of the
scope of this tool. An exception will be thrown if an invalid version is
passed, or an I/O error occurs. A warning will be printed if C<$version> is
lower than the version previously declared in the file.

=head2 rewrite_versions

 $app = $app->rewrite_versions($version);
 $app = $app->rewrite_versions($version, dist_dir => $dist_dir);
 $app = $app->rewrite_versions($version, is_trial => 1);
 $app = $app->rewrite_versions($version, subdirs => ['lib']);

script/perl-bump-version  view on Meta::CPAN


=head2 -L, --follow-symlinks

Follow directory symlinks when traversing the distribution for perl files to
rewrite.

=head2 -t, --trial

Mark version assignment as a trial release. This will only add a C<# TRIAL>
comment to the version assignment, as the C<-TRIAL> indication is not part of
the version and should be added to the name of the archive you upload to PAUSE,
which is outside of the scope of this tool.

=head2 -u, --allow-underscore

Allow decimal versions with underscores. Enabled by default, use
C<--no-allow-underscore> to disable. See
L<Dist::Zilla::Plugin::BumpVersionAfterRelease/"Using underscore in decimal $VERSION">
for more information.

=head2 -v, --verbose

script/perl-rewrite-version  view on Meta::CPAN


=head2 -L, --follow-symlinks

Follow directory symlinks when traversing the distribution for perl files to
rewrite.

=head2 -t, --trial

Mark version assignment as a trial release. This will only add a C<# TRIAL>
comment to the version assignment, as the C<-TRIAL> indication is not part of
the version and should be added to the name of the archive you upload to PAUSE,
which is outside of the scope of this tool.

=head2 -u, --allow-underscore

Allow decimal versions with underscores. Enabled by default, use
C<--no-allow-underscore> to disable. See
L<Dist::Zilla::Plugin::BumpVersionAfterRelease/"Using underscore in decimal $VERSION">
for more information.

=head2 -V, --set-version <version>



( run in 1.404 second using v1.01-cache-2.11-cpan-b16cb0d3907 )