Commits

Shlomi Fish committed c32f468

Add cpan-changes and bump-version-number

  • Participants
  • Parent commits 437a7a6

Comments (0)

Files changed (4)

File module/Changes

 Revision history for Perl extension Shlomif::NavMenu.
 
-1.0701    Sun  9 Dec 17:43:23 IST 2012
+    - Add t/cpan-changes.t
+        - Correct this file.
+    - Add scripts/bump-version-number.pl .
+
+1.0701  2012-12-09
     - Fix typo: https://rt.cpan.org/Ticket/Display.html?id=81840
         - Thanks to GUIMARD and lintian.
 
-1.0700    Sun  9 Dec 15:22:06 IST 2012
+1.0700  2012-12-09
     - Add the li_id attribute to the tree's nodes to add an id="..." attribute
     to the <li> tags.
 
-1.0603    Tue Sep 18 00:22:52 IDT 2012
+1.0603  2012-09-18
     - Update the URLs to the repository, and sites.
 
-1.0602    Mon Sep 17 17:19:29 IDT 2012
+1.0602  2012-09-17
     - Get rid of trailing space.
     - Update the contact details.
 
-1.0601    Wed  5 Sep 20:00:49 IDT 2012
+1.0601  2012-09-05
     - Moved away tag-release.pl to scripts/tag-release.pl so it won't
     be installed by default.
     - Moved away output.pl under examples.
 
-1.0600    Sat Apr 16 19:05:23 IDT 2011
+1.0600  2011-04-16
     - Add HTML::Widgets::NavMenu::JQueryTreeView for generating navigation
     menu that this jQuery plugin can handle well:
         - http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
 
-1.0501    Sun Nov 14 12:11:19 IST 2010
+1.0501  2010-11-14
     - Now generating the Makefile.PL from the Build.PL using
     create_makefile_pl (less error-prone).
 
-1.0500    Fri Nov 12 20:43:08 IST 2010
+1.0500  2010-11-12
     - Convert from Class::Accessor to Class::XSAccessor for extra speed.
     - Add the tag-release.pl file.
 
-1.0400    Wed Dec  9 11:44:05 IST 2009
+1.0400  2009-12-09
     - Got rid of the dependency on Error.pm.
     - moved the HTML/ directory with the test scripts-support code from
     the root of the distribution to unde t/lib .
 
-1.0302    Thu Jun 25 16:48:42 IDT 2009
+1.0302  2009-06-25
     - Fixed some broken links and other inaccuracies in the POD of
     lib/HTML/Widgets/NavMenu.pm .
 
-1.0301    Tue Jun 23 23:01:54 IDT 2009
+1.0301  2009-06-23
     - Changed the 'license' in Build.PL from "bsd" to the more accurate
     "mit".
     - Added keywords and links to the META.yml.
 
-1.0300    Sun Jun 14 13:57:09 IDT 2009
+1.0300  2009-06-14
     - Refactoring: Made HTML::Widgets::NavMenu::Object a sub-class of
     Class::Accessor to remove many "use base" calls to it.
     - In progress - converting a flat %args hash (splatted into the @_)
     accessors. (from all the classes).
     - Fixed a bug with the HeaderRole where an empty <ul> was created.
 
-1.0201    Fri Mar 28 17:46:59 IDT 2008
+1.0201  2008-03-28
     - Fixed a case where a non-capturing expand in a node inside a
     capturing expand caused the upper node to be non-capturing too.
 
-1.0200    Sun Mar 23 21:53:37 IST 2008
+1.0200  2008-03-23
     - Removed trailing whitespace from "# TEST" lines - this can confuse
     early versions of Test-Count
     - Fixed a "# TEST" instead of a "# TESTbr" line that confused Test-Count.
     - Added the no_leading_dot option with a test.
 
-1.0100    Fri Feb  8 19:19:09 IST 2008
+1.0100  2008-02-08
     - Fixed a bug in HTML::Widgets::NavMenu::Url:
     relative URL from a non-dir to a dir. It accidently had an
     extraneous "../".
         - it became apparent when the URL of the [0] item was not empty.
     - Added the 'capt' key to the 'expand' => keys for "capturing" regex.
 
-1.0001    Mon Sep 11 14:38:39 IDT 2006
+1.0001  2006-09-11
     - Added "use strict" and "use warnings" to all modules.
     - Added a Test::Pod based test.
     - Added a Test::Pod::Coverage test, and added POD to all modules.
         - Some internal methods were prefixed with an underscore.
     - Added the examples directory.
 
-1.0000    Sun Nov 06 16:01:00 IST 2005
+1.0000  2005-11-06
     - Made sure that the breadcrumbs trail in expanded sections will
     display the components of the expanded sections.
     - Fixed the POD.
     - Bumped the major version number to 1.x and kept some digits into the
     future to make CPAN and CPAN.pm happy.
 
-0.10.2    Wed Aug 24 20:37:55 IST 2005
+0.10.2  2005-08-24
     (backdated - module was released on 17-August-2005)
     - Added IO::Scalar to the Perl modules this module depends on. (it
     is needed by the tests, but was not explicitly specified yet, because
     it was believed to be part of the core distribution).
 
