r29142 - in /branches/upstream/libtemplate-plugin-yaml-perl/current: Build.PL Changes MANIFEST META.yml Makefile.PL README lib/Template/Plugin/YAML.pm t/00simple.t
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Thu Jan 1 22:39:06 UTC 2009
Author: gregoa
Date: Thu Jan 1 22:39:03 2009
New Revision: 29142
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29142
Log:
[svn-upgrade] Integrating new upstream version, libtemplate-plugin-yaml-perl (1.23)
Removed:
branches/upstream/libtemplate-plugin-yaml-perl/current/Build.PL
Modified:
branches/upstream/libtemplate-plugin-yaml-perl/current/Changes
branches/upstream/libtemplate-plugin-yaml-perl/current/MANIFEST
branches/upstream/libtemplate-plugin-yaml-perl/current/META.yml
branches/upstream/libtemplate-plugin-yaml-perl/current/Makefile.PL
branches/upstream/libtemplate-plugin-yaml-perl/current/README
branches/upstream/libtemplate-plugin-yaml-perl/current/lib/Template/Plugin/YAML.pm
branches/upstream/libtemplate-plugin-yaml-perl/current/t/00simple.t
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/Changes?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/Changes (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/Changes Thu Jan 1 22:39:03 2009
@@ -1,3 +1,7 @@
+1.23 15th December, 2008
+ Fix the tests so we don't rely on golden output. Should fix
+ most of the failing smoke cases.
+
1.22 29th August, 2003
Adds undump, dumpfile, undumpfile as provided by Randal L. Schwartz
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/MANIFEST?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/MANIFEST (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/MANIFEST Thu Jan 1 22:39:03 2009
@@ -1,4 +1,3 @@
-Build.PL
README
Changes
Makefile.PL
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/META.yml?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/META.yml (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/META.yml Thu Jan 1 22:39:03 2009
@@ -1,17 +1,13 @@
---- #YAML:1.0
-name: Template-Plugin-YAML
-version: 1.22
-license: perl
+# http://module-build.sourceforge.net/META-spec.html
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: Template-Plugin-YAML
+version: 1.23
+version_from: lib/Template/Plugin/YAML.pm
+installdirs: site
+requires:
+ Template: 0
+ Test::More: 0
+ YAML: 0
+
distribution_type: module
-requires:
- Template: 0
- Test::More: 0
- YAML: 0
-recommends: {}
-build_requires: {}
-conflicts: {}
-provides:
- Template::Plugin::YAML:
- file: lib/Template/Plugin/YAML.pm
- version: 1.22
-generated_by: Module::Build version 0.20
+generated_by: ExtUtils::MakeMaker version 6.17
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/Makefile.PL?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/Makefile.PL (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/Makefile.PL Thu Jan 1 22:39:03 2009
@@ -1,15 +1,10 @@
-# Generated by Module::Build::Compat->create_makefile_pl
-
use ExtUtils::MakeMaker;
-WriteMakefile
- (
- NAME => 'Template::Plugin::YAML',
- VERSION => '1.22',
- PL_FILES => {},
- INSTALLDIRS => 'site',
- PREREQ_PM => {
- 'Test::More' => '0',
- 'YAML' => '0',
- 'Template' => '0',
- },
- );
+WriteMakefile(
+ 'NAME' => 'Template::Plugin::YAML',
+ 'VERSION_FROM' => 'lib/Template/Plugin/YAML.pm',
+ 'PREREQ_PM' => {
+ 'Test::More' => 0,
+ 'Template' => 0,
+ 'YAML' => 0,
+ }
+);
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/README?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/README (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/README Thu Jan 1 22:39:03 2009
@@ -1,4 +1,4 @@
-README for Template::Plugin::YAML 1.22
+README for Template::Plugin::YAML
=head1 NAME
@@ -15,28 +15,26 @@
[% value = YAML.undumpfile(filename) %]
-=head1 DEPENDENCIES
-
-This module has external dependencies on the following modules:
-
- Template
- Test::More
- YAML
-
=head1 INSTALLATION
- perl Build.PL
- perl Build test
+ perl Makefile.PL
+ make test
and if all goes well
- perl Build install
+ make install
=head1 HISTORY
What changed over the last 3 revisions
=over
+
+=item 1.23 15th December, 2008
+
+ Fix the tests so we don't rely on golden output. Should fix
+ most of the failing smoke cases.
+
=item 1.22 29th August, 2003
@@ -57,7 +55,7 @@
=head1 COPYRIGHT
-Copyright 2003 Richard Clamp All Rights Reserved.
+Copyright 2003, 2008 Richard Clamp All Rights Reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/lib/Template/Plugin/YAML.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/lib/Template/Plugin/YAML.pm?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/lib/Template/Plugin/YAML.pm (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/lib/Template/Plugin/YAML.pm Thu Jan 1 22:39:03 2009
@@ -4,7 +4,7 @@
use base 'Template::Plugin';
use YAML qw(Dump Load DumpFile LoadFile);
use vars qw($VERSION);
-$VERSION = 1.22;
+$VERSION = '1.23';
=head1 NAME
@@ -137,7 +137,7 @@
=head1 COPYRIGHT
-Copyright 2003 Richard Clamp All Rights Reserved.
+Copyright 2003, 2008 Richard Clamp All Rights Reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
Modified: branches/upstream/libtemplate-plugin-yaml-perl/current/t/00simple.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtemplate-plugin-yaml-perl/current/t/00simple.t?rev=29142&op=diff
==============================================================================
--- branches/upstream/libtemplate-plugin-yaml-perl/current/t/00simple.t (original)
+++ branches/upstream/libtemplate-plugin-yaml-perl/current/t/00simple.t Thu Jan 1 22:39:03 2009
@@ -2,13 +2,18 @@
use strict;
use Test::More tests => 3;
use Template;
+use YAML;
my $tt = new Template;
my $out;
-ok( $tt->process(\"[% USE YAML %][% YAML.dump( struct ) %]", {
- struct => [ { foo => 'bar' }, { foo => 'baz' } ],
- }, \$out), "TT ran" );
+my $data = [ { foo => 'bar' }, { foo => 'baz' } ];
+ok( $tt->process(
+ \"[% USE YAML %][% YAML.dump( struct ) %]", { struct => $data, },
+ \$out
+ ),
+ "TT ran"
+);
-is( $tt->error, undef );
+ok( !$tt->error, " without error" );
-is( $out, "--- #YAML:1.0\n- foo: bar\n- foo: baz\n", "got what we expected" );
+is_deeply( YAML::Load($out), $data, "YAML round tripped to original data" );
More information about the Pkg-perl-cvs-commits
mailing list