Hello community,
here is the log from the commit of package perl-Text-Template for
openSUSE:Factory checked in at 2018-04-19 15:27:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Template (Old)
and /work/SRC/openSUSE:Factory/.perl-Text-Template.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Template"
Thu Apr 19 15:27:34 2018 rev:18 rq:593453 version:1.52
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Text-Template/perl-Text-Template.changes
2018-03-24 16:13:54.466682005 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Text-Template.new/perl-Text-Template.changes
2018-04-19 15:27:44.875324250 +0200
@@ -1,0 +2,9 @@
+Tue Mar 20 06:59:39 UTC 2018 - [email protected]
+
+- updated to 1.52
+ see /usr/share/doc/packages/perl-Text-Template/Changes
+
+ 1.52 2018-03-19
+ - Fix possible 'Subroutine ... redefined' warning (Github #10)
+
+-------------------------------------------------------------------
Old:
----
Text-Template-1.51.tar.gz
New:
----
Text-Template-1.52.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Text-Template.spec ++++++
--- /var/tmp/diff_new_pack.7Lr66U/_old 2018-04-19 15:27:45.455300586 +0200
+++ /var/tmp/diff_new_pack.7Lr66U/_new 2018-04-19 15:27:45.459300422 +0200
@@ -17,7 +17,7 @@
Name: perl-Text-Template
-Version: 1.51
+Version: 1.52
Release: 0
%define cpan_name Text-Template
Summary: Expand template text with embedded Perl
++++++ Text-Template-1.51.tar.gz -> Text-Template-1.52.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/Changes
new/Text-Template-1.52/Changes
--- old/Text-Template-1.51/Changes 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/Changes 2018-03-19 15:29:31.000000000 +0100
@@ -1,5 +1,8 @@
Revision history for Text::Template
+1.52 2018-03-19
+ - Fix possible 'Subroutine ... redefined' warning (Github #10)
+
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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/META.json
new/Text-Template-1.52/META.json
--- old/Text-Template-1.51/META.json 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/META.json 2018-03-19 15:29:31.000000000 +0100
@@ -54,11 +54,11 @@
"provides" : {
"Text::Template" : {
"file" : "lib/Text/Template.pm",
- "version" : "1.51"
+ "version" : "1.52"
},
"Text::Template::Preprocess" : {
"file" : "lib/Text/Template/Preprocess.pm",
- "version" : "1.51"
+ "version" : "1.52"
}
},
"release_status" : "stable",
@@ -73,7 +73,7 @@
"web" : "https://github.com/mschout/perl-text-template"
}
},
- "version" : "1.51",
+ "version" : "1.52",
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/META.yml
new/Text-Template-1.52/META.yml
--- old/Text-Template-1.51/META.yml 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/META.yml 2018-03-19 15:29:31.000000000 +0100
@@ -23,10 +23,10 @@
provides:
Text::Template:
file: lib/Text/Template.pm
- version: '1.51'
+ version: '1.52'
Text::Template::Preprocess:
file: lib/Text/Template/Preprocess.pm
- version: '1.51'
+ version: '1.52'
requires:
Carp: '0'
Exporter: '0'
@@ -38,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.51'
+version: '1.52'
x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/Makefile.PL
new/Text-Template-1.52/Makefile.PL
--- old/Text-Template-1.51/Makefile.PL 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/Makefile.PL 2018-03-19 15:29:31.000000000 +0100
@@ -31,7 +31,7 @@
"lib" => 0,
"vars" => 0
},
- "VERSION" => "1.51",
+ "VERSION" => "1.52",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/SIGNATURE
new/Text-Template-1.52/SIGNATURE
--- old/Text-Template-1.51/SIGNATURE 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/SIGNATURE 2018-03-19 15:29:31.000000000 +0100
@@ -14,16 +14,16 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-SHA1 cfaba3c99602b459f687476d3806279d6f01e237 Changes
+SHA1 661488b87b796090dd1acf86fdb83147404f0b32 Changes
SHA1 b457bd56a70b838ccc55d183ab09de64b6996958 INSTALL
SHA1 f12894289cb0f379f24b8d63e2e761dbcba1b216 LICENSE
SHA1 6716e42d53bc6cb2246641fbfbd6376b87b9c795 MANIFEST
-SHA1 6a5feb2e6009a3d56f334e06488b6bf6eb07cbfd META.json
-SHA1 7d7519999057c22577525f3e97765b41b062ea63 META.yml
-SHA1 2064391639234e22aba10fc0597a953d9ef14e72 Makefile.PL
+SHA1 a24ce33da0083d5c92de837716b520011f218f32 META.json
+SHA1 a81de1dfb0a7784cc3d2042d538c7f64b2c5a3b2 META.yml
+SHA1 044c9d1cf589b6d272df46d44852460d44a22b81 Makefile.PL
SHA1 b94aaad0a0bf2c323061bfefb9cf1fd532f14e7b README
-SHA1 8c5711f8df8df9f1022109a4971dbd07bc71e883 lib/Text/Template.pm
-SHA1 d2904bb5e8aceb21895d500c53cdbc867661d2f2 lib/Text/Template/Preprocess.pm
+SHA1 83d817ee5372c63f15ee99695f9d366a0818fab3 lib/Text/Template.pm
+SHA1 d800304ca24e7b2660f5628cf7e74c154ee06a44 lib/Text/Template/Preprocess.pm
SHA1 8efad25309730a4d501fb40fc03eda4697303372 t/author-pod-syntax.t
SHA1 19cc343f8a85c6805bbeb02580487483a6283887 t/author-signature.t
SHA1 ae085010c9f08576ef8584f224e38e6a98c1c178 t/basic.t
@@ -44,21 +44,21 @@
SHA1 b50a51577c0f2c13c9a48113dc7f061385a02219 t/safe3.t
SHA1 16d3abf7588da4c0056c6c6b7818470c8601577c t/strict.t
SHA1 e07dff6b477a7cb3d91b5f1c34cb2a99919017f2 t/taint.t
-SHA1 ac17629d5e42b55124f80646adb49b538b00d5ff t/warnings.t
+SHA1 8ae35600fa46c2d95377ffd7a955148efa7ecc27 t/warnings.t
-----BEGIN PGP SIGNATURE-----
-iQJFBAEBCAAvFiEE2EtuRfhGgngE8PsARAzvLrlUzY4FAlqcXNwRHG1zY2hvdXRA
-Y3Bhbi5vcmcACgkQRAzvLrlUzY5mQhAAlGKS6ZpACa7fKIcsTfkxNZCh5yo0RRM0
-Tmukh+PbZjtkdpOSEiOjCJH3lcdgjMbNbX0nKzS8+qxwDv6cgFHapBGYKXUAFm5n
-T/fyPHgGADxCevfOfCrup9WabhUPj5oO7EhZH+9sJDXg/f82DncJxmNw1eUaMIpm
-Uum4GEvm0cF8TkV04U8s76Jfdw+vpn8QfaaZl4kB7lkMlgScOdli9lwmrLfJBM4M
-au7Hhd37hY7O+ZuCjQwiW8uFHQiR6uvDNTFMmnRnMdbfAU5Sw67J/Pz8Qjz13GR9
-gEl45l/UZBIQW1fv8wlKZE2k1ETzYl6uHhu7nkSVoP9yhyT/PwmXDJgLEhUFQOUO
-Whs17LqGiHaeIrziQGyW3cD87osvEVRJfyFwjg3BdGWjSwTITPnkLnVB2ZGluQ5U
-IjHJ/mJAfwsQWY3dnJI1YfmbjQWlHAAs7MMSQQC+GAmdA8O+G6pNYoMlUvbqz5DN
-ptN9qYDIbVgYtyUXRj7egMnwvqBBMxMQ+ikOZ9E4byqRZ+iyJDIIl5McFd+Fvqtu
-KlAR4nixhbqe9Q9xGDDeGE3AEHr9ALC0xboGzROq4ldJaZN6hxTQO4QbV7KHa5pX
-lQ29QvTjs2eqjh7NvBRgedR345+fudRjPxLiVUCwZq4GteVcO0C40z6V11vX01vt
-OA3083o6S90=
-=5/3A
+iQJFBAEBCAAvFiEE2EtuRfhGgngE8PsARAzvLrlUzY4FAlqvyUQRHG1zY2hvdXRA
+Y3Bhbi5vcmcACgkQRAzvLrlUzY7zfA//aubZ129q6nlHFtGG4s4FMSOXgZql6i2F
+2WbpW27FL3XqhWKgNl+8YJgzx1E30lccHRLZovR5kG7ZPxIcgy/3mKeew8X08P4X
+7QoXYqdkLKSj2WSLouJZ1Ujixl0TUIo0limi+ifsuMNhMBX7jDmSclyT0/39rnxZ
+fdX3YMjtznP8ARoREbyr4njT1VV+74KilluetCtkQdFA0DHvml3kCTcc+EQ5zBeG
+2ZmPWBQnvInaEN8GelWwX41YB8VWeBF1P7/F/5JzR6JdLzEM3dYlT6Wfe0pQaqfx
+LDf2ElhS0RyLmsJonIA+U8gd6ovARdipTfg0jOnedzrtHY7Rh+GMTgexFmKPwFxj
+uQIBuM/M006JUbxyjJQrU9UJpogL3xzzlHBWkZmwZOXIBCU9SwNmF9ytXpgrEyto
+fjPi+Y+mx+B0N5Y64Np9kjoU/ShMV9hWus6NoABNER/io/AfYzVkh2HNKK9uDB3u
+Sk2PQa0UNVidPrYWy3z6aRsZ86BVegn+3lPO+8h+PUXTfz+hEcaxRqYV92+pYLLU
+dsUnjDOSBFLobrsOgkRhEcnikoMFl8QFKsEKzBqtnRkDvApnhciYHCz+E48p/ZpR
+njI8vPq7YPfNfTfYGepkloAmuQvyIDM/jznELVsetX4cbBf7wy5+9IQwORQHqXjB
+WQdfTL0rPro=
+=W/D4
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/lib/Text/Template/Preprocess.pm
new/Text-Template-1.52/lib/Text/Template/Preprocess.pm
--- old/Text-Template-1.51/lib/Text/Template/Preprocess.pm 2018-03-04
21:53:53.000000000 +0100
+++ new/Text-Template-1.52/lib/Text/Template/Preprocess.pm 2018-03-19
15:29:31.000000000 +0100
@@ -1,6 +1,6 @@
package Text::Template::Preprocess;
-$Text::Template::Preprocess::VERSION = '1.51';
+$Text::Template::Preprocess::VERSION = '1.52';
# ABSTRACT: Expand template text with embedded Perl
use strict;
@@ -51,7 +51,7 @@
=head1 VERSION
-version 1.51
+version 1.52
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/lib/Text/Template.pm
new/Text-Template-1.52/lib/Text/Template.pm
--- old/Text-Template-1.51/lib/Text/Template.pm 2018-03-04 21:53:53.000000000
+0100
+++ new/Text-Template-1.52/lib/Text/Template.pm 2018-03-19 15:29:31.000000000
+0100
@@ -10,7 +10,7 @@
#
package Text::Template;
-$Text::Template::VERSION = '1.51';
+$Text::Template::VERSION = '1.52';
# ABSTRACT: Expand template text with embedded Perl
use strict;
@@ -558,6 +558,7 @@
my $val = $hash->{$name};
no strict 'refs';
+ no warnings 'redefine';
local *SYM = *{"$ {dest}::$name"};
@@ -599,7 +600,7 @@
=head1 VERSION
-version 1.51
+version 1.52
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Text-Template-1.51/t/warnings.t
new/Text-Template-1.52/t/warnings.t
--- old/Text-Template-1.51/t/warnings.t 2018-03-04 21:53:53.000000000 +0100
+++ new/Text-Template-1.52/t/warnings.t 2018-03-19 15:29:31.000000000 +0100
@@ -22,4 +22,11 @@
$result =~ s/(?:^\s+)|(?:\s+$)//gs;
is $result, 'This template should not produce warnings.';
+# see https://github.com/mschout/perl-text-template/issues/10
+$template = Text::Template->new(type => 'STRING', package => 'MY', source =>
'');
+$template->fill_in(package => 'MY', hash => { include => sub { 'XX' } });
+
+$template = Text::Template->new(type => 'STRING', package => 'MY', source =>
'');
+$template->fill_in(package => 'MY', hash => { include => sub { 'XX' } });
+
done_testing;