r29144 - in /trunk/libtemplate-plugin-yaml-perl: Build.PL Changes MANIFEST META.yml Makefile.PL README debian/changelog lib/Template/Plugin/YAML.pm t/00simple.t
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Thu Jan 1 22:40:49 UTC 2009
Author: gregoa
Date: Thu Jan 1 22:40:46 2009
New Revision: 29144
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29144
Log:
New upstream release.
Removed:
trunk/libtemplate-plugin-yaml-perl/Build.PL
Modified:
trunk/libtemplate-plugin-yaml-perl/Changes
trunk/libtemplate-plugin-yaml-perl/MANIFEST
trunk/libtemplate-plugin-yaml-perl/META.yml
trunk/libtemplate-plugin-yaml-perl/Makefile.PL
trunk/libtemplate-plugin-yaml-perl/README
trunk/libtemplate-plugin-yaml-perl/debian/changelog
trunk/libtemplate-plugin-yaml-perl/lib/Template/Plugin/YAML.pm
trunk/libtemplate-plugin-yaml-perl/t/00simple.t
Modified: trunk/libtemplate-plugin-yaml-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/Changes?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/Changes (original)
+++ trunk/libtemplate-plugin-yaml-perl/Changes Thu Jan 1 22:40:46 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: trunk/libtemplate-plugin-yaml-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/MANIFEST?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/MANIFEST (original)
+++ trunk/libtemplate-plugin-yaml-perl/MANIFEST Thu Jan 1 22:40:46 2009
@@ -1,4 +1,3 @@
-Build.PL
README
Changes
Makefile.PL
Modified: trunk/libtemplate-plugin-yaml-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/META.yml?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/META.yml (original)
+++ trunk/libtemplate-plugin-yaml-perl/META.yml Thu Jan 1 22:40:46 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: trunk/libtemplate-plugin-yaml-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/Makefile.PL?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/Makefile.PL (original)
+++ trunk/libtemplate-plugin-yaml-perl/Makefile.PL Thu Jan 1 22:40:46 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: trunk/libtemplate-plugin-yaml-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/README?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/README (original)
+++ trunk/libtemplate-plugin-yaml-perl/README Thu Jan 1 22:40:46 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: trunk/libtemplate-plugin-yaml-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/debian/changelog?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/debian/changelog (original)
+++ trunk/libtemplate-plugin-yaml-perl/debian/changelog Thu Jan 1 22:40:46 2009
@@ -1,4 +1,4 @@
-libtemplate-plugin-yaml-perl (1.22-5) UNRELEASED; urgency=low
+libtemplate-plugin-yaml-perl (1.23-1) UNRELEASED; urgency=low
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
field (source stanza); Homepage field (source stanza). Removed: XS-
@@ -9,6 +9,8 @@
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
(source stanza).
* debian/control: Added: ${misc:Depends} to Depends: field.
+
+ * New upstream release.
-- gregor herrmann <gregor+debian at comodo.priv.at> Tue, 09 Oct 2007 22:32:18 +0200
Modified: trunk/libtemplate-plugin-yaml-perl/lib/Template/Plugin/YAML.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/lib/Template/Plugin/YAML.pm?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/lib/Template/Plugin/YAML.pm (original)
+++ trunk/libtemplate-plugin-yaml-perl/lib/Template/Plugin/YAML.pm Thu Jan 1 22:40:46 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: trunk/libtemplate-plugin-yaml-perl/t/00simple.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtemplate-plugin-yaml-perl/t/00simple.t?rev=29144&op=diff
==============================================================================
--- trunk/libtemplate-plugin-yaml-perl/t/00simple.t (original)
+++ trunk/libtemplate-plugin-yaml-perl/t/00simple.t Thu Jan 1 22:40:46 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