update to 0.07

This commit is contained in:
Iain Arnell 2012-02-04 08:21:29 +01:00
parent 7055446fc0
commit 2dd29b00ec
3 changed files with 14 additions and 13 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <iarnell@gmail.com> 0.07-1
- update to latest upstream version
- update description
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

View File

@ -1 +1 @@
1996bf620d2ecf9368eeb3a8f2e8aec1 Eval-Closure-0.06.tar.gz
0d525de4f1fcbb95a48da5fa0a91911c Eval-Closure-0.07.tar.gz