This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Text-Tabs to CPAN version 2013.0523
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Thu, 30 May 2013 16:16:14 +0000 (17:16 +0100)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Thu, 30 May 2013 16:47:43 +0000 (17:47 +0100)
  [DELTA]

  = 2013/05/23

  Change module 'NAME'

  = 2013/05/22

  Typos

  = 2013/04/26

  Minor test suite fixes - bug 81698.

  Fixed bug 79766 -- an extraneous "=" in a regex.

  Changed the license to qualify as an "open source" license.

MANIFEST
Porting/Maintainers.pl
cpan/Text-Tabs/CHANGELOG
cpan/Text-Tabs/lib/Text/Tabs.pm
cpan/Text-Tabs/lib/Text/Wrap.pm
cpan/Text-Tabs/t/79766.t [new file with mode: 0644]
cpan/Text-Tabs/t/Tabs-ElCid.t
cpan/Text-Tabs/t/Wrap-JLB.t

index 0c5acaf..e8f2286 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -2458,6 +2458,7 @@ cpan/Text-Tabs/lib/Text/Tabs.pm           Do expand and unexpand
 cpan/Text-Tabs/lib/Text/Wrap.pm                Paragraph formatter
 cpan/Text-Tabs/t/37000.t               See if Text::Tabs is working
 cpan/Text-Tabs/t/39548.t               See if Text::Tabs is working
+cpan/Text-Tabs/t/79766.t               See if Text::Tabs is working
 cpan/Text-Tabs/t/belg4mit.t            See if Text::Tabs is working
 cpan/Text-Tabs/t/dandv.t               See if Text::Tabs is working
 cpan/Text-Tabs/t/fill.t                        See if Text::Wrap::fill works
index 5d9ddc6..45acec8 100755 (executable)
@@ -1750,7 +1750,7 @@ use File::Glob qw(:case);
 
     'Text-Tabs+Wrap' => {
         'MAINTAINER'   => 'muir',
-        'DISTRIBUTION' => 'MUIR/modules/Text-Tabs+Wrap-2012.0818.tar.gz',
+        'DISTRIBUTION' => 'MUIR/modules/Text-Tabs+Wrap-2013.0523.tar.gz',
         'FILES'        => q[cpan/Text-Tabs],
         'EXCLUDED'   => [
             qr/^lib\.old/,
index e72f6db..a3c6af8 100644 (file)
@@ -1,4 +1,20 @@
 
+= 2013/05/23
+
+Change module 'NAME'
+
+= 2013/05/22
+
+Typos
+
+= 2013/04/26
+
+Minor test suite fixes - bug 81698.
+
+Fixed bug 79766 -- an extraneous "=" in a regex.
+
+Changed the license to qualify as an "open source" license.
+
 = 2012/08/18
 
 Packaging fix.
index 34d81ab..07fe2b8 100644 (file)
@@ -1,4 +1,3 @@
-
 package Text::Tabs;
 
 require Exporter;
@@ -7,7 +6,7 @@ require Exporter;
 @EXPORT = qw(expand unexpand $tabstop);
 
 use vars qw($VERSION $SUBVERSION $tabstop $debug);
-$VERSION = 2012.0818;
+$VERSION = 2013.0523;
 $SUBVERSION = 'modern';
 
 use strict;
@@ -157,7 +156,7 @@ C<local($Text::Tabs::tabstop)>.
     print unexpand $_;
   }
 
-Instead of the shell's C<expand> comand, use:
+Instead of the shell's C<expand> command, use:
 
   perl -MText::Tabs -n -e 'print expand $_'
 
@@ -186,7 +185,8 @@ or otherwise deal with any other zero-, half-, and full-width characters.
 
 Copyright (C) 1996-2002,2005,2006 David Muir Sharnoff.  
 Copyright (C) 2005 Aristotle Pagaltzis 
-Copyright (C) 2012 Google, Inc.
+Copyright (C) 2012-2013 Google, Inc.
 This module may be modified, used, copied, and redistributed at your own risk.
-Publicly redistributed modified versions must use a different name.
-
+Although allowed by the preceding license, please do not publicly
+redistribute modified versions of this code with the name "Text::Tabs"
+unless it passes the unmodified Text::Tabs test suite.
index 1b40ab4..db0d15f 100644 (file)
@@ -7,7 +7,7 @@ require Exporter;
 @EXPORT = qw(wrap fill);
 @EXPORT_OK = qw($columns $break $huge);
 
-$VERSION = 2012.0818;
+$VERSION = 2013.0523;
 $SUBVERSION = 'modern';
 
 use 5.010_000;
@@ -64,7 +64,7 @@ sub wrap
                                ? unexpand($nl . $lead . $1)
                                : $nl . $lead . $1;
                        $remainder = $2;
-               } elsif ($huge eq 'wrap' && $t =~ /\G((?:(?!=[^\n])\X){$ll})/gc) {
+               } elsif ($huge eq 'wrap' && $t =~ /\G((?:(?=[^\n])\X){$ll})/gc) {
                        $r .= $unexpand 
                                ? unexpand($nl . $lead . $1)
                                : $nl . $lead . $1;
@@ -293,7 +293,8 @@ many many others.
 =head1 LICENSE
 
 Copyright (C) 1996-2009 David Muir Sharnoff.  
-Copyright (C) 2012 Google, Inc.
+Copyright (C) 2012-2013 Google, Inc.
 This module may be modified, used, copied, and redistributed at your own risk.
-Publicly redistributed modified versions must use a different name.
-
+Although allowed by the preceding license, please do not publicly
+redistribute modified versions of this code with the name "Text::Wrap"
+unless it passes the unmodified Text::Wrap test suite.
diff --git a/cpan/Text-Tabs/t/79766.t b/cpan/Text-Tabs/t/79766.t
new file mode 100644 (file)
index 0000000..cc579b2
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/perl -I.
+
+use warnings;
+use strict;
+use Text::Wrap;
+use Test::More tests => 2;
+
+my $r;
+my $s = q{xx xxxxxxxx xxxxxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=xxxxxxxxxxxxxxxxxxxxxxxx};
+
+eval { $r = wrap("", "", $s) };
+ok(! $@, $@);
+is($r, "xx xxxxxxxx xxxxxxxxx xx
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=xxxxxxxxxxxxx
+xxxxxxxxxxx", "match");
+
index 32572e7..79e265d 100644 (file)
@@ -2,7 +2,7 @@
 
 BEGIN {
        if ($] <= 5.010) {
-               print "1..0 # skip this test requires perl 5.010 or greater\n";
+               print "1..0 # skip this test requires perl 5.010 or greater ($])\n";
                exit 0;
        }
 }
@@ -105,8 +105,8 @@ sub check($$$$) {
 
 sub check_data { 
 
-    local $_;
     binmode(DATA, ":utf8") || die "can't binmode DATA to utf8: $!";
+    local($_);
     while ( <DATA> ) {
 
        my $bad = 0;
index 67163e2..f3d655a 100644 (file)
@@ -87,7 +87,7 @@ sub check($$$$) {
 sub check_data { 
 
     binmode(DATA, ":utf8") || die "can't binmode DATA to utf8: $!";
-    local $_;
+    local($_);
     while ( <DATA> ) {
 
        my $bad = 0;