summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2020-07-04 16:49:29 -0700
committerRuss Allbery <rra@cpan.org>2020-07-04 16:49:29 -0700
commit51fb7da764c44f5e40e52ac35673e887d42f0895 (patch)
treeb809696d552b5e89e8e2b3918cce35fbf1a7a0b6
parent08669ed5286996d5ebca112b6f213f8e1d05b1c6 (diff)
Use List::SomeUtils and List::Util
Replace List::MoreUtils with List::SomeUtils and List::Util, as recommended by Perl::Critic::Freenode.
-rw-r--r--Build.PL2
-rw-r--r--Changes3
-rw-r--r--README2
-rw-r--r--README.md2
-rw-r--r--cpanfile2
-rw-r--r--docs/metadata/requirements2
-rw-r--r--lib/App/DocKnot/Dist.pm3
-rw-r--r--t/data/generate/docknot/output/thread2
8 files changed, 10 insertions, 8 deletions
diff --git a/Build.PL b/Build.PL
index b5e2b03..6ca1e39 100644
--- a/Build.PL
+++ b/Build.PL
@@ -69,7 +69,7 @@ my $build = Module::Build->new(
'IPC::Run' => 0,
'IPC::System::Simple' => 0,
'JSON::MaybeXS' => 0,
- 'List::MoreUtils' => 0,
+ 'List::SomeUtils' => 0,
'Perl6::Slurp' => 0,
'Template' => 0,
perl => '5.024',
diff --git a/Changes b/Changes
index 0f6fc5f..e1c5de5 100644
--- a/Changes
+++ b/Changes
@@ -7,7 +7,8 @@ DocKnot 3.05 (unreleased)
two, ignore the indentation, and increase the threshold for a short
line to 45 characters from 40.
- Depend on JSON::MaybeXS instead of JSON.
+ Depend on JSON::MaybeXS instead of JSON, and List::SomeUtils instead
+ of List::MoreUtils.
Update to rra-c-util 8.3:
diff --git a/README b/README
index 65b5691..7b64426 100644
--- a/README
+++ b/README
@@ -59,7 +59,7 @@ REQUIREMENTS
* IPC::Run
* IPC::System::Simple
* JSON::MaybeXS
- * List::MoreUtils
+ * List::SomeUtils
* Perl6::Slurp
* Template (part of Template Toolkit)
diff --git a/README.md b/README.md
index 88b0138..8fec7fb 100644
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ The following additional Perl modules are required to use it:
* IPC::Run
* IPC::System::Simple
* JSON::MaybeXS
-* List::MoreUtils
+* List::SomeUtils
* Perl6::Slurp
* Template (part of Template Toolkit)
diff --git a/cpanfile b/cpanfile
index 38000bd..c54f6dd 100644
--- a/cpanfile
+++ b/cpanfile
@@ -4,7 +4,7 @@ requires 'IO::Compress::Xz';
requires 'IPC::Run';
requires 'IPC::System::Simple';
requires 'JSON::MaybeXS';
-requires 'List::MoreUtils';
+requires 'List::SomeUtils';
requires 'Perl6::Slurp';
requires 'Template';
diff --git a/docs/metadata/requirements b/docs/metadata/requirements
index 6cdf905..6c137d5 100644
--- a/docs/metadata/requirements
+++ b/docs/metadata/requirements
@@ -7,6 +7,6 @@ The following additional Perl modules are required to use it:
* IPC::Run
* IPC::System::Simple
* JSON::MaybeXS
-* List::MoreUtils
+* List::SomeUtils
* Perl6::Slurp
* Template (part of Template Toolkit)
diff --git a/lib/App/DocKnot/Dist.pm b/lib/App/DocKnot/Dist.pm
index df6e17a..34ee0ad 100644
--- a/lib/App/DocKnot/Dist.pm
+++ b/lib/App/DocKnot/Dist.pm
@@ -27,7 +27,8 @@ use IO::Compress::Xz ();
use IO::Uncompress::Gunzip ();
use IPC::Run qw(run);
use IPC::System::Simple qw(systemx);
-use List::MoreUtils qw(any lastval);
+use List::SomeUtils qw(lastval);
+use List::Util qw(any);
# Base commands to run for various types of distributions. Additional
# variations may be added depending on additional configuration parameters.
diff --git a/t/data/generate/docknot/output/thread b/t/data/generate/docknot/output/thread
index c757303..0e4e46c 100644
--- a/t/data/generate/docknot/output/thread
+++ b/t/data/generate/docknot/output/thread
@@ -102,7 +102,7 @@ The following additional Perl modules are required to use it:
\bullet(packed)[IPC::Run]
\bullet(packed)[IPC::System::Simple]
\bullet(packed)[JSON::MaybeXS]
-\bullet(packed)[List::MoreUtils]
+\bullet(packed)[List::SomeUtils]
\bullet(packed)[Perl6::Slurp]
\bullet(packed)[Template (part of Template Toolkit)]