r69103 - in /trunk/libtest-yaml-meta-perl: Artistic Changes MANIFEST META.yml Makefile.PL README debian/changelog lib/Test/YAML/Meta.pm lib/Test/YAML/Meta/ t/01use.t t/02metafiles.t t/03metaversion.t t/04metatester.t t/05metaspec.t t/samples/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sat Feb 19 15:28:31 UTC 2011


Author: jawnsy-guest
Date: Sat Feb 19 15:28:22 2011
New Revision: 69103

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=69103
Log:
!!!!!!!!!!!!!!!!! IMPORTANT TODO !!!!!!!!!!!!!!!!
NOTE: This package needs to be removed, it is superseded by
Test::CPAN::Meta::YAML
* New upstream release

Removed:
    trunk/libtest-yaml-meta-perl/Artistic
    trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta/
    trunk/libtest-yaml-meta-perl/t/02metafiles.t
    trunk/libtest-yaml-meta-perl/t/03metaversion.t
    trunk/libtest-yaml-meta-perl/t/04metatester.t
    trunk/libtest-yaml-meta-perl/t/05metaspec.t
    trunk/libtest-yaml-meta-perl/t/samples/
Modified:
    trunk/libtest-yaml-meta-perl/Changes
    trunk/libtest-yaml-meta-perl/MANIFEST
    trunk/libtest-yaml-meta-perl/META.yml
    trunk/libtest-yaml-meta-perl/Makefile.PL
    trunk/libtest-yaml-meta-perl/README
    trunk/libtest-yaml-meta-perl/debian/changelog
    trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta.pm
    trunk/libtest-yaml-meta-perl/t/01use.t

Modified: trunk/libtest-yaml-meta-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/Changes?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/Changes (original)
+++ trunk/libtest-yaml-meta-perl/Changes Sat Feb 19 15:28:22 2011
@@ -1,4 +1,14 @@
 # Changes log for Test::YAML::Meta
+
+0.19    15/02/2011
+	- added missing prerequisite.
+
+0.18    14/02/2011
+	- removed tests which are no longer applicable.
+
+0.17    13/02/2011
+        - Distribution name chang: Test-YAML-Meta => Test-CPAN-Meta-YAML.
+	- This distribution now a wrapper around Test-CPAN-Meta-YAML.
 
 0.16    12/04/2010
 	- fixed qr// delimiters due to issues with the NOT SIGN symbol 

Modified: trunk/libtest-yaml-meta-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/MANIFEST?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/MANIFEST (original)
+++ trunk/libtest-yaml-meta-perl/MANIFEST Sat Feb 19 15:28:22 2011
@@ -1,38 +1,15 @@
-Artistic
 Changes
 examples/examples.txt
 examples/94metatest.t
 INSTALL
 LICENSE
 lib/Test/YAML/Meta.pm
-lib/Test/YAML/Meta/Version.pm
 Makefile.PL
 MANIFEST			This list of files
 META.yml
 README
 t/01use.t
-t/02metafiles.t
-t/03metaversion.t
-t/04metatester.t
-t/05metaspec.t
 t/90podtest.t
 t/91podcover.t
 t/94metatest.t
 t/95changedate.t
-t/samples/00-META.yml
-t/samples/01-META.yml
-t/samples/02-META.yml
-t/samples/03-META.yml
-t/samples/04-META.yml
-t/samples/05-META.yml
-t/samples/06-META.yml
-t/samples/07-META.yml
-t/samples/08-META.yml
-t/samples/09-META.yml
-t/samples/10-META.yml
-t/samples/11-META.yml
-t/samples/12-META.yml
-t/samples/13-META.yml
-t/samples/14-META.yml
-t/samples/15-META.yml
-t/samples/16-META.yml

