Skip to content

Commit

Permalink
update CPAN::Meta::Check in fatlib
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Apr 26, 2024
1 parent 79e8ddd commit 2e36d6f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions App-cpanminus/fatlib/CPAN/Meta/Check.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package CPAN::Meta::Check;
$CPAN::Meta::Check::VERSION = '0.014';
# vi:noet:sts=2:sw=2:ts=2
$CPAN::Meta::Check::VERSION = '0.018';
use strict;
use warnings;

Expand All @@ -8,14 +9,14 @@ our @EXPORT = qw//;
our @EXPORT_OK = qw/check_requirements requirements_for verify_dependencies/;
our %EXPORT_TAGS = (all => [ @EXPORT, @EXPORT_OK ] );

use CPAN::Meta::Prereqs '2.132830';
use CPAN::Meta::Prereqs 2.132830;
use CPAN::Meta::Requirements 2.121;
use Module::Metadata 1.000023;

sub _check_dep {
my ($reqs, $module, $dirs) = @_;

$module eq 'perl' and return ($reqs->accepts_module($module, $]) ? () : sprintf "Your Perl (%s) is not in the range '%s'", $], $reqs->requirements_for_module($module));
return $reqs->accepts_module($module, $]) ? () : sprintf "Your Perl (%s) is not in the range '%s'", $], $reqs->requirements_for_module($module) if $module eq 'perl';

my $metadata = Module::Metadata->new_from_module($module, inc => $dirs);
return "Module '$module' is not installed" if not defined $metadata;
Expand Down Expand Up @@ -80,7 +81,7 @@ CPAN::Meta::Check - Verify requirements in a CPAN::Meta object
=head1 VERSION
version 0.014
version 0.018
=head1 SYNOPSIS
Expand Down Expand Up @@ -114,8 +115,6 @@ This function returns a unified L<CPAN::Meta::Requirements|CPAN::Meta::Requireme
=item * L<CPAN::Meta|CPAN::Meta>
=for comment # vi:noet:sts=2:sw=2:ts=2
=back
=head1 AUTHOR
Expand Down

0 comments on commit 2e36d6f

Please sign in to comment.