r54815 - in /branches/upstream/libscope-guard-perl/current: Changes META.yml README lib/Scope/Guard.pm

franck at users.alioth.debian.org franck at users.alioth.debian.org
Sat Mar 27 11:41:09 UTC 2010


Author: franck
Date: Sat Mar 27 11:40:50 2010
New Revision: 54815

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=54815
Log:
[svn-upgrade] Integrating new upstream version, libscope-guard-perl (0.12)

Modified:
    branches/upstream/libscope-guard-perl/current/Changes
    branches/upstream/libscope-guard-perl/current/META.yml
    branches/upstream/libscope-guard-perl/current/README
    branches/upstream/libscope-guard-perl/current/lib/Scope/Guard.pm

Modified: branches/upstream/libscope-guard-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libscope-guard-perl/current/Changes?rev=54815&op=diff
==============================================================================
--- branches/upstream/libscope-guard-perl/current/Changes (original)
+++ branches/upstream/libscope-guard-perl/current/Changes Sat Mar 27 11:40:50 2010
@@ -1,4 +1,7 @@
 Revision history for Perl extension Scope::Guard.
+
+0.12 Fri Mar 26 19:12:11 2010
+    - fix link in README (thanks Franck Joncourt)
 
 0.11 Thu Mar 25 22:08:05 2010
     - doc tweak

Modified: branches/upstream/libscope-guard-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libscope-guard-perl/current/META.yml?rev=54815&op=diff
==============================================================================
--- branches/upstream/libscope-guard-perl/current/META.yml (original)
+++ branches/upstream/libscope-guard-perl/current/META.yml Sat Mar 27 11:40:50 2010
@@ -1,7 +1,7 @@
 --- #YAML:1.0
 name:               Scope-Guard
-version:            0.11
-abstract:           lexically scoped resource management
+version:            0.12
+abstract:           lexically-scoped resource management
 author:
     - chocolateboy <chocolate at cpan.org>
 license:            unknown

Modified: branches/upstream/libscope-guard-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libscope-guard-perl/current/README?rev=54815&op=diff
==============================================================================
--- branches/upstream/libscope-guard-perl/current/README (original)
+++ branches/upstream/libscope-guard-perl/current/README Sat Mar 27 11:40:50 2010
@@ -1,4 +1,4 @@
-Scope-Guard version 0.11
+Scope-Guard version 0.12
 ========================
 
 This module provides a convenient way to perform cleanup or other forms of resource
@@ -8,7 +8,7 @@
 lexically-scoped "promises" to be made that are automatically honoured by perl's garbage
 collector.
 
-For more information, see: http://www.cuj.com/documents/s=8000/cujcexp1812alexandr/
+For more information, see: http://www.drdobbs.com/cpp/184403758
 
 INSTALLATION
 

Modified: branches/upstream/libscope-guard-perl/current/lib/Scope/Guard.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libscope-guard-perl/current/lib/Scope/Guard.pm?rev=54815&op=diff
==============================================================================
--- branches/upstream/libscope-guard-perl/current/lib/Scope/Guard.pm (original)
+++ branches/upstream/libscope-guard-perl/current/lib/Scope/Guard.pm Sat Mar 27 11:40:50 2010
@@ -7,7 +7,7 @@
 
 our @ISA = qw(Exporter);
 our @EXPORT_OK = qw(guard scope_guard);
-our $VERSION = '0.11';
+our $VERSION = '0.12';
 
 sub new {
     my $class = shift;
@@ -45,7 +45,7 @@
 
 =head1 NAME
 
-Scope::Guard - lexically scoped resource management
+Scope::Guard - lexically-scoped resource management
 
 =head1 SYNOPSIS
 
@@ -83,7 +83,7 @@
     my $guard = Scope::Guard->new(\&handler);
 
 The C<new> method creates a new C<Scope::Guard> object which calls the supplied handler when its C<DESTROY> method is
-called, typically when it goes out of scope.
+called, typically at the end of the scope.
 
 =head2 dismiss
 
@@ -122,14 +122,14 @@
 managed e.g.
 
     guard {
-	unless ($resource->disposed) {
-            $resource->dispose;
+	if ($resource->locked) {
+            $resource->unlock;
 	}
     };
 
 =head2 scope_guard
 
-C<scope_guard> is the same as C<guard>, but it takes a scalar (e.g. a code ref) rather than a block.
+C<scope_guard> is the same as C<guard>, but it takes a code ref rather than a block.
 e.g.
 
     my $guard = scope_guard \&handler;
@@ -146,7 +146,7 @@
 
 =head1 VERSION
 
-0.11
+0.12
 
 =head1 SEE ALSO
 
@@ -170,6 +170,8 @@
 
 =item * L<Sub::ScopeFinalizer|Sub::ScopeFinalizer>
 
+=item * L<Value::Canary|Value::Canary>
+
 =back
 
 =head1 AUTHOR




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