Skip to content

Commit a97ae54

Browse files
committed
v0.40.0
1 parent 9f6c849 commit a97ae54

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Revision history for Perl module YAML::PP
22

3+
v0.40.0 2026-04-24 16:51:28+02:00
4+
5+
- Security: Limit default allowed maximum nesting level.
6+
Set it via new option 'max_depth'.
7+
38
v0.39.0 2025-02-10 00:01:45+01:00
49

510
- Allow unknown tags again, reverting the previous change in v0.38.1 which

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ my %WriteMakefileArgs = (
5353
"Test::Warn" => 0,
5454
"lib" => 0
5555
},
56-
"VERSION" => "v0.39.0",
56+
"VERSION" => "v0.40.0",
5757
"test" => {
5858
"TESTS" => "t/*.t"
5959
}

dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ license = Perl_5
44
copyright_holder = Tina Müller
55
copyright_year = 2025
66

7-
version = v0.39.0
7+
version = v0.40.0
88

99
[@Filter]
1010
-bundle = @Basic

t/00.compile.t

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use 5.006;
21
use strict;
32
use warnings;
43

5-
# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058
4+
# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.059
65

76
use Test::More;
87

@@ -66,7 +65,7 @@ for my $lib (@module_files)
6665
# see L<perlfaq8/How can I capture STDERR from an external command?>
6766
my $stderr = IO::Handle->new;
6867

69-
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
68+
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'}.$str.q{'} }
7069
$^X, @switches, '-e', "require q[$lib]"))
7170
if $ENV{PERL_COMPILE_TEST_DEBUG};
7271

@@ -91,15 +90,15 @@ foreach my $file (@scripts)
9190
open my $fh, '<', $file or warn("Unable to open $file: $!"), next;
9291
my $line = <$fh>;
9392

94-
close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/;
93+
close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*(?:env )?perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/;
9594
@switches = (@switches, split(' ', $1)) if $1;
9695

9796
close $fh and skip("$file uses -T; not testable with PERL5LIB", 1)
98-
if grep { $_ eq '-T' } @switches and $ENV{PERL5LIB};
97+
if grep $_ eq '-T', @switches and $ENV{PERL5LIB};
9998

10099
my $stderr = IO::Handle->new;
101100

102-
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
101+
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'}.$str.q{'} }
103102
$^X, @switches, '-c', $file))
104103
if $ENV{PERL_COMPILE_TEST_DEBUG};
105104

@@ -113,7 +112,7 @@ foreach my $file (@scripts)
113112
and not eval { +require blib; blib->VERSION('1.01') };
114113

115114
# in older perls, -c output is simply the file portion of the path being tested
116-
if (@_warnings = grep { !/\bsyntax OK$/ }
115+
if (@_warnings = grep !/\bsyntax OK$/,
117116
grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
118117
{
119118
warn @_warnings;
@@ -123,7 +122,6 @@ foreach my $file (@scripts)
123122

124123

125124

126-
is(scalar(@warnings), 0, 'no warnings found')
127-
or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING};
125+
is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING};
128126

129127

0 commit comments

Comments
 (0)