Skip to content

Commit 681249b

Browse files
authored
Merge pull request #1435 from drgrice1/perltidy-update
Perltidy update
2 parents c978843 + 5341c2d commit 681249b

14 files changed

Lines changed: 29 additions & 28 deletions

File tree

.github/workflows/check-formats.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
image: perl:5.38
1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
- name: Install dependencies
23-
run: cpanm -n Perl::Tidy@20240903
23+
run: cpanm -n Perl::Tidy@20260204
2424
- name: Run perltidy
2525
shell: bash
2626
run: |
@@ -33,11 +33,11 @@ jobs:
3333
runs-on: ubuntu-24.04
3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737
- name: Install Node
38-
uses: actions/setup-node@v4
38+
uses: actions/setup-node@v6
3939
with:
40-
node-version: '20'
40+
node-version: '24'
4141
- name: Install Dependencies
4242
run: cd htdocs && npm ci --ignore-scripts
4343
- name: Check formatting with prettier

.github/workflows/generate-and-publish-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
libpod-parser-perl
2525
2626
- name: Checkout pg code
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
with:
2929
path: pg
3030

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-24.04
1111
steps:
1212
- name: Checkout PG code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Install Ubuntu dependencies
1616
run: |

bin/run-perltidy.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ =head1 OPTIONS
4848

4949
my $pg_root = curfile->dirname->dirname;
5050

51-
die "Version 20240903 of perltidy is required for this script.\nThe installed version is $Perl::Tidy::VERSION.\n"
52-
unless $Perl::Tidy::VERSION == 20240903;
51+
die "Version 20260204 of perltidy is required for this script.\nThe installed version is $Perl::Tidy::VERSION.\n"
52+
unless $Perl::Tidy::VERSION == 20260204;
5353
die "The .perltidyrc file in the pg root directory is not readable.\n"
5454
unless -r "$pg_root/.perltidyrc";
5555

docker/pg.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04
1+
FROM ubuntu:26.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44
ENV DEBCONF_NONINTERACTIVE_SEEN=true
@@ -20,8 +20,8 @@ RUN apt-get update \
2020
liblocale-maketext-lexicon-perl \
2121
libmojolicious-perl \
2222
libtest-mockobject-perl \
23-
libtest2-suite-perl \
2423
libtie-ixhash-perl \
24+
libtypes-serialiser-perl \
2525
libuuid-tiny-perl \
2626
libyaml-libyaml-perl \
2727
make \

lib/Plots/JSXGraph.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ sub HTML {
151151
$self->{JS} //= '';
152152
$plots->{extra_js_code} //= '';
153153

154-
return <<~ "END_HTML";
154+
return <<~"END_HTML";
155155
$divs
156156
<script>
157157
(async () => {
@@ -460,7 +460,7 @@ sub add_multipath {
460460
$self->{JS} .= "];\n";
461461

462462
if ($plotOptions) {
463-
$self->{JS} .= <<~ "END_JS";
463+
$self->{JS} .= <<~"END_JS";
464464
const curve_$curve_name = board.create('curve', [[], []], $plotOptions);
465465
curve_$curve_name.updateDataArray = function () {
466466
this.dataX = [].concat(...$curve_parts_name.map((c) => c.points.map((p) => p.usrCoords[1]))$start_x);
@@ -469,7 +469,7 @@ sub add_multipath {
469469
END_JS
470470
}
471471
if ($fillOptions) {
472-
$self->{JS} .= <<~ "END_JS";
472+
$self->{JS} .= <<~"END_JS";
473473
const fill_$curve_name = board.create('curve', [[], []], $fillOptions);
474474
fill_$curve_name.updateDataArray = function () {
475475
this.dataX = [].concat(...$curve_parts_name.map((c) => c.points.map((p) => p.usrCoords[1])));

lib/Plots/Tikz.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sub new {
3232
# than the pgfplots defaults, but is consistent with where JSXGraph places them, and is better than what pgplots
3333
# does. Axis tick labels are textual elements that should be in front of the things that are drawn and together
3434
# with the "axis descriptions".
35-
$image->addToPreamble( <<~ 'END_PREAMBLE');
35+
$image->addToPreamble(<<~'END_PREAMBLE');
3636
\usepgfplotslibrary{fillbetween}
3737
\newsavebox{\axesBox}
3838
\pgfplotsset{
@@ -330,7 +330,7 @@ sub generate_axes {
330330
# The savebox only actually saves the main layer. All other layers are actually drawn when the savebox is saved.
331331
# So clipping of anything drawn on any other layer has to be done when things are drawn on the other layers. The
332332
# axisclippath is used for this. The main layer is clipped at the end when the savebox is used.
333-
my $tikzCode = <<~ "END_TIKZ";
333+
my $tikzCode = <<~"END_TIKZ";
334334
\\pgfplotsset{set layers=${\($axes->style('axis_on_top') ? 'axis on top' : 'standard')}}%
335335
$grid_color_def
336336
\\savebox{\\axesBox}{
@@ -378,7 +378,7 @@ sub generate_axes {
378378
$tikzCode .= $plotContents;
379379
$tikzCode .= $plots->{extra_tikz_code} if $plots->{extra_tikz_code};
380380

381-
$tikzCode .= <<~ "END_TIKZ";
381+
$tikzCode .= <<~"END_TIKZ";
382382
\\end{axis}
383383
}
384384
\\pgfresetboundingbox

macros/PG.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ sub ENDDOCUMENT {
14901490
'',
14911491
map {
14921492
'<li>' . knowlLink($_, value => pretty_print($PG->{PG_alias}{resource_list}{$_})) . '</li>'
1493-
}
1493+
}
14941494
sort keys %{ $PG->{PG_alias}{resource_list} }
14951495
)
14961496
. '</ul>'

macros/core/PGbasicmacros.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3225,7 +3225,7 @@ sub tag {
32253225
' ',
32263226
map {
32273227
($_ =~ s/_/-/gr) . (defined $attributes{$_} ? ('="' . encode_pg_and_html($attributes{$_})) . '"' : '')
3228-
}
3228+
}
32293229
keys %attributes
32303230
);
32313231

macros/graph/AppletObjects.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ package GeogebraWebAppletBase;
149149
sub new {
150150
my $class = shift;
151151
$class->SUPER::new(
152-
objectText => << 'END_OBJECT_TEXT',
152+
objectText => <<'END_OBJECT_TEXT',
153153
<div id="$appletName"
154154
data-id="$appletName"
155155
data-width="$width"

0 commit comments

Comments
 (0)