Modified: trunk/libtest-yaml-meta-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/META.yml?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/META.yml (original)
+++ trunk/libtest-yaml-meta-perl/META.yml Sat Feb 19 15:28:22 2011
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                     Test-YAML-Meta
-version:                  0.16
+version:                  0.19
 abstract:                 A test module to validate a META.yml file.
 author:
   - Barbie <barbie at cpan.org>
@@ -10,27 +10,19 @@
 installdirs:              site
 
 requires:
-  Test::YAML::Valid:      0.03
+  Test::CPAN::Meta::YAML: 0.17
   Test::More:             0.70
-  Test::Builder:          0
 recommends:
   Test::More:             0.70
   Test::Pod:              1.00
   Test::Pod::Coverage:    0.08
-  Test::YAML::Valid:      0.03
-  YAML:                   0
-  YAML::Syck:             0
 build_requires:
   Test::More:             0.70
-  Test::Builder::Tester:  0
 
 provides:
   Test::YAML::Meta:
     file:     lib/Test/YAML/Meta.pm
-    version:  0.16
-  Test::YAML::Meta::Version:
-    file:     lib/Test/YAML/Meta/Version.pm
-    version:  0.16
+    version:  0.19
 no_index:
   directory:
     - t

Modified: trunk/libtest-yaml-meta-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/Makefile.PL?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/Makefile.PL (original)
+++ trunk/libtest-yaml-meta-perl/Makefile.PL Sat Feb 19 15:28:22 2011
@@ -3,9 +3,10 @@
     'NAME'			=> 'Test::YAML::Meta',
     'VERSION_FROM'	=> 'lib/Test/YAML/Meta.pm',
     'PREREQ_PM'		=> {
-		Test::Builder       => 0,
-		Test::YAML::Valid	=> 0.03,
-		Test::More	        => 0.70,	# for testing
+        Test::CPAN::Meta::YAML  => 0.17,
+		Test::Builder           => 0,
+		Test::YAML::Valid	    => 0.03,
+		Test::More	            => 0.70,	# for testing
 	},
 	NO_META			=> 1,
 

Modified: trunk/libtest-yaml-meta-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/README?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/README (original)
+++ trunk/libtest-yaml-meta-perl/README Sat Feb 19 15:28:22 2011
@@ -10,25 +10,27 @@
 being introduced to module uploads, via the use of ExtUtils::MakeMaker,
 Module::Build and Module::Install.
 
-Current META.yml Specification, 1.4, was finally approved on 23 June 2008.
+Current CPAN META Specification, 2.0, was finally approved in April 2010, 
+which forms the basis for the contents of a META.json file. The full 
+specification is now included with the CPAN-Meta distribution.
 
-http://www.nntp.perl.org/group/perl.module.build/2008/06/msg1360.html
+http://search.cpan.org/perldoc?CPAN::Meta
 
 DEPENDENCIES
 
 The distribution requires the following modules:
 
-  Test::Builder       >= 0
-  Test::YAML::Valid   >= 0.03
+  Test::CPAN::Meta::YAML	>= 0.17
 
 For testing purposes, the following modules are required:
 
-  Test::More          >= 0.47
+  Test::More			>= 0.70
 
 For testing purposes, the following modules are desireable, but not essential:
 
-  Test::Pod           >= 1.00
-  Test::Pod::Coverage >= 0.08
+  Test::More			>= 0.70
+  Test::Pod			>= 1.00
+  Test::Pod::Coverage		>= 0.08
   Pod::Coverage
 
 INSTALLATION
@@ -77,11 +79,7 @@
 
 COPYRIGHT AND LICENSE
 
-  Copyright (C) 2007 Barbie for Miss Barbell Productions.
+  Copyright (C) 2007-2011 Barbie for Miss Barbell Productions
 
-  This module is free software; you can redistribute it and/or 
-  modify it under the same terms as Perl itself.
-
-The full text of the licenses can be found in the Artistic file included with
-this distribution, or in perlartistic file available with your Perl 
-installation.
+  This module is free software; you can redistribute it and/or
+  modify it under the Artistic Licence v2.

