New Upstream Snapshot - libhtml-template-perl

Ready changes

Summary

Merged new upstream version: 2.97+git20170922.1.c2937e0 (was: 2.97).

Resulting package

Built on 2022-12-20T07:43 (took 6m4s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots libhtml-template-perl

Lintian Result

Diff

diff --git a/Changes b/Changes
index 7d875c2..4bd4a2b 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+2.98 In development.
+    - Added Unicode tests [Vytas Dauksa]
+
 2.97 Thu May 18 2017
     - Change internal module name HTML::Template::DEFAULT to
       HTML::Template::DEF to avoid conflict with
diff --git a/LICENSE b/LICENSE
index 1aaec1d..f57299c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -292,21 +292,21 @@ Definitions:
 
   - "Package" refers to the collection of files distributed by the Copyright
     Holder, and derivatives of that collection of files created through
-    textual modification. 
+    textual modification.
   - "Standard Version" refers to such a Package if it has not been modified,
     or has been modified in accordance with the wishes of the Copyright
-    Holder. 
+    Holder.
   - "Copyright Holder" is whoever is named in the copyright or copyrights for
-    the package. 
+    the package.
   - "You" is you, if you're thinking about copying or distributing this Package.
   - "Reasonable copying fee" is whatever you can justify on the basis of media
     cost, duplication charges, time of people involved, and so on. (You will
     not be required to justify it to the Copyright Holder, but only to the
-    computing community at large as a market that must bear the fee.) 
+    computing community at large as a market that must bear the fee.)
   - "Freely Available" means that no fee is charged for the item itself, though
     there may be fees involved in handling the item. It also means that
     recipients of the item may redistribute it under the same conditions they
-    received it. 
+    received it.
 
 1. You may make and give away verbatim copies of the source form of the
 Standard Version of this Package without restriction, provided that you
@@ -373,7 +373,7 @@ products derived from this software without specific prior written permission.
 
 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
 The End
 
diff --git a/MANIFEST b/MANIFEST
index bf5826c..907df1e 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025.
 Changes
 LICENSE
 MANIFEST
@@ -24,6 +24,7 @@ t/03-associate.t
 t/03-else_else_bug.t
 t/04-default-escape.t
 t/04-default_with_escape.t
+t/04-escape-unicode.t
 t/04-escape.t
 t/04-no_taintmode.t
 t/04-type-source.t
diff --git a/META.yml b/META.yml
index a144e73..41f21f9 100644
--- a/META.yml
+++ b/META.yml
@@ -3,20 +3,20 @@ abstract: 'Perl module to use HTML-like templating language'
 author:
   - 'Michael Peters <mpeters@plusthree.com>'
 build_requires:
+  CGI: '0'
   File::Temp: '0'
   Test::More: '0'
   Test::Pod: '0'
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005'
+generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: '1.4'
 name: HTML-Template
 requires:
-  CGI: '0'
   Carp: '0'
   Digest::MD5: '0'
   File::Spec: '0.82'
@@ -24,4 +24,7 @@ requires:
 resources:
   bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template
   repository: git://github.com/mpeters/html-template.git
-version: '2.97'
+version: '2.98'
+x_generated_by_perl: v5.36.0
+x_serialization_backend: 'YAML::Tiny version 1.73'
+x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
diff --git a/Makefile.PL b/Makefile.PL
index 41afa6f..10aac96 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025.
 use strict;
 use warnings;
 
