Hello community,
here is the log from the commit of package perl-Text-Template for
openSUSE:Factory checked in at 2018-03-24 16:13:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Template (Old)
and /work/SRC/openSUSE:Factory/.perl-Text-Template.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Template"
Sat Mar 24 16:13:52 2018 rev:17 rq:583237 version:1.51
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Text-Template/perl-Text-Template.changes
2018-02-16 21:45:44.052789799 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Text-Template.new/perl-Text-Template.changes
2018-03-24 16:13:54.466682005 +0100
@@ -1,0 +2,11 @@
+Mon Mar 5 07:05:50 UTC 2018 - [email protected]
+
+- updated to 1.51
+ see /usr/share/doc/packages/perl-Text-Template/Changes
+
+ 1.51 2018-03-04
+ - Add test for nested tags breakage that happened in v1.46
+ - Turn off strict+warnings in sections where template code is eval'ed
+ [github #9]
+
+-------------------------------------------------------------------
Old:
----
Text-Template-1.50.tar.gz
New:
----
Text-Template-1.51.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Text-Template.spec ++++++
--- /var/tmp/diff_new_pack.3emPIW/_old 2018-03-24 16:13:55.526643795 +0100
+++ /var/tmp/diff_new_pack.3emPIW/_new 2018-03-24 16:13:55.526643795 +0100
@@ -17,11 +17,11 @@
Name: perl-Text-Template
-Version: 1.50
+Version: 1.51
Release: 0
%define cpan_name Text-Template
Summary: Expand template text with embedded Perl
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Text-Template/
Source0:
https://cpan.metacpan.org/authors/id/M/MS/MSCHOUT/%{cpan_name}-%{version}.tar.gz
@@ -30,6 +30,7 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
+BuildRequires: perl(Test::Warnings)
%{perl_requires}
%description
++++++ Text-Template-1.50.tar.gz -> Text-Template-1.51.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/Changes
new/Text-Template-1.51/Changes
--- old/Text-Template-1.50/Changes 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/Changes 2018-03-04 21:53:53.000000000 +0100
@@ -1,5 +1,10 @@
Revision history for Text::Template
+1.51 2018-03-04
+ - Add test for nested tags breakage that happened in v1.46
+ - Turn off strict+warnings in sections where template code is eval'ed
+ [github #9]
+
1.50 2018-02-10
*** Revert support for identical start/end delimiters (e.g.: @@foo@@,
XXfooXX)
due to breakage with nested tags (see
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/MANIFEST
new/Text-Template-1.51/MANIFEST
--- old/Text-Template-1.50/MANIFEST 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/MANIFEST 2018-03-04 21:53:53.000000000 +0100
@@ -19,6 +19,7 @@
t/exported.t
t/hash.t
t/inline-comment.t
+t/nested-tags.t
t/ofh.t
t/out.t
t/prepend.t
@@ -29,3 +30,4 @@
t/safe3.t
t/strict.t
t/taint.t
+t/warnings.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/META.json
new/Text-Template-1.51/META.json
--- old/Text-Template-1.50/META.json 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/META.json 2018-03-04 21:53:53.000000000 +0100
@@ -44,6 +44,7 @@
"File::Temp" : "0",
"Safe" : "0",
"Test::More" : "0",
+ "Test::Warnings" : "0",
"lib" : "0",
"perl" : "5.008",
"vars" : "0"
@@ -53,11 +54,11 @@
"provides" : {
"Text::Template" : {
"file" : "lib/Text/Template.pm",
- "version" : "1.50"
+ "version" : "1.51"
},
"Text::Template::Preprocess" : {
"file" : "lib/Text/Template/Preprocess.pm",
- "version" : "1.50"
+ "version" : "1.51"
}
},
"release_status" : "stable",
@@ -72,7 +73,7 @@
"web" : "https://github.com/mschout/perl-text-template"
}
},
- "version" : "1.50",
+ "version" : "1.51",
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/META.yml
new/Text-Template-1.51/META.yml
--- old/Text-Template-1.50/META.yml 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/META.yml 2018-03-04 21:53:53.000000000 +0100
@@ -6,6 +6,7 @@
File::Temp: '0'
Safe: '0'
Test::More: '0'
+ Test::Warnings: '0'
lib: '0'
perl: '5.008'
vars: '0'
@@ -22,10 +23,10 @@
provides:
Text::Template:
file: lib/Text/Template.pm
- version: '1.50'
+ version: '1.51'
Text::Template::Preprocess:
file: lib/Text/Template/Preprocess.pm
- version: '1.50'
+ version: '1.51'
requires:
Carp: '0'
Exporter: '0'
@@ -37,5 +38,5 @@
bugtracker: https://github.com/mschout/perl-text-template/issues
homepage: https://github.com/mschout/perl-text-template
repository: https://github.com/mschout/perl-text-template.git
-version: '1.50'
+version: '1.51'
x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/Makefile.PL
new/Text-Template-1.51/Makefile.PL
--- old/Text-Template-1.50/Makefile.PL 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/Makefile.PL 2018-03-04 21:53:53.000000000 +0100
@@ -27,10 +27,11 @@
"File::Temp" => 0,
"Safe" => 0,
"Test::More" => 0,
+ "Test::Warnings" => 0,
"lib" => 0,
"vars" => 0
},
- "VERSION" => "1.50",
+ "VERSION" => "1.51",
"test" => {
"TESTS" => "t/*.t"
}
@@ -43,6 +44,7 @@
"File::Temp" => 0,
"Safe" => 0,
"Test::More" => 0,
+ "Test::Warnings" => 0,
"base" => 0,
"lib" => 0,
"strict" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/SIGNATURE
new/Text-Template-1.51/SIGNATURE
--- old/Text-Template-1.50/SIGNATURE 2018-02-11 06:04:39.000000000 +0100
+++ new/Text-Template-1.51/SIGNATURE 2018-03-04 21:53:53.000000000 +0100
@@ -14,16 +14,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-SHA1 76ec532639675a350dc03fa4301503b3720acd96 Changes
+SHA1 cfaba3c99602b459f687476d3806279d6f01e237 Changes
SHA1 b457bd56a70b838ccc55d183ab09de64b6996958 INSTALL
SHA1 f12894289cb0f379f24b8d63e2e761dbcba1b216 LICENSE
-SHA1 3f9f74e202ca7d9a3d211d6389d4e302279a6725 MANIFEST
-SHA1 9fded0f05f3e6c5d6e4ce3631d6ef1e20f3cd107 META.json
-SHA1 95795afced911eccdd1c334def183f1966415e1c META.yml
-SHA1 4741bfe68d2d412657fe8383f227bdf5fb5c7917 Makefile.PL
+SHA1 6716e42d53bc6cb2246641fbfbd6376b87b9c795 MANIFEST
+SHA1 6a5feb2e6009a3d56f334e06488b6bf6eb07cbfd META.json
+SHA1 7d7519999057c22577525f3e97765b41b062ea63 META.yml
+SHA1 2064391639234e22aba10fc0597a953d9ef14e72 Makefile.PL
SHA1 b94aaad0a0bf2c323061bfefb9cf1fd532f14e7b README
-SHA1 39353661280868a8f70aa162913d9aa8adaf2d99 lib/Text/Template.pm
-SHA1 3971595cf75ad3ffc998d49e53fbf18e65ae1234 lib/Text/Template/Preprocess.pm
+SHA1 8c5711f8df8df9f1022109a4971dbd07bc71e883 lib/Text/Template.pm
+SHA1 d2904bb5e8aceb21895d500c53cdbc867661d2f2 lib/Text/Template/Preprocess.pm
SHA1 8efad25309730a4d501fb40fc03eda4697303372 t/author-pod-syntax.t
SHA1 19cc343f8a85c6805bbeb02580487483a6283887 t/author-signature.t
SHA1 ae085010c9f08576ef8584f224e38e6a98c1c178 t/basic.t
@@ -33,6 +33,7 @@
SHA1 c862dfc08e00e76b3f2aee953583d3cc8e5524a2 t/exported.t
SHA1 50ef92bda3b6b5cbd5a9307e6f17ce49ee8f245c t/hash.t
SHA1 d5dc210684aec8bb2c4817af96597c86047169c1 t/inline-comment.t
+SHA1 23f35d346a7e4d3e9adc3c80f2415f9982f18a83 t/nested-tags.t
SHA1 62ae0720aa86146bccfa23d2c903fa142cb86d50 t/ofh.t
SHA1 68093417d49a2afdfcd4642bacea04466039b734 t/out.t
SHA1 a8b21fdca0f1d243775a00758105e0fcc58022aa t/prepend.t
@@ -43,20 +44,21 @@
SHA1 b50a51577c0f2c13c9a48113dc7f061385a02219 t/safe3.t
SHA1 16d3abf7588da4c0056c6c6b7818470c8601577c t/strict.t
SHA1 e07dff6b477a7cb3d91b5f1c34cb2a99919017f2 t/taint.t
+SHA1 ac17629d5e42b55124f80646adb49b538b00d5ff t/warnings.t
-----BEGIN PGP SIGNATURE-----
-iQJFBAEBCAAvFiEE2EtuRfhGgngE8PsARAzvLrlUzY4FAlp/zuIRHG1zY2hvdXRA
-Y3Bhbi5vcmcACgkQRAzvLrlUzY5KsBAAuoDrhSy7oWWO46zLcXK+qtqJEeS6L0PG
-gza5rnjJSB9Zvr0fKId4Y3Ht49R1mI8t88KeBRYgu4kIo9iuR9Z1iXeH0EC+8tpq
-jJt94UeVIN59EtePUwvmCm/qPzLiEttiZoFmUu6JGbf9WKDy4qZ/C8NMmdcGpybf
-3oKH1YHe1Yuad0qccp2F/EPTTLZ84kqYGC7SoxPiIPjeJIiqBOlT6mgSGlOF6/kT
-di68SAsIxE1UinzKnf+HyPVa5151Q8gHmUOhr1iShAqbDSDo6/SnHBOjr3qiYfdy
-bjrIoiQGoKgaaiw22LUtrBWsV18IVSk0jWG09iTViJmS7ycdZq7umpmM4yMZcSs9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GzROq4ldJaZN6hxTQO4QbV7KHa5pX
+lQ29QvTjs2eqjh7NvBRgedR345+fudRjPxLiVUCwZq4GteVcO0C40z6V11vX01vt
+OA3083o6S90=
+=5/3A
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/lib/Text/Template/Preprocess.pm
new/Text-Template-1.51/lib/Text/Template/Preprocess.pm
--- old/Text-Template-1.50/lib/Text/Template/Preprocess.pm 2018-02-11
06:04:39.000000000 +0100
+++ new/Text-Template-1.51/lib/Text/Template/Preprocess.pm 2018-03-04
21:53:53.000000000 +0100
@@ -1,6 +1,6 @@
package Text::Template::Preprocess;
-$Text::Template::Preprocess::VERSION = '1.50';
+$Text::Template::Preprocess::VERSION = '1.51';
# ABSTRACT: Expand template text with embedded Perl
use strict;
@@ -51,7 +51,7 @@
=head1 VERSION
-version 1.50
+version 1.51
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/lib/Text/Template.pm
new/Text-Template-1.51/lib/Text/Template.pm
--- old/Text-Template-1.50/lib/Text/Template.pm 2018-02-11 06:04:39.000000000
+0100
+++ new/Text-Template-1.51/lib/Text/Template.pm 2018-03-04 21:53:53.000000000
+0100
@@ -10,7 +10,7 @@
#
package Text::Template;
-$Text::Template::VERSION = '1.50';
+$Text::Template::VERSION = '1.51';
# ABSTRACT: Expand template text with embedded Perl
use strict;
@@ -370,6 +370,9 @@
my $fi_eval_err = '';
if ($fi_safe) {
+ no strict;
+ no warnings;
+
$fi_safe->reval(q{undef $OUT});
$fi_res = $fi_safe->reval($fi_progtext);
$fi_eval_err = $@;
@@ -377,6 +380,9 @@
$fi_res = $OUT if defined $OUT;
}
else {
+ no strict;
+ no warnings;
+
my $OUT;
$fi_res = eval $fi_progtext;
$fi_eval_err = $@;
@@ -593,7 +599,7 @@
=head1 VERSION
-version 1.50
+version 1.51
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/t/nested-tags.t
new/Text-Template-1.51/t/nested-tags.t
--- old/Text-Template-1.50/t/nested-tags.t 1970-01-01 01:00:00.000000000
+0100
+++ new/Text-Template-1.51/t/nested-tags.t 2018-03-04 21:53:53.000000000
+0100
@@ -0,0 +1,18 @@
+#!perl
+#
+# Test for breakage of Dist::Milla in v1.46
+#
+
+use strict;
+use warnings;
+use Text::Template;
+use Test::More;
+
+my $tmpl = Text::Template->new(
+ TYPE => 'STRING',
+ SOURCE => q| {{ '{{$NEXT}}' }} |,
+ DELIMITERS => [ '{{', '}}' ]);
+
+is $tmpl->fill_in, ' {{$NEXT}} ';
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.50/t/warnings.t
new/Text-Template-1.51/t/warnings.t
--- old/Text-Template-1.50/t/warnings.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Text-Template-1.51/t/warnings.t 2018-03-04 21:53:53.000000000 +0100
@@ -0,0 +1,25 @@
+#!perl
+
+use strict;
+use warnings;
+use Test::More;
+use Test::Warnings;
+use Text::Template;
+
+my $template = <<'EOT';
+{{
+if ($good =~ /good/) {
+ 'This template should not produce warnings.'.$bad;
+}
+}}
+EOT
+
+$template = Text::Template->new(type => 'STRING', source => $template);
+isa_ok $template, 'Text::Template';
+
+my $result = $template->fill_in(HASH => { good => 'good' });
+
+$result =~ s/(?:^\s+)|(?:\s+$)//gs;
+is $result, 'This template should not produce warnings.';
+
+done_testing;