diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm b/Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm index 7888d1c3cb8..56eecb45290 100644 --- a/Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm +++ b/Master/tlpkg/tlperl/lib/Parse/CPAN/Meta.pm @@ -2,7 +2,8 @@ use 5.008001; use strict; package Parse::CPAN::Meta; # ABSTRACT: Parse META.yml and META.json CPAN metadata files -our $VERSION = '1.4414'; # VERSION + +our $VERSION = '1.4417_001'; use Exporter; use Carp 'croak'; @@ -55,7 +56,7 @@ sub load_json_string { } sub yaml_backend { - if (! defined $ENV{PERL_YAML_BACKEND} ) { + if ($ENV{PERL_CORE} or not defined $ENV{PERL_YAML_BACKEND} ) { _can_load( 'CPAN::Meta::YAML', 0.011 ) or croak "CPAN::Meta::YAML 0.011 is not available\n"; return "CPAN::Meta::YAML"; @@ -71,7 +72,7 @@ sub yaml_backend { } sub json_backend { - if (! $ENV{PERL_JSON_BACKEND} or $ENV{PERL_JSON_BACKEND} eq 'JSON::PP') { + if ($ENV{PERL_CORE} or ! $ENV{PERL_JSON_BACKEND} or $ENV{PERL_JSON_BACKEND} eq 'JSON::PP') { _can_load( 'JSON::PP' => 2.27103 ) or croak "JSON::PP 2.27103 is not available\n"; return 'JSON::PP'; @@ -110,12 +111,12 @@ sub _can_load { # Kept for backwards compatibility only # Create an object from a file -sub LoadFile ($) { +sub LoadFile ($) { ## no critic return Load(_slurp(shift)); } # Parse a document from a string. -sub Load ($) { +sub Load ($) { ## no critic require CPAN::Meta::YAML; my $object = eval { CPAN::Meta::YAML::Load(shift) }; croak $@ if $@; @@ -136,7 +137,7 @@ Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files =head1 VERSION -version 1.4414 +version 1.4417 =head1 SYNOPSIS @@ -283,7 +284,7 @@ will be thrown. =head2 Bugs / Feature Requests Please report any bugs or feature requests through the issue tracker -at L<http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-CPAN-Meta>. +at L<https://github.com/Perl-Toolchain-Gang/Parse-CPAN-Meta/issues>. You will be notified automatically of any progress on your issue. =head2 Source Code @@ -311,6 +312,8 @@ David Golden <dagolden@cpan.org> =head1 CONTRIBUTORS +=for stopwords Graham Knop Joshua ben Jore Karen Etheridge Neil Bowers Ricardo Signes Steffen Mueller + =over 4 =item * @@ -323,6 +326,10 @@ Joshua ben Jore <jjore@cpan.org> =item * +Karen Etheridge <ether@cpan.org> + +=item * + Neil Bowers <neil@bowers.com> =item * @@ -337,7 +344,7 @@ Steffen Mueller <smueller@cpan.org> =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2014 by Adam Kennedy and Contributors. +This software is copyright (c) 2015 by Adam Kennedy and Contributors. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. |