From d895bd7a3d911a2e69e9a3c8ced2f973307ba55b4da245790769794c56029746 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Fri, 16 Mar 2012 08:12:52 +0000 Subject: [PATCH] - update to 0.23: + Rely on B::Hooks::EndOfScope version 0.10 to fix issues with new Module::Runtime versions (>= 0.012) on perl 5.10 due to incorrect hook firing due to %^H localisation. + Fix failures on 5.13.6 due to incorrect version number threshold (RT#74683) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-namespace-clean?expand=0&rev=22 --- namespace-clean-0.22.tar.gz | 3 --- namespace-clean-0.23.tar.gz | 3 +++ perl-namespace-clean.changes | 10 ++++++++++ perl-namespace-clean.spec | 17 ++++++++++++++--- 4 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 namespace-clean-0.22.tar.gz create mode 100644 namespace-clean-0.23.tar.gz diff --git a/namespace-clean-0.22.tar.gz b/namespace-clean-0.22.tar.gz deleted file mode 100644 index f716112..0000000 --- a/namespace-clean-0.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0dd7bc99860ceaa64b3c90ff54cf9560307c995e53a0a31ad78e7415c5ef79d -size 13228 diff --git a/namespace-clean-0.23.tar.gz b/namespace-clean-0.23.tar.gz new file mode 100644 index 0000000..fbcbd36 --- /dev/null +++ b/namespace-clean-0.23.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05eadace4d4e878f66793685afdaf82bd9952e10c07cb8e529434fb1cb52dcfa +size 13344 diff --git a/perl-namespace-clean.changes b/perl-namespace-clean.changes index 8bd7164..28e5c54 100644 --- a/perl-namespace-clean.changes +++ b/perl-namespace-clean.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Mar 16 08:09:28 UTC 2012 - lars@linux-schulserver.de + +- update to 0.23: + + Rely on B::Hooks::EndOfScope version 0.10 to fix issues with + new Module::Runtime versions (>= 0.012) on perl 5.10 due + to incorrect hook firing due to %^H localisation. + + Fix failures on 5.13.6 due to incorrect version number threshold + (RT#74683) + ------------------------------------------------------------------- Fri Mar 2 01:01:37 CET 2012 - ro@suse.de diff --git a/perl-namespace-clean.spec b/perl-namespace-clean.spec index 315c28b..e4ec483 100644 --- a/perl-namespace-clean.spec +++ b/perl-namespace-clean.spec @@ -17,9 +17,9 @@ Name: perl-namespace-clean -Version: 0.22 +Version: 0.23 Release: 0 -%define cpan_name namespace-clean +%define cpan_name namespace-clean Summary: Keep imports and functions out of your namespace License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl @@ -51,7 +51,18 @@ Requires: perl(Test::More) >= 0.88 %{perl_requires} %description -Keep imports and functions out of your namespace +When you define a function, or import one, into a Perl package, it will +naturally also be available as a method. This does not per se cause problems, +but it can complicate subclassing and, for example, plugin classes that are +included via multiple inheritance by loading them as base classes. + +The namespace::clean pragma will remove all previously declared or imported +symbols at the end of the current package's compile cycle. Functions called in +the package itself will still be bound by their name, but they won't show up as +methods on your class or instances. + +By unimporting via no you can tell namespace::clean to start collecting +functions for the next use namespace::clean; specification. %prep %setup -q -n %{cpan_name}-%{version}