Update upstream source from tag 'upstream/0.48'
Update to upstream version '0.48'
with Debian dir 28885a13df18eb3d257e1dad6ffc02aff0809b8f
Salvatore Bonaccorso
6 years ago
0 | 0 | Revision history for Capture-Tiny |
1 | ||
2 | 0.48 2018-04-22 09:01:08+02:00 Europe/Oslo | |
3 | ||
4 | - No changes from 0.47-TRIAL | |
5 | ||
6 | 0.47 2017-07-26 10:34:24-04:00 America/New_York (TRIAL RELEASE) | |
7 | ||
8 | [Fixed] | |
9 | ||
10 | - Appends PID to random file names for tee signalling to avoid | |
11 | random name collision when used in multiple forked children. | |
1 | 12 | |
2 | 13 | 0.46 2017-02-25 14:19:22-05:00 America/New_York |
3 | 14 |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012. | |
1 | 1 | CONTRIBUTING.mkdn |
2 | 2 | Changes |
3 | 3 | LICENSE |
44 | 44 | t/lib/Utils.pm |
45 | 45 | xt/author/00-compile.t |
46 | 46 | xt/author/critic.t |
47 | xt/author/minimum-version.t | |
47 | 48 | xt/author/pod-coverage.t |
48 | 49 | xt/author/pod-spell.t |
49 | 50 | xt/author/pod-syntax.t |
50 | 51 | xt/author/portability.t |
51 | 52 | xt/author/test-version.t |
52 | 53 | xt/release/distmeta.t |
53 | xt/release/minimum-version.t |
3 | 3 | "David Golden <dagolden@cpan.org>" |
4 | 4 | ], |
5 | 5 | "dynamic_config" : 1, |
6 | "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010", | |
6 | "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", | |
7 | 7 | "license" : [ |
8 | 8 | "apache_2_0" |
9 | 9 | ], |
37 | 37 | "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" : "0", |
38 | 38 | "Dist::Zilla::Plugin::RemovePrereqs" : "0", |
39 | 39 | "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072", |
40 | "English" : "0", | |
41 | 40 | "File::Spec" : "0", |
42 | 41 | "File::Temp" : "0", |
43 | 42 | "IO::Handle" : "0", |
48 | 47 | "Test::CPAN::Meta" : "0", |
49 | 48 | "Test::MinimumVersion" : "0", |
50 | 49 | "Test::More" : "0", |
50 | "Test::Perl::Critic" : "0", | |
51 | 51 | "Test::Pod" : "1.41", |
52 | 52 | "Test::Pod::Coverage" : "1.08", |
53 | 53 | "Test::Portability::Files" : "0", |
54 | 54 | "Test::Spelling" : "0.12", |
55 | "Test::Version" : "1", | |
56 | "blib" : "1.01" | |
55 | "Test::Version" : "1" | |
57 | 56 | } |
58 | 57 | }, |
59 | 58 | "runtime" : { |
85 | 84 | "provides" : { |
86 | 85 | "Capture::Tiny" : { |
87 | 86 | "file" : "lib/Capture/Tiny.pm", |
88 | "version" : "0.46" | |
87 | "version" : "0.48" | |
89 | 88 | } |
90 | 89 | }, |
91 | 90 | "release_status" : "stable", |
100 | 99 | "web" : "https://github.com/dagolden/Capture-Tiny" |
101 | 100 | } |
102 | 101 | }, |
103 | "version" : "0.46", | |
102 | "version" : "0.48", | |
104 | 103 | "x_authority" : "cpan:DAGOLDEN", |
105 | 104 | "x_contributors" : [ |
106 | 105 | "Dagfinn Ilmari Manns\u00e5ker <ilmari@ilmari.org>", |
109 | 108 | "Graham Knop <haarg@haarg.org>", |
110 | 109 | "Peter Rabbitson <ribasushi@cpan.org>" |
111 | 110 | ], |
112 | "x_serialization_backend" : "Cpanel::JSON::XS version 3.0225" | |
111 | "x_generated_by_perl" : "v5.26.1", | |
112 | "x_serialization_backend" : "Cpanel::JSON::XS version 3.0239" | |
113 | 113 | } |
114 | 114 |
10 | 10 | configure_requires: |
11 | 11 | ExtUtils::MakeMaker: '6.17' |
12 | 12 | dynamic_config: 1 |
13 | generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010' | |
13 | generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' | |
14 | 14 | license: apache |
15 | 15 | meta-spec: |
16 | 16 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
27 | 27 | provides: |
28 | 28 | Capture::Tiny: |
29 | 29 | file: lib/Capture/Tiny.pm |
30 | version: '0.46' | |
30 | version: '0.48' | |
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.46' | |
45 | version: '0.48' | |
46 | 46 | x_authority: cpan:DAGOLDEN |
47 | 47 | x_contributors: |
48 | 48 | - 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>' |
50 | 50 | - 'fecundf <not.com+github@gmail.com>' |
51 | 51 | - 'Graham Knop <haarg@haarg.org>' |
52 | 52 | - 'Peter Rabbitson <ribasushi@cpan.org>' |
53 | x_serialization_backend: 'YAML::Tiny version 1.69' | |
53 | x_generated_by_perl: v5.26.1 | |
54 | x_serialization_backend: 'YAML::Tiny version 1.70' |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012. | |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
32 | 32 | "Test::More" => "0.62", |
33 | 33 | "lib" => 0 |
34 | 34 | }, |
35 | "VERSION" => "0.46", | |
35 | "VERSION" => "0.48", | |
36 | 36 | "test" => { |
37 | 37 | "TESTS" => "t/*.t" |
38 | 38 | } |
65 | 65 | unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; |
66 | 66 | |
67 | 67 | if ( $^O eq 'MSWin32' ) { |
68 | $WriteMakefileArgs{PREREQ_PM}{'Win32API::File'} = '0'; | |
68 | $WriteMakefileArgs{PREREQ_PM}{'Win32API::File'} = $FallbackPrereqs{'Win32API::File'} = '0'; | |
69 | 69 | } |
70 | 70 | |
71 | 71 | WriteMakefile(%WriteMakefileArgs); |
30 | 30 | requires "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" => "0"; |
31 | 31 | requires "Dist::Zilla::Plugin::RemovePrereqs" => "0"; |
32 | 32 | requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072"; |
33 | requires "English" => "0"; | |
34 | 33 | requires "File::Spec" => "0"; |
35 | 34 | requires "File::Temp" => "0"; |
36 | 35 | requires "IO::Handle" => "0"; |
41 | 40 | requires "Test::CPAN::Meta" => "0"; |
42 | 41 | requires "Test::MinimumVersion" => "0"; |
43 | 42 | requires "Test::More" => "0"; |
43 | requires "Test::Perl::Critic" => "0"; | |
44 | 44 | requires "Test::Pod" => "1.41"; |
45 | 45 | requires "Test::Pod::Coverage" => "1.08"; |
46 | 46 | requires "Test::Portability::Files" => "0"; |
47 | 47 | requires "Test::Spelling" => "0.12"; |
48 | 48 | requires "Test::Version" => "1"; |
49 | requires "blib" => "1.01"; | |
50 | 49 | }; |
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.46'; | |
5 | our $VERSION = '0.48'; | |
6 | 6 | use Carp (); |
7 | 7 | use Exporter (); |
8 | 8 | use IO::Handle (); |
213 | 213 | stderr => $stash->{capture}{$which}, |
214 | 214 | }; |
215 | 215 | # flag file is used to signal the child is ready |
216 | $stash->{flag_files}{$which} = scalar tmpnam(); | |
216 | $stash->{flag_files}{$which} = scalar( tmpnam() ) . $$; | |
217 | 217 | # execute @cmd as a separate process |
218 | 218 | if ( $IS_WIN32 ) { |
219 | 219 | my $old_eval_err=$@; |
435 | 435 | |
436 | 436 | =head1 VERSION |
437 | 437 | |
438 | version 0.46 | |
438 | version 0.48 | |
439 | 439 | |
440 | 440 | =head1 SYNOPSIS |
441 | 441 |
11 | 11 | 'Dist::Zilla::Plugin::ReleaseStatus::FromVersion' => '0', |
12 | 12 | 'Dist::Zilla::Plugin::RemovePrereqs' => '0', |
13 | 13 | 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072', |
14 | 'English' => '0', | |
15 | 14 | 'File::Spec' => '0', |
16 | 15 | 'File::Temp' => '0', |
17 | 16 | 'IO::Handle' => '0', |
22 | 21 | 'Test::CPAN::Meta' => '0', |
23 | 22 | 'Test::MinimumVersion' => '0', |
24 | 23 | 'Test::More' => '0', |
24 | 'Test::Perl::Critic' => '0', | |
25 | 25 | 'Test::Pod' => '1.41', |
26 | 26 | 'Test::Pod::Coverage' => '1.08', |
27 | 27 | 'Test::Portability::Files' => '0', |
28 | 28 | 'Test::Spelling' => '0.12', |
29 | 'Test::Version' => '1', | |
30 | 'blib' => '1.01' | |
29 | 'Test::Version' => '1' | |
31 | 30 | } |
32 | 31 | }, |
33 | 32 | 'runtime' => { |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 | |
5 | # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025 | |
5 | # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027 | |
6 | 6 | |
7 | 7 | use Test::More tests => 1; |
8 | 8 | |
67 | 67 | ); |
68 | 68 | |
69 | 69 | # Add static prereqs to the included modules list |
70 | my $static_prereqs = do 't/00-report-prereqs.dd'; | |
70 | my $static_prereqs = do './t/00-report-prereqs.dd'; | |
71 | 71 | |
72 | 72 | # Merge all prereqs (either with ::Prereqs or a hashref) |
73 | 73 | my $full_prereqs = _merge_prereqs( |
77 | 77 | |
78 | 78 | # Add dynamic prereqs to the included modules list (if we can) |
79 | 79 | my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; |
80 | my $cpan_meta_error; | |
80 | 81 | if ( $source && $HAS_CPAN_META |
81 | 82 | && (my $meta = eval { CPAN::Meta->load_file($source) } ) |
82 | 83 | ) { |
83 | 84 | $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); |
84 | 85 | } |
85 | 86 | else { |
87 | $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) | |
86 | 88 | $source = 'static metadata'; |
87 | 89 | } |
88 | 90 | |
168 | 170 | diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; |
169 | 171 | } |
170 | 172 | |
173 | if ( $cpan_meta_error || @dep_errors ) { | |
174 | diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; | |
175 | } | |
176 | ||
177 | if ( $cpan_meta_error ) { | |
178 | my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; | |
179 | diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; | |
180 | } | |
181 | ||
171 | 182 | if ( @dep_errors ) { |
172 | 183 | diag join("\n", |
173 | "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", | |
174 | "The following REQUIRED prerequisites were not satisfied:\n", | |
184 | "\nThe following REQUIRED prerequisites were not satisfied:\n", | |
175 | 185 | @dep_errors, |
176 | 186 | "\n" |
177 | 187 | ); |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
4 | # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.056 | |
4 | # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 | |
5 | 5 | |
6 | 6 | use Test::More; |
7 | 7 | |
45 | 45 | is($?, 0, "$lib loaded ok"); |
46 | 46 | |
47 | 47 | shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ |
48 | and not eval { require blib; blib->VERSION('1.01') }; | |
48 | and not eval { +require blib; blib->VERSION('1.01') }; | |
49 | 49 | |
50 | 50 | if (@_warnings) |
51 | 51 | { |
2 | 2 | use strict; |
3 | 3 | use warnings; |
4 | 4 | |
5 | use Test::More; | |
6 | use English qw(-no_match_vars); | |
7 | ||
8 | eval "use Test::Perl::Critic"; | |
9 | plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; | |
10 | Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; | |
5 | use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc"; | |
11 | 6 | all_critic_ok(); |