diff --git a/.gitignore b/.gitignore index 297e291..a19a67c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ MYMETA.json pm_to_blib *.tar.gz *.tgz +*.bak *.old *.o *.c diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index f80375e..0b8532f 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -30,3 +30,5 @@ pod2htmd\.tmp \.perlcriticrc ^CVE\.pm ^cve\.pl +.*~$ +.*\.bak$ diff --git a/Makefile.PL b/Makefile.PL index f24f7cb..baabd7c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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", @@ -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, diff --git a/cpanfile b/cpanfile index 97c5b09..9ea6026 100644 --- a/cpanfile +++ b/cpanfile @@ -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"; diff --git a/xt/10_perm.t b/xt/10_perm.t index 8f3fe83..31ebb1a 100644 --- a/xt/10_perm.t +++ b/xt/10_perm.t @@ -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;