Modified: trunk/libtest-yaml-meta-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/debian/changelog?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/debian/changelog (original)
+++ trunk/libtest-yaml-meta-perl/debian/changelog Sat Feb 19 15:28:22 2011
@@ -1,3 +1,14 @@
+libtest-yaml-meta-perl (0.19-1) UNRELEASED; urgency=low
+
+  !!!!!!!!!!!!!!!!! IMPORTANT TODO !!!!!!!!!!!!!!!!
+
+  NOTE: This package needs to be removed, it is superseded by
+  Test::CPAN::Meta::YAML
+
+  * New upstream release
+
+ -- Jonathan Yu <jawnsy at cpan.org>  Sat, 19 Feb 2011 10:50:12 -0500
+
 libtest-yaml-meta-perl (0.16-1) unstable; urgency=low
 
   * New upstream release.

Modified: trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta.pm?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta.pm (original)
+++ trunk/libtest-yaml-meta-perl/lib/Test/YAML/Meta.pm Sat Feb 19 15:28:22 2011
@@ -4,7 +4,17 @@
 use strict;
 
 use vars qw($VERSION);
-$VERSION = '0.16';
+$VERSION = '0.19';
+
+#############################################################################
+#Library Modules															#
+#############################################################################
+
+use base 'Test::CPAN::Meta::YAML';
+
+q( Currently Listening To: Paul Menel - "The Nurse" from 'Three Sides To Every Story');
+
+__END__
 
 #----------------------------------------------------------------------------
 
@@ -12,163 +22,14 @@
 
 Test::YAML::Meta - Validation of the META.yml file in a distribution.
 
-=head1 SYNOPSIS
-
-There are two forms this module can be used.
-
-The first is a standalone test of your distribution's META.yml file:
-
-  use Test::More;
-  eval "use Test::YAML::Meta";
-  plan skip_all => "Test::YAML::Meta required for testing META.yml" if $@;
-  meta_yaml_ok();
-
-Note that you may provide an optional label/comment/message/etc to the
-function, or one will be created automatically.
-
-The second form allows you to test other META.yml files, or specify a specific
-version you wish to test against:
-
-  use Test::More test => 6;
-  use Test::YAML::Meta;
-
-  # specify a file and specification version
-  meta_spec_ok('META.yml','1.3',$msg);
-
-  # specify the specification version to validate the local META.yml
-  meta_spec_ok(undef,'1.3',$msg);
-
-  # specify a file, where the specification version is deduced
-  # from the file itself
-  meta_spec_ok('META.yml',undef,$msg);
-
-Note that this form requires you to specify the number of tests you will be
-running in your test script. Also note that each 'meta_spec_ok' is actually 2
-tests under the hood.
-
 =head1 DESCRIPTION
 
-This module was written to ensure that a META.yml file, provided with a
-standard distribution uploaded to CPAN, meets the specifications that slowly
-being introduced to module uploads, via the use of L<ExtUtils::MakeMaker>,
-L<Module::Build> and L<Module::Install>.
+This module has now been replaced by L<Test::CPAN::Meta::YAML>. Please see
+that distribution for further details.
 
 =head1 ABSTRACT
 
 A test module to validate a META.yml file.
