Skip to content

Commit

Permalink
Update copyright, metadata, build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Feb 5, 2024
1 parent c4b27ff commit 6308962
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 38 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
perl: [ '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14' ]
perl: [ '5.38', ] # '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14' ]
name: 🐪 Perl ${{ matrix.perl }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -17,8 +17,9 @@ jobs:
with:
perl-version: ${{ matrix.perl }}
- run: perl -V
- run: |-
cpanm -qn Module::Build Software::License
- name: Install dependencies
run: cpanm -vn --installdeps --with-recommends .
- name: Run tests
run: |-
perl Build.PL
PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm -qn'
./Build test
39 changes: 23 additions & 16 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,10 @@ my $build = $class->new(
module_name => 'PGXN::Site',
license => 'postgresql',
script_files => 'bin',
configure_requires => { 'Module::Build' => '0.30', },
configure_requires => { 'Module::Build' => '0.30' },
build_requires => {
'HTTP::Message::PSGI' => 0,
'Module::Build' => '0.30',
'Plack::Test' => 0,
'Software::License' => '0.102340',
'Test::File::Contents' => '0.20',
'Test::More' => '0.70',
'Test::MockModule' => '0.05',
'Text::MultiMarkdown' => '1.000033',
'Module::Build' => '0.30',
'Text::MultiMarkdown' => 0,
},
requires => {
'Carp' => 0,
Expand Down Expand Up @@ -98,19 +92,32 @@ my $build = $class->new(
'Template::Declare::Tags' => '0.43',
'WWW::PGXN' => '0.12.0',
},
test_recommends => {
'HTTP::Request::Common' => '5.824',
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.06',
'Test::XML' => '0.08',
'Test::XPath' => '0.13',
},
meta_merge => {
'meta-spec' => { version => 2 },
resources => {
homepage => 'https://www.pgxn.org/',
bugtracker => 'https://github.com/pgxn/pgxn-site/issues/',
repository => 'https://github.com/pgxn/pgxn-site/',
},
prereqs => {
test => {
requires => {
'HTTP::Message::PSGI' => 0,
'HTTP::Request::Common' => '5.824',
'Plack::Test' => 0,
'Test::File::Contents' => '0.20',
'Test::More' => '0.70',
'Test::MockModule' => '0.05',
}
recommends => {
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.06',
'Test::XML' => '0.08',
'Test::XPath' => '0.13',
'PGXN::API::Searcher' => '0.10.1',
},
},
},
},
);

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extensions that do exist. I’d like to solve that problem. Care to help?
Copyright and License
---------------------

Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.

This module is free software; you can redistribute it and/or modify it under the
[PostgreSQL License].
Expand Down
2 changes: 1 addition & 1 deletion bin/pgxn_site_server
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/Controller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
6 changes: 3 additions & 3 deletions lib/PGXN/Site/Locale.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ our %Lexicon = (
'PGXN Blog' => 'PGXN Blog',
'FAQ' => 'FAQ',
'Frequently Asked Questions' => 'Frequently Asked Questions',
'Release It' => 'Release It',
'Release it on PGXN' => 'Release it on PGXN',
'Release on PGXN' => 'Release on PGXN',
'How to release extensions on PGXN' => 'How to release extensions on PGXN',
code => 'code',
design => 'design',
logo => 'logo',
Expand Down Expand Up @@ -290,7 +290,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/Locale/en.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/Locale/fr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/Router.pm
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
8 changes: 4 additions & 4 deletions lib/PGXN/Site/Templates.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ BEGIN { create_wrapper wrapper => sub {
};
span { class is 'grey'; '|' };
a {
href is 'https://manager.pgxn.org/';
title is T 'Release it on PGXN';
T 'Release It';
href is 'https://manager.pgxn.org/howto';
title is T 'How to release extensions on PGXN';
T 'Release on PGXN';
};
};
span {
Expand Down Expand Up @@ -1687,7 +1687,7 @@ David E. Wheeler <[email protected]>
=head1 Copyright and License
Copyright (c) 2010-2021 David E. Wheeler.
Copyright (c) 2010-2024 David E. Wheeler.
This module is free software; you can redistribute it and/or modify it under
the L<PostgreSQL License|https://www.opensource.org/licenses/postgresql>.
Expand Down
8 changes: 4 additions & 4 deletions t/templates.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use utf8;
use Test::More;
use HTML::TagCloud;
use PGXN::Site;
use HTTP::Request::Common;

BEGIN {
for my $mod (qw(
Test::XML
Test::XPath
HTTP::Request::Common
)) {
eval "use $mod;";
plan skip_all => "$mod required for template testing" if $@;
Expand Down Expand Up @@ -399,9 +399,9 @@ sub test_wrapper {
});
$tx->is('./span[2][@class="grey"]', '|', 'Should have spacer span');
$tx->ok('./a[3]', 'Test third anchor', sub {
$tx->is('./@href', 'https://manager.pgxn.org/', 'Should link to manage.pgxn.org');
$tx->is('./@title', $mt->maketext('Release it on PGXN'), 'Should have link title');
$tx->is('./text()', $mt->maketext('Release It'), 'Should have text "Blog"');
$tx->is('./@href', 'https://manager.pgxn.org/howto', 'Should link to the manager How To');
$tx->is('./@title', $mt->maketext('How to release extensions on PGXN'), 'Should have link title');
$tx->is('./text()', $mt->maketext('Release on PGXN'), 'Should have text "Release on PGXN"');
});
}); # /span.floatLeft

Expand Down

0 comments on commit 6308962

Please sign in to comment.