Imported Upstream version 0.36
Salvatore Bonaccorso
8 years ago
0 | 0 |
Revision history for Capture-Tiny
|
|
1 |
|
|
2 |
0.36 2016-02-28 21:36:57-05:00 America/New_York
|
|
3 |
|
|
4 |
[Docs]
|
|
5 |
|
|
6 |
- Fixed typos.
|
1 | 7 |
|
2 | 8 |
0.34 2016-02-18 23:26:13-05:00 America/New_York
|
3 | 9 |
|
82 | 82 |
"provides" : {
|
83 | 83 |
"Capture::Tiny" : {
|
84 | 84 |
"file" : "lib/Capture/Tiny.pm",
|
85 | |
"version" : "0.34"
|
|
85 |
"version" : "0.36"
|
86 | 86 |
}
|
87 | 87 |
},
|
88 | 88 |
"release_status" : "stable",
|
|
97 | 97 |
"web" : "https://github.com/dagolden/Capture-Tiny"
|
98 | 98 |
}
|
99 | 99 |
},
|
100 | |
"version" : "0.34",
|
|
100 |
"version" : "0.36",
|
101 | 101 |
"x_authority" : "cpan:DAGOLDEN",
|
102 | 102 |
"x_contributors" : [
|
103 | 103 |
"Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>",
|
27 | 27 |
provides:
|
28 | 28 |
Capture::Tiny:
|
29 | 29 |
file: lib/Capture/Tiny.pm
|
30 | |
version: '0.34'
|
|
30 |
version: '0.36'
|
31 | 31 |
requires:
|
32 | 32 |
Carp: '0'
|
33 | 33 |
Exporter: '0'
|
|
42 | 42 |
bugtracker: https://github.com/dagolden/Capture-Tiny/issues
|
43 | 43 |
homepage: https://github.com/dagolden/Capture-Tiny
|
44 | 44 |
repository: https://github.com/dagolden/Capture-Tiny.git
|
45 | |
version: '0.34'
|
|
45 |
version: '0.36'
|
46 | 46 |
x_authority: cpan:DAGOLDEN
|
47 | 47 |
x_contributors:
|
48 | 48 |
- 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>'
|
32 | 32 |
"Test::More" => "0.62",
|
33 | 33 |
"lib" => 0
|
34 | 34 |
},
|
35 | |
"VERSION" => "0.34",
|
|
35 |
"VERSION" => "0.36",
|
36 | 36 |
"test" => {
|
37 | 37 |
"TESTS" => "t/*.t"
|
38 | 38 |
}
|
2 | 2 |
programs
|
3 | 3 |
|
4 | 4 |
VERSION
|
5 | |
version 0.34
|
|
5 |
version 0.36
|
6 | 6 |
|
7 | 7 |
SYNOPSIS
|
8 | 8 |
use Capture::Tiny ':all';
|
|
172 | 172 |
platform.
|
173 | 173 |
|
174 | 174 |
PerlIO layers
|
175 | |
Capture::Tiny does it's best to preserve PerlIO layers such as ':utf8'
|
176 | |
or ':crlf' when capturing (only for Perl 5.8.1+) . Layers should be
|
177 | |
applied to STDOUT or STDERR *before* the call to "capture" or "tee".
|
178 | |
This may not work for tied filehandles (see below).
|
|
175 |
Capture::Tiny does its best to preserve PerlIO layers such as ':utf8' or
|
|
176 |
':crlf' when capturing (only for Perl 5.8.1+) . Layers should be applied
|
|
177 |
to STDOUT or STDERR *before* the call to "capture" or "tee". This may
|
|
178 |
not work for tied filehandles (see below).
|
179 | 179 |
|
180 | 180 |
Modifying filehandles before capturing
|
181 | 181 |
Generally speaking, you should do little or no manipulation of the
|
|
275 | 275 |
proceed.
|
276 | 276 |
|
277 | 277 |
SEE ALSO
|
278 | |
This module was, inspired by IO::CaptureOutput, which provides similar
|
|
278 |
This module was inspired by IO::CaptureOutput, which provides similar
|
279 | 279 |
functionality without the ability to tee output and with more
|
280 | 280 |
complicated code and API. IO::CaptureOutput does not handle layers or
|
281 | 281 |
most of the unusual cases described in the "Limitations" section and I
|
5 | 5 |
|
6 | 6 |
- Test utf8 output
|
7 | 7 |
- Test with curses
|
8 | |
- Add tee_stdout and tee_stderr functions (?)
|
2 | 2 |
use warnings;
|
3 | 3 |
package Capture::Tiny;
|
4 | 4 |
# ABSTRACT: Capture STDOUT and STDERR from Perl, XS or external programs
|
5 | |
our $VERSION = '0.34';
|
|
5 |
our $VERSION = '0.36';
|
6 | 6 |
use Carp ();
|
7 | 7 |
use Exporter ();
|
8 | 8 |
use IO::Handle ();
|
|
435 | 435 |
|
436 | 436 |
=head1 VERSION
|
437 | 437 |
|
438 | |
version 0.34
|
|
438 |
version 0.36
|
439 | 439 |
|
440 | 440 |
=head1 SYNOPSIS
|
441 | 441 |
|
|
618 | 618 |
|
619 | 619 |
=head2 PerlIO layers
|
620 | 620 |
|
621 | |
Capture::Tiny does it's best to preserve PerlIO layers such as ':utf8' or
|
|
621 |
Capture::Tiny does its best to preserve PerlIO layers such as ':utf8' or
|
622 | 622 |
':crlf' when capturing (only for Perl 5.8.1+) . Layers should be applied to
|
623 | 623 |
STDOUT or STDERR I<before> the call to C<capture> or C<tee>. This may not work
|
624 | 624 |
for tied filehandles (see below).
|
|
728 | 728 |
|
729 | 729 |
=head1 SEE ALSO
|
730 | 730 |
|
731 | |
This module was, inspired by L<IO::CaptureOutput>, which provides
|
|
731 |
This module was inspired by L<IO::CaptureOutput>, which provides
|
732 | 732 |
similar functionality without the ability to tee output and with more
|
733 | 733 |
complicated code and API. L<IO::CaptureOutput> does not handle layers
|
734 | 734 |
or most of the unusual cases described in the L</Limitations> section and
|
2 | 2 |
use strict;
|
3 | 3 |
use warnings;
|
4 | 4 |
|
5 | |
# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.021
|
|
5 |
# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.024
|
6 | 6 |
|
7 | 7 |
use Test::More tests => 1;
|
8 | 8 |
|