This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Config-Perl-V to CPAN version 0.23
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Wed, 11 Feb 2015 14:26:13 +0000 (14:26 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Wed, 11 Feb 2015 14:26:13 +0000 (14:26 +0000)
  [DELTA]

0.23  - 11 Feb 2015, H.Merijn Brand
    * Update copyright to 2015
    * Add summary tests
    * Remove perl recommendation from META as it breaks cpan clients
    * Move repo to github

Porting/Maintainers.pl
cpan/Config-Perl-V/V.pm
cpan/Config-Perl-V/t/10_base.t

index 1ca8b9d..9fc9f1c 100755 (executable)
@@ -220,7 +220,7 @@ use File::Glob qw(:case);
     },
 
     'Config::Perl::V' => {
-        'DISTRIBUTION' => 'HMBRAND/Config-Perl-V-0.22.tgz',
+        'DISTRIBUTION' => 'HMBRAND/Config-Perl-V-0.23.tgz',
         'FILES'        => q[cpan/Config-Perl-V],
         'EXCLUDED'     => [qw(
                examples/show-v.pl
index 4cbf6fe..a922a75 100644 (file)
@@ -8,7 +8,7 @@ use warnings;
 use Config;
 use Exporter;
 use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS);
-$VERSION     = "0.22";
+$VERSION     = "0.23";
 @ISA         = ("Exporter");
 @EXPORT_OK   = qw( plv2hash summary myconfig signature );
 %EXPORT_TAGS = (
@@ -534,7 +534,7 @@ H.Merijn Brand <h.m.brand@xs4all.nl>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2009-2014 H.Merijn Brand
+Copyright (C) 2009-2015 H.Merijn Brand
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
index a0a220c..6113828 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 BEGIN {
     use Test::More;
-    my $tests = 9;
+    my $tests = 12;
     unless ($ENV{PERL_CORE}) {
        require Test::NoWarnings;
        Test::NoWarnings->import ();
@@ -21,6 +21,11 @@ ok (my $conf = Config::Perl::V::myconfig,    "Read config");
 ok (exists $conf->{$_},        "Has $_ entry") for qw( build environment config inc );
 is (lc $conf->{build}{osname}, lc $conf->{config}{osname}, "osname");
 
+# Test summary
+ok (my $info1 = Config::Perl::V::summary ($conf), "Get a summary for \$conf");
+ok (my $info2 = Config::Perl::V::summary,         "Get a summary for \$^X");
+is_deeply ($info1, $info2, "Info should match");
+
 SKIP: {
     # Test that the code that shells out to perl -V and parses the output
     # gives the same results as the code that calls Config::* routines directly.