r29690 - in /trunk/libparse-cpan-meta-perl: ./ debian/ lib/Parse/CPAN/ t/ t/lib/ t/lib/Parse/
bricas-guest at users.alioth.debian.org
bricas-guest at users.alioth.debian.org
Thu Jan 15 23:27:32 UTC 2009
Author: bricas-guest
Date: Thu Jan 15 23:27:29 2009
New Revision: 29690
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29690
Log:
New upstream release
Added:
trunk/libparse-cpan-meta-perl/t/lib/Parse/
- copied from r29689, branches/upstream/libparse-cpan-meta-perl/current/t/lib/Parse/
Removed:
trunk/libparse-cpan-meta-perl/LICENSE
trunk/libparse-cpan-meta-perl/README
trunk/libparse-cpan-meta-perl/t/97_meta.t
trunk/libparse-cpan-meta-perl/t/98_pod.t
trunk/libparse-cpan-meta-perl/t/99_pmv.t
trunk/libparse-cpan-meta-perl/t/lib/Test.pm
Modified:
trunk/libparse-cpan-meta-perl/Changes
trunk/libparse-cpan-meta-perl/MANIFEST
trunk/libparse-cpan-meta-perl/META.yml
trunk/libparse-cpan-meta-perl/Makefile.PL
trunk/libparse-cpan-meta-perl/debian/changelog
trunk/libparse-cpan-meta-perl/lib/Parse/CPAN/Meta.pm
trunk/libparse-cpan-meta-perl/t/01_compile.t
trunk/libparse-cpan-meta-perl/t/02_basic.t
trunk/libparse-cpan-meta-perl/t/03_regression.t
trunk/libparse-cpan-meta-perl/t/04_scalar.t
trunk/libparse-cpan-meta-perl/t/11_meta_yml.t
trunk/libparse-cpan-meta-perl/t/12_plagger.t
trunk/libparse-cpan-meta-perl/t/13_perl_smith.t
trunk/libparse-cpan-meta-perl/t/14_yaml_org.t
trunk/libparse-cpan-meta-perl/t/15_multibyte.t
trunk/libparse-cpan-meta-perl/t/16_nullrefs.t
trunk/libparse-cpan-meta-perl/t/17_toolbar.t
Modified: trunk/libparse-cpan-meta-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/Changes?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/Changes (original)
+++ trunk/libparse-cpan-meta-perl/Changes Thu Jan 15 23:27:29 2009
@@ -1,4 +1,9 @@
-Revision history for Perl extension Parse::CPAN::Meta
+Revision history for Perl extension Parse-CPAN-Meta
+
+0.04 Wed 7 Jan 2009
+ - Matching changes in YAML::Tiny 1.36
+ - Fixing missing feature reported by H.Merijn Brand
+ - Changes to make Padre-CPAN-Meta core-compatible (SMUELLER)++
0.03 Thu 20 Mar 2008
- Adding YAML.pm compatibility in scalar context
Modified: trunk/libparse-cpan-meta-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/MANIFEST?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/MANIFEST (original)
+++ trunk/libparse-cpan-meta-perl/MANIFEST Thu Jan 15 23:27:29 2009
@@ -1,9 +1,7 @@
Changes
lib/Parse/CPAN/Meta.pm
-LICENSE
Makefile.PL
MANIFEST This list of files
-README
t/01_compile.t
t/02_basic.t
t/03_regression.t
@@ -15,14 +13,11 @@
t/15_multibyte.t
t/16_nullrefs.t
t/17_toolbar.t
-t/97_meta.t
-t/98_pod.t
-t/99_pmv.t
t/data/HTML-WebDAO.yml
t/data/multibyte.yml
t/data/sample.yml
t/data/Template-Provider-Unicode-Japanese.yml
t/data/toolbar.yml
t/data/vanilla.yml
-t/lib/Test.pm
+t/lib/Parse/CPAN/Meta/Test.pm
META.yml Module meta-data (added by MakeMaker)
Modified: trunk/libparse-cpan-meta-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/META.yml?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/META.yml (original)
+++ trunk/libparse-cpan-meta-perl/META.yml Thu Jan 15 23:27:29 2009
@@ -1,11 +1,11 @@
--- #YAML:1.0
name: Parse-CPAN-Meta
-version: 0.03
+version: 0.04
abstract: Parse META.yml and other similar CPAN metadata files
license: perl
author:
- Adam Kennedy <adamk at cpan.org>
-generated_by: ExtUtils::MakeMaker version 6.42
+generated_by: ExtUtils::MakeMaker version 6.44
distribution_type: module
requires:
File::Spec: 0.80
Modified: trunk/libparse-cpan-meta-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/Makefile.PL?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/Makefile.PL (original)
+++ trunk/libparse-cpan-meta-perl/Makefile.PL Thu Jan 15 23:27:29 2009
@@ -1,7 +1,7 @@
use strict;
BEGIN {
require 5.003_96;
- $main::VERSION = '0.03';
+ $main::VERSION = '0.04';
}
use ExtUtils::MakeMaker;
Modified: trunk/libparse-cpan-meta-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/debian/changelog?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/debian/changelog (original)
+++ trunk/libparse-cpan-meta-perl/debian/changelog Thu Jan 15 23:27:29 2009
@@ -1,9 +1,13 @@
-libparse-cpan-meta-perl (0.03-2) UNRELEASED; urgency=low
+libparse-cpan-meta-perl (0.04-1) UNRELEASED; urgency=low
+ [ Brian Cassidy ]
+ * New upstream release
+
+ [ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
field (source stanza).
- -- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:45:52 +0100
+ -- Brian Cassidy <brian.cassidy at gmail.com> Thu, 15 Jan 2009 19:22:18 -0400
libparse-cpan-meta-perl (0.03-1) unstable; urgency=low
Modified: trunk/libparse-cpan-meta-perl/lib/Parse/CPAN/Meta.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/lib/Parse/CPAN/Meta.pm?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/lib/Parse/CPAN/Meta.pm (original)
+++ trunk/libparse-cpan-meta-perl/lib/Parse/CPAN/Meta.pm Thu Jan 15 23:27:29 2009
@@ -5,7 +5,7 @@
BEGIN {
require 5.004;
require Exporter;
- $Parse::CPAN::Meta::VERSION = '0.03';
+ $Parse::CPAN::Meta::VERSION = '0.04';
@Parse::CPAN::Meta::ISA = qw{ Exporter };
@Parse::CPAN::Meta::EXPORT_OK = qw{ Load LoadFile };
}
@@ -227,6 +227,16 @@
croak("Parse::CPAN::Meta does not support the line '$lines->[0]'");
}
+ } elsif ( defined $indent->[-2] and $indent->[-1] == $indent->[-2] ) {
+ # This is probably a structure like the following...
+ # ---
+ # foo:
+ # - list
+ # bar: value
+ #
+ # ... so lets return and let the hash parser handle it
+ return 1;
+
} else {
croak("Parse::CPAN::Meta does not support the line '$lines->[0]'");
}
@@ -377,7 +387,7 @@
=head1 COPYRIGHT
-Copyright 2006 - 2008 Adam Kennedy.
+Copyright 2006 - 2009 Adam Kennedy.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
Modified: trunk/libparse-cpan-meta-perl/t/01_compile.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/01_compile.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/01_compile.t (original)
+++ trunk/libparse-cpan-meta-perl/t/01_compile.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Load testing for YAML::Tiny
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -16,4 +26,4 @@
# Does the module load
use_ok( 'Parse::CPAN::Meta' );
-use_ok( 't::lib::Test' );
+use_ok( 'Parse::CPAN::Meta::Test' );
Modified: trunk/libparse-cpan-meta-perl/t/02_basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/02_basic.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/02_basic.t (original)
+++ trunk/libparse-cpan-meta-perl/t/02_basic.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of basic document structures
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(30);
Modified: trunk/libparse-cpan-meta-perl/t/03_regression.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/03_regression.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/03_regression.t (original)
+++ trunk/libparse-cpan-meta-perl/t/03_regression.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of common META.yml examples
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,8 +19,8 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
-use Test::More tests(19);
+use Parse::CPAN::Meta::Test;
+use Test::More tests(20);
@@ -280,3 +290,22 @@
[ { foo => "foo\\\n\tbar" } ],
'special characters',
);
+
+
+
+
+
+
+######################################################################
+# Non-Indenting Sub-List
+
+yaml_ok(
+ <<'END_YAML',
+---
+foo:
+- list
+bar: value
+END_YAML
+ [ { foo => [ 'list' ], bar => 'value' } ],
+ 'Non-indenting sub-list',
+);
Modified: trunk/libparse-cpan-meta-perl/t/04_scalar.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/04_scalar.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/04_scalar.t (original)
+++ trunk/libparse-cpan-meta-perl/t/04_scalar.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of basic document structures
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
Modified: trunk/libparse-cpan-meta-perl/t/11_meta_yml.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/11_meta_yml.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/11_meta_yml.t (original)
+++ trunk/libparse-cpan-meta-perl/t/11_meta_yml.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of common META.yml examples
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(8, 2);
@@ -255,7 +265,7 @@
SCOPE: {
my $content = load_ok(
'Template-Provider-Unicode-Japanese.yml',
- catfile( 't', 'data', 'Template-Provider-Unicode-Japanese.yml' ),
+ catfile( test_data_directory(), 'Template-Provider-Unicode-Japanese.yml' ),
100
);
yaml_ok(
@@ -289,7 +299,7 @@
SCOPE: {
my $content = load_ok(
'HTML-WebDAO.yml',
- catfile( 't', 'data', 'HTML-WebDAO.yml' ),
+ catfile( test_data_directory(), 'HTML-WebDAO.yml' ),
100
);
yaml_ok(
Modified: trunk/libparse-cpan-meta-perl/t/12_plagger.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/12_plagger.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/12_plagger.t (original)
+++ trunk/libparse-cpan-meta-perl/t/12_plagger.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing Plagger config samples from Miyagawa-san's YAPC::NA 2006 talk
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(2);
Modified: trunk/libparse-cpan-meta-perl/t/13_perl_smith.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/13_perl_smith.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/13_perl_smith.t (original)
+++ trunk/libparse-cpan-meta-perl/t/13_perl_smith.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of common META.yml examples
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(1, 1);
@@ -19,7 +29,7 @@
#####################################################################
# Testing that Perl::Smith config files work
-my $vanilla_file = catfile( 't', 'data', 'vanilla.yml' );
+my $vanilla_file = catfile( test_data_directory(), 'vanilla.yml' );
my $vanilla = load_ok( 'yanilla.yml', $vanilla_file, 1000 );
yaml_ok(
Modified: trunk/libparse-cpan-meta-perl/t/14_yaml_org.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/14_yaml_org.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/14_yaml_org.t (original)
+++ trunk/libparse-cpan-meta-perl/t/14_yaml_org.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of common META.yml examples
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(1, 1);
@@ -19,7 +29,7 @@
#####################################################################
# Testing that Perl::Smith config files work
-my $sample_file = catfile( 't', 'data', 'sample.yml' );
+my $sample_file = catfile( test_data_directory(), 'sample.yml' );
my $sample = load_ok( 'sample.yml', $sample_file, 500 );
yaml_ok(
Modified: trunk/libparse-cpan-meta-perl/t/15_multibyte.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/15_multibyte.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/15_multibyte.t (original)
+++ trunk/libparse-cpan-meta-perl/t/15_multibyte.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of META.yml containing AVAR's name
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(0, 1, 3);
@@ -19,7 +29,7 @@
#####################################################################
# Testing that Perl::Smith config files work
-my $sample_file = catfile( 't', 'data', 'multibyte.yml' );
+my $sample_file = catfile( test_data_directory(), 'multibyte.yml' );
my $sample = load_ok( 'multibyte.yml', $sample_file, 450 );
# Does the string parse to the structure
Modified: trunk/libparse-cpan-meta-perl/t/16_nullrefs.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/16_nullrefs.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/16_nullrefs.t (original)
+++ trunk/libparse-cpan-meta-perl/t/16_nullrefs.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing for null references
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
use Test::More tests(1);
Modified: trunk/libparse-cpan-meta-perl/t/17_toolbar.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libparse-cpan-meta-perl/t/17_toolbar.t?rev=29690&op=diff
==============================================================================
--- trunk/libparse-cpan-meta-perl/t/17_toolbar.t (original)
+++ trunk/libparse-cpan-meta-perl/t/17_toolbar.t Thu Jan 15 23:27:29 2009
@@ -1,6 +1,16 @@
#!/usr/bin/perl
# Testing of a known-bad file from an editor
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib/';
+ }
+}
use strict;
BEGIN {
@@ -9,7 +19,7 @@
}
use File::Spec::Functions ':ALL';
-use t::lib::Test;
+use Parse::CPAN::Meta::Test;
# use Test::More skip_all => 'Temporarily ignoring failing test';
use Test::More tests(1, 1);
@@ -20,7 +30,7 @@
#####################################################################
# Testing that Perl::Smith config files work
-my $toolbar_file = catfile( 't', 'data', 'toolbar.yml' );
+my $toolbar_file = catfile( test_data_directory(), 'toolbar.yml' );
my $toolbar = load_ok( 'toolbar.yml', $toolbar_file, 100 );
yaml_ok(
More information about the Pkg-perl-cvs-commits
mailing list