From 2dd29b00ec030781cec89b772776eba31ed604f4 Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Sat, 4 Feb 2012 08:21:29 +0100 Subject: [PATCH] update to 0.07 --- .gitignore | 1 + perl-Eval-Closure.spec | 24 ++++++++++++------------ sources | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 850a8da..13901cc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /Eval-Closure-0.04.tar.gz /Eval-Closure-0.05.tar.gz /Eval-Closure-0.06.tar.gz +/Eval-Closure-0.07.tar.gz diff --git a/perl-Eval-Closure.spec b/perl-Eval-Closure.spec index 6979f97..c050a09 100644 --- a/perl-Eval-Closure.spec +++ b/perl-Eval-Closure.spec @@ -1,6 +1,6 @@ Name: perl-Eval-Closure -Version: 0.06 -Release: 3%{?dist} +Version: 0.07 +Release: 1%{?dist} Summary: Safely and cleanly create closures via string eval License: GPL+ or Artistic Group: Development/Libraries @@ -25,18 +25,14 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %description String eval is often used for dynamic code generation. For instance, Moose uses it heavily, to generate inlined versions of accessors and constructors, which -speeds code up at runtime by a significant amount. String eval is not without +speeds code up at runtime by a significant amount. String eval is not without its issues however - it's difficult to control the scope it's used in (which -determines which variables are in scope inside the eval), and it can be quite -slow, especially if doing a large number of evals. +determines which variables are in scope inside the eval), and it's easy to miss +compilation errors, since eval catches them and sticks them in $@ instead. -This module attempts to solve both of those problems. It provides an -eval_closure function, which evals a string in a clean environment, other than -a fixed list of specified variables. It also caches the result of the eval, so -that doing repeated evals of the same source, even with a different -environment, will be much faster (but note that the description is part of the -string to be evaled, so it must also be the same (or non-existent) if caching -is to work properly). +This module attempts to solve these problems. It provides an eval_closure +function, which evals a string in a clean environment, other than a fixed list +of specified variables. Compilation errors are rethrown automatically. %prep %setup -q -n Eval-Closure-%{version} @@ -62,6 +58,10 @@ make test %{_mandir}/man3/* %changelog +* Sat Feb 04 2012 Iain Arnell 0.07-1 +- update to latest upstream version +- update description + * Fri Jan 13 2012 Fedora Release Engineering - 0.06-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index c8b6dcc..2a84292 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1996bf620d2ecf9368eeb3a8f2e8aec1 Eval-Closure-0.06.tar.gz +0d525de4f1fcbb95a48da5fa0a91911c Eval-Closure-0.07.tar.gz