public
Description: Make functions succeed or die in Perl, with lexical scope.
Homepage: http://search.cpan.org/perldoc?autodie
Clone URL: git://github.com/pfenwick/autodie.git
Click here to lend your support to: autodie and make a donation at www.pledgie.com !
autodie / Changes
8822d277 » pfenwick 2008-09-06 1.992 released 1 Revision history for autodie
2
5d9f9050 » Paul Fenwick 2009-07-31 Document changes from p5p c... 3 2.07 Fri Jul 31 16:35:40 BST 2009
32bdc679 » pfenwick 2009-07-23 Increment to 2.06_01 and re... 4
9a9413cd » pfenwick 2009-07-23 a::exception->eval_error() ... 5 * FEATURE: Added ->eval_error to autodie::exception, which
6 stores the contents of $@ at the time autodie throws its
7 own exception. This is useful when dealing with modules
8 such as Text::Balanced which set (but do not throw)
9 $@ on error.
10
5d9f9050 » Paul Fenwick 2009-07-31 Document changes from p5p c... 11 * TEST: Checking for flock() support no longer causes
12 test failures on older VMS sysstems. (RT #47812)
13 Thanks to Craig A. Berry for supplying a patch.
14
15 * TEST: hints.t tests should no longer cause bogus
16 failures relating to File::Copy on VMS and Windows
17 systems prior to Perl 5.10.2.
18
a4df0efe » pfenwick 2009-07-06 Bump to 2.06 and release 19 2.06 Tue Jul 7 00:01:37 AUSEST 2009
20
1424bf78 » pfenwick 2009-07-06 Please do not use autodie w... 21 * BUG: Explicitly documented that autodie does NOT play
22 nicely with string evals, especially under Perl 5.10.x.
23 Please avoid using string evals while autodie is in scope.
24
aaf4bd7c » pfenwick 2009-07-05 Tests for autodie leaking n... 25 * TEST: Check for autodie leaking out of scope in the
71b72f81 » pfenwick 2009-07-05 Tests for explicitly pluggi... 26 presence of string evals. (string-eval-leak.t)
27 Thanks to Florian Ragwitz and Vincent Pit for identifying
28 this.
aaf4bd7c » pfenwick 2009-07-05 Tests for autodie leaking n... 29
9fa74429 » pfenwick 2009-07-06 Autodie once again works in... 30 * BUGFIX: autodie once again correctly works when used
35473204 » pfenwick 2009-07-06 String eval works again on ... 31 inside a string eval. (This was accidently broken
32 somewhere around 1.997-1.998).
9fa74429 » pfenwick 2009-07-06 Autodie once again works in... 33
ad99c5e6 » pfenwick 2009-07-03 Update changes with release... 34 2.05 Sat Jul 4 16:33:01 AUSEST 2009
35
8b12854d » pfenwick 2009-07-02 RT #47520 - No double file/... 36 * BUGFIX: format_default() in autodie::exception no longer
37 returns a string with file and line attached. This would
38 cause the file and line information to appear twice when
39 format handlers would choose to fall back to the defaults.
40 The file and line information is now always added by
41 stringify(). (RT #47520, thanks to Michael Schwern)
42
43 * BUGFIX: Exceptions thrown by 2-argument open() are more likely
44 to specify the mode as 'for reading' when no explicit
45 mode was given. (RT #47520, thanks to Michael Schwern)
46
79a10c3a » pfenwick 2009-07-02 Bump to version 2.04. Tag ... 47 2.04 Thu Jul 2 18:56:57 AUSEST 2009
48
12c7902e » pfenwick 2009-07-01 Removed oops where a debugg... 49 * TEST: Removed spurious warning about insufficient credit.
50
a72aad70 » Jerry D. Hedden 2009-07-01 Reduce debug output from hi... 51 * TEST: hints.t produces less debugging output when testing
52 the Perl core. (Thanks to Jerry D. Hedden)
53
fe193f2a » pfenwick 2009-07-01 Remove spurious failures fr... 54 * TEST: hints.t no longer spuriously fails when checking
55 the return values from File::Copy under Windows before
56 Perl 5.10.1. (Thanks to Curtis Jewell)
57
45270eb4 » pfenwick 2009-06-30 Bump to 2.03 and release 58 2.03 Wed Jul 1 15:39:16 AUSEST 2009
ab614fe5 » pfenwick 2009-06-30 Fix booching test on 5.8.x ... 59
60 * BUGFIX: Stopped blog_hints.t from booching under Perl
61 5.8.x. because parent.pm is not installed.
62
5dc61d7c » pfenwick 2009-06-30 Push to 2.02 and release 63 2.02 Wed Jul 1 15:06:21 AUSEST 2009
64
c55a7a70 » pfenwick 2009-06-30 Add context()/return() to a... 65 * FEATURE: autodie::exception now supports ->context() to
66 discover the context of the failing subroutine, and
67 ->return() to get a list of what it returned.
68
69 * BUGFIX: ->function from autodie::exception now returns
70 the original name of the dying sub, rather than its imported
71 name. For example, 'File::Copy::copy' rather than 'main::copy'.
72 Core functions continue to always return 'CORE::whatever'.
73
1a5f9cf2 » pfenwick 2009-06-30 Add extra tests based upon ... 74 * TEST: blog_hints.t tests new hinting features against
75 examples in my blog at http://pjf.id.au/blog/
76
2fe96c50 » pfenwick 2009-06-30 Bump to 2.01 and release. 77 2.01 Wed Jul 1 01:31:24 AUSEST 2009
78
8c414faa » pfenwick 2009-06-28 Thank-you, Toby, for docufi... 79 * DOCUMENTATION: General copyediting and tidy-up
80 (Thanks to Toby Corkindale)
81
1fb3bbd8 » pfenwick 2009-06-29 Perl 5.10.1 fixes 82 * BUGFIX: Warnings are no longer emitted when undefined values
83 are compared by hinting routines.
84
85 * BUGFIX: Hints for File::Copy now operate correctly under
86 Perl 5.10.1.
87
36240690 » pfenwick 2009-06-30 5.8.x : inheritance is suff... 88 * BUGFIX: Inheritance is now considered sufficient to declare
89 allegiance to the hints provider role under Perl 5.8.x.
90 (Thanks to Glenn Fowler)
91
1fb3bbd8 » pfenwick 2009-06-29 Perl 5.10.1 fixes 92 * TEST: hints.t no longer throws failures under Perl 5.10.1.
93
21a03deb » jawnsy 2009-06-29 pod-coverage.t no longer fa... 94 * TEST: pod-coverage.t (author test) no longer fails if
2fe96c50 » pfenwick 2009-06-30 Bump to 2.01 and release. 95 Sub::Identify is not installed.
96 (Thanks to Jonathan Yu. RT #47437)
21a03deb » jawnsy 2009-06-29 pod-coverage.t no longer fa... 97
aa3813d6 » pfenwick 2009-06-28 Release 2.0 98 2.00 Mon Jun 29 01:24:49 AUSEST 2009
8da7e15d » pfenwick 2009-05-21 Bump to 1.999_01 for release. 99
30adf70c » pfenwick 2009-02-22 Hinting support working! H... 100 * FEATURE: autodie can now accept hints regarding how
101 user and module subroutines should be handled. See
102 autodie::hints for more information.
103
104 * INTERFACE: The calls to the internal subroutines
105 one_invocation() and write_invocation() have changed.
106 An additional argument (the user subroutine reference) is
107 passed as the second-last argument. This may break code
108 that previously tried to call these subroutines directly.
109
110 * BUGFIX: Calls to subroutines to File::Copy should now
111 correctly throw exceptions when called in a list context.
112
b762a06c » pfenwick 2009-03-03 Fixed iternal error in writ... 113 * BUGFIX: An internal error where autodie could potentially
114 fail to correctly report a dying function's name has been
115 fixed.
4ee38780 » pfenwick 2009-02-14 Added (failing) tests for a... 116
4d8aba2f » pfenwick 2009-06-28 Fixed bug where package sca... 117 * BUGFIX: autodie will no longer clobber package scalars when
118 a format has the same name as an autodying function.
119 (Thanks to Ben Morrow)
120
5ee5bf9c » pfenwick 2009-03-03 Changes: Documented backcom... 121 * INTERFACE: The internal interfaces for fill_protos(),
d141c872 » pfenwick 2009-03-03 _make_fatal isn't backwards... 122 one_invocation(), write_invocation() are now once again
123 backward compatible with legacy versions of Fatal. It is
124 still strongly recommended these interfaces are NOT called
125 directly. The _make_fatal() subroutine is not backwards
126 compatible.
7a9c89b6 » pfenwick 2009-02-17 Documented tests. Expanded ... 127
a1c5c734 » pfenwick 2009-03-01 Merge branch 'master' into ... 128 * TEST: Added internal-backcompat.t to test backwards
129 compatibility of internal interfaces.
4ee38780 » pfenwick 2009-02-14 Added (failing) tests for a... 130
6eed7e98 » pfenwick 2009-03-05 Documentation changes with ... 131 * DOCUMENTATION: Expanded documentation regarding how
132 autodie changes calls to system(), and how this must be
133 explicitly enabled.
134
d7300942 » pfenwick 2009-06-28 Upgraded Module::Install to... 135 * BUILD: Upgraded to Module::Install 0.91
fb7ce815 » pfenwick 2009-05-08 Upgrade Module::Install to ... 136
b594b92c » pfenwick 2009-05-10 Insisting on hints now work... 137 * BUGFIX: A situation where certain compile-time diagnostics
138 and errors from autodie would not be displayed has been
139 fixed.
140
a395fbfe » pfenwick 2009-03-01 Added missing timestamp on ... 141 1.999 Sat Feb 28 18:36:55 AUSEDT 2009
b4ad38d5 » pfenwick 2009-02-22 Autodie treats system() as ... 142
963feac9 » pfenwick 2009-02-24 Documented: String eval + 5... 143 * BUGFIX: Autodie now correctly propagates into string evals
144 under 5.10+. Autodie completely fails to propagate into
145 string evals under 5.8. No fix for 5.8 is known.
db04618b » pfenwick 2009-02-24 autodie now propagates corr... 146
b3ac9a11 » pfenwick 2009-02-27 Rearranged Changes in order... 147 * BUGFIX: The caller() method on autodie::exception objects
148 should now always report the correct caller. While it
149 would always get the line, file, and package correct, previously
150 it would sometimes report less-than-helpful callers like
151 '__ANON__' or '(eval)'.
7a9c89b6 » pfenwick 2009-02-17 Documented tests. Expanded ... 152
b4ad38d5 » pfenwick 2009-02-22 Autodie treats system() as ... 153 * BUGFIX: autodie was treating system() as a user-sub, not
154 a built-in. This could tigger extra (unnecessary) work
155 inside autodie, but otherwise had no user impact.
db04618b » pfenwick 2009-02-24 autodie now propagates corr... 156
412113ed » pfenwick 2009-02-22 Fixed misleading synopsis i... 157 * DOCUMENTATION: The synopsis for autodie::exception::system
158 previously implied system() was made autodying by default.
159 This was not the case. It must still be enabled with
160 use autodie qw(system).
161
963feac9 » pfenwick 2009-02-24 Documented: String eval + 5... 162 * DOCUMENTATION: Noted the 5.8 string eval bug in
163 autodie/BUGS.
164
b3ac9a11 » pfenwick 2009-02-27 Rearranged Changes in order... 165 * TEST: Added test for correct caller output on
166 autodie::exception objects. Thanks to Piers Harding
167 for spotting this bug at KiwiFoo.
168
169 * TEST: Added tests for user-defined autodying functions
170 changing behaviour depending upon context. This was
171 reported in http://perlmonks.org/?node_id=744246 .
172
173 * TEST: Tests for autodie propagating into string eval.
174
40762c67 » pfenwick 2009-02-24 Additional tests for autodi... 175 * TEST: Expanded tests to ensure autodie::exception returns
176 the correct line number and caller.
177
4cc96643 » pfenwick 2009-02-24 Expanded caller.t to do ext... 178 * TEST: Expanded tests to ensure autodie::exception returns
179 correct information when calling subroutines in external files.
180
62b738d4 » pfenwick 2009-01-02 Bump version to 1.998 and r... 181 1.998 Sat Jan 3 11:19:53 AUSEDT 2009
182
99f46302 » pfenwick 2008-12-04 Removed Module::AutoInstall... 183 * BUILD: Removed Module::AutoInstall, which previously
184 was loaded but not used, but currently doesn't actually
185 do what we want.
186
7e77782a » pfenwick 2008-12-05 exception_class.t: Worked a... 187 * TEST: We manually stringify $@ for one test in
188 exception_class.t to avoid a bug involving overloaded
189 classes containing apostrophies.
190
d61fa9d5 » pfenwick 2008-12-11 mkdir.t and unlink.t no lon... 191 * TEST: unlink.t and mkdir.t avoid changing directories,
192 which could cause spurious failures when @INC includes
193 paths relative to the current working directory.
194
884aae99 » pfenwick 2008-12-15 Better documentation of use... 195 * DOCUMENTATION: Spurious "used only once" messages are
196 documented in Fatal's documentation (as well as autodie's).
197
b4183273 » Craig A. Berry 2009-01-02 In determining whether test... 198 * TEST: truncate.t has been updated to avoid incorrect
199 test failures on VMS machines. Many thanks to Craig A
200 Berry for the bug report and fix. (RT #42110)
201
4a78d868 » pfenwick 2008-12-03 Don't test exception object... 202 1.997 Thu Dec 4 15:14:00 AUSEDT 2008
203 * TEST: Test::More 0.86 (and possibly 0.85) appears to
204 dislike package names that contain the apostrophe
205 character (these occur in some tests for Klingon
206 localisation). We now skip these tests on systems
207 with Test::More >= 0.85 installed.
208
8305d299 » pfenwick 2008-12-03 Release time! 209 1.996 Thu Dec 4 09:07:39 AUSEDT 2008
7096f27b » pfenwick 2008-12-02 We now provide an exception... 210 * FEATURE: Child classes can now provide an exception_class()
211 method that returns the desired exception class, rather
212 than over-riding the whole throw() method. Existing classes
213 that over-ride throw() will still work as before.
214
707942e6 » pfenwick 2008-12-02 Fixed nasty bug where multi... 215 * BUGFIX: Fixed a bug where multiple autodie-derived classes
216 would share the same subroutine cache. This could result
217 in excptions from the wrong class being thrown.
218
219 This bug did not affect programs which used only autodie,
220 or a single autodie-derived class.
221
3b20b05b » pfenwick 2008-12-02 Added missing version tag e... 222 * BUGFIX: Missing 1.995 version tag added to export list.
223
224 * TEST: Make sure that we always have a working version tag for
225 our current version.
226
411d0d7f » pfenwick 2008-11-29 Release time! 1.995 227 1.995 Sun Nov 30 17:30:16 AUSEDT 2008
fc094d36 » pfenwick 2008-11-29 Documented: We no longer pr... 228
2b596a5c » pfenwick 2008-11-28 Improved error messages fro... 229 * FEATURE: Errors from 2-argument open now have more human
230 friendly error messages for reading, writing, and appending.
231
fc094d36 » pfenwick 2008-11-29 Documented: We no longer pr... 232 * FEATURE: autodie will never print unsightly references to
233 GLOB(0x...) structures in error messages; instead it uses
234 the placeholder '$fh'.
235
bfffde76 » pfenwick 2008-11-04 Module::AutoInstall lets us... 236 * BUILD: Bundled Module::AutoInstall makes it clear to users
237 they need to install IPC::System::Simple for autodying
238 system() support.
239
911a4b5b » pfenwick 2008-11-05 Tests for better looking co... 240 * TEST: truncate.t provides more diagnostics on failure.
241
242 * TEST: Tests for better formatted reports from connect().
243
a9fcab65 » pfenwick 2008-11-12 Added open.t for carefully ... 244 * TEST: New 'open.t' contains specific tests for well-formatted
245 messages from open().
246
c852dd18 » pfenwick 2008-09-24 Release time! Added timest... 247 1.994 Thu Sep 25 16:18:56 AUSEST 2008
0cf81a8f » pfenwick 2008-09-17 flock() added to :file cate... 248
2cdd8db5 » pfenwick 2008-09-21 Greatly increased checking ... 249 * BUGFIX: flock(), ioctl() and truncate() are now part of
250 the :file tag.
251
252 * BUGFIX: link(), mkdir(), rmdir(), symlink() and umask()
253 are now part of the :filesys tag.
254
255 * BUGFIX: The new :msg tag contains msgctl(), msgget(), msgrcv(),
256 and msgsnd().
257
258 * BUGFIX: The new :semaphore tag contains semctl(), semget()
259 and semop().
260
261 * BUGFIX: The new :shm tag contains shmget(), shmread() and
262 shmctl().
263
264 * BUGFIX: The new :ipc tag contains :msg, :semaphore, :shm and pipe().
265
266 * BUGFIX: The read(), seek(), sysread(), syswrite() and sysseek()
267 methods have been added to :io.
0cf81a8f » pfenwick 2008-09-17 flock() added to :file cate... 268
a9bdba68 » pfenwick 2008-09-24 Much better error reporting... 269 * BUGFIX: autodie produces more detailed messages on internal
270 faults, and is more aggressive about stopping code compilation.
271
365bece4 » pfenwick 2008-09-20 Merge branch 'master' into ... 272 * FEATURE: flock will not die on failure when called
273 with the LOCK_NB option and would return false
274 due to an EWOULDBLOCK. See function specific notes
275 in autodie documentation for more details.
276
49dbe3bc » pfenwick 2008-09-17 Added _format_flock handler... 277 * FEATURE: Stringified exceptions from flock() are significantly
365bece4 » pfenwick 2008-09-20 Merge branch 'master' into ... 278 nicer to read.
49dbe3bc » pfenwick 2008-09-17 Added _format_flock handler... 279
3ef29344 » pfenwick 2008-09-24 Version bump to 1.994. Add... 280 * FEATURE: use autodie qw(:1.994) can be used to specify the
281 :default tag from a particular version.
282
5a7c1c26 » pfenwick 2008-09-24 Documented function-specifi... 283 * DOCUMENTATION: flock() is documented as being in the :file tag.
284
285 * DOCUMENTATION: Added function-specific notes in autodie.pm
286
a13f48e1 » pfenwick 2008-09-21 New tests from Jacinta. 287 * TEST: New tests for rmdir(), mkdir(), and unlink(), thanks
288 to Jacinta Richardson.
289
0997eb3d » pfenwick 2008-09-24 Added author-only perlcriti... 290 * TEST: Added author-only perlcritic tests.
291
af97b231 » pfenwick 2008-09-24 META.yml has more correct v... 292 * META: META.yml has more correct author information.
293
34662d22 » pfenwick 2008-09-13 Added release time to Chang... 294 1.993 Sun Sep 14 11:15:36 AUSEST 2008
65768f60 » pfenwick 2008-09-11 RT #39172: The :dbm tag is ... 295
296 * DOCUMENTATION: The :dbm tag is now correctly documented
297 in autodie/CATEGORIES. Thanks to Darren Duncan for spotting
298 this. (RT #39172)
299
25f58ae6 » pfenwick 2008-09-11 RT #39172 closedir() has be... 300 * DOCUMENTATION: The README file has been updated to reflect
301 current minimum Perl versions (5.8.0) and current resources.
302
303 * DOCUMENTATION: The closedir() function is properly
304 documented as being included in the :filesys tag.
305
a4b26ab4 » pfenwick 2008-09-13 Feedback section added to d... 306 * DOCUMENTATION: Feedback section added to the autodie
307 documentation. If you find the module useful, consider
308 saying so on cpanratings.perl.org, or dropping me a note.
309
48b815fb » pfenwick 2008-09-13 Upgrade to Module::Install ... 310 * BUILD: Upgrade to Module::Intstall 0.77
311
8822d277 » pfenwick 2008-09-06 1.992 released 312 1.992 Sun Sep 7 15:51:32 AUSEST 2008
e1033eb0 » pfenwick 2008-03-28 Internal release 313
dfb4ba91 » pfenwick 2008-09-06 Added closedir() to :filesy... 314 * BUGFIX: unlink(), rename(), chdir() and closedir() functions
315 are now included in the :filesys tag.
5059ba7d » pfenwick 2008-08-29 RT #38845, detect missing s... 316
ddeeeaa6 » pfenwick 2008-09-06 binmode added to :file. Sp... 317 * BUGFIX: binmode() is now checked for failure as part of
318 the :file tag.
319
320 * BUGFIX: Using an unopened filehandle in an autodying
321 built-in no longer triggers a spurious warning.
322
5059ba7d » pfenwick 2008-08-29 RT #38845, detect missing s... 323 * BUGFIX: RT #38845, corrected a missing space in the error
324 produced by autodie when called with the ':void' switch.
325 Many thanks to Matt Kraai for the patch!
326
cf04ae2d » pfenwick 2008-09-06 Added support for dbmopen a... 327 * FEATURE: The dbmopen() and dbmclose() functions are now
328 supported in their own :dbm tag. This is part of :io
329 (and hence :default).
330
331 * FEATURE: The dbmopen() built-in has its own formatter,
332 which ensures errors always display the mask in octal,
333 not decimal.
334
0f966af9 » pfenwick 2008-09-05 unlink, rename and chdir ar... 335 * DOCUMENTATION: The :filesys tag is properly documented.
336
8583704f » pfenwick 2008-09-03 Added link to perl tip 337 * DOCUMENTATION: Added link to Perl tip on autodie.
338
0f966af9 » pfenwick 2008-09-05 unlink, rename and chdir ar... 339 * TEST: RT #38845, t/internal.t updated to detect malformed error
340 messages involving the mixing of ':void' and autodie.
341
1a5d5b37 » pfenwick 2008-08-22 Release time. v1.991 342 1.991 Fri Aug 22 23:57:24 AUSEST 2008
06cc027e » pfenwick 2008-08-20 Bugfix: RT#38614, stringifi... 343
344 * BUGFIX: RT #38614, stringified autodie::exceptions objects
345 now always end with a newline. Thanks to Offer Kaye for the
346 report.
347
2ce004eb » pfenwick 2008-08-19 More descriptive changes tags. 348 * BUGFIX: Makefile.PL is no longer executable.
1e5a9526 » pfenwick 2008-07-22 Makefile.PL is no longer ex... 349
2ce004eb » pfenwick 2008-08-19 More descriptive changes tags. 350 * BUGFIX: 'chdir' added to defaults, and the :filesys group.
c261c9ee » pfenwick 2008-08-04 chdir added to defaults and... 351
c0389536 » pfenwick 2008-08-20 Bugfix: RT #38598. The errn... 352 * BUGFIX: RT #38598, the errno attribute on autodie::exception
353 objects is now correctly set.
354
355a109a » pfenwick 2008-08-22 RT #38066 - exceptions from... 355 * BUGFIX: RT #38066, exceptions from system() now report
356 the correct line number.
357
4d2455ad » pfenwick 2008-08-20 RT #38614 - Exceptions shou... 358 * TEST: Internal tests changes to ease integration with core.
359
2ce004eb » pfenwick 2008-08-19 More descriptive changes tags. 360 * TEST: Checks added for empty 'errno' string in basic_exceptions.t
855f51c5 » pfenwick 2008-08-19 Added (failing) tests for e... 361
4d2455ad » pfenwick 2008-08-20 RT #38614 - Exceptions shou... 362 * TEST: Errors should end with a newline.
363
675453bf » pfenwick 2008-08-20 fork tests should no longer... 364 * TEST: fork tests should no longer mysteriously fail
365 on Solaris.
366
1b22117f » pfenwick 2008-08-20 backcompat.t should no long... 367 * TEST: backcompat.t should no longer give strange failures on
368 old versions of 5.8.3 or earlier.
369
355a109a » pfenwick 2008-08-22 RT #38066 - exceptions from... 370 * TEST: system.t ensures the correct file is reported.
371
cbbd4072 » pfenwick 2008-08-20 Upgrade to Module::Install ... 372 * BUILD: Upgrade to Module::Install 0.75
373
c4684e3e » pfenwick 2008-07-21 1.99 release 374 1.99 Mon Jul 21 02:25:23 PDT 2008
e81c961a » pfenwick 2008-07-21 Documentation/category impr... 375
376 * RELEASE CODENAME: "jarich", in thanks for her giving
377 up pretty much a whole week of her life to do nothing
378 but help me work on my talks for OSCON.
61d0f4ea » pfenwick 2008-07-03 autodie now checks open() f... 379
380 * BUGFIX: autodie will now check open() for returning
381 undef, not merely false, as open() can legimiately
382 return zero for open(my $fh, '-|') || exec(...) style
383 calls.
384
a902631c » pfenwick 2008-07-03 Added lethal.t, a test for ... 385 * TEST: Added t/lethal.t, a test for basic subclassing.
386
fbc72df8 » pfenwick 2008-07-05 Added t/lethal.t and t/user... 387 * TEST: Added t/usersub.t, a test for correct handling
388 of user subroutines.
389
390 * DOCUMENTATION: Noted in autodie.pm that user subs can
391 only be made Fatal/autodying if they've been declared
392 first.
393
2bac1c23 » pfenwick 2008-07-10 We can (again) detect an il... 394 * FEATURE: Conflicts between 'no autodie' and 'use Fatal'
395 re-enabled.
396
5156ce30 » pfenwick 2008-07-15 Added sysopen(), fcntl() an... 397 * FEATURE: Added sysopen() and fcntl() to :file, and
ce4c1553 » pfenwick 2008-07-15 Vanilla autodie means :defa... 398 exec() and system to :system. exec() doesn't yet work
399 due to its prototype;
400
401 * FEATURE: Vanilla 'use autodie' now implies
402 'use autodie qw(:default)'. This excludes system(),
e81c961a » pfenwick 2008-07-21 Documentation/category impr... 403 which depends upon an optional module, and exec(),
404 which breaks its exotic form.
5156ce30 » pfenwick 2008-07-15 Added sysopen(), fcntl() an... 405
d3d6ca2f » pfenwick 2008-07-18 Moved internal tests from F... 406 * TEST: Internal tests moved from Fatal.t to
407 internal.t
408
265bfe79 » pfenwick 2008-07-18 Added support for fileno. 409 * FEATURE: Added support for fileno.
410
c38808f0 » pfenwick 2008-07-18 Added support for exec(). 411 * FEATURE: Addded support for exec (although this
412 breaks the exotic form while autodie is in scope).
413
916e9a24 » pfenwick 2008-07-18 We now correctly support 'n... 414 * BUGFIX: 'no autodie' now plays nicely with user subs.
415
e81c961a » pfenwick 2008-07-21 Documentation/category impr... 416 * DOCUMENTATION: Added a brief mention of the category
417 system that autodie provides.
418
2626d8fb » pfenwick 2008-07-03 Release time! 1.11_01 "Ari... 419 1.11_01 Fri Jul 4 12:53:11 AEST 2008
420
421 * RELEASE CODENAME: "Aristotle", in thanks for the many
422 long and detailed discussions about the autodie interface
423 and how it should interact with Fatal. Aristotle was
424 instrumental in ensuring autodie has the clean and
425 simple interface that it does now.
fd1ce5e5 » pfenwick 2008-07-01 Removed kludge that forced ... 426
2544843f » pfenwick 2008-07-03 Retabbed 427 * FEATURE: 5.8 now has the ability to differentiate between calls
428 that return false to indicate failure, and those that
429 only return undef to indicate failure. CORE::send and
430 CORE::recv are examples of these.
fd1ce5e5 » pfenwick 2008-07-01 Removed kludge that forced ... 431
2544843f » pfenwick 2008-07-03 Retabbed 432 * FEATURE: You can now 'use autodie qw(fork)' to make sure your
433 forks are successful (they must return defined).
e0dfa76f » pfenwick 2008-07-01 autodie now knows about for... 434
86d1f35e » pfenwick 2008-07-01 Leaks into other files are ... 435 * TEST: t/todo.t removed. We have passing tests (recv.t)
662cbaef » pfenwick 2008-07-01 todo.t is dead. Huzzah! 436 for the reminder I had stuffed into here.
437
2544843f » pfenwick 2008-07-03 Retabbed 438 * TEST: t/fork.t added, for testing autodying fork.
970d6e66 » pfenwick 2008-07-01 Added tests for fork() 439
86d1f35e » pfenwick 2008-07-01 Leaks into other files are ... 440 * INTERNAL: The internal subroutine _remove_lexical_subs has been
5a82dc17 » pfenwick 2008-07-01 _remove_lexical_subs rename... 441 renamed to a much less misleading name of _install_subs,
442 since that's what it actually does now.
443
86d1f35e » pfenwick 2008-07-01 Leaks into other files are ... 444 * BUGFIX: Found and fixed a nasty bug where autodie's internal
445 subroutine cache was being too agressive. This could result in
446 handles from the incorrect package being used. Scalar filehandles
447 have never been affected by this bug.
448
449 * BUGFIX: Autodying subroutines will no longer leak into other
450 files if they are used/required/done in the same lexical scope.
48094bf0 » pfenwick 2008-07-01 Fixed nasty bug where autod... 451
d7f35efe » pfenwick 2008-07-01 Fatal.pm should now properl... 452 * BUILD: Fatal and autodie now install themselves with a
453 INSTALLDIRS=perl target, meaning they will now correctly
454 override (and possibly overwrite) your installed Fatal.pm
455 on 'make install'.
456
18e1027f » pfenwick 2008-07-02 Documented the 'used only o... 457 * DOCUMENTATION: Documented the 'used only once' bug when
458 using Fatal/autodie with package filehandles. This has
459 always existed in Fatal, and as far as I know it incurable
460 (but harmless).
461
d351cea0 » pfenwick 2008-07-03 Crickey! We can now subcla... 462 * FEATURE: autodie and its exceptions can now be subclassed!
463
464 * TEST: Added t/crickey.t as an example of using fair dinkum
465 subclasses of autodie. Mate, I reckon it's time for a beer.
466
2379b761 » pfenwick 2008-07-03 Moved autodie::exception ob... 467 * INTERNAL: Moved exception architecture from inside-out
468 objects (which need lots of extra work under 5.8) to
469 regular hashes (which don't need extra work).
470
5832655b » pfenwick 2008-07-03 Inline relevant portions of... 471 * INTERNAL: Inlined relevant portions of Scope::Guard, meaning
472 autodie can be installed with no dependencies. (It still
473 recommends IPC::System::Simple.)
474
2626d8fb » pfenwick 2008-07-03 Release time! 1.11_01 "Ari... 475 1.10_07 Sun Jun 29 15:54:26 AEST 2008
2544843f » pfenwick 2008-07-03 Retabbed 476 * RELEASE CODENAME: "ikegami", in thanks for solving the problem
477 of getting lexical replacement of subroutines working for real
478 under Perl 5.8. As this works better than my 5.10 implemenation,
479 it forms the foundation for this release.
02984ceb » pfenwick 2008-06-22 Housekeeping of version num... 480
2544843f » pfenwick 2008-07-03 Retabbed 481 * Removed inappropriate diagnostics about :lexical from Fatal.pm
3b7bb604 » pfenwick 2008-06-23 Documentation improvements ... 482
2544843f » pfenwick 2008-07-03 Retabbed 483 * Moved can't mix lexical and void diagnostics to autodie.pm
3b7bb604 » pfenwick 2008-06-23 Documentation improvements ... 484
2544843f » pfenwick 2008-07-03 Retabbed 485 * Added some basic tests for sysopen()
f7292cbd » pfenwick 2008-06-25 Added basic tests to see if... 486
2544843f » pfenwick 2008-07-03 Retabbed 487 * Removed the 5.10 only way of tracking lexical hints with
488 %^H. Our code now exclusively uses the more portable
489 5.8 code that employs Scope::Guard (and has less side-effects).
413982c0 » pfenwick 2008-06-28 Removed 5.10 hints tracking... 490
2544843f » pfenwick 2008-07-03 Retabbed 491 * Exotic system is no longer clobbered under 5.10 outside of
492 autodie's scope.
fc7519a9 » pfenwick 2008-06-28 Documentation reminder: exo... 493
2544843f » pfenwick 2008-07-03 Retabbed 494 * autodie::exception::match is better exercised in the 5.8
495 test suite.
59abe196 » pfenwick 2008-06-28 autodie::exception::Match i... 496
2544843f » pfenwick 2008-07-03 Retabbed 497 * Re-enabled 'use autodie' vanilla tests.
08bb0e3b » pfenwick 2008-06-28 Re-enabled failing 'use aut... 498
2544843f » pfenwick 2008-07-03 Retabbed 499 * t/backcompat.t no longer fails under Devel::Cover
c49b1143 » pfenwick 2008-06-28 backcompat.t no longer fail... 500
2544843f » pfenwick 2008-07-03 Retabbed 501 * Repeating function names in arguments to autodie no
502 longer causes those functions to become 'stuck' in
503 autodying mode.
d3be6e3b » pfenwick 2008-06-28 Repeating function names in... 504
2544843f » pfenwick 2008-07-03 Retabbed 505 * Wrong-version of Fatal.pm support added, along with basic
506 hints on how to get it working.
dae30624 » pfenwick 2008-06-28 Extra documentation particu... 507
2544843f » pfenwick 2008-07-03 Retabbed 508 * Expanded documentation on autodie, particularly for
509 exception handling under Perl 5.8.
dae30624 » pfenwick 2008-06-28 Extra documentation particu... 510
2544843f » pfenwick 2008-07-03 Retabbed 511 * Less warnings from t/exceptions.t when running under 5.10.
c6a566bc » pfenwick 2008-06-28 Scope::Guard is now a requi... 512
2544843f » pfenwick 2008-07-03 Retabbed 513 * All releases now really depend upon Scope::Guard, not just 5.8.
515fc231 » pfenwick 2008-06-28 Made exceptions.t less warn... 514
7a573dae » stennie 2008-07-01 replace cygwin TZs with mor... 515 1.10_06 Sun Jun 22 21:50:39 AEST 2008
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 516
2544843f » pfenwick 2008-07-03 Retabbed 517 * RELEASE CODENAME: "Chocolateboy", in thanks for his wonderful
518 insights, and for letting me sound off way too many ideas
519 about how things may be done.
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 520
2544843f » pfenwick 2008-07-03 Retabbed 521 * Fixed speeling errors in context.t, thanks to Stennie.
ec998c7d » pfenwick 2008-06-14 Fixed spelling errors in co... 522
2544843f » pfenwick 2008-07-03 Retabbed 523 * Fixed minor pod errors and omissions.
54c408c3 » pfenwick 2008-06-15 Corrected minor pod errors ... 524
2544843f » pfenwick 2008-07-03 Retabbed 525 * Fixed bug in recv.t which resulted in an incorrect number
526 of skipped tests on systems using socketpair emulation.
b2c74be1 » pfenwick 2008-06-15 Fixed incorrect number of s... 527
2544843f » pfenwick 2008-07-03 Retabbed 528 * Fixed a bug that would cause unwanted interactions between
529 autodie and autobox. Thanks to chocolateboy. (5.8)
113251f8 » pfenwick 2008-06-15 Fixed a bug that would caus... 530
2544843f » pfenwick 2008-07-03 Retabbed 531 * Wrote a (failing) test case demonstrating that the
532 autodie pragma could leak across files. Many thanks to
533 chocolateboy for bringing this to my attention.
219a33a5 » pfenwick 2008-06-15 Added (failing) test to det... 534
2544843f » pfenwick 2008-07-03 Retabbed 535 * t/system.t checks to see if exotic system has been injured
536 in the same package as 'use qutodie qw(system)'
f2fe4549 » pfenwick 2008-06-16 Check for continuing health... 537
2544843f » pfenwick 2008-07-03 Retabbed 538 * Calling filename reliably reported in 5.8 error messages
539 and error objects.
9cc30842 » pfenwick 2008-06-18 5.8 error objects now corre... 540
2544843f » pfenwick 2008-07-03 Retabbed 541 * User subs can be made autodying under 5.8, but they leak
542 over the entire package (which is very bad!)
6e775c5c » pfenwick 2008-06-18 Added tests for autodying u... 543
2544843f » pfenwick 2008-07-03 Retabbed 544 * Context-checking tests split into package-scope tests and
545 lexical scope tests.
61cec2c6 » pfenwick 2008-06-21 Support for lexical user-su... 546
2544843f » pfenwick 2008-07-03 Retabbed 547 * Lexical user-subs are disabled under Perl 5.8. They were
548 leaking everywhere and not being lexical at all. Attempting
549 to use a lexical user-sub under 5.8 now causes an error.
61cec2c6 » pfenwick 2008-06-21 Support for lexical user-su... 550
2544843f » pfenwick 2008-07-03 Retabbed 551 * Bugs found in interaction between autodie and Fatal in
552 5.8. When used together, we can't reliably replace a
553 Fatalised sub with an autodying one, and then switch it
554 back again at the end of block.
f5ec7da0 » pfenwick 2008-06-21 Detection for (failing) att... 555
2544843f » pfenwick 2008-07-03 Retabbed 556 * Bugs described above fixed, thanks to ikegami!
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 557
2544843f » pfenwick 2008-07-03 Retabbed 558 * Overhauled _remove_lexical_subs, based on ikegami's
559 input. This routine would now be better named
560 "_install_lexical_subs", since it can now both
561 install and remove.
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 562
2544843f » pfenwick 2008-07-03 Retabbed 563 * Surpressed some warnings under 5.8 about uninitialised
564 hints hashes.
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 565
2544843f » pfenwick 2008-07-03 Retabbed 566 * Added support for backwards compatible Fatal calls in
567 5.8. These are currently a little *too* backwards compatible,
568 possessing the same bugs as the old Fatal (clobbering
569 context).
68d4714f » pfenwick 2008-06-22 Overhauled lexical subs pro... 570
2544843f » pfenwick 2008-07-03 Retabbed 571 * Improved caching of pre-generated subroutines. We now
572 cache the compiled subroutine, rather than the uncompiled
573 code.
f5ec7da0 » pfenwick 2008-06-21 Detection for (failing) att... 574
2544843f » pfenwick 2008-07-03 Retabbed 575 * Added more tests to ensure Fatal throws backcompat
576 strings, whereas autodie throws exception objects.
f5ec7da0 » pfenwick 2008-06-21 Detection for (failing) att... 577
2544843f » pfenwick 2008-07-03 Retabbed 578 * Support for lexical user-subs enabled, tested, and working
579 in 5.8!
f9c4e27c » pfenwick 2008-06-22 Lexical user subs work in 5... 580
2544843f » pfenwick 2008-07-03 Retabbed 581 * Added resources to Makefile.PL / META.yml
da0e3551 » pfenwick 2008-06-22 Added blog and repository i... 582
61cec2c6 » pfenwick 2008-06-21 Support for lexical user-su... 583
7a573dae » stennie 2008-07-01 replace cygwin TZs with mor... 584 1.10_05 Sun Jun 15 15:46:38 AEST 2008
2544843f » pfenwick 2008-07-03 Retabbed 585 * Kludgy support for Perl 5.8 using Scope::Guard and dark
586 and terrible magicks taken from namespace::clean.
ccb64ae6 » pfenwick 2008-06-13 Bumped versions. Updated C... 587
2544843f » pfenwick 2008-07-03 Retabbed 588 * Rudimentary caching of generated code, to avoid having
589 to regenerate the same code every single time Fatal/autodie
590 is used on the same function.
ccb64ae6 » pfenwick 2008-06-13 Bumped versions. Updated C... 591
2544843f » pfenwick 2008-07-03 Retabbed 592 * Nuking subroutines at end of lexical scope moved into
593 own subroutine.
09dde36c » pfenwick 2008-06-14 (5.8) Nuking subs at end of... 594
2544843f » pfenwick 2008-07-03 Retabbed 595 * Perl 5.8 support working! Backcompat mode not yet
596 supported, nor is autodie with user defined subs.
597 The 5.8 support that is there is rather kludgy, and
598 still needs a lot of work.
3c4b8429 » pfenwick 2008-06-14 Perl 5.8 autodie support is... 599
2544843f » pfenwick 2008-07-03 Retabbed 600 * Perl 5.8 code no longer gets executed under 5.10 when
601 executing write_invocation().
1b45db17 » pfenwick 2008-06-14 Perl 5.8 code no longer exe... 602
2544843f » pfenwick 2008-07-03 Retabbed 603 * lex58.t tells the user that we'll get warnings under
604 Win32, and these are to be ignored. This is due to
605 a Perl behaviour where it always calls the shell under
606 Win32, even when multi-arg system is used.
6d62a304 » pfenwick 2008-06-14 Updated test cases, Makefil... 607
2544843f » pfenwick 2008-07-03 Retabbed 608 * lex58.t no longer fails to compile on Perl 5.10 which
609 is still clobbering exotic open. Perl 5.8 does not
610 clobber the exotic form.
6d62a304 » pfenwick 2008-06-14 Updated test cases, Makefil... 611
2544843f » pfenwick 2008-07-03 Retabbed 612 * Backcompat tests are all marked as TODO under perl 5.8
6d62a304 » pfenwick 2008-06-14 Updated test cases, Makefil... 613
2544843f » pfenwick 2008-07-03 Retabbed 614 * Makefile.PL moved back to saying autodie works under 5.8
6d62a304 » pfenwick 2008-06-14 Updated test cases, Makefil... 615
2544843f » pfenwick 2008-07-03 Retabbed 616 * Context/user-sub tests skipped under 5.8, which does
617 not yet support autodying of user subs.
18e93b6b » pfenwick 2008-06-14 Context/user-sub tests skip... 618
2544843f » pfenwick 2008-07-03 Retabbed 619 * lex58 tests now skipped if IPC::System::Simple not installed.
132c4008 » pfenwick 2008-06-14 Scope::Guard required for P... 620
2544843f » pfenwick 2008-07-03 Retabbed 621 * Squished a spurious warning from lex58.t
132c4008 » pfenwick 2008-06-14 Scope::Guard required for P... 622
7a573dae » stennie 2008-07-01 replace cygwin TZs with mor... 623 1.10_04 Sat Jun 14 15:02:17 AEST 2008
2544843f » pfenwick 2008-07-03 Retabbed 624 * Made all $VERSION numbers more friendly to static code
625 analysis tools (including CPAN).
626 * Added a test to make sure all version numbers are incremented
627 in lock-step.
6f0e88c7 » pfenwick 2008-06-12 Made all $VERSIONs more fri... 628
2544843f » pfenwick 2008-07-03 Retabbed 629 * Started 5.8 support
630 * Removed dependencies on 5.10 'use feature'.
631 * Removed dependencies on 5.10 fieldhashes.
632 * a::e::match no longer uses smart-match or //
633 * %^H init doesn't use // anymore.
634 * 5.8 won't try to use // in fatalised subs (kludge)
754c6f68 » pfenwick 2008-06-12 First steps in a 5.8 port; ... 635
2544843f » pfenwick 2008-07-03 Retabbed 636 * recv.t corrected to use a custom socket (closed for writing)
637 and to ignore SIGPIPEs.
1ef565c1 » pfenwick 2008-06-13 Make sure our send/recv tes... 638
7a573dae » stennie 2008-07-01 replace cygwin TZs with mor... 639 1.10_03 Fri Jun 13 11:04:17 AEST 2008
2544843f » pfenwick 2008-07-03 Retabbed 640 * Updated backwards compatibility tests to work on
641 non-Enligh systems.
db9fab71 » pfenwick 2008-06-12 Bumped to 1.10_03. Fixed b... 642
7a573dae » stennie 2008-07-01 replace cygwin TZs with mor... 643 1.10_02 Fri Jun 13 10:55:00 AEST 2008
2544843f » pfenwick 2008-07-03 Retabbed 644 * Tweaked boilerplate test to remove windows-only paths.
645
646 1.10_01 Thu Jun 12 17:19:13 AEST 2008
647 * First beta release of module.
648
649 1.09 UNRELEASED
650 * Many changes not documented here.
651 * Fatal is now fully backwaards compatible again.
652 * system() can be fatalised/autodying if IPC::System::Simple
653 is installed.
654 * Rationlisation of autodie::exception API.
655 * autodie::exception->function() now always returns the
656 full function name as best we can find it, and not
657 what may be getting replaced (eg, CORE::open instead of
658 main::open).
659
660 1.08 Sat Mar 29 10:54:20 AEDT 2008
e1033eb0 » pfenwick 2008-03-28 Internal release 661 Dual-lifed module internally from work I was doing on p5p.
662