Skip to content

Commit

Permalink
cpan/Test-Simple - Update to version 1.302206
Browse files Browse the repository at this point in the history
1.302206  2024-12-19 17:51:07-08:00 America/Los_Angeles

    - Remove Test::Builder::IO::Scalar
    - Fix #1016

Committer: Update Makefile.SH to reflect removal of lib/Test/Builder/IO.
  • Loading branch information
Chad Granum authored and jkeenan committed Dec 23, 2024
1 parent a919938 commit 8f5aa22
Show file tree
Hide file tree
Showing 216 changed files with 241 additions and 947 deletions.
1 change: 0 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,6 @@ cpan/Test-Harness/t/yamlish-writer.t Test::Harness test
cpan/Test-Simple/lib/ok.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder/Formatter.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder/IO/Scalar.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder/Module.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder/Tester.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test/Builder/Tester/Color.pm Module related to Test::Simple
Expand Down
4 changes: 2 additions & 2 deletions Makefile.SH
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,8 @@ _cleaner2:
-rmdir lib/Test2/Bundle lib/Test2/AsyncSubtest/Event
-rmdir lib/Test2/AsyncSubtest lib/Test2/API/InterceptResult
-rmdir lib/Test2/API lib/Test2 lib/Test/use lib/Test/Tester
-rmdir lib/Test/Builder/Tester lib/Test/Builder/IO lib/Test/Builder
-rmdir lib/Test lib/Term/Table lib/Term lib/TAP/Parser/YAMLish
-rmdir lib/Test/Builder/Tester lib/Test/Builder lib/Test
-rmdir lib/Term/Table lib/Term lib/TAP/Parser/YAMLish
-rmdir lib/TAP/Parser/SourceHandler lib/TAP/Parser/Scheduler
-rmdir lib/TAP/Parser/Result lib/TAP/Parser/Iterator lib/TAP/Parser
-rmdir lib/TAP/Harness lib/TAP/Formatter/File
Expand Down
4 changes: 2 additions & 2 deletions Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,8 @@ package Maintainers;
},

'Test::Simple' => {
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302204.tar.gz',
'SYNCINFO' => 'tib on Mon Sep 16 08:49:09 2024',
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302206.tar.gz',
'SYNCINFO' => 'jkeenan on Mon Dec 23 16:57:46 2024',
'FILES' => q[cpan/Test-Simple],
'EXCLUDED' => [
qr{^examples/},
Expand Down
28 changes: 7 additions & 21 deletions cpan/Test-Simple/lib/Test/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ use 5.006;
use strict;
use warnings;

our $VERSION = '1.302204';

BEGIN {
if( $] < 5.008 ) {
require Test::Builder::IO::Scalar;
}
}
our $VERSION = '1.302206';

use Scalar::Util qw/blessed reftype weaken/;

Expand Down Expand Up @@ -1366,27 +1360,19 @@ sub todo_output {

sub _new_fh {
my $self = shift;
my($file_or_fh) = shift;
my ($file_or_fh) = shift;

my $fh;
if( $self->is_fh($file_or_fh) ) {
if ($self->is_fh($file_or_fh)) {
$fh = $file_or_fh;
}
elsif( ref $file_or_fh eq 'SCALAR' ) {
# Scalar refs as filehandles was added in 5.8.
if( $] >= 5.008 ) {
open $fh, ">>", $file_or_fh
or $self->croak("Can't open scalar ref $file_or_fh: $!");
}
# Emulate scalar ref filehandles with a tie.
else {
$fh = Test::Builder::IO::Scalar->new($file_or_fh)
or $self->croak("Can't tie scalar ref $file_or_fh");
}
elsif (ref $file_or_fh eq 'SCALAR') {
open $fh, ">>", $file_or_fh
or $self->croak("Can't open scalar ref $file_or_fh: $!");
}
else {
open $fh, ">", $file_or_fh
or $self->croak("Can't open test output log $file_or_fh: $!");
or $self->croak("Can't open test output log $file_or_fh: $!");
_autoflush($fh);
}

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/Formatter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test::Builder::Formatter;
use strict;
use warnings;

our $VERSION = '1.302204';
our $VERSION = '1.302206';

BEGIN { require Test2::Formatter::TAP; our @ISA = qw(Test2::Formatter::TAP) }

Expand Down
Loading

0 comments on commit 8f5aa22

Please sign in to comment.