From 15de0de4ae4c1a9c226b26d89a114a68809bdf52 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 21 Jan 2024 22:15:50 +0900 Subject: Make sure to stringify version --- lib/Parse/PMFile.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Parse/PMFile.pm b/lib/Parse/PMFile.pm index 11736d7..cbea781 100644 --- a/lib/Parse/PMFile.pm +++ b/lib/Parse/PMFile.pm @@ -462,6 +462,7 @@ sub _packages_per_pmfile { length($ppp->{$pkg}{version}); } $ppp->{$pkg}{filemtime} = $filemtime; + $ppp->{$pkg}{version} .= ""; # make sure to stringify version } else { # $self->_verbose(2,"no pkg found"); } -- cgit v1.2.3 From d6a2ec48db6a0d5f8279d0f877adabcdc370426f Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 21 Jan 2024 22:18:23 +0900 Subject: Add github actions --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/build_mac.yml | 24 ++++++++++++++++++++++++ .github/workflows/build_windows.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 22 ---------------------- 4 files changed, 87 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/build_mac.yml create mode 100644 .github/workflows/build_windows.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9ae21c1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: build + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + runs-on: ubuntu-latest + + strategy: + matrix: + perl-version: + - '5.8' + - '5.10' + - '5.18' + - '5.20' + - '5.26' + - 'latest' + + container: + image: perl:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v1 + - name: perl -V + run: perl -V + - name: Install dependencies + run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --show-build-log-on-failure + - name: Run tests + run: perl Makefile.PL && make && make test diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml new file mode 100644 index 0000000..2d9e7f0 --- /dev/null +++ b/.github/workflows/build_mac.yml @@ -0,0 +1,24 @@ +name: build_mac + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@master + - name: perl -V + run: perl -V + - name: Install dependencies with develop + run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure + - name: Run Makefile.PL + run: perl Makefile.PL + - name: Run tests + run: make && make test diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml new file mode 100644 index 0000000..1cc197a --- /dev/null +++ b/.github/workflows/build_windows.yml @@ -0,0 +1,28 @@ +name: build_windows + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + runs-on: windows-latest + + steps: + - uses: actions/checkout@master +# - name: Set up Perl +# run: | +# choco install strawberryperl +# echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" + - name: perl -V + run: perl -V + - name: Install dependencies with develop + run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure + - name: Run Makefile.PL + run: perl Makefile.PL + - name: Run tests + run: gmake test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7610fa0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: perl -perl: - - 5.22 - - "5.20" - - 5.18 - - 5.16 - - 5.14 - - 5.12 - - "5.10" - - 5.8 -before_install: - - perlbrew install-cpanm -f -install: - - cpanm -nq --installdeps --with-develop --with-recommends --with-suggests . -script: - - prove -lr t xt - - cpanm -nq version - - prove -lr t xt -env: - - PERL5LIB= - - PERL5LIB=t/fatlib_9909 - - PERL5LIB=t/fatlib_9913 -- cgit v1.2.3 From 1d9f0e6d934fd7d302d9d87dd57b5925a53bc59e Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 21 Jan 2024 22:21:20 +0900 Subject: Requires better Test::More --- cpanfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpanfile b/cpanfile index 214f5a2..b8b4226 100644 --- a/cpanfile +++ b/cpanfile @@ -8,7 +8,7 @@ configure_requires 'ExtUtils::MakeMaker::CPANfile' => '0.07'; on test => sub { requires 'File::Temp' => '0.19'; # newdir - requires 'Test::More' => '0.88'; + requires 'Test::More' => '0.94'; }; on develop => sub { -- cgit v1.2.3 From 0f2fe6d15e47d13545c6c233b11dc6bd02d6ce8e Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 21 Jan 2024 22:29:08 +0900 Subject: Release 0.45 --- Changes | 3 +++ lib/Parse/PMFile.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 15712db..ee6f950 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Parse-PMFile +0.45 2024/01/21 + - Make sure to stringify versions so that they are quoted when they are encoded in JSON + 0.44 2023/04/27 - Allow to parse class|role NAME VERSION diff --git a/lib/Parse/PMFile.pm b/lib/Parse/PMFile.pm index cbea781..af4f705 100644 --- a/lib/Parse/PMFile.pm +++ b/lib/Parse/PMFile.pm @@ -10,7 +10,7 @@ use Dumpvalue; use version (); use File::Spec (); -our $VERSION = '0.44'; +our $VERSION = '0.45'; our $VERBOSE = 0; our $ALLOW_DEV_VERSION = 0; our $FORK = 0; -- cgit v1.2.3