r48431 - in /trunk/libdata-section-perl: ./ debian/ lib/Data/ t/ t/lib/ t/lib/I/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Tue Dec 8 15:19:57 UTC 2009
Author: jawnsy-guest
Date: Tue Dec 8 15:19:50 2009
New Revision: 48431
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=48431
Log:
integrating new upstream release
Added:
trunk/libdata-section-perl/t/lib/NoName.pm
- copied unchanged from r48430, branches/upstream/libdata-section-perl/current/t/lib/NoName.pm
Modified:
trunk/libdata-section-perl/Changes
trunk/libdata-section-perl/MANIFEST
trunk/libdata-section-perl/META.json
trunk/libdata-section-perl/META.yml
trunk/libdata-section-perl/Makefile.PL
trunk/libdata-section-perl/README
trunk/libdata-section-perl/debian/changelog
trunk/libdata-section-perl/lib/Data/Section.pm
trunk/libdata-section-perl/t/basic.t
trunk/libdata-section-perl/t/lib/Child.pm
trunk/libdata-section-perl/t/lib/Godfather.pm
trunk/libdata-section-perl/t/lib/Grandchild.pm
trunk/libdata-section-perl/t/lib/I/Child.pm
trunk/libdata-section-perl/t/lib/I/Grandchild.pm
trunk/libdata-section-perl/t/lib/I/Parent.pm
trunk/libdata-section-perl/t/lib/NoData.pm
trunk/libdata-section-perl/t/lib/Parent.pm
Modified: trunk/libdata-section-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/Changes?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/Changes (original)
+++ trunk/libdata-section-perl/Changes Tue Dec 8 15:19:50 2009
@@ -1,4 +1,8 @@
Revision history for Data-Section
+
+0.093410 2009-12-07 18:45:56 America/New_York
+ allow data before first marker if default_name given
+ (thanks, Uwe Voelker)
0.093330 2009-11-29 17:45:10 America/New_York
re-release to include a META.yml for cpandeps
Modified: trunk/libdata-section-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/MANIFEST?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/MANIFEST (original)
+++ trunk/libdata-section-perl/MANIFEST Tue Dec 8 15:19:50 2009
@@ -15,6 +15,7 @@
t/lib/I/Grandchild.pm
t/lib/I/Parent.pm
t/lib/NoData.pm
+t/lib/NoName.pm
t/lib/Parent.pm
t/release-pod-coverage.t
t/release-pod-syntax.t
Modified: trunk/libdata-section-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/META.json?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/META.json (original)
+++ trunk/libdata-section-perl/META.json Tue Dec 8 15:19:50 2009
@@ -6,8 +6,8 @@
"version" : 1.4,
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html"
},
- "generated_by" : "Dist::Zilla version 1.093290",
- "version" : "0.093330",
+ "generated_by" : "Dist::Zilla version 1.093400",
+ "version" : "0.093410",
"name" : "Data-Section",
"author" : [
"Ricardo SIGNES <rjbs at cpan.org>"
Modified: trunk/libdata-section-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/META.yml?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/META.yml (original)
+++ trunk/libdata-section-perl/META.yml Tue Dec 8 15:19:50 2009
@@ -2,7 +2,7 @@
abstract: 'read multiple hunks of data out of your DATA section'
author:
- 'Ricardo SIGNES <rjbs at cpan.org>'
-generated_by: 'Dist::Zilla version 1.093290'
+generated_by: 'Dist::Zilla version 1.093400'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -13,4 +13,4 @@
Sub::Exporter: 0.979
resources:
repository: http://github.com/rjbs/data-section
-version: 0.093330
+version: 0.093410
Modified: trunk/libdata-section-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/Makefile.PL?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/Makefile.PL (original)
+++ trunk/libdata-section-perl/Makefile.PL Tue Dec 8 15:19:50 2009
@@ -11,7 +11,7 @@
NAME => 'Data::Section',
AUTHOR => "Ricardo\ SIGNES\ \<rjbs\@cpan\.org\>",
ABSTRACT => "read\ multiple\ hunks\ of\ data\ out\ of\ your\ DATA\ section",
- VERSION => '0.093330',
+ VERSION => '0.093410',
EXE_FILES => [ qw() ],
(eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'perl') : ()),
PREREQ_PM => {
Modified: trunk/libdata-section-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/README?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/README (original)
+++ trunk/libdata-section-perl/README Tue Dec 8 15:19:50 2009
@@ -1,7 +1,7 @@
This archive contains the distribution Data-Section, version
-0.093330:
+0.093410:
read multiple hunks of data out of your DATA section
Modified: trunk/libdata-section-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/debian/changelog?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/debian/changelog (original)
+++ trunk/libdata-section-perl/debian/changelog Tue Dec 8 15:19:50 2009
@@ -1,7 +1,4 @@
-libdata-section-perl (0.093330-1) UNRELEASED; urgency=low
-
- Adds a META.yml, no need to upload
- IGNORE-VERSION: 0.093330-1
+libdata-section-perl (0.093410-1) UNRELEASED; urgency=low
[ Jonathan Yu ]
* New upstream release
@@ -11,7 +8,7 @@
perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as
permitted by Debian Policy 3.8.3).
- -- Jonathan Yu <jawnsy at cpan.org> Mon, 30 Nov 2009 07:46:38 -0500
+ -- Jonathan Yu <jawnsy at cpan.org> Tue, 08 Dec 2009 07:08:16 -0500
libdata-section-perl (0.091820-1) unstable; urgency=low
Modified: trunk/libdata-section-perl/lib/Data/Section.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/lib/Data/Section.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/lib/Data/Section.pm (original)
+++ trunk/libdata-section-perl/lib/Data/Section.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package Data::Section;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
# ABSTRACT: read multiple hunks of data out of your DATA section
use Class::ISA;
@@ -35,6 +33,10 @@
return $stash{ $pkg} unless defined fileno *$dh;
my $current;
+ if ($arg->{default_name}) {
+ $current = $arg->{default_name};
+ $template->{ $current } = \(my $blank = q{});
+ }
LINE: while (my $line = <$dh>) {
if ($line =~ $header_re) {
$current = $1;
@@ -111,14 +113,11 @@
=head1 VERSION
-version 0.093330
+version 0.093410
=head1 SYNOPSIS
package Letter::Resignation;
-our $VERSION = '0.093330';
-
-
use Data::Section -setup;
sub quit {
@@ -171,11 +170,14 @@
Valid arguments are:
- inherit - if true, allow packages to inherit the data of the packages
- from which they inherit; default: true
-
- header_re - if given, changes the regex used to find section headers
- in the data section; it should leave the section name in $1
+ inherit - if true, allow packages to inherit the data of the packages
+ from which they inherit; default: true
+
+ header_re - if given, changes the regex used to find section headers
+ in the data section; it should leave the section name in $1
+
+ default_name - if given, allows the first section to has no header and set
+ its name
Three methods are exported by Data::Section:
@@ -249,9 +251,6 @@
data section in the correct package.
package Foo;
-our $VERSION = '0.093330';
-
-
use MooseX::Declare;
class Foo {
Modified: trunk/libdata-section-perl/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/basic.t?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/basic.t (original)
+++ trunk/libdata-section-perl/t/basic.t Tue Dec 8 15:19:50 2009
@@ -1,7 +1,7 @@
use strict;
use warnings;
use lib 't/lib';
-use Test::More tests => 19;
+use Test::More tests => 20;
use Parent;
use Child;
@@ -12,6 +12,7 @@
use I::Grandchild;
use NoData;
+use NoName;
my @want = (
Parent => { a => \"1\n", b => \"2\n", c => \"3\n" },
@@ -55,3 +56,9 @@
);
is_deeply(NoData->local_section_data, {}, "nothing found in NoData");
+
+is_deeply(
+ NoName->local_section_data,
+ { a => \"1\n", b => \"2\n" },
+ "default name in NoName",
+);
Modified: trunk/libdata-section-perl/t/lib/Child.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/Child.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/Child.pm (original)
+++ trunk/libdata-section-perl/t/lib/Child.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package Child;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use Godfather;
use base qw(Parent Godfather);
1;
Modified: trunk/libdata-section-perl/t/lib/Godfather.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/Godfather.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/Godfather.pm (original)
+++ trunk/libdata-section-perl/t/lib/Godfather.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package Godfather;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
1;
__DATA__
__[a]__
Modified: trunk/libdata-section-perl/t/lib/Grandchild.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/Grandchild.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/Grandchild.pm (original)
+++ trunk/libdata-section-perl/t/lib/Grandchild.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package Grandchild;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use base 'Child';
1;
Modified: trunk/libdata-section-perl/t/lib/I/Child.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/I/Child.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/I/Child.pm (original)
+++ trunk/libdata-section-perl/t/lib/I/Child.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package I::Child;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use Godfather;
use base qw(I::Parent Godfather);
1;
Modified: trunk/libdata-section-perl/t/lib/I/Grandchild.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/I/Grandchild.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/I/Grandchild.pm (original)
+++ trunk/libdata-section-perl/t/lib/I/Grandchild.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package I::Grandchild;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use base 'I::Child';
1;
Modified: trunk/libdata-section-perl/t/lib/I/Parent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/I/Parent.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/I/Parent.pm (original)
+++ trunk/libdata-section-perl/t/lib/I/Parent.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package I::Parent;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use Data::Section -setup;
1;
Modified: trunk/libdata-section-perl/t/lib/NoData.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/NoData.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/NoData.pm (original)
+++ trunk/libdata-section-perl/t/lib/NoData.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package NoData;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use Data::Section -setup;
1;
Modified: trunk/libdata-section-perl/t/lib/Parent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-section-perl/t/lib/Parent.pm?rev=48431&op=diff
==============================================================================
--- trunk/libdata-section-perl/t/lib/Parent.pm (original)
+++ trunk/libdata-section-perl/t/lib/Parent.pm Tue Dec 8 15:19:50 2009
@@ -1,9 +1,7 @@
use strict;
use warnings;
package Parent;
-our $VERSION = '0.093330';
-
-
+our $VERSION = '0.093410';
use Data::Section -setup => { inherit => 0 };
1;
More information about the Pkg-perl-cvs-commits
mailing list