From: Vincent Pit Date: Sat, 4 Nov 2017 15:27:57 +0000 (+0100) Subject: This is 0.18 X-Git-Tag: v0.18 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=69962878b827e72a59e3b0a04ae2832954eb7fba;p=perl%2Fmodules%2Fautovivification.git This is 0.18 --- diff --git a/Changes b/Changes index ec1ca15..9c8033d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,14 @@ Revision history for autovivification +0.18 2017-11-04 15:30 UTC + + Fix : [RT #123411] : Compatibility with CV-in-stash optimisation + Thanks Father Chrysostomos for reporting and contributing a + patch. + + Fix : [RT #122956] : strict/warn flags seem to simply do nothing + The documentation has been amended to clarify how these two + options are supposed to be used. + Thanks Christian Walde for reporting. + 0.17 2017-07-31 17:15 UTC + Chg : A large chunk of boilerplate XS code, which is also used in other XS modules, has been factored out of the main .xs file diff --git a/META.json b/META.json index 23383ff..2d08217 100644 --- a/META.json +++ b/META.json @@ -55,6 +55,6 @@ "url" : "http://git.profvince.com/?p=perl%2Fmodules%2Fautovivification.git" } }, - "version" : "0.17", + "version" : "0.18", "x_serialization_backend" : "JSON::PP version 2.94" } diff --git a/META.yml b/META.yml index c71857d..5b8958f 100644 --- a/META.yml +++ b/META.yml @@ -30,5 +30,5 @@ resources: homepage: http://search.cpan.org/dist/autovivification/ license: http://dev.perl.org/licenses/ repository: http://git.profvince.com/?p=perl%2Fmodules%2Fautovivification.git -version: '0.17' +version: '0.18' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff --git a/README b/README index 8ae2572..22adc68 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME autovivification - Lexically disable autovivification. VERSION - Version 0.17 + Version 0.18 SYNOPSIS no autovivification; @@ -36,8 +36,8 @@ METHODS "unimport" no autovivification; # defaults to qw no autovivification qw; - no autovivification 'warn'; - no autovivification 'strict'; + no autovivification warn => @categories; + no autovivification strict => @categories; Magically called when "no autovivification @opts" is encountered. Enables the features given in @opts, which can be : @@ -101,11 +101,21 @@ METHODS * 'warn' - Emits a warning when an autovivification is avoided. + Emits a warning when an autovivification is avoided for the + categories specified in @opts. + + Note that "no autovivification 'warn'" currently does nothing by + itself, in particular it does not make the default categories warn. + This behaviour may change in a future version of this pragma. * 'strict' - Throws an exception when an autovivification is avoided. + Throws an exception when an autovivification is avoided for the + categories specified in @opts. + + Note that "no autovivification 'strict'" currently does nothing by + itself, in particular it does not make the default categories die. + This behaviour may change in a future version of this pragma. Each call to "unimport" adds the specified features to the ones already in use in the current lexical scope. diff --git a/lib/autovivification.pm b/lib/autovivification.pm index 1e4e06b..dfb7d04 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -11,13 +11,13 @@ autovivification - Lexically disable autovivification. =head1 VERSION -Version 0.17 +Version 0.18 =cut our $VERSION; BEGIN { - $VERSION = '0.17'; + $VERSION = '0.18'; } =head1 SYNOPSIS