r71486 - in /trunk/libcpan-changes-perl: ./ debian/ lib/CPAN/ t/ t/corpus/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Wed Mar 16 10:55:36 UTC 2011


Author: jawnsy-guest
Date: Wed Mar 16 10:55:27 2011
New Revision: 71486

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=71486
Log:
New upstream release

Added:
    trunk/libcpan-changes-perl/t/corpus/different-indentation.changes
      - copied unchanged from r71469, branches/upstream/libcpan-changes-perl/current/t/corpus/different-indentation.changes
    trunk/libcpan-changes-perl/t/corpus/group-brackets.changes
      - copied unchanged from r71469, branches/upstream/libcpan-changes-perl/current/t/corpus/group-brackets.changes
    trunk/libcpan-changes-perl/t/read_different-indentation.t
      - copied unchanged from r71469, branches/upstream/libcpan-changes-perl/current/t/read_different-indentation.t
    trunk/libcpan-changes-perl/t/read_group-brackets.t
      - copied unchanged from r71469, branches/upstream/libcpan-changes-perl/current/t/read_group-brackets.t
Modified:
    trunk/libcpan-changes-perl/Changes
    trunk/libcpan-changes-perl/MANIFEST
    trunk/libcpan-changes-perl/META.yml
    trunk/libcpan-changes-perl/debian/changelog
    trunk/libcpan-changes-perl/debian/compat
    trunk/libcpan-changes-perl/debian/control
    trunk/libcpan-changes-perl/lib/CPAN/Changes.pm
    trunk/libcpan-changes-perl/t/self.t

Modified: trunk/libcpan-changes-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/Changes?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/Changes (original)
+++ trunk/libcpan-changes-perl/Changes Wed Mar 16 10:55:27 2011
@@ -1,4 +1,10 @@
 Revision history for perl module CPAN::Changes
+
+0.08 2011-03-14
+
+  - Handle inconsistent indentation between releases
+
+  - Be more strict about parsing rules for grouping lines
 
 0.07 2011-03-03
 

Modified: trunk/libcpan-changes-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/MANIFEST?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/MANIFEST (original)
+++ trunk/libcpan-changes-perl/MANIFEST Wed Mar 16 10:55:27 2011
@@ -17,7 +17,9 @@
 META.yml
 README
 t/corpus/basic.changes
+t/corpus/different-indentation.changes
 t/corpus/dist-zilla.changes
+t/corpus/group-brackets.changes
 t/corpus/group.changes
 t/corpus/line-continuation.changes
 t/corpus/multiple_releases.changes
@@ -26,6 +28,8 @@
 t/corpus/space-before-date.changes
 t/dist-zilla-changes.t
 t/read_basic.t
+t/read_different-indentation.t
+t/read_group-brackets.t
 t/read_group.t
 t/read_line-continuation.t
 t/read_multiple_releases.t

Modified: trunk/libcpan-changes-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/META.yml?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/META.yml (original)
+++ trunk/libcpan-changes-perl/META.yml Wed Mar 16 10:55:27 2011
@@ -26,4 +26,4 @@
 resources:
   license: http://dev.perl.org/licenses/
   repository: http://github.com/bricas/cpan-changes
-version: 0.07
+version: 0.08

Modified: trunk/libcpan-changes-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/debian/changelog?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/debian/changelog (original)
+++ trunk/libcpan-changes-perl/debian/changelog Wed Mar 16 10:55:27 2011
@@ -1,3 +1,9 @@
+libcpan-changes-perl (0.08-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+ -- Jonathan Yu <jawnsy at cpan.org>  Tue, 15 Mar 2011 21:55:58 -0400
+
 libcpan-changes-perl (0.07-1) unstable; urgency=low
 
   * New upstream release.

Modified: trunk/libcpan-changes-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/debian/compat?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/debian/compat (original)
+++ trunk/libcpan-changes-perl/debian/compat Wed Mar 16 10:55:27 2011
@@ -1,1 +1,1 @@
-7
+8

Modified: trunk/libcpan-changes-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/debian/control?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/debian/control (original)
+++ trunk/libcpan-changes-perl/debian/control Wed Mar 16 10:55:27 2011
@@ -1,10 +1,11 @@
 Source: libcpan-changes-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 8)
 Build-Depends-Indep: perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: gregor herrmann <gregoa at debian.org>
+Uploaders: gregor herrmann <gregoa at debian.org>,
+ Jonathan Yu <jawnsy at cpan.org>
 Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/CPAN-Changes/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcpan-changes-perl/

Modified: trunk/libcpan-changes-perl/lib/CPAN/Changes.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/lib/CPAN/Changes.pm?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/lib/CPAN/Changes.pm (original)
+++ trunk/libcpan-changes-perl/lib/CPAN/Changes.pm Wed Mar 16 10:55:27 2011
@@ -8,7 +8,7 @@
 use Scalar::Util ();
 use version      ();
 
-our $VERSION = '0.07';
+our $VERSION = '0.08';
 
 sub new {
     my $class = shift;
@@ -64,7 +64,7 @@
         }
 
         # Grouping
-        if ( $l =~ m{^\s+\[\s*(.+)\s*\]} ) {
+        if ( $l =~ m{^\s+\[\s*(.+)\s*\]\s*$} ) {
             $ingroup = $1;
             $releases[ -1 ]->add_group( $1 );
             next;
@@ -82,6 +82,13 @@
         }
 
         $l =~ s{^$indent}{};
+
+        # Inconsistent indentation between releases
+        if( $l =~ m{^\s} && !@{ $releases[ -1 ]->changes( $ingroup ) } ) {
+            $l =~ m{^(\s+)};
+            $indent = $1;
+            $l =~ s{^\s+}{};
+        }
 
         # Change line cont'd
         if ( $l =~ m{^\s} ) {

Modified: trunk/libcpan-changes-perl/t/self.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcpan-changes-perl/t/self.t?rev=71486&op=diff
==============================================================================
--- trunk/libcpan-changes-perl/t/self.t (original)
+++ trunk/libcpan-changes-perl/t/self.t Wed Mar 16 10:55:27 2011
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 10;
+use Test::More tests => 11;
 
 use_ok( 'CPAN::Changes' );
 




More information about the Pkg-perl-cvs-commits mailing list