| 1 |
Revision history for Capture-Tiny |
| 2 |
|
| 3 |
0.50 2024-12-19 08:15:32-05:00 America/New_York |
| 4 |
|
| 5 |
- No changes from 0.49-TRIAL |
| 6 |
|
| 7 |
0.49 2024-12-16 08:10:22-05:00 America/New_York (TRIAL RELEASE) |
| 8 |
|
| 9 |
[Internal] |
| 10 |
|
| 11 |
- Stringify '$]' for far future compatibility. |
| 12 |
|
| 13 |
[Docs] |
| 14 |
|
| 15 |
- Fixed docs about custom files for capture |
| 16 |
|
| 17 |
0.48 2018-04-22 10:02:47+02:00 Europe/Oslo |
| 18 |
|
| 19 |
- No changes from 0.47-TRIAL |
| 20 |
|
| 21 |
0.47 2017-07-26 10:34:24-04:00 America/New_York (TRIAL RELEASE) |
| 22 |
|
| 23 |
[Fixed] |
| 24 |
|
| 25 |
- Appends PID to random file names for tee signalling to avoid |
| 26 |
random name collision when used in multiple forked children. |
| 27 |
|
| 28 |
0.46 2017-02-25 14:19:22-05:00 America/New_York |
| 29 |
|
| 30 |
- No changes from 0.45-TRIAL |
| 31 |
|
| 32 |
0.45 2017-02-23 13:22:43-05:00 America/New_York (TRIAL RELEASE) |
| 33 |
|
| 34 |
[Internal] |
| 35 |
|
| 36 |
- Avoid variable shadowing to improve debuggability. |
| 37 |
|
| 38 |
0.44 2016-08-05 13:40:33-04:00 America/New_York |
| 39 |
|
| 40 |
[Docs] |
| 41 |
|
| 42 |
- Note that dropping privileges during a capture can lead to |
| 43 |
temporary files not cleaned up. |
| 44 |
|
| 45 |
0.42 2016-05-31 12:40:10-04:00 America/New_York |
| 46 |
|
| 47 |
- No changes from 0.41 |
| 48 |
|
| 49 |
0.41 2016-05-23 11:58:15-04:00 America/New_York (TRIAL RELEASE) |
| 50 |
|
| 51 |
[Fixed] |
| 52 |
|
| 53 |
- Fixed some failing tests when STDIN is routed to /dev/null |
| 54 |
|
| 55 |
0.40 2016-05-23 11:42:35-04:00 America/New_York |
| 56 |
|
| 57 |
- No changes from 0.39 |
| 58 |
|
| 59 |
0.39 2016-05-02 10:21:48-04:00 America/New_York (TRIAL RELEASE) |
| 60 |
|
| 61 |
[Fixed] |
| 62 |
|
| 63 |
- Fix in 0.37 tickled a very obscure regular expressions bug in perl < |
| 64 |
5.18; should now be fixed. |
| 65 |
|
| 66 |
0.37 2016-05-02 07:08:31-04:00 America/New_York (TRIAL RELEASE) |
| 67 |
|
| 68 |
[Fixed] |
| 69 |
|
| 70 |
- Skip some tests if locale can't be determined. |
| 71 |
|
| 72 |
0.36 2016-02-28 21:36:57-05:00 America/New_York |
| 73 |
|
| 74 |
[Docs] |
| 75 |
|
| 76 |
- Fixed typos. |
| 77 |
|
| 78 |
0.34 2016-02-18 23:26:13-05:00 America/New_York |
| 79 |
|
| 80 |
[Fixed] |
| 81 |
|
| 82 |
- Removed spurious JSON::PP dependency added by a broken |
| 83 |
Dist::Zilla plugin. |
| 84 |
|
| 85 |
0.32 2016-02-18 10:12:02-05:00 America/New_York |
| 86 |
|
| 87 |
[Docs] |
| 88 |
|
| 89 |
- Changed internal formatting of documentation |
| 90 |
|
| 91 |
[Changes] |
| 92 |
|
| 93 |
- No functional changes from 0.31 |
| 94 |
|
| 95 |
0.31 2016-02-14 07:33:50-07:00 America/Mazatlan (TRIAL RELEASE) |
| 96 |
|
| 97 |
[Fixed] |
| 98 |
|
| 99 |
- Application of layers to handles during and after capture now attempts |
| 100 |
to more accurately duplicate the original layers, including potential |
| 101 |
duplicate layers. Because of the unusual ways that layers are ordered |
| 102 |
and applied, exact duplication is not guaranteeed, but this should be |
| 103 |
better that what Capture::Tiny did before. |
| 104 |
|
| 105 |
- Avoids a hard crash on Windows with Perl < 5.20 if a fork occurs in a |
| 106 |
capture block. Also documented the risks and lack of support for |
| 107 |
forks in capture blocks. |
| 108 |
|
| 109 |
0.30 2015-05-15 20:43:54-04:00 America/New_York |
| 110 |
|
| 111 |
No changes from 0.29 |
| 112 |
|
| 113 |
0.29 2015-04-19 18:36:24+02:00 Europe/Berlin (TRIAL RELEASE) |
| 114 |
|
| 115 |
Fixed: |
| 116 |
|
| 117 |
- Fix double filehandle close error with tee on Windows |
| 118 |
(which started warning during the perl 5.21.x series, |
| 119 |
causing tests to fail) |
| 120 |
|
| 121 |
0.28 2015-02-11 06:39:51-05:00 America/New_York |
| 122 |
|
| 123 |
Tests: |
| 124 |
|
| 125 |
- Removes test that optionally uses Inline::C to avoid spurious |
| 126 |
test failures. Also Inline::C had become a fairly heavy |
| 127 |
(if optional) dependency. |
| 128 |
|
| 129 |
Docs: |
| 130 |
|
| 131 |
- Clarify that PERL_CAPTURE_TINY_TIMEOUT is an internal control, |
| 132 |
not a timeout of the code reference being captured. |
| 133 |
|
| 134 |
0.27 2014-11-04 23:10:44-05:00 America/New_York |
| 135 |
|
| 136 |
Prereqs: |
| 137 |
|
| 138 |
- Make Inline::C recommended, not required |
| 139 |
|
| 140 |
0.26 2014-11-04 06:55:15-05:00 America/New_York |
| 141 |
|
| 142 |
Tests: |
| 143 |
|
| 144 |
- Actually check for Inline::C in tests, not just Inline |
| 145 |
|
| 146 |
0.25 2014-08-16 10:08:42-04:00 America/New_York |
| 147 |
|
| 148 |
Prereqs: |
| 149 |
|
| 150 |
- Amended recommended modules to list Inline::C rather than Inline |
| 151 |
|
| 152 |
0.24 2014-02-06 17:15:37-05:00 America/New_York |
| 153 |
|
| 154 |
Fixed: |
| 155 |
|
| 156 |
- Closed security hole in use of semaphore file in /tmp; |
| 157 |
now opens the semaphore file using O_CREAT|O_EXCL |
| 158 |
|
| 159 |
0.23 2013-10-20 11:25:34 America/New_York |
| 160 |
|
| 161 |
Fixed: |
| 162 |
|
| 163 |
- minimum Perl prereq is back to 5.6 (but $diety help you if |
| 164 |
you're still stuck on 5.6) |
| 165 |
|
| 166 |
Documented: |
| 167 |
|
| 168 |
- Added warning about using @_ in a capture block |
| 169 |
|
| 170 |
0.22 2013-03-27 15:50:29 America/New_York |
| 171 |
|
| 172 |
Documented: |
| 173 |
|
| 174 |
- Issue tracker is now github |
| 175 |
|
| 176 |
0.21 2012-11-14 19:04:49 America/New_York |
| 177 |
|
| 178 |
Changed: |
| 179 |
|
| 180 |
- Skips tee and leak tests for closed STDIN on Perl prior to |
| 181 |
5.12 when PERL_UNICODE=D. Documented lack of support as |
| 182 |
a known issue. |
| 183 |
|
| 184 |
- Isolated tee subprocesses from effects of PERL_UNICODE as a |
| 185 |
precaution (though this did not fix the above issue). |
| 186 |
|
| 187 |
- Improved layer detection for handles proxied due to being closed |
| 188 |
or tied. |
| 189 |
|
| 190 |
0.20 2012-09-19 13:20:57 America/New_York |
| 191 |
|
| 192 |
Fixed: |
| 193 |
|
| 194 |
- Nested merged captures that include an external program call no longer |
| 195 |
leak STDERR to the outer scope [rt.cpan.org #79376] |
| 196 |
|
| 197 |
0.19 2012-08-06 20:26:34 America/New_York |
| 198 |
|
| 199 |
Fixed: |
| 200 |
|
| 201 |
- Work around rt.perl.org #114404 by forcing PerlIO layers back on |
| 202 |
original handles [rt.cpan.org #78819] |
| 203 |
|
| 204 |
0.18 2012-05-04 16:31:53 America/New_York |
| 205 |
|
| 206 |
Added: |
| 207 |
|
| 208 |
- When capture or tee are called in void context, Capture::Tiny |
| 209 |
skips reading back from the capture handles if it can do so safely |
| 210 |
|
| 211 |
0.17_52 2012-03-09 11:45:19 EST5EDT |
| 212 |
|
| 213 |
Fixed: |
| 214 |
|
| 215 |
- Tied STDIN is always localized before redirections to avoid tees |
| 216 |
hanging on MSWin32 |
| 217 |
|
| 218 |
- Copying and reopening STDIN is necessary to avoid tees hanging on MSWin32. |
| 219 |
|
| 220 |
0.17_51 2012-03-07 18:22:34 EST5EDT |
| 221 |
|
| 222 |
Fixed: |
| 223 |
|
| 224 |
- Avoids reopening STDIN while setting up a capture, which avoids |
| 225 |
some problems with pathological tied filehandle implementations |
| 226 |
such as in FCGI |
| 227 |
|
| 228 |
Tested: |
| 229 |
|
| 230 |
- Re-enabled tied STDIN testing for MSWin32 to see if changes above |
| 231 |
avoid crashes seen historically |
| 232 |
|
| 233 |
0.17 2012-02-22 08:07:41 EST5EDT |
| 234 |
|
| 235 |
Fixed: |
| 236 |
|
| 237 |
- Added a workaround for failing t/08-stdin-closed.t under blead |
| 238 |
perl / 5.15.8 [rt.perl.org #111070] |
| 239 |
|
| 240 |
Documented: |
| 241 |
|
| 242 |
- Clarified some limitations; added a link to CPAN Testers Matrix; |
| 243 |
removed redundant BUGS section; standardized terminology |
| 244 |
|
| 245 |
Tested: |
| 246 |
|
| 247 |
- Added a test using Inline::C to print to stdout and stderr in response |
| 248 |
to rt.cpan.org #71701 |
| 249 |
|
| 250 |
0.16 2012-02-12 21:04:24 EST5EDT |
| 251 |
|
| 252 |
Documented: |
| 253 |
|
| 254 |
- Noted problems and workaround for FCGI's pathological tied STDIN |
| 255 |
[rt.cpan.org #74681; thank you Karl Gaissmaier for testing the |
| 256 |
workaround] |
| 257 |
|
| 258 |
0.15 2011-12-23 11:10:47 EST5EDT |
| 259 |
|
| 260 |
Fixed: |
| 261 |
|
| 262 |
- Repeated captures from a custom filehandle would return undef instead |
| 263 |
of the empty string (and would warn). This has been fixed. |
| 264 |
[rt.cpan.org #73374 part two. Thank you to Philipp Herz for help |
| 265 |
in reproducing this bug.] |
| 266 |
|
| 267 |
Other: |
| 268 |
|
| 269 |
- Commented out debugging code for slightly less runtime overhead |
| 270 |
|
| 271 |
0.14 2011-12-22 10:14:09 EST5EDT |
| 272 |
|
| 273 |
Added: |
| 274 |
|
| 275 |
- Capturing with custom filehandles will return only newly appended |
| 276 |
output instead of everything already in the file. |
| 277 |
[rt.cpan.org #73374] |
| 278 |
|
| 279 |
0.13 2011-12-02 13:39:00 EST5EDT |
| 280 |
|
| 281 |
Fixed: |
| 282 |
|
| 283 |
- Fixed t/18-custom-capture.t failures on Windows due to tempfile |
| 284 |
removal problems in the testfile |
| 285 |
|
| 286 |
0.12 2011-12-01 16:58:05 EST5EDT |
| 287 |
|
| 288 |
Added: |
| 289 |
|
| 290 |
- New functions capture_stdout, capture_stderr, tee_stdout, tee_stderr |
| 291 |
[rt.cpan.org #60515] |
| 292 |
|
| 293 |
- Capture functions also returns the return values from the executed |
| 294 |
coderef [rt.cpan.org #61794, adapted from patch by Christian Walde] |
| 295 |
|
| 296 |
- Capture functions take optional custom filehandles for capturing |
| 297 |
via named files instead of anonymous ones [inspired by Christian Walde] |
| 298 |
|
| 299 |
Fixed: |
| 300 |
|
| 301 |
- Tied filehandles based on Tie::StdHandle can now use the ":utf8" |
| 302 |
layer; removed remaining TODO tests; adds Scalar::Util as a dependency |
| 303 |
|
| 304 |
Changed: |
| 305 |
|
| 306 |
- When Time::HiRes::usleep is available, tee operations will |
| 307 |
sleep during the busy-loop waiting for tee processes to be ready |
| 308 |
[rt.cpan.org #67858] |
| 309 |
|
| 310 |
0.11 2011-05-19 23:34:23 America/New_York |
| 311 |
|
| 312 |
Fixed: |
| 313 |
|
| 314 |
- Tests will not use Test::Differences version 0.60 or greater |
| 315 |
|
| 316 |
0.10 2011-02-07 07:01:44 EST5EDT |
| 317 |
|
| 318 |
Fixed: |
| 319 |
|
| 320 |
- Setting PERL_CAPTURE_TINY_TIMEOUT to 0 will disable timeouts |
| 321 |
|
| 322 |
0.09 2011-01-27 23:52:16 EST5EDT |
| 323 |
|
| 324 |
Added: |
| 325 |
|
| 326 |
- Added support for $ENV{PERL_CAPTURE_TINY_TIMEOUT} to control |
| 327 |
the timeout period under 'tee'; tests set not to timeout to |
| 328 |
avoid false FAIL reports on overloaded virtual machine smokers |
| 329 |
|
| 330 |
Fixed: |
| 331 |
|
| 332 |
- $@ set within a captured block is no longer lost when the capture |
| 333 |
is completed; likewise, the initial value of $@ is not lost |
| 334 |
during capture (when no subsequent error occurs) (RT #65139) |
| 335 |
|
| 336 |
0.08 Sun Jun 20 19:13:19 EDT 2010 |
| 337 |
|
| 338 |
Fixed: |
| 339 |
|
| 340 |
- Exceptions in captured coderef are caught, then handles are restored |
| 341 |
before the exception is rethrown (RT #58208) |
| 342 |
|
| 343 |
0.07 Sun Jan 24 00:18:45 EST 2010 |
| 344 |
|
| 345 |
Fixed: |
| 346 |
|
| 347 |
- Changed test for $? preservation to be more portable |
| 348 |
|
| 349 |
- Dropped support for Perl 5.8.0 specifically due to excessive bugs. |
| 350 |
Tests will bail out. (5.6.X is still supported) |
| 351 |
|
| 352 |
0.06 Thu May 7 06:54:53 EDT 2009 |
| 353 |
|
| 354 |
Fixed: |
| 355 |
|
| 356 |
- On Win32, subprocesses now close themselves on EOF instead of being |
| 357 |
killed with a signal |
| 358 |
|
| 359 |
0.05_51 Tue Apr 21 07:00:38 EDT 2009 |
| 360 |
|
| 361 |
Added: |
| 362 |
|
| 363 |
- Support for wide characters on handles opened to utf8 |
| 364 |
|
| 365 |
- Support for STDOUT, STDERR or STDIN opened to in-memory |
| 366 |
files (open to scalar reference) or tied, albeit with some limitations |
| 367 |
|
| 368 |
Testing: |
| 369 |
|
| 370 |
- Verify that $? is preserved during capture { system(@cmd) }; |
| 371 |
|
| 372 |
0.05 Tue Mar 3 06:56:05 EST 2009 |
| 373 |
|
| 374 |
Fixed: |
| 375 |
|
| 376 |
- On Win32, increased a delay waiting for buffers to flush to avoid losing |
| 377 |
final output during tee() |
| 378 |
|
| 379 |
0.04 Wed Feb 25 09:25:27 EST 2009 |
| 380 |
|
| 381 |
Added: |
| 382 |
|
| 383 |
- Can capture/tee even if STDIN, STDOUT or STDERR are closed prior to |
| 384 |
capture/tee block |
| 385 |
|
| 386 |
- Generally, added more error handling |
| 387 |
|
| 388 |
Fixed: |
| 389 |
|
| 390 |
- Will timeout instead of hang if subprocesses fail to start |
| 391 |
|
| 392 |
0.03 Fri Feb 20 13:03:08 EST 2009 |
| 393 |
|
| 394 |
Added: |
| 395 |
|
| 396 |
- capture_merged() and tee_merged() |
| 397 |
|
| 398 |
Fixed: |
| 399 |
|
| 400 |
- Tests skip if not Win32 and no fork() (rather than Build.PL and |
| 401 |
Makefile.PL failing); this allows capture() on odd platforms, even if |
| 402 |
fork doesn't work |
| 403 |
|
| 404 |
0.02 Tue Feb 17 17:24:35 EST 2009 |
| 405 |
|
| 406 |
Fixed: |
| 407 |
|
| 408 |
- Bug recovering output when STDOUT is empty (reported by Vincent Pit) |
| 409 |
|
| 410 |
- Removed Fatal.pm to avoid global action-at-a-distance |
| 411 |
|
| 412 |
0.01 Fri Feb 13 23:15:19 EST 2009 |
| 413 |
|
| 414 |
Added: |
| 415 |
- 'capture' and 'tee' functions |
| 416 |
|
| 417 |
# vim: set ts=2 sts=2 sw=2 et tw=75: |