summaryrefslogtreecommitdiffabout
AgeCommit message (Collapse)AuthorFiles
2020-01-31Fix mode of the created output file.HEADv1.01masterSergey Poznyakoff3
* Changes: Document changes. * capture.c (capture_set_output): Fix mode of the created file. * lib/POSIX/Run/Capture.pm: Improve documentation. Set version number 1.01.
2020-01-30Minor fixSergey Poznyakoff2
* capture.c: Make sure file handle is dereferenced when the object is destroyed.
2020-01-30Accept glob (file handle) or string (file name) with stderr and stdout ↵Sergey Poznyakoff7
keyword arguments * runcap: Upgrade. * Capture.xs: Pass stdout/stderr value without dereferencing it. * capture.h (line_closure): New member "fd". * capture.c (capture_set_output) (capture_close_output): New functions. (capture_new): Use capture_set_output. * lib/POSIX/Run/Capture.pm: Document changes. * Makefile.PL: Declare TEST_REQUIRES. * t/10file.t: New file.
2019-08-16Minor changeSergey Poznyakoff1
* capture.c (capture_run): Explict flushing of line monitors is no longer needed.
2019-08-16Upgrade runcapSergey Poznyakoff2
2019-08-14Version 1.00v1.00Sergey Poznyakoff4
2019-08-14Upgrade runcapSergey Poznyakoff2
* runcap: Upgrade. * t/09linemon.t: New test.
2018-11-06Fix missing year in the Changes fileSergey Poznyakoff1
2017-12-01Verion 0.02v0.02Sergey Poznyakoff3
2017-12-01Update runcapSergey Poznyakoff1
2017-12-01Improve docsSergey Poznyakoff6
2017-09-27Pull recent bugfix from runcapSergey Poznyakoff1
2017-08-20Rebuild manifestSergey Poznyakoff3
2017-08-20Update runcapSergey Poznyakoff4
2017-07-25Fix typoSergey Poznyakoff1
* capture.c (capture_new): Fix mistyped flag
2017-07-24Update docsSergey Poznyakoff2
2017-07-23Change return value of capture_run to conform to Perl conventionSergey Poznyakoff2
* capture.c (capture_run): Return true on success. * t/TestCapture.pm: Expect true on success
2017-07-23Avoid unnecessary memory allocationSergey Poznyakoff1
* capture.c (capture_set_input): Don't allocate input sc_base. (capture_DESTROY): Reset sc_base to NULL.
2017-07-22Implement "input" key and set_input method.Sergey Poznyakoff10
* Capture.xs (capture_new): New keyword "input". (capture_set_input): New method. * MANIFEST: Update. * Makefile.PL: Add the 'check' goal (alias to 'test'). * capture.c (capture_new): Take input SV as 5th parameter. (capture_set_input): New function. (capture_DESTROY): Dereference input, if defined. * capture.h (capture) <input>: New method. (capture_new): Change signature. * t/08input.t: New file. * t/TestCapture.pm: Read content in BEGIN block, instead of hardcoding it. (TestCapture): $argv can be a hash or array ref. All uses changed.
2017-07-22Add more testsSergey Poznyakoff9
* Capture.xs (capture_set_program): Allow for undef as argument. (capture_timeout): New method.
2017-07-22Add new methods for manipulating argv and program pathnameSergey Poznyakoff6
* Capture.xs (capture_new): Use new ARGV typedef. Handle the new "program" keyword. (capture_set_argv_ref, capture_set_program) (capture_argv, capture_program): New methods. * capture.c: Handle out of memory errors. (XS_pack_ARGV, XS_unpack_ARGV): New functions. (capture_new): Change signature. Set the rc_program field. (capture_DESTROY): Destroy cp->program (capture_set_argv_ref): New function. * capture.h (capture) <program>: New member. (ARGV): New typedef. (capture_new): Change signature. (XS_unpack_ARGV, XS_pack_ARGV) (capture_set_argv_ref): New protos. * lib/POSIX/Run/Capture.pm (set_argv): New method. * typemap: Hande ARGV conversions. * runcap: Update.
2017-07-21Update MANIFESTSergey Poznyakoff1
2017-07-21Write more tests.Sergey Poznyakoff8
* runcap: Update. * Makefile.PL (test): Generate custom subdirs-test_ rules. * capture.c (capture_new): Fix type checking. * t/POSIX-Run-Capture.t: Rename to t/00use.t * t/01simple.t: New file. * t/02lines.t: New file. * t/03two.t: New file. * t/TestCapture.pm: New file.
2017-07-21Improve constructor calling convention; implement timeout and line monitoringSergey Poznyakoff5
* Capture.xs: Rewrite constructor to optionally take named arguments. * Makefile.PL: Remove 'subdirs-test_.*' rules. * capture.h (capture): New structure. All capture_ functions operate on it. * capture.c (capture_new): Change signature. Set line monitoring features if required. (capture_DESTROY): Free line buffers and dereference callback references. * lib/POSIX/Run/Capture.pm: Fix trivial error (get_lines): New method.
2017-07-20Fix copyright notice in READMESergey Poznyakoff1
2017-07-20Initial commitSergey Poznyakoff15

Return to:

Send suggestions and report system problems to the System administrator.