r32546 - in /trunk/libpod-pom-perl: ./ debian/ inc/Module/Install/ lib/Pod/ t/ t/YAML/

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Fri Apr 3 04:56:05 UTC 2009


Author: ryan52-guest
Date: Fri Apr  3 04:56:01 2009
New Revision: 32546

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=32546
Log:
New upstream release

Added:
    trunk/libpod-pom-perl/inc/Module/Install/Can.pm
      - copied unchanged from r32545, branches/upstream/libpod-pom-perl/current/inc/Module/Install/Can.pm
    trunk/libpod-pom-perl/inc/Module/Install/Fetch.pm
      - copied unchanged from r32545, branches/upstream/libpod-pom-perl/current/inc/Module/Install/Fetch.pm
    trunk/libpod-pom-perl/inc/Module/Install/Scripts.pm
      - copied unchanged from r32545, branches/upstream/libpod-pom-perl/current/inc/Module/Install/Scripts.pm
    trunk/libpod-pom-perl/inc/Module/Install/Win32.pm
      - copied unchanged from r32545, branches/upstream/libpod-pom-perl/current/inc/Module/Install/Win32.pm
    trunk/libpod-pom-perl/inc/Module/Install/WriteAll.pm
      - copied unchanged from r32545, branches/upstream/libpod-pom-perl/current/inc/Module/Install/WriteAll.pm
    trunk/libpod-pom-perl/t/YAML/
      - copied from r32545, branches/upstream/libpod-pom-perl/current/t/YAML/
Removed:
    trunk/libpod-pom-perl/inc/Module/Install/MakeMaker.pm
Modified:
    trunk/libpod-pom-perl/Changes
    trunk/libpod-pom-perl/MANIFEST
    trunk/libpod-pom-perl/META.yml
    trunk/libpod-pom-perl/Makefile.PL
    trunk/libpod-pom-perl/TODO
    trunk/libpod-pom-perl/debian/changelog
    trunk/libpod-pom-perl/lib/Pod/POM.pm
    trunk/libpod-pom-perl/t/PodPOMTestLib.pm

Modified: trunk/libpod-pom-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/Changes?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/Changes (original)
+++ trunk/libpod-pom-perl/Changes Fri Apr  3 04:56:01 2009
@@ -10,8 +10,23 @@
 #   Andrew Ford    <A.Ford at ford-mason.co.uk>
 #
 #------------------------------------------------------------------------
-# $Id: Changes 67 2009-03-21 10:18:17Z ford $
+# $Id: Changes 71 2009-03-27 16:24:19Z ford $
 #========================================================================
+
+#------------------------------------------------------------------------
+# Version 0.25  2009-03-27
+#------------------------------------------------------------------------
+
+* updated Makefile.PL to use Module::Include properly - i.e. flag modules
+  as test_requires as appropriate
+
+* output test failure reason with diag()
+
+* added t/YAML/Tiny.pm (self-contained YAML library) to remove test-only
+  module dependency
+
+* test library uses Test::Differences if available but package does not 
+  list it as a dependency
 
 #------------------------------------------------------------------------
 # Version 0.24  2009-03-21

Modified: trunk/libpod-pom-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/MANIFEST?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/MANIFEST (original)
+++ trunk/libpod-pom-perl/MANIFEST Fri Apr  3 04:56:01 2009
@@ -10,9 +10,13 @@
 bin/pomdump
 inc/Module/Install.pm
 inc/Module/Install/Base.pm
-inc/Module/Install/MakeMaker.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
 inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
+inc/Module/Install/Scripts.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
 lib/Pod/POM.pm
 lib/Pod/POM/Constants.pm
 lib/Pod/POM/Node.pm
@@ -28,6 +32,7 @@
 t/12-view-text.t
 t/13-view-html.t
 t/PodPOMTestLib.pm
+t/YAML/Tiny.pm
 t/code.t
 t/complete.t
 t/head.t

Modified: trunk/libpod-pom-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/META.yml?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/META.yml (original)
+++ trunk/libpod-pom-perl/META.yml Fri Apr  3 04:56:01 2009
@@ -2,24 +2,23 @@
 abstract: 'POD Object Model'
 author:
   - 'Andy Wardley <abw at kfs.org>'
-configure_requires:
-  ExtUtils::MakeMaker: 6.48
+build_requires:
+  File::Slurp: 0
+  Test::More: 0
 distribution_type: module
 generated_by: 'Module::Install version 0.79'
-license: unknown
+license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
-module_name: Pod::POM
 name: Pod-POM
 no_index:
   directory:
     - inc
     - t
 requires:
-  File::Slurp: 0
-  Test::Differences: 0
-  Test::More: 0
   Text::Wrap: 0
-  YAML::Any: 0
-version: 0.24
+  perl: 5.6.0
+resources:
+  license: http://dev.perl.org/licenses/
+version: 0.25

Modified: trunk/libpod-pom-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/Makefile.PL?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/Makefile.PL (original)
+++ trunk/libpod-pom-perl/Makefile.PL Fri Apr  3 04:56:01 2009
@@ -1,37 +1,21 @@
-use 5.005;
+use 5.006;
 use inc::Module::Install;
 
