r54504 - in /branches/upstream/libdata-section-perl/current: ./ lib/Data/ t/ t/lib/ t/lib/I/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Thu Mar 18 21:28:48 UTC 2010
Author: jawnsy-guest
Date: Thu Mar 18 21:28:43 2010
New Revision: 54504
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=54504
Log:
[svn-upgrade] Integrating new upstream version, libdata-section-perl (0.100770)
Added:
branches/upstream/libdata-section-perl/current/t/lib/End.pm
branches/upstream/libdata-section-perl/current/t/lib/Header.pm
branches/upstream/libdata-section-perl/current/t/lib/Relaxed.pm
Modified:
branches/upstream/libdata-section-perl/current/Changes
branches/upstream/libdata-section-perl/current/MANIFEST
branches/upstream/libdata-section-perl/current/META.json
branches/upstream/libdata-section-perl/current/META.yml
branches/upstream/libdata-section-perl/current/Makefile.PL
branches/upstream/libdata-section-perl/current/README
branches/upstream/libdata-section-perl/current/dist.ini
branches/upstream/libdata-section-perl/current/lib/Data/Section.pm
branches/upstream/libdata-section-perl/current/t/basic.t
branches/upstream/libdata-section-perl/current/t/lib/Child.pm
branches/upstream/libdata-section-perl/current/t/lib/Godfather.pm
branches/upstream/libdata-section-perl/current/t/lib/Grandchild.pm
branches/upstream/libdata-section-perl/current/t/lib/I/Child.pm
branches/upstream/libdata-section-perl/current/t/lib/I/Grandchild.pm
branches/upstream/libdata-section-perl/current/t/lib/I/Parent.pm
branches/upstream/libdata-section-perl/current/t/lib/NoData.pm
branches/upstream/libdata-section-perl/current/t/lib/NoName.pm
branches/upstream/libdata-section-perl/current/t/lib/Parent.pm
Modified: branches/upstream/libdata-section-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/Changes?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/Changes (original)
+++ branches/upstream/libdata-section-perl/current/Changes Thu Mar 18 21:28:43 2010
@@ -1,4 +1,9 @@
Revision history for Data-Section
+
+0.100770 2010-03-18 08:05:46 America/New_York
+ this release's changes courtesy of Tatsuhiko Miyagawa:
+ __END__ now ends the whole data section; ignore_end may come someday
+ empty data lines between __DATA__ and first section are ignored
0.100270 2010-01-27 22:43:33 America/New_York
switch from Class::ISA to MRO::Compat
Modified: branches/upstream/libdata-section-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/MANIFEST?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/MANIFEST (original)
+++ branches/upstream/libdata-section-perl/current/MANIFEST Thu Mar 18 21:28:43 2010
@@ -9,13 +9,16 @@
lib/Data/Section.pm
t/basic.t
t/lib/Child.pm
+t/lib/End.pm
t/lib/Godfather.pm
t/lib/Grandchild.pm
+t/lib/Header.pm
t/lib/I/Child.pm
t/lib/I/Grandchild.pm
t/lib/I/Parent.pm
t/lib/NoData.pm
t/lib/NoName.pm
t/lib/Parent.pm
+t/lib/Relaxed.pm
t/release-pod-coverage.t
t/release-pod-syntax.t
Modified: branches/upstream/libdata-section-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/META.json?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/META.json (original)
+++ branches/upstream/libdata-section-perl/current/META.json Thu Mar 18 21:28:43 2010
@@ -1,24 +1,27 @@
{
"resources" : {
- "repository" : "http://github.com/rjbs/data-section"
+ "repository" : "git://git.codesimply.com/Data-Section.git"
},
- "generated_by" : "Dist::Zilla version 1.100160",
"meta-spec" : {
"version" : 1.4,
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html"
},
- "version" : "0.100270",
+ "generated_by" : "Dist::Zilla version 1.100730",
+ "version" : "0.100770",
"name" : "Data-Section",
"author" : [
"Ricardo SIGNES <rjbs at cpan.org>"
],
"license" : "perl",
+ "build_requires" : {},
"requires" : {
"Test::More" : "0.88",
- "ExtUtils::MakeMaker" : "6.11",
"Sub::Exporter" : "0.979",
"MRO::Compat" : "0.09"
},
- "abstract" : "read multiple hunks of data out of your DATA section"
+ "abstract" : "read multiple hunks of data out of your DATA section",
+ "configure_requires" : {
+ "ExtUtils::MakeMaker" : "6.11"
+ }
}
Modified: branches/upstream/libdata-section-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/META.yml?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/META.yml (original)
+++ branches/upstream/libdata-section-perl/current/META.yml Thu Mar 18 21:28:43 2010
@@ -2,17 +2,19 @@
abstract: 'read multiple hunks of data out of your DATA section'
author:
- 'Ricardo SIGNES <rjbs at cpan.org>'
-generated_by: 'Dist::Zilla version 1.100160'
+build_requires: {}
+configure_requires:
+ ExtUtils::MakeMaker: 6.11
+generated_by: 'Dist::Zilla version 1.100730'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: Data-Section
requires:
- ExtUtils::MakeMaker: 6.11
MRO::Compat: 0.09
Sub::Exporter: 0.979
Test::More: 0.88
resources:
- repository: http://github.com/rjbs/data-section
-version: 0.100270
+ repository: git://git.codesimply.com/Data-Section.git
+version: 0.100770
Modified: branches/upstream/libdata-section-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/Makefile.PL?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/Makefile.PL (original)
+++ branches/upstream/libdata-section-perl/current/Makefile.PL Thu Mar 18 21:28:43 2010
@@ -14,17 +14,20 @@
},
'NAME' => 'Data::Section',
'DISTNAME' => 'Data-Section',
+ 'CONFIGURE_REQUIRES' => {
+ 'ExtUtils::MakeMaker' => '6.11'
+ },
'AUTHOR' => 'Ricardo SIGNES <rjbs at cpan.org>',
+ 'BUILD_REQUIRES' => {},
'ABSTRACT' => 'read multiple hunks of data out of your DATA section',
'EXE_FILES' => [],
- 'VERSION' => '0.100270',
- 'LICENSE' => 'perl',
+ 'VERSION' => '0.100770',
'PREREQ_PM' => {
'Test::More' => '0.88',
- 'ExtUtils::MakeMaker' => '6.11',
'Sub::Exporter' => '0.979',
'MRO::Compat' => '0.09'
- }
+ },
+ 'LICENSE' => 'perl'
);
Modified: branches/upstream/libdata-section-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/README?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/README (original)
+++ branches/upstream/libdata-section-perl/current/README Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
This archive contains the distribution Data-Section, version
-0.100270:
+0.100770:
read multiple hunks of data out of your DATA section
Modified: branches/upstream/libdata-section-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/dist.ini?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/dist.ini (original)
+++ branches/upstream/libdata-section-perl/current/dist.ini Thu Mar 18 21:28:43 2010
@@ -8,5 +8,7 @@
MRO::Compat = 0.09 ; bugfixes
Test::More = 0.88 ; done_testing
-[@RJBS]
+[@Filter]
+bundle = @RJBS
+remove = AutoPrereq
Modified: branches/upstream/libdata-section-perl/current/lib/Data/Section.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/lib/Data/Section.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/lib/Data/Section.pm (original)
+++ branches/upstream/libdata-section-perl/current/lib/Data/Section.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package Data::Section;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
# ABSTRACT: read multiple hunks of data out of your DATA section
use MRO::Compat 0.09;
@@ -44,6 +44,9 @@
next LINE;
}
+ last LINE if $line =~ /^__END__/;
+ next LINE if !defined $current and $line =~ /^\s*$/;
+
Carp::confess("bogus data section: text outside of named section")
unless defined $current;
@@ -124,7 +127,7 @@
=head1 VERSION
-version 0.100270
+version 0.100770
=head1 SYNOPSIS
@@ -208,6 +211,9 @@
You can use as many underscores as you want, and the space around the name is
optional. This pattern can be configured with the C<header_re> option (see
above).
+
+When a line containing only C<__END__> is reached, all processing of sections
+ends.
=head2 section_data_names
Modified: branches/upstream/libdata-section-perl/current/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/basic.t?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/basic.t (original)
+++ branches/upstream/libdata-section-perl/current/t/basic.t Thu Mar 18 21:28:43 2010
@@ -13,6 +13,9 @@
use NoData;
use NoName;
+use Relaxed;
+use Header;
+use End;
my @want = (
Parent => { a => \"1\n", b => \"2\n", c => \"3\n" },
@@ -138,4 +141,22 @@
"default name in NoName",
);
+is_deeply(
+ Relaxed->local_section_data,
+ { a => \"1\n", b => \"2\n" },
+ "allows empty lines before the first section.",
+);
+
+is_deeply(
+ Header->local_section_data,
+ { a => \"1\n", b => \"2\n" },
+ "test header_re",
+);
+
+is_deeply(
+ End->local_section_data,
+ { a => \"1\n", b => \"2\n" },
+ "ignore __END__",
+);
+
done_testing;
Modified: branches/upstream/libdata-section-perl/current/t/lib/Child.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Child.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Child.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/Child.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package Child;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Godfather;
use base qw(Parent Godfather);
1;
Added: branches/upstream/libdata-section-perl/current/t/lib/End.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/End.pm?rev=54504&op=file
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/End.pm (added)
+++ branches/upstream/libdata-section-perl/current/t/lib/End.pm Thu Mar 18 21:28:43 2010
@@ -1,0 +1,18 @@
+use strict;
+use warnings;
+package End;
+our $VERSION = '0.100770';
+use Data::Section -setup;
+
+1;
+
+__DATA__
+
+__[a]__
+1
+__[b]__
+2
+__END__
+
+__[c]__
+3
Modified: branches/upstream/libdata-section-perl/current/t/lib/Godfather.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Godfather.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Godfather.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/Godfather.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package Godfather;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
1;
__DATA__
__[a]__
Modified: branches/upstream/libdata-section-perl/current/t/lib/Grandchild.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Grandchild.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Grandchild.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/Grandchild.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package Grandchild;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use base 'Child';
1;
Added: branches/upstream/libdata-section-perl/current/t/lib/Header.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Header.pm?rev=54504&op=file
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Header.pm (added)
+++ branches/upstream/libdata-section-perl/current/t/lib/Header.pm Thu Mar 18 21:28:43 2010
@@ -1,0 +1,11 @@
+package Header;
+our $VERSION = '0.100770';
+use Data::Section -setup => { header_re => qr/^\@\@\s*(\S+)/ };
+
+1;
+__DATA__
+
+@@ a
+1
+@@ b
+2
Modified: branches/upstream/libdata-section-perl/current/t/lib/I/Child.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/I/Child.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/I/Child.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/I/Child.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package I::Child;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Godfather;
use base qw(I::Parent Godfather);
1;
Modified: branches/upstream/libdata-section-perl/current/t/lib/I/Grandchild.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/I/Grandchild.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/I/Grandchild.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/I/Grandchild.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package I::Grandchild;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use base 'I::Child';
1;
Modified: branches/upstream/libdata-section-perl/current/t/lib/I/Parent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/I/Parent.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/I/Parent.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/I/Parent.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package I::Parent;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Data::Section -setup;
1;
Modified: branches/upstream/libdata-section-perl/current/t/lib/NoData.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/NoData.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/NoData.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/NoData.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package NoData;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Data::Section -setup;
1;
Modified: branches/upstream/libdata-section-perl/current/t/lib/NoName.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/NoName.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/NoName.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/NoName.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package NoName;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Data::Section -setup => { default_name => 'a' };
1;
Modified: branches/upstream/libdata-section-perl/current/t/lib/Parent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Parent.pm?rev=54504&op=diff
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Parent.pm (original)
+++ branches/upstream/libdata-section-perl/current/t/lib/Parent.pm Thu Mar 18 21:28:43 2010
@@ -1,7 +1,7 @@
use strict;
use warnings;
package Parent;
-our $VERSION = '0.100270';
+our $VERSION = '0.100770';
use Data::Section -setup => { inherit => 0 };
1;
Added: branches/upstream/libdata-section-perl/current/t/lib/Relaxed.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdata-section-perl/current/t/lib/Relaxed.pm?rev=54504&op=file
==============================================================================
--- branches/upstream/libdata-section-perl/current/t/lib/Relaxed.pm (added)
+++ branches/upstream/libdata-section-perl/current/t/lib/Relaxed.pm Thu Mar 18 21:28:43 2010
@@ -1,0 +1,11 @@
+package Relaxed;
+our $VERSION = '0.100770';
+use Data::Section -setup;
+
+1;
+__DATA__
+
+__[a]__
+1
+__[b]__
+2
More information about the Pkg-perl-cvs-commits
mailing list