-0.10.1    Mon Jul 25 17:19:05 IST 2005
+0.10.1  2005-07-25
     - Fixed the building using "perl Makefile.PL" and "make".
 
-0.10.0    Tue Jul 12 20:45:40 IST 2005
+0.10.0  2005-07-12
     - Added tests and refactored the code to have a 100% test coverage.
 
-0.8.0     Sat Apr 23 12:48:40 IST 2005
+0.8.0   2005-04-23
     - get_cross_host_rel_url is now part of the API.
     - Now returning nav_links_obj
     - Added some tests
 
-0.6.0     Thu Mar 24 15:15:40 IST 2005
+0.6.0   2005-03-24
     - no longer making use of the CGI.pm module.
     - extracted two methods in HTML::Widgets::NavMenu::Iterator::NavMenu
       that can now be over-rided by the user.
 
-0.4.0     Thu Jan 20 16:49:15 IST 2005
+0.4.0   2005-01-20
     - Added the url_is_abs option to the nodes.
     - Many code cleanups.
 
-0.2.0     Sun Jan  2 19:37:41 IST 2005
+0.2.0   2005-01-02
     - First non-developer CPAN Release.
 

File module/MANIFEST

 Build.PL
+COPYING
 Changes
-COPYING
+MANIFEST
+META.json
+META.yml                                 Module meta-data (added by MakeMaker)
+Makefile.PL
+README
+TODO
+TODO-Rejects
+examples/README
 examples/article-examples/cgi-script/H-W-NM-serve.pl
 examples/article-examples/complex/H-W-NM-complex.pl
 examples/article-examples/fine-grained-site-flow/H-W-NM-fine-grained-site-flow.pl
 examples/article-examples/simple/H-W-NM-simple.pl
 examples/article-examples/with-embellishments/H-W-NM-embellish.pl
 examples/output.pl
-examples/README
 inc/Test/Run/Builder.pm
+lib/HTML/Widgets/NavMenu.pm
 lib/HTML/Widgets/NavMenu/EscapeHtml.pm
 lib/HTML/Widgets/NavMenu/ExpandVal.pm
 lib/HTML/Widgets/NavMenu/HeaderRole.pm
 lib/HTML/Widgets/NavMenu/Iterator/Base.pm
 lib/HTML/Widgets/NavMenu/Iterator/Html.pm
 lib/HTML/Widgets/NavMenu/Iterator/JQTreeView.pm
+lib/HTML/Widgets/NavMenu/Iterator/NavMenu.pm
 lib/HTML/Widgets/NavMenu/Iterator/NavMenu/HeaderRole.pm
-lib/HTML/Widgets/NavMenu/Iterator/NavMenu.pm
 lib/HTML/Widgets/NavMenu/Iterator/SiteMap.pm
 lib/HTML/Widgets/NavMenu/JQueryTreeView.pm
 lib/HTML/Widgets/NavMenu/Object.pm
-lib/HTML/Widgets/NavMenu.pm
 lib/HTML/Widgets/NavMenu/Predicate.pm
 lib/HTML/Widgets/NavMenu/TagGen.pm
+lib/HTML/Widgets/NavMenu/Tree/Iterator.pm
 lib/HTML/Widgets/NavMenu/Tree/Iterator/Item.pm
-lib/HTML/Widgets/NavMenu/Tree/Iterator.pm
 lib/HTML/Widgets/NavMenu/Tree/Iterator/Stack.pm
 lib/HTML/Widgets/NavMenu/Tree/Node.pm
 lib/HTML/Widgets/NavMenu/Url.pm
-Makefile.PL
-MANIFEST
-META.yml                                 Module meta-data (added by MakeMaker)
-README
+scripts/bump-version-number.pl
 scripts/tag-release.pl
 t/00use.t
 t/01unit.t
 t/16redirect.t
 t/17nav-coords-unit.t
 t/18url.t
+t/cpan-changes.t
 t/lib/HTML/Widgets/NavMenu/Test/Data.pm
 t/lib/HTML/Widgets/NavMenu/Test/Stdout.pm
 t/lib/HTML/Widgets/NavMenu/Test/Util.pm
-TODO
-TODO-Rejects
 t/pod-coverage.t
 t/pod.t
 t/style-trailing-space.t
-META.json

File module/scripts/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 $version_n = shift(@ARGV);
+
+if (!defined($version_n))
+{
+    die "Specify version number as an argument! bump-version-number.pl '0.0.1'";
+}
+
+while (my $r = $tree->next()) {
+    if ($r =~ m{/\.svn\z})
+    {
+        $tree->prune();
+    }
+    elsif ($r =~ m{\.pm\z})
+    {
+        my @lines = io->file($r)->getlines();
+        foreach (@lines)
+        {
+            s#(\$VERSION = '|^Version )\d+\.\d+(?:\.\d+)?('|)#$1 . $version_n . $2#e;
+        }
+        io->file($r)->print(
+            @lines
+        );
+    }
+}
+

File module/t/cpan-changes.t

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval 'use Test::CPAN::Changes';
+plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
+
+changes_ok();
+