@@ -16,18 +16,18 @@ my %WriteMakefileArgs = (
   "LICENSE" => "perl",
   "NAME" => "HTML::Template",
   "PREREQ_PM" => {
-    "CGI" => 0,
     "Carp" => 0,
     "Digest::MD5" => 0,
     "File::Spec" => "0.82",
     "Scalar::Util" => 0
   },
   "TEST_REQUIRES" => {
+    "CGI" => 0,
     "File::Temp" => 0,
     "Test::More" => 0,
     "Test::Pod" => 0
   },
-  "VERSION" => "2.97",
+  "VERSION" => "2.98",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff --git a/README b/README
index 18b943f..5b4171e 100644
--- a/README
+++ b/README
@@ -1,7 +1,5 @@
-
-
 This archive contains the distribution HTML-Template,
-version 2.97:
+version 2.98:
 
   Perl module to use HTML-like templating language
 
@@ -11,5 +9,4 @@ This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
 
 
-This README file was generated by Dist::Zilla::Plugin::Readme v5.043.
-
+This README file was generated by Dist::Zilla::Plugin::Readme v6.025.
diff --git a/debian/changelog b/debian/changelog
index df906e8..a337af2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libhtml-template-perl (2.97+git20170922.1.c2937e0-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Tue, 20 Dec 2022 07:40:37 -0000
+
 libhtml-template-perl (2.97-2) unstable; urgency=medium
 
   [ Laurent Baillet ]
diff --git a/dist.ini b/dist.ini
index d18c007..a283729 100644
--- a/dist.ini
+++ b/dist.ini
@@ -16,12 +16,12 @@ Carp         = 0
 File::Spec   = 0.82
 Digest::MD5  = 0
 Scalar::Util = 0
-CGI          = 0
 
 [Prereqs / TestRequires]
 File::Temp   = 0
 Test::More   = 0
 Test::Pod    = 0
+CGI          = 0
 
 [MetaResources]
 bugtracker.web  = https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template
diff --git a/lib/HTML/Template.pm b/lib/HTML/Template.pm
index a47b2d6..70035b6 100644
--- a/lib/HTML/Template.pm
+++ b/lib/HTML/Template.pm
@@ -1,6 +1,6 @@
 package HTML::Template;
 
-$HTML::Template::VERSION = '2.97';
+$HTML::Template::VERSION = '2.98';
 
 =head1 NAME
 
diff --git a/t/04-escape-unicode.t b/t/04-escape-unicode.t
new file mode 100644
index 0000000..c761cb6
--- /dev/null
+++ b/t/04-escape-unicode.t
@@ -0,0 +1,39 @@
+use strict;
+use warnings;
+use utf8;
+
+use open ':std', ':encoding(utf8)';
+use Test::More (tests => 10);
+use_ok('HTML::Template');
+
+while (<DATA>) {
+    chomp;
+    next if /^$/;
+    next if /^#/;
+    my ($text, $given, $wanted) = split /\|/;
+    my $template = HTML::Template->new(
+        scalarref      => \$text,
+        default_escape => "HTML"
+    );
+
+    undef $given if $given eq 'undef';
+    $template->param(foo => $given);
+    my $output = $template->output;
+    is($output, $wanted, $text);
+}
+
+# use pipe as the seperator between fields.
+# the TMPL_VAR name should always be 'foo'
+# fields: TMPL_VAR|given string|escaped string
+
+__DATA__
+# use default escaping
+<TMPL_VAR foo>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<TMPL_VAR name=foo>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<TMPL_VAR name='foo'>|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<TMPL_VAR NAME="foo">|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<!-- TMPL_VAR foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<!-- TMPL_VAR name=foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<!-- TMPL_VAR NAME=foo -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<!-- TMPL_VAR name='foo' -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
+<!-- TMPL_VAR NAME="foo" -->|<b>this is 字ñ\n|&lt;b&gt;this is 字ñ\n
diff --git a/t/author-pod-syntax.t b/t/author-pod-syntax.t
index 35fb1b9..2233af0 100644
--- a/t/author-pod-syntax.t
+++ b/t/author-pod-syntax.t
@@ -2,8 +2,8 @@
 
 BEGIN {
   unless ($ENV{AUTHOR_TESTING}) {
-    require Test::More;
-    Test::More::plan(skip_all => 'these tests are for testing by the author');
+    print qq{1..0 # SKIP these tests are for testing by the author\n};
+    exit
   }
 }
 

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details