Skip to content

Commit

Permalink
Fix and require 5.14
Browse files Browse the repository at this point in the history
Fixed issues breaking on perl 5.14

Bumped minimum version to 5.14. I did this because I cannot install all
required dependency on older perls. It *may* work on older perls, but I
cannot easily test them, so I am cutting things off at 5.14.

If anyone needs this module on older perls I will accept patches.
  • Loading branch information
exodist committed Jul 31, 2024
1 parent a37957d commit 16d8e38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{$NEXT}}

- Fix 5.14
- Bump min perl to 5.14

2.000001 2024-07-31 09:30:20-07:00 America/Los_Angeles (TRIAL RELEASE)

- Fix some test issues
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repository.url = https://github.com/Test-More/Test2-Harness/
repository.type = git

[Prereqs]
perl = 5.010000
perl = 5.014000
base = 0
constant = 0
goto::file = 0.005
Expand Down
1 change: 1 addition & 0 deletions lib/App/Yath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ sub process_args {
for my $set (['yath', 'plugins', 'App::Yath::Plugin'], ['renderer', 'classes', 'App::Yath::Renderer'], ['resource', 'classes', 'App::Yath::Resource']) {
my ($group, $field, $type) = @$set;
next unless $module->isa($type);
$settings->$group->option($field => {}) unless $settings->$group->$field;
my $args = $settings->$group->$field->{$module} //= [];
next unless $module->can('args_from_settings');
push @$args => $module->args_from_settings(settings => $settings, args => $args, group => $group, field => $field, type => $type);
Expand Down
2 changes: 2 additions & 0 deletions lib/App/Yath/Plugin/Cover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,13 @@ sub post_process {
my $cover_class = $cover->class // 'Test2::Plugin::Cover';

eval { require(mod2file($cover_class)); 1 } or die "Could not enable file coverage, could not load '$cover_class': $@";
$tests->option(load_import => {}) unless $tests->load_import;
push @{$tests->load_import->{'@'}} => $cover_class;
$tests->load_import->{$cover_class} = [];

if ($settings->check_group('runner')) {
my $runner = $settings->runner;
$runner->option(preload_early => {}) unless $runner->preload_early;
unshift @{$runner->preload_early->{'@'}} => $cover_class;
$runner->preload_early->{$cover_class} = [disabled => 1];
}
Expand Down

0 comments on commit 16d8e38

Please sign in to comment.