Commits

Shlomi Fish committed 4a01e2d

Bumped the version number to a new version.

Comments (0)

Files changed (7)

Dist-Man/Dist-Man/MANIFEST

-
 bin/pl-dist-man
 Build.PL
+bump-version-number.pl
 Changes
 getting-started.html
 inc/Test/Run/Builder.pm
 lib/Dist/Man/Simple.pm
 Makefile.PL
 MANIFEST
+META.yml
 perlcriticrc
 README
 t/00-load.t
 t/pod-coverage.t
 t/pod.t
 t/test-dist.t
-META.yml

Dist-Man/Dist-Man/bump-version-number.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use File::Find::Object;
+use IO::All;
+
+my $tree = File::Find::Object->new({}, 'lib/');
+
+while (my $r = $tree->next()) {
+    if ($r =~ m{/\.svn\z})
+    {
+        $tree->prune();
+    }
+    elsif ($r =~ m{\.pm\z})
+    {
+        my @lines = io->file($r)->getlines();
+        LINES_LOOP:
+        foreach (@lines)
+        {
+            if (s#(\$VERSION = ')\d+\.\d+\.\d+(')#$1 . "0.0.2" . $2#e)
+            {
+                last LINES_LOOP;
+            }
+        }
+        io->file($r)->print(
+            @lines
+        );
+    }
+}
+

Dist-Man/Dist-Man/lib/Dist/Man.pm

 
 =cut
 
-our $VERSION = '0.0.1';
+our $VERSION = '0.0.2';
 
 =head1 SYNOPSIS
 

Dist-Man/Dist-Man/lib/Dist/Man/App.pm

 use warnings;
 use strict;
 
-our $VERSION = '0.0.1';
+our $VERSION = '0.0.2';
 
 use Getopt::Long;
 use Pod::Usage;

Dist-Man/Dist-Man/lib/Dist/Man/BuilderSet.pm

 
 =cut
 
-our $VERSION = '0.0.1';
+our $VERSION = '0.0.2';
 
 =head1 SYNOPSIS
 

Dist-Man/Dist-Man/lib/Dist/Man/Plugin/Template.pm

 
 =cut
 
-our $VERSION = '0.0.1';
+our $VERSION = '0.0.2';
 
 =head1 SYNOPSIS
 

Dist-Man/Dist-Man/lib/Dist/Man/Simple.pm

 
 =cut
 
-our $VERSION = '0.0.1';
+our $VERSION = '0.0.2';
 
 =head1 SYNOPSIS