]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
This is 0.27 v0.27
authorVincent Pit <vince@profvince.com>
Sun, 18 Jan 2009 23:37:11 +0000 (00:37 +0100)
committerVincent Pit <vince@profvince.com>
Sun, 18 Jan 2009 23:37:11 +0000 (00:37 +0100)
Changes
META.yml
README
lib/Variable/Magic.pm

diff --git a/Changes b/Changes
index 37c81ef93feef084d537a40fe6d2e4ec67b388d1..292cf9985c53b680821c5f7c90a0910d0056ec53 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,12 @@
 Revision history for Variable-Magic
 
+0.27    2009-01-18 23:40 UTC
+        + Fix : Offset of 1 with len magic on scalars.
+        + Fix : Segfaults that seem to happen when one croak in a callback at
+                compile time (thanks Ash Berlin for the testcase).
+        + Upd : Resources in META.yml (Florian Ragwitz)
+        + Tst : Large cleanup resulting in a wider set of tested behaviours.
+
 0.26    2008-11-29 22:05 UTC
         + Fix : Leaks of cloned coderefs that access lexicals.
         + Fix : Building with maint-5.8 and blead (thanks Andreas Koenig).
index cf0322bd57dde9bf8a6f112b6ae013efe870c08f..e67f456a7449db553f4b9e4561b900a40323c9bb 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Variable-Magic
-version:            0.26
+version:            0.27
 abstract:           Associate user-defined magic to variables from Perl.
 author:
     - Vincent Pit <perl@profvince.com>
@@ -24,3 +24,6 @@ build_requires:
     Config:                        0
     ExtUtils::MakeMaker:           0
     Test::More:                    0
+resources:
+    bugtracker:     http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Variable-Magic
+    repository:     http://git.profvince.com/perl/modules/Variable-Magic.git
diff --git a/README b/README
index c0cc8a38c8157b51d089a6ad6197c50d89943a68..d5004fc0fd7ac68598b453f4a6961dca6b4b84dd 100644 (file)
--- a/README
+++ b/README
@@ -2,7 +2,7 @@ NAME
     Variable::Magic - Associate user-defined magic to variables from Perl.
 
 VERSION
-    Version 0.26
+    Version 0.27
 
 SYNOPSIS
         use Variable::Magic qw/wizard cast dispell/;
@@ -253,6 +253,10 @@ FUNCTIONS
         (for example) cast magic on it. "copy" magic also receives the
         current element (i.e. the value) in $_[3].
 
+        All the callbacks are expected to return an integer, which is passed
+        straight to the perl magic API. However, only the return value of
+        the "len" callback currently holds a meaning.
+
         # A simple scalar tracer
         my $wiz = wizard get  => sub { print STDERR "got ${$_[0]}\n" },
                          set  => sub { print STDERR "set to ${$_[0]}\n" },
@@ -331,6 +335,8 @@ CAVEATS
     this destructor won't be called because the wizard will be destroyed
     first.
 
+    Using "get" and "clear" magics on hashes may cause segfaults.
+
 DEPENDENCIES
     perl 5.7.3.
 
@@ -372,7 +378,7 @@ SUPPORT
     <http://www.profvince.com/perl/cover/Variable-Magic>.
 
 COPYRIGHT & LICENSE
-    Copyright 2007-2008 Vincent Pit, all rights reserved.
+    Copyright 2007-2009 Vincent Pit, all rights reserved.
 
     This program is free software; you can redistribute it and/or modify it
     under the same terms as Perl itself.
index 9c366c3de9319e503b1fc16eca6760a3d9095f84..9261808b371f23b8da8d41585d5ca2f32528e1ac 100644 (file)
@@ -13,13 +13,13 @@ Variable::Magic - Associate user-defined magic to variables from Perl.
 
 =head1 VERSION
 
-Version 0.26
+Version 0.27
 
 =cut
 
 our $VERSION;
 BEGIN {
- $VERSION = '0.26';
+ $VERSION = '0.27';
 }
 
 =head1 SYNOPSIS