Skip to content

Commit 08c70e1

Browse files
committed
automatic migration: bump-2024
1 parent 73e1ecd commit 08c70e1

File tree

6 files changed

+115
-4
lines changed

6 files changed

+115
-4
lines changed

.github/workflows/linux.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
cip_tag:
20-
- "5.37"
20+
- "5.41"
21+
- "5.40"
22+
- "5.38"
2123
- "5.36"
2224
- "5.34"
2325
- "5.32"

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ FFI-Model-*
22
/.build/
33
*.swp
44

5-
5+
/FFI-Model-*
6+
/.build
7+
*.old
8+
*.orig

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pls.perlcritic.perlcriticrc": "perlcriticrc",
3+
"pls.inc": [
4+
"$ROOT_PATH/lib"
5+
]
6+
}

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# FFI::Model ![static](https://github.com/PerlFFI/FFI-Model/workflows/static/badge.svg) ![linux](https://github.com/PerlFFI/FFI-Model/workflows/linux/badge.svg)
2+
3+
Model for FFI generated code
4+
5+
# AUTHOR
6+
7+
Graham Ollis <[email protected]>
8+
9+
# COPYRIGHT AND LICENSE
10+
11+
This software is copyright (c) 2022-2024 by Graham Ollis.
12+
13+
This is free software; you can redistribute it and/or modify it under
14+
the same terms as the Perl 5 programming language system itself.

dist.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name = FFI-Model
22
author = Graham Ollis <[email protected]>
33
license = Perl_5
44
copyright_holder = Graham Ollis
5-
copyright_year = 2022
5+
copyright_year = 2022-2024
66
version = 0.01
77

88
[@Author::Plicease]
9-
:version = 2.69
9+
:version = 2.79
1010
release_tests = 1
1111
installer = Author::Plicease::MakeMaker
1212
github_user = PerlFFI

t/00_diag.t

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
use Test2::V0 -no_srand => 1;
2+
use Config;
3+
4+
eval { require 'Test/More.pm' };
5+
6+
# This .t file is generated.
7+
# make changes instead to dist.ini
8+
9+
my %modules;
10+
my $post_diag;
11+
12+
$modules{$_} = $_ for qw(
13+
ExtUtils::MakeMaker
14+
Test2::V0
15+
);
16+
17+
18+
19+
my @modules = sort keys %modules;
20+
21+
sub spacer ()
22+
{
23+
diag '';
24+
diag '';
25+
diag '';
26+
}
27+
28+
pass 'okay';
29+
30+
my $max = 1;
31+
$max = $_ > $max ? $_ : $max for map { length $_ } @modules;
32+
our $format = "%-${max}s %s";
33+
34+
spacer;
35+
36+
my @keys = sort grep /(MOJO|PERL|\A(LC|HARNESS)_|\A(SHELL|LANG)\Z)/i, keys %ENV;
37+
38+
if(@keys > 0)
39+
{
40+
diag "$_=$ENV{$_}" for @keys;
41+
42+
if($ENV{PERL5LIB})
43+
{
44+
spacer;
45+
diag "PERL5LIB path";
46+
diag $_ for split $Config{path_sep}, $ENV{PERL5LIB};
47+
48+
}
49+
elsif($ENV{PERLLIB})
50+
{
51+
spacer;
52+
diag "PERLLIB path";
53+
diag $_ for split $Config{path_sep}, $ENV{PERLLIB};
54+
}
55+
56+
spacer;
57+
}
58+
59+
diag sprintf $format, 'perl', "$] $^O $Config{archname}";
60+
61+
foreach my $module (sort @modules)
62+
{
63+
my $pm = "$module.pm";
64+
$pm =~ s{::}{/}g;
65+
if(eval { require $pm; 1 })
66+
{
67+
my $ver = eval { $module->VERSION };
68+
$ver = 'undef' unless defined $ver;
69+
diag sprintf $format, $module, $ver;
70+
}
71+
else
72+
{
73+
diag sprintf $format, $module, '-';
74+
}
75+
}
76+
77+
if($post_diag)
78+
{
79+
spacer;
80+
$post_diag->();
81+
}
82+
83+
spacer;
84+
85+
done_testing;
86+

0 commit comments

Comments
 (0)