-
-=cut
-
-#----------------------------------------------------------------------------
-
-#############################################################################
-#Library Modules															#
-#############################################################################
-
-use Test::Builder;
-use Test::YAML::Valid           -Syck;
-use Test::YAML::Meta::Version;
-
-#----------------------------------------------------------------------------
-
-my $Test = Test::Builder->new();
-
-sub import {
-    my $self = shift;
-    my $caller = caller;
-    no strict 'refs';
-    *{$caller.'::meta_yaml_ok'}   = \&meta_yaml_ok;
-    *{$caller.'::meta_spec_ok'}   = \&meta_spec_ok;
-
-    $Test->exported_to($caller);
-    $Test->plan(@_);
-}
-
-#############################################################################
-#Interface Functions														#
-#############################################################################
-
-=head1 FUNCTIONS
-
-=over
-
-=item * meta_yaml_ok([$msg])
-
-Basic META.yml wrapper around meta_spec_ok.
-
-=cut
-
-sub meta_yaml_ok {
-    $Test->plan( tests => 2 );
-    return meta_spec_ok(undef,undef, at _);
-}
-
-=item * meta_spec_ok($file, $version [,$msg])
-
-Validates the named file against the given specification version. Both $file
-and $version can be undefined.
-
-=back
-
-=cut
-
-sub meta_spec_ok {
-	my ($file, $vers, $msg) = @_;
-    $file ||= 'META.yml';
-
-    unless($msg) {
-        $msg = "$file meets the designated specification";
-        $msg .= " ($vers)"   if($vers);
-    }
-
-    if(my $yaml = yaml_file_ok($file)) {
-        my %hash;
-        $hash{spec} = $vers if($vers);
-        $hash{yaml} = $yaml;
-
-        my $spec = Test::YAML::Meta::Version->new(%hash);
-        if(my $result = $spec->parse()) {
-            $Test->ok(0,$msg);
-            $Test->diag("  ERR: $_") for($spec->errors);
-        } else {
-            $Test->ok(1,$msg);
-        }
-
-        return $yaml;
-
-    } else {
-        print STDERR "\n#Failed\n";
-    }
-}
-
-q( Currently Listening To: Blondie - "Screaming Skin" from 'No Exit');
-
-__END__
-
-#----------------------------------------------------------------------------
-
-=head1 TESTING META FILES
-
-There are currently 3 distributions to test META files:
-
-  Test-CPAN-Meta
-  Test-JSON-Meta
-  Test-YAML-Meta
-
-All three have slightly different requirements and are intended to be used in
-slightly different environments. 
-
-Test-YAML-Meta requires a YAML parser, and currently looks for the YAML or 
-YAML::Syck modules. This is the original variant of the 3 and was intended to
-provide a more complete YAML validation of a META.yml.
-
-Test-CPAN-Meta requires the Parse::CPAN::Meta module, which is now part of Perl
-Core as of perl-5.10.1. This version is intended to be used by those only 
-wishing to rely on core modules to test their META.yml files.
-
-Test-JSON-Meta is the most recent addition to the family, and is specifically
-aimed at those distributions that use a META.json Meta file. The distribution
-requires the JSON module to parse the Meta file.
 
 =head1 BUGS, PATCHES & FIXES
 
@@ -184,7 +45,7 @@
 
 =head1 SEE ALSO
 
-  Test::YAML::Valid
+L<Test::CPAN::Meta::YAML>.
 
 =head1 DSLIP
 
@@ -201,9 +62,9 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-  Copyright (C) 2007-2010 Barbie for Miss Barbell Productions
+  Copyright (C) 2009-2011 Barbie for Miss Barbell Productions
 
   This module is free software; you can redistribute it and/or
-  modify it under the same terms as Perl itself.
+  modify it under the Artistic Licence v2.
 
 =cut

Modified: trunk/libtest-yaml-meta-perl/t/01use.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-yaml-meta-perl/t/01use.t?rev=69103&op=diff
==============================================================================
--- trunk/libtest-yaml-meta-perl/t/01use.t (original)
+++ trunk/libtest-yaml-meta-perl/t/01use.t Sat Feb 19 15:28:22 2011
@@ -1,10 +1,9 @@
 #!/usr/bin/perl -w
 use strict;
 
-use Test::More tests => 2;
+use Test::More tests => 1;
 
 BEGIN {
 	use_ok( 'Test::YAML::Meta' );
-	use_ok( 'Test::YAML::Meta::Version' );
 }
 




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