r29895 - in /branches/upstream/libb-hooks-endofscope-perl/current: Changes MANIFEST META.yml Makefile.PL lib/B/Hooks/EndOfScope.pm t/exception.t

rmayorga at users.alioth.debian.org rmayorga at users.alioth.debian.org
Tue Jan 20 23:21:14 UTC 2009


Author: rmayorga
Date: Tue Jan 20 23:21:11 2009
New Revision: 29895

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29895
Log:
[svn-upgrade] Integrating new upstream version, libb-hooks-endofscope-perl (0.06)

Added:
    branches/upstream/libb-hooks-endofscope-perl/current/t/exception.t
Modified:
    branches/upstream/libb-hooks-endofscope-perl/current/Changes
    branches/upstream/libb-hooks-endofscope-perl/current/MANIFEST
    branches/upstream/libb-hooks-endofscope-perl/current/META.yml
    branches/upstream/libb-hooks-endofscope-perl/current/Makefile.PL
    branches/upstream/libb-hooks-endofscope-perl/current/lib/B/Hooks/EndOfScope.pm

Modified: branches/upstream/libb-hooks-endofscope-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/Changes?rev=29895&op=diff
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/Changes (original)
+++ branches/upstream/libb-hooks-endofscope-perl/current/Changes Tue Jan 20 23:21:11 2009
@@ -1,3 +1,7 @@
+0.06  Mon, 19 Jan 2009 00:51:45 +0100
+  * Depend on Variable::Magic 0.27 to stop exceptions thrown in on_scope_end
+    blocks from segfaulting. Also add a test for that.
+
 0.05  Sun, 04 Jan 2009 20:46:07 +0100
   * Use Variable::Magic and cast %^H instead Scope::Guard and relying
     on a timely destruction of objects within %^H. This fixes using

Modified: branches/upstream/libb-hooks-endofscope-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/MANIFEST?rev=29895&op=diff
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/MANIFEST (original)
+++ branches/upstream/libb-hooks-endofscope-perl/current/MANIFEST Tue Jan 20 23:21:11 2009
@@ -16,5 +16,6 @@
 README
 t/basic.t
 t/eval.t
+t/exception.t
 xt/author/pod.t
 xt/author/podcoverage.t

Modified: branches/upstream/libb-hooks-endofscope-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/META.yml?rev=29895&op=diff
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/META.yml (original)
+++ branches/upstream/libb-hooks-endofscope-perl/current/META.yml Tue Jan 20 23:21:11 2009
@@ -17,8 +17,8 @@
     - t
 requires:
   Sub::Exporter: 0
-  Variable::Magic: 0
+  Variable::Magic: 0.27
   perl: 5.8.0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.05
+version: 0.06

Modified: branches/upstream/libb-hooks-endofscope-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/Makefile.PL?rev=29895&op=diff
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/Makefile.PL (original)
+++ branches/upstream/libb-hooks-endofscope-perl/current/Makefile.PL Tue Jan 20 23:21:11 2009
@@ -5,7 +5,7 @@
 name 'B-Hooks-EndOfScope';
 all_from 'lib/B/Hooks/EndOfScope.pm';
 
-requires 'Variable::Magic';
+requires 'Variable::Magic' => '0.27';
 requires 'Sub::Exporter';
 test_requires 'Test::More';
 

Modified: branches/upstream/libb-hooks-endofscope-perl/current/lib/B/Hooks/EndOfScope.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/lib/B/Hooks/EndOfScope.pm?rev=29895&op=diff
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/lib/B/Hooks/EndOfScope.pm (original)
+++ branches/upstream/libb-hooks-endofscope-perl/current/lib/B/Hooks/EndOfScope.pm Tue Jan 20 23:21:11 2009
@@ -6,7 +6,7 @@
 use 5.008000;
 use Variable::Magic;
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 use Sub::Exporter -setup => {
     exports => ['on_scope_end'],

Added: branches/upstream/libb-hooks-endofscope-perl/current/t/exception.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libb-hooks-endofscope-perl/current/t/exception.t?rev=29895&op=file
==============================================================================
--- branches/upstream/libb-hooks-endofscope-perl/current/t/exception.t (added)
+++ branches/upstream/libb-hooks-endofscope-perl/current/t/exception.t Tue Jan 20 23:21:11 2009
@@ -1,0 +1,21 @@
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+use B::Hooks::EndOfScope;
+
+eval q[
+    sub foo {
+        BEGIN {
+            on_scope_end { die 'bar' };
+        }
+    }
+];
+
+TODO: {
+    local $TODO = 'exceptions in on_scope_end not working yet';
+    # that's probably a Variable::Magic issue
+    is($@, 'bar'); 
+}
+
+pass('no segfault');




More information about the Pkg-perl-cvs-commits mailing list