Skip to content

Commit

Permalink
Use test_requires
Browse files Browse the repository at this point in the history
Otherwise Module::Build does not find them. Also use nice emoji in the
CI workflow, add links to the GitHub repo and issues to the docs and
README, and update some wayward http URLs to https.

Timestamp for 0.23.4.
  • Loading branch information
theory committed Feb 6, 2024
1 parent dd0a2d2 commit cfdb3ef
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu, macos]
os: [[🐧, ubuntu], [🍎, macos]] # [🪟, windows]
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 }}-latest
name: 🧅 Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }}
runs-on: ${{ matrix.os[1] }}-latest
steps:
- uses: actions/checkout@v4
- name: Setup Perl ${{ matrix.perl }}
Expand Down
18 changes: 9 additions & 9 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ my $build = $class->new(
'List::Util' => '1.20',
'List::MoreUtils' => '0.28',
'namespace::autoclean' => '0.11',
'perl' => 5.014,
'perl' => '5.14.0',
'Plack' => '0.9956',
'Plack::App::File' => 0,
'Plack::Builder' => 0,
Expand All @@ -92,6 +92,14 @@ my $build = $class->new(
'Template::Declare::Tags' => '0.43',
'WWW::PGXN' => '0.12.0',
},
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',
},
meta_merge => {
'meta-spec' => { version => 2 },
resources => {
Expand All @@ -101,14 +109,6 @@ my $build = $class->new(
},
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',
Expand Down
7 changes: 6 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Revision history for Perl extension PGXN::Site

0.23.4
0.23.4 2024-02-06T23:47:18Z
- Fixed the dependency configuration in `Build.PL` so it actually knows
to install modules required for testing. Thanks to Slaven Rezic for the
report!
- Added a link to the GitHub repo and issues to the docs and README.
- Updated some wayward http URLs to https.

0.23.3 2024-02-06T20:20:13Z
- Fixed 404 "Not Found" errors for documentation with uppercase characters
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ community’s distributed collection of Perl software and documentation. But
PostgreSQL’s extensibility is not well-known, and it’s difficult to find the
extensions that do exist. I’d like to solve that problem. Care to help?

Support
-------

This module is stored in an open [GitHub repository]. Feel free to fork and
contribute!

Please file bug reports via [GitHub Issues].

Copyright and License
---------------------

Expand Down Expand Up @@ -60,3 +68,5 @@ enhancements, or modifications.
[extensibility]: https://www.postgresql.org/docs/current/static/extend.html
[CPAN]: https://www.cpan.org/
[PostgreSQL License]: https://www.opensource.org/licenses/postgresql
[GitHub repository]: https://github.com/pgxn/pgxn-site/
[GitHub Issues]: https://github.com/pgxn/pgxn-site/issues/
9 changes: 9 additions & 0 deletions lib/PGXN/Site.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ The PGXN::Site class itself consists of a single class method.
Returns a string representation of the PGXN::Site version.
=head1 Support
This module is stored in an open
L<GitHub repository|https://github.com/pgxn/pgxn-site/>. Feel free to
fork and contribute!
Please file bug reports via
L<GitHub Issues|https://github.com/pgxn/pgxn-site/issues/>.
=head1 Author
David E. Wheeler <david@justatheory.com>
Expand Down
4 changes: 2 additions & 2 deletions lib/PGXN/Site/Locale/en/art.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ PGXN Graphic Identity

![Creative Commons License](https://licensebuttons.net/l/by/4.0/88x31.png)

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License" src="https://licensebuttons.net/l/by/4.0/88x31.png" />
</a>
<br />
The <span xmlns:dct="https://purl.org/dc/terms/" href="https://purl.org/dc/dcmitype/StillImage" property="dct:title" rel="dct:type">PGXN Graphic Identity</span>
by <a xmlns:cc="https://creativecommons.org/ns" href="https://justatheory.com/" property="cc:attributionName" rel="cc:attributionURL">David E. Wheeler</a>,
including the type treatments of the word "PGXN" and the phrase "PostgreSQL
Extension Network", as well as the gear logo, is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
Based on a work at <a xmlns:dct="https://purl.org/dc/terms/" href="https://pgxn.org/art/" rel="dct:source">pgxn.org</a>.
Design by Strongrrl.

Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/download.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/exclamation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/gear-black.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/gear.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/go.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/opened_folder.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/pgxn.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/quote.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/PGXN/Site/ui/img/stop.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cfdb3ef

Please sign in to comment.