update to 0.07
This commit is contained in:
parent
7055446fc0
commit
2dd29b00ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
/Eval-Closure-0.04.tar.gz
|
/Eval-Closure-0.04.tar.gz
|
||||||
/Eval-Closure-0.05.tar.gz
|
/Eval-Closure-0.05.tar.gz
|
||||||
/Eval-Closure-0.06.tar.gz
|
/Eval-Closure-0.06.tar.gz
|
||||||
|
/Eval-Closure-0.07.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: perl-Eval-Closure
|
Name: perl-Eval-Closure
|
||||||
Version: 0.06
|
Version: 0.07
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Safely and cleanly create closures via string eval
|
Summary: Safely and cleanly create closures via string eval
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -27,16 +27,12 @@ String eval is often used for dynamic code generation. For instance, Moose uses
|
|||||||
it heavily, to generate inlined versions of accessors and constructors, which
|
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
|
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
|
determines which variables are in scope inside the eval), and it's easy to miss
|
||||||
slow, especially if doing a large number of evals.
|
compilation errors, since eval catches them and sticks them in $@ instead.
|
||||||
|
|
||||||
This module attempts to solve both of those problems. It provides an
|
This module attempts to solve these problems. It provides an eval_closure
|
||||||
eval_closure function, which evals a string in a clean environment, other than
|
function, which evals a string in a clean environment, other than a fixed list
|
||||||
a fixed list of specified variables. It also caches the result of the eval, so
|
of specified variables. Compilation errors are rethrown automatically.
|
||||||
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).
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Eval-Closure-%{version}
|
%setup -q -n Eval-Closure-%{version}
|
||||||
@ -62,6 +58,10 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user