Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a2680bbbdf06629178acf424317a65d2b8dd2e9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a2680bbbdf06629178acf424317a65d2b8dd2e9)
  • Date: Fri, 5 Jan 2018 23:33:12 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 2 ++
perl-cpan/perl-eval-closure/BUILD | 1 +
perl-cpan/perl-eval-closure/DEPENDS | 1 +
perl-cpan/perl-eval-closure/DETAILS | 23 +++++++++++++++++++++++
perl-cpan/perl-eval-closure/HISTORY | 2 ++
5 files changed, 29 insertions(+)

New commits:
commit 3a2680bbbdf06629178acf424317a65d2b8dd2e9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

perl-eval-closure: new spell, Eval::Closure - safely and cleanly create
closures via string eval

diff --git a/ChangeLog b/ChangeLog
index d94a4c8..a4eb4b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,8 @@
* perl-cpan/perl-sub-exporter-progressive: new spell,
Sub::Exporter::Progressive - Only use Sub::Exporter if you need it
* perl-cpan/perl-b-hooks-endofscope: new spell, B::Hooks::EndOfScope
- Execute code after a scope finished compilation
+ * perl-cpan/perl-eval-closure: new spell, Eval::Closure - safely
+ and cleanly create closures via string eval

2018-01-04 Treeve Jelbert <treeve AT sourcemage.org>
* disk/ntfs-3g-system-compression: added
diff --git a/perl-cpan/perl-eval-closure/BUILD
b/perl-cpan/perl-eval-closure/BUILD
new file mode 100755
index 0000000..2de29cd
--- /dev/null
+++ b/perl-cpan/perl-eval-closure/BUILD
@@ -0,0 +1 @@
+default_build_perl
diff --git a/perl-cpan/perl-eval-closure/DEPENDS
b/perl-cpan/perl-eval-closure/DEPENDS
new file mode 100755
index 0000000..6826bc7
--- /dev/null
+++ b/perl-cpan/perl-eval-closure/DEPENDS
@@ -0,0 +1 @@
+depends perl
diff --git a/perl-cpan/perl-eval-closure/DETAILS
b/perl-cpan/perl-eval-closure/DETAILS
new file mode 100755
index 0000000..8d9aa94
--- /dev/null
+++ b/perl-cpan/perl-eval-closure/DETAILS
@@ -0,0 +1,23 @@
+ SPELL=perl-eval-closure
+ VERSION=0.14
+ SOURCE="Eval-Closure-$VERSION.tar.gz"
+ SOURCE_URL[0]=$PERL_CPAN_URL/authors/id/D/DO/DOY/$SOURCE
+
SOURCE_HASH=sha512:fc55206bd39c4cb39360d06b6f39a65743f34b5e59d1a1ce99bf5831b9d88a03fb6dadf32fa9f0868e140fce719d53a7b13027f397cdd7f6ca05cc81277bdc08
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/Eval-Closure-$VERSION"
+ WEB_SITE="http://search.cpan.org/~doy/Eval-Closure/";
+ LICENSE[0]="ART"
+ ENTERED=20180105
+ KEYWORDS=""
+ SHORT="Eval::Closure - safely and cleanly create closures via
string eval"
+cat << EOF
+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
+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's easy to
miss
+compilation errors, since eval catches them and sticks them in $@ instead.
+
+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.
+EOF
diff --git a/perl-cpan/perl-eval-closure/HISTORY
b/perl-cpan/perl-eval-closure/HISTORY
new file mode 100644
index 0000000..55c0a06
--- /dev/null
+++ b/perl-cpan/perl-eval-closure/HISTORY
@@ -0,0 +1,2 @@
+2018-01-05 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS: spell created



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (3a2680bbbdf06629178acf424317a65d2b8dd2e9), Ismael Luceno, 01/05/2018

Archive powered by MHonArc 2.6.24.

Top of Page