Skip to content

Commit

Permalink
Promote Data::Peek to requirement, since it's used in cve.pl; Misc mi…
Browse files Browse the repository at this point in the history
…nor fixes in tests and metadata
  • Loading branch information
sjn committed Apr 10, 2024
1 parent b2db33f commit aaa6198
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ MYMETA.json
pm_to_blib
*.tar.gz
*.tgz
*.bak
*.old
*.o
*.c
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ pod2htmd\.tmp
\.perlcriticrc
^CVE\.pm
^cve\.pl
.*~$
.*\.bak$
4 changes: 4 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ unless (exists $ENV{AUTOMATED_TESTING} and $ENV{AUTOMATED_TESTING} == 1) {
push @exe => "scripts/$_->[0]";
}
}

my %wm = (
NAME => "Net::CVE",
DISTNAME => "Net-CVE",
Expand All @@ -35,6 +36,9 @@ my %wm = (
"JSON::MaybeXS" => 1.004005,
"List::Util" => 0,

# cve.pl uses Data::Peek
"Data::Peek" => 0.52,

# For https
"IO::Socket::SSL" => 1.42,

Expand Down
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ requires "HTTP::Tiny" => "0.009";
requires "IO::Socket::SSL" => "1.42";
requires "JSON::MaybeXS" => "1.004005";
requires "List::Util";
requires "Data::Peek" => "0.52";

recommends "Data::Dumper" => "2.188";
recommends "Data::Peek" => "0.52";
recommends "HTTP::Tiny" => "0.088";
recommends "IO::Socket::SSL" => "2.085";

Expand Down
9 changes: 7 additions & 2 deletions xt/10_perm.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

use 5.014002;
use warnings;
use Test::More;

eval "use Test::PAUSE::Permissions";

BEGIN { $ENV{RELEASE_TESTING} = 1; }

eval "use Test::PAUSE::Permissions" if $ENV{RELEASE_TESTING};

plan skip_all => "Test::PAUSE::Permissions required for this test" if $@;

all_permissions_ok ("HMBRAND");

done_testing;

0 comments on commit aaa6198

Please sign in to comment.