Skip to content

Commit 8f5aa22

Browse files
Chad Granumjkeenan
Chad Granum
authored andcommitted
cpan/Test-Simple - Update to version 1.302206
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.
1 parent a919938 commit 8f5aa22

File tree

216 files changed

+241
-947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+241
-947
lines changed

MANIFEST

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2528,7 +2528,6 @@ cpan/Test-Harness/t/yamlish-writer.t Test::Harness test
25282528
cpan/Test-Simple/lib/ok.pm Module related to Test::Simple
25292529
cpan/Test-Simple/lib/Test/Builder.pm Module related to Test::Simple
25302530
cpan/Test-Simple/lib/Test/Builder/Formatter.pm Module related to Test::Simple
2531-
cpan/Test-Simple/lib/Test/Builder/IO/Scalar.pm Module related to Test::Simple
25322531
cpan/Test-Simple/lib/Test/Builder/Module.pm Module related to Test::Simple
25332532
cpan/Test-Simple/lib/Test/Builder/Tester.pm Module related to Test::Simple
25342533
cpan/Test-Simple/lib/Test/Builder/Tester/Color.pm Module related to Test::Simple

Makefile.SH

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,8 +1430,8 @@ _cleaner2:
14301430
-rmdir lib/Test2/Bundle lib/Test2/AsyncSubtest/Event
14311431
-rmdir lib/Test2/AsyncSubtest lib/Test2/API/InterceptResult
14321432
-rmdir lib/Test2/API lib/Test2 lib/Test/use lib/Test/Tester
1433-
-rmdir lib/Test/Builder/Tester lib/Test/Builder/IO lib/Test/Builder
1434-
-rmdir lib/Test lib/Term/Table lib/Term lib/TAP/Parser/YAMLish
1433+
-rmdir lib/Test/Builder/Tester lib/Test/Builder lib/Test
1434+
-rmdir lib/Term/Table lib/Term lib/TAP/Parser/YAMLish
14351435
-rmdir lib/TAP/Parser/SourceHandler lib/TAP/Parser/Scheduler
14361436
-rmdir lib/TAP/Parser/Result lib/TAP/Parser/Iterator lib/TAP/Parser
14371437
-rmdir lib/TAP/Harness lib/TAP/Formatter/File

Porting/Maintainers.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,8 @@ package Maintainers;
11101110
},
11111111

11121112
'Test::Simple' => {
1113-
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302204.tar.gz',
1114-
'SYNCINFO' => 'tib on Mon Sep 16 08:49:09 2024',
1113+
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302206.tar.gz',
1114+
'SYNCINFO' => 'jkeenan on Mon Dec 23 16:57:46 2024',
11151115
'FILES' => q[cpan/Test-Simple],
11161116
'EXCLUDED' => [
11171117
qr{^examples/},

cpan/Test-Simple/lib/Test/Builder.pm

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ use 5.006;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '1.302204';
8-
9-
BEGIN {
10-
if( $] < 5.008 ) {
11-
require Test::Builder::IO::Scalar;
12-
}
13-
}
7+
our $VERSION = '1.302206';
148

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

@@ -1366,27 +1360,19 @@ sub todo_output {
13661360

13671361
sub _new_fh {
13681362
my $self = shift;
1369-
my($file_or_fh) = shift;
1363+
my ($file_or_fh) = shift;
13701364

13711365
my $fh;
1372-
if( $self->is_fh($file_or_fh) ) {
1366+
if ($self->is_fh($file_or_fh)) {
13731367
$fh = $file_or_fh;
13741368
}
1375-
elsif( ref $file_or_fh eq 'SCALAR' ) {
1376-
# Scalar refs as filehandles was added in 5.8.
1377-
if( $] >= 5.008 ) {
1378-
open $fh, ">>", $file_or_fh
1379-
or $self->croak("Can't open scalar ref $file_or_fh: $!");
1380-
}
1381-
# Emulate scalar ref filehandles with a tie.
1382-
else {
1383-
$fh = Test::Builder::IO::Scalar->new($file_or_fh)
1384-
or $self->croak("Can't tie scalar ref $file_or_fh");
1385-
}
1369+
elsif (ref $file_or_fh eq 'SCALAR') {
1370+
open $fh, ">>", $file_or_fh
1371+
or $self->croak("Can't open scalar ref $file_or_fh: $!");
13861372
}
13871373
else {
13881374
open $fh, ">", $file_or_fh
1389-
or $self->croak("Can't open test output log $file_or_fh: $!");
1375+
or $self->croak("Can't open test output log $file_or_fh: $!");
13901376
_autoflush($fh);
13911377
}
13921378

cpan/Test-Simple/lib/Test/Builder/Formatter.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package Test::Builder::Formatter;
22
use strict;
33
use warnings;
44

5-
our $VERSION = '1.302204';
5+
our $VERSION = '1.302206';
66

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

0 commit comments

Comments
 (0)