From: Vincent Pit Date: Sun, 5 Jul 2009 16:27:15 +0000 (+0200) Subject: This is 0.36 X-Git-Tag: v0.36^0 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=e3bd23f8cddae512d24be3946bc34588a22945c9;p=perl%2Fmodules%2FVariable-Magic.git This is 0.36 --- diff --git a/Changes b/Changes index 1299cbf..ebd2f0e 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,11 @@ Revision history for Variable-Magic +0.36 2009-07-05 16:30 UTC + + Chg : getdata() now returns an empty list when no magic is present. + It used to return undef but did not croak as stated in the doc. + Thanks Matt S. Trout for pointing this out. + + Fix : Building and tests with ActiveState Perl 5.8 build >= 822. + 0.35 2009-05-15 20:50 UTC This is a maintenance release. Users of 0.34 can skip this update. + Chg : uvar magic used to be enabled for 5.9.5. It now requires 5.10 or diff --git a/META.yml b/META.yml index 7d10dbd..529f3a5 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: Variable-Magic -version: 0.35 +version: 0.36 abstract: Associate user-defined magic to variables from Perl. author: - Vincent Pit @@ -28,7 +28,7 @@ no_index: directory: - t - inc -generated_by: ExtUtils::MakeMaker version 6.50 +generated_by: ExtUtils::MakeMaker version 6.52 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 diff --git a/README b/README index 6607240..b97a65b 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Variable::Magic - Associate user-defined magic to variables from Perl. VERSION - Version 0.35 + Version 0.36 SYNOPSIS use Variable::Magic qw/wizard cast VMG_OP_INFO_NAME/; @@ -341,9 +341,9 @@ FUNCTIONS This accessor fetches the private data associated with the magic $wiz (or the signature $sig) in the variable. It croaks when $wiz or $sig do - not represent a current valid magic object attached to the variable, and - returns "undef" when the wizard has no data constructor or when the data - is actually "undef". + not represent a valid magic object, and returns an empty list if no such + magic is attached to the variable or when the wizard has no data + constructor. # Get the attached data, or undef if the wizard does not attach any. my $data = getdata $x, $wiz; diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 2ca4012..756eca9 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -13,13 +13,13 @@ Variable::Magic - Associate user-defined magic to variables from Perl. =head1 VERSION -Version 0.35 +Version 0.36 =cut our $VERSION; BEGIN { - $VERSION = '0.35'; + $VERSION = '0.36'; } =head1 SYNOPSIS