-my %opts = (
-    'NAME'	   => 'Pod::POM',
-    'VERSION_FROM' => 'lib/Pod/POM.pm',
-    'EXE_FILES'    => [ 'bin/pom2', 'bin/podlint', 'bin/pomdump' ],
-    'PREREQ_PM'    => { 
-        'Text::Wrap' => 0,
+# Define metadata
 
-        # Required for testing
-        'File::Slurp'       => 0,
-        'Test::More'        => 0,
-        'Test::Differences' => 0,
-        'YAML::Any'         => 0,
-    },
-    'dist'         => {
-	'COMPRESS' => 'gzip',
-	'SUFFIX'   => 'gz',
-    },
-);
+name         'Pod-POM';
+author       'Andy Wardley <abw at kfs.org>';
+license      'perl';
+perl_version '5.006';
+all_from     'lib/Pod/POM.pm';
 
-if ($ExtUtils::MakeMaker::VERSION >= 5.43) {
-    $opts{ AUTHOR }   = 'Andy Wardley <abw at kfs.org>';
-    $opts{ ABSTRACT } = 'POD Object Model',
-}
 
-if ($ExtUtils::MakeMaker::VERSION >= 6.31) {
-    $opts{ LICENSE } = 'perl';
-} 
+requires      'Text::Wrap'        => 0; 
+test_requires 'File::Slurp'       => 0;
+test_requires 'Test::More'        => 0;
 
-if ($ExtUtils::MakeMaker::VERSION >= 6.48) {
-    $opts{ MIN_PERL_VERSION } = '5.005';
-}
+install_script 'bin/pom2';
+install_script 'bin/podlint';
+install_script 'bin/pomdump';
 
-WriteMakefile( %opts );
-
+WriteAll;

Modified: trunk/libpod-pom-perl/TODO
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/TODO?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/TODO (original)
+++ trunk/libpod-pom-perl/TODO Fri Apr  3 04:56:01 2009
@@ -3,6 +3,8 @@
 * add more thorough testing
 
 * fix link generation via L<...>
+
+* handle =encoding
 
 * more views for different styles, formats, etc.
 

Modified: trunk/libpod-pom-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/debian/changelog?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/debian/changelog (original)
+++ trunk/libpod-pom-perl/debian/changelog Fri Apr  3 04:56:01 2009
@@ -1,3 +1,9 @@
+libpod-pom-perl (0.25-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+ -- Ryan Niebur <ryanryan52 at gmail.com>  Thu, 02 Apr 2009 21:55:56 -0700
+
 libpod-pom-perl (0.24-1) unstable; urgency=low
 
   [ Ryan Niebur ]

Modified: trunk/libpod-pom-perl/lib/Pod/POM.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/lib/Pod/POM.pm?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/lib/Pod/POM.pm (original)
+++ trunk/libpod-pom-perl/lib/Pod/POM.pm Fri Apr  3 04:56:01 2009
@@ -18,7 +18,7 @@
 #   modify it under the same terms as Perl itself.
 #
 # REVISION
-#   $Id: POM.pm 66 2009-03-21 10:18:03Z ford $
+#   $Id: POM.pm 71 2009-03-27 16:24:19Z ford $
 #
 #========================================================================
 
@@ -34,7 +34,7 @@
 use vars qw( $VERSION $DEBUG $ERROR $ROOT $TEXTSEQ $DEFAULT_VIEW );
 use base qw( Exporter );
 
-$VERSION = '0.24';
+$VERSION = '0.25';
 $DEBUG   = 0 unless defined $DEBUG;
 $ROOT    = 'Pod::POM::Node::Pod';               # root node class
 $TEXTSEQ = 'Pod::POM::Node::Sequence';          # text sequence class
@@ -1592,7 +1592,7 @@
 
 =head1 VERSION
 
-This is version 0.24 of the Pod::POM module.
+This is version 0.25 of the Pod::POM module.
 
 =head1 COPYRIGHT
 

Modified: trunk/libpod-pom-perl/t/PodPOMTestLib.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpod-pom-perl/t/PodPOMTestLib.pm?rev=32546&op=diff
==============================================================================
--- trunk/libpod-pom-perl/t/PodPOMTestLib.pm (original)
+++ trunk/libpod-pom-perl/t/PodPOMTestLib.pm Fri Apr  3 04:56:01 2009
@@ -9,9 +9,8 @@
 
 use Pod::POM;
 use Test::More;
-use Test::Differences;
 use File::Slurp;
-use YAML::Any;
+use YAML::Tiny;
 
 # use Data::Dumper; # for debugging
 
@@ -45,6 +44,15 @@
 
     plan tests => int @tests;
 
+    # Select whether to use eq_or_diff() or is() according to whether
+    # Test::Differences is available.
+
+    eval {
+	require Test::Differences;
+	Test::Differences->import;
+    };
+    my $eq = $@ ? \&is : \&eq_or_diff;
+
     foreach my $test (@tests) {
       TODO:
         eval {
@@ -54,9 +62,10 @@
             my $pom    = $pod_parser->parse_text($test->input);
             my $result = $view ? $pom->present($view) : $pom->dump;
 
-            eq_or_diff $result, $test->expect, $test->title;
+            $eq->($result, $test->expect, $test->title);
         };
         if ($@) {
+            diag($@);
             fail($test->title);
         }
     }




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