Commits

Anonymous committed 6bdc4cb

Bumped the version number to 0.0.6. Added bump-version.pl.

Comments (0)

Files changed (9)

File-Dir-Dumper/Changes

 Revision history for File-Dir-Dumper
 
+0.0.6   Sun Jun 28 10:36:56 IDT 2009
+        - Added resources and keywords to the META.yml.
+
 0.0.5   Thu Nov 13 12:12:06 IST 2008
         - Fixed dumper.t to resolve this test problem:
             - http://www.nntp.perl.org/group/perl.cpan.testers/2008/11/msg2597312.html

File-Dir-Dumper/MANIFEST

 Build.PL
+bump-version-number.pl
 Changes
 inc/Test/Run/Builder.pm
 lib/File/Dir/Dumper/App.pm

File-Dir-Dumper/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/');
+
+my $new_version = "0.0.6";
+my $version_re = qr{\d+\.\d+\.\d+};
+
+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)
+        {
+            s#(\$VERSION = ')$version_re(')#$1 . $new_version . $2#e;
+            s#\A(Version )$version_re(\s*\n?\z)#$1 . $new_version . $2#e;
+        }
+        io->file($r)->print(
+            @lines
+        );
+    }
+}
+

File-Dir-Dumper/lib/File/Dir/Dumper.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 =head1 SYNOPSIS
 

File-Dir-Dumper/lib/File/Dir/Dumper/App.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 =head1 SYNOPSIS
 

File-Dir-Dumper/lib/File/Dir/Dumper/Base.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 
 =head1 METHODS

File-Dir-Dumper/lib/File/Dir/Dumper/Scanner.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 =head1 SYNOPSIS
 

File-Dir-Dumper/lib/File/Dir/Dumper/Stream/JSON/Reader.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 =head1 SYNOPSIS
 

File-Dir-Dumper/lib/File/Dir/Dumper/Stream/JSON/Writer.pm

 
 =head1 VERSION
 
-Version 0.0.5
+Version 0.0.6
 
 =cut
 
-our $VERSION = '0.0.5';
+our $VERSION = '0.0.6';
 
 =head1 SYNOPSIS