r61426 - in /branches/upstream/libcpan-meta-perl/current: ./ lib/CPAN/ lib/CPAN/Meta/ t/ t/data/

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Sun Aug 8 07:56:38 UTC 2010


Author: periapt-guest
Date: Sun Aug  8 07:56:17 2010
New Revision: 61426

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=61426
Log:
[svn-upgrade] new version libcpan-meta-perl (2.102160)

Added:
    branches/upstream/libcpan-meta-perl/current/t/data/resources.yml
Modified:
    branches/upstream/libcpan-meta-perl/current/Changes
    branches/upstream/libcpan-meta-perl/current/MANIFEST
    branches/upstream/libcpan-meta-perl/current/META.json
    branches/upstream/libcpan-meta-perl/current/META.yml
    branches/upstream/libcpan-meta-perl/current/Makefile.PL
    branches/upstream/libcpan-meta-perl/current/README
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Converter.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Feature.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/History.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Prereqs.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Spec.pm
    branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Validator.pm
    branches/upstream/libcpan-meta-perl/current/t/converter.t

Modified: branches/upstream/libcpan-meta-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/Changes?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/Changes (original)
+++ branches/upstream/libcpan-meta-perl/current/Changes Sun Aug  8 07:56:17 2010
@@ -1,5 +1,9 @@
 Revision history for CPAN-Meta
 
+2.102160  2010-08-04 12:27:10 EST5EDT
+
+  - Fix bugtracker conversion bug (RT#60017)
+    
 2.101670  2010-06-15 21:02:42 EST5EDT
 
   - converting 1.x 'repository' field now puts converted url into the

Modified: branches/upstream/libcpan-meta-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/MANIFEST?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/MANIFEST (original)
+++ branches/upstream/libcpan-meta-perl/current/MANIFEST Sun Aug  8 07:56:17 2010
@@ -54,6 +54,7 @@
 t/data/META-1_3.yml
 t/data/META-1_4.yml
 t/data/META-2.json
+t/data/resources.yml
 t/data/restricted-2.json
 t/data/restrictive-1_4.yml
 t/load-bad.t

Modified: branches/upstream/libcpan-meta-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/META.json?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/META.json (original)
+++ branches/upstream/libcpan-meta-perl/current/META.json Sun Aug  8 07:56:17 2010
@@ -5,7 +5,7 @@
       "Ricardo Signes <rjbs at cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.101582, CPAN::Meta::Converter version 2.101590",
+   "generated_by" : "Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670",
    "license" : [
       "perl_5"
    ],
@@ -56,7 +56,7 @@
          "web" : "http://github.com/dagolden/cpan-meta"
       }
    },
-   "version" : "2.101670",
+   "version" : "2.102160",
    "x_Dist_Zilla" : {
       "plugins" : [
          {
@@ -77,97 +77,97 @@
          {
             "class" : "Dist::Zilla::Plugin::GatherDir",
             "name" : "@Filter/@Basic/GatherDir",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PruneCruft",
             "name" : "@Filter/@Basic/PruneCruft",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ManifestSkip",
             "name" : "@Filter/@Basic/ManifestSkip",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaYAML",
             "name" : "@Filter/@Basic/MetaYAML",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::License",
             "name" : "@Filter/@Basic/License",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Readme",
             "name" : "@Filter/@Basic/Readme",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ExecDir",
             "name" : "@Filter/@Basic/ExecDir",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ShareDir",
             "name" : "@Filter/@Basic/ShareDir",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MakeMaker",
             "name" : "@Filter/@Basic/MakeMaker",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Manifest",
             "name" : "@Filter/@Basic/Manifest",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::TestRelease",
             "name" : "@Filter/@Basic/TestRelease",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ConfirmRelease",
             "name" : "@Filter/@Basic/ConfirmRelease",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::UploadToCPAN",
             "name" : "@Filter/@Basic/UploadToCPAN",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::AutoPrereq",
             "name" : "@Filter/AutoPrereq",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PkgVersion",
             "name" : "@Filter/PkgVersion",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaConfig",
             "name" : "@Filter/MetaConfig",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaJSON",
             "name" : "@Filter/MetaJSON",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::NextRelease",
             "name" : "@Filter/NextRelease",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
             "name" : "@Filter/PodSyntaxTests",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Repository",
@@ -202,7 +202,7 @@
          {
             "class" : "Dist::Zilla::Plugin::AutoVersion",
             "name" : "AutoVersion",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Push",
@@ -212,35 +212,35 @@
          {
             "class" : "Dist::Zilla::Plugin::MetaResources",
             "name" : "MetaResources",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":InstallModules",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":TestFiles",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExecFiles",
-            "version" : "4.101582"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ShareFiles",
-            "version" : "4.101582"
+            "version" : "4.101900"
          }
       ],
       "zilla" : {
-         "class" : "Dist::Zilla",
+         "class" : "Dist::Zilla::Dist::Builder",
          "config" : {
             "is_trial" : 0
          },
-         "version" : "4.101582"
+         "version" : "4.101900"
       }
    }
 }

Modified: branches/upstream/libcpan-meta-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/META.yml?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/META.yml (original)
+++ branches/upstream/libcpan-meta-perl/current/META.yml Sun Aug  8 07:56:17 2010
@@ -12,7 +12,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.31
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101582, CPAN::Meta::Converter version 2.101590'
+generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -33,7 +33,7 @@
   version: 0.82
 resources:
   repository: http://github.com/dagolden/cpan-meta.git
-version: 2.101670
+version: 2.102160
 x_Dist_Zilla:
   plugins:
     -
@@ -51,79 +51,79 @@
     -
       class: Dist::Zilla::Plugin::GatherDir
       name: '@Filter/@Basic/GatherDir'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PruneCruft
       name: '@Filter/@Basic/PruneCruft'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ManifestSkip
       name: '@Filter/@Basic/ManifestSkip'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaYAML
       name: '@Filter/@Basic/MetaYAML'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::License
       name: '@Filter/@Basic/License'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Readme
       name: '@Filter/@Basic/Readme'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ExecDir
       name: '@Filter/@Basic/ExecDir'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ShareDir
       name: '@Filter/@Basic/ShareDir'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MakeMaker
       name: '@Filter/@Basic/MakeMaker'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Manifest
       name: '@Filter/@Basic/Manifest'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::TestRelease
       name: '@Filter/@Basic/TestRelease'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ConfirmRelease
       name: '@Filter/@Basic/ConfirmRelease'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::UploadToCPAN
       name: '@Filter/@Basic/UploadToCPAN'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::AutoPrereq
       name: '@Filter/AutoPrereq'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PkgVersion
       name: '@Filter/PkgVersion'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaConfig
       name: '@Filter/MetaConfig'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaJSON
       name: '@Filter/MetaJSON'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::NextRelease
       name: '@Filter/NextRelease'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PodSyntaxTests
       name: '@Filter/PodSyntaxTests'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Repository
       name: '@Filter/Repository'
@@ -151,7 +151,7 @@
     -
       class: Dist::Zilla::Plugin::AutoVersion
       name: AutoVersion
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Git::Push
       name: Git::Push
@@ -159,25 +159,25 @@
     -
       class: Dist::Zilla::Plugin::MetaResources
       name: MetaResources
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':InstallModules'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':TestFiles'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExecFiles'
-      version: 4.101582
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ShareFiles'
-      version: 4.101582
+      version: 4.101900
   zilla:
-    class: Dist::Zilla
+    class: Dist::Zilla::Dist::Builder
     config:
       is_trial: 0
-    version: 4.101582
+    version: 4.101900

Modified: branches/upstream/libcpan-meta-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/Makefile.PL?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/Makefile.PL (original)
+++ branches/upstream/libcpan-meta-perl/current/Makefile.PL Sun Aug  8 07:56:17 2010
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
- BEGIN { require 5.006; } 
+BEGIN { require 5.006; }
 
 use ExtUtils::MakeMaker 6.31;
 
@@ -35,7 +35,7 @@
     'autodie' => '0',
     'version' => '0.82'
   },
-  'VERSION' => '2.101670',
+  'VERSION' => '2.102160',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: branches/upstream/libcpan-meta-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/README?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/README (original)
+++ branches/upstream/libcpan-meta-perl/current/README Sun Aug  8 07:56:17 2010
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution CPAN-Meta,
-version 2.101670:
+version 2.102160:
 
   the distribution metadata for a CPAN dist
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta.pm Sun Aug  8 07:56:17 2010
@@ -4,7 +4,7 @@
 use autodie;
 package CPAN::Meta;
 BEGIN {
-  $CPAN::Meta::VERSION = '2.101670';
+  $CPAN::Meta::VERSION = '2.102160';
 }
 # ABSTRACT: the distribution metadata for a CPAN dist
 
@@ -314,7 +314,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Converter.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Converter.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Converter.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Converter.pm Sun Aug  8 07:56:17 2010
@@ -4,7 +4,7 @@
 use autodie;
 package CPAN::Meta::Converter;
 BEGIN {
-  $CPAN::Meta::Converter::VERSION = '2.101670';
+  $CPAN::Meta::Converter::VERSION = '2.102160';
 }
 # ABSTRACT: Convert CPAN distribution metadata structures
 
@@ -542,9 +542,10 @@
   license    => sub { return _is_urlish($_[0]) ? _listify( $_[0] ) : undef },
   homepage   => \&_url_or_drop,
   bugtracker => sub {
-    my $item = @_;
+    my ($item) = @_;
+    return unless $item;
     if ( $item =~ m{^mailto:(.*)$} ) { return { mailto => $1 } }
-    elsif( _is_urlish($item) ) { return { web => $_[0] } }
+    elsif( _is_urlish($item) ) { return { web => $item } }
     else { return undef }
   },
   repository => sub { return _is_urlish($_[0]) ? { url => $_[0] } : undef },
@@ -1242,7 +1243,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Feature.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Feature.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Feature.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Feature.pm Sun Aug  8 07:56:17 2010
@@ -4,7 +4,7 @@
 use autodie;
 package CPAN::Meta::Feature;
 BEGIN {
-  $CPAN::Meta::Feature::VERSION = '2.101670';
+  $CPAN::Meta::Feature::VERSION = '2.102160';
 }
 # ABSTRACT: an optional feature provided by a CPAN distribution
 
@@ -44,7 +44,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 DESCRIPTION
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/History.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/History.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/History.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/History.pm Sun Aug  8 07:56:17 2010
@@ -5,7 +5,7 @@
 use autodie;
 package CPAN::Meta::History;
 BEGIN {
-  $CPAN::Meta::History::VERSION = '2.101670';
+  $CPAN::Meta::History::VERSION = '2.102160';
 }
 # ABSTRACT: history of CPAN Meta Spec changes
 1;
@@ -21,7 +21,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 DESCRIPTION
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Prereqs.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Prereqs.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Prereqs.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Prereqs.pm Sun Aug  8 07:56:17 2010
@@ -4,7 +4,7 @@
 use autodie;
 package CPAN::Meta::Prereqs;
 BEGIN {
-  $CPAN::Meta::Prereqs::VERSION = '2.101670';
+  $CPAN::Meta::Prereqs::VERSION = '2.102160';
 }
 # ABSTRACT: a set of distribution prerequisites by phase and type
 
@@ -151,7 +151,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 DESCRIPTION
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Spec.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Spec.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Spec.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Spec.pm Sun Aug  8 07:56:17 2010
@@ -5,7 +5,7 @@
 use autodie;
 package CPAN::Meta::Spec;
 BEGIN {
-  $CPAN::Meta::Spec::VERSION = '2.101670';
+  $CPAN::Meta::Spec::VERSION = '2.102160';
 }
 # ABSTRACT: specification for CPAN distribution metadata
 1;
@@ -21,7 +21,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Validator.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Validator.pm?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Validator.pm (original)
+++ branches/upstream/libcpan-meta-perl/current/lib/CPAN/Meta/Validator.pm Sun Aug  8 07:56:17 2010
@@ -4,7 +4,7 @@
 use autodie;
 package CPAN::Meta::Validator;
 BEGIN {
-  $CPAN::Meta::Validator::VERSION = '2.101670';
+  $CPAN::Meta::Validator::VERSION = '2.102160';
 }
 # ABSTRACT: validate CPAN distribution metadata structures
 
@@ -840,7 +840,7 @@
 
 =head1 VERSION
 
-version 2.101670
+version 2.102160
 
 =head1 SYNOPSIS
 

Modified: branches/upstream/libcpan-meta-perl/current/t/converter.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/t/converter.t?rev=61426&op=diff
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/t/converter.t (original)
+++ branches/upstream/libcpan-meta-perl/current/t/converter.t Sun Aug  8 07:56:17 2010
@@ -115,5 +115,24 @@
   );
 }
 
+# specific test for upconverting resources
+{
+  my $path = File::Spec->catfile('t','data','resources.yml');
+  my $original = CPAN::Meta->_load_file( $path  );
+  ok( $original, "loaded resources.yml" );
+  my $cmc = CPAN::Meta::Converter->new( $original );
+  my $converted = $cmc->convert( version => 2 );
+  is_deeply(
+    $converted->{resources},
+    { x_MailingList => 'http://groups.google.com/group/www-mechanize-users',
+      x_Repository  => 'http://code.google.com/p/www-mechanize/source',
+      homepage      => 'http://code.google.com/p/www-mechanize/',
+      bugtracker    => {web => 'http://code.google.com/p/www-mechanize/issues/list',},
+      license       => ['http://dev.perl.org/licenses/'],
+    },
+    "upconversion of resources"
+  );
+}
+
 done_testing;
 

Added: branches/upstream/libcpan-meta-perl/current/t/data/resources.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-meta-perl/current/t/data/resources.yml?rev=61426&op=file
==============================================================================
--- branches/upstream/libcpan-meta-perl/current/t/data/resources.yml (added)
+++ branches/upstream/libcpan-meta-perl/current/t/data/resources.yml Sun Aug  8 07:56:17 2010
@@ -1,0 +1,49 @@
+--- #YAML:1.0
+name:               WWW-Mechanize
+version:            1.64
+abstract:           Handy web browsing in a Perl object
+author:
+    - Andy Lester <andy at petdance.com>
+license:            perl
+distribution_type:  module
+configure_requires:
+    ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
+requires:
+    Carp:                 0
+    File::Temp:           0
+    FindBin:              0
+    Getopt::Long:         0
+    HTML::Form:           1.038
+    HTML::HeadParser:     0
+    HTML::Parser:         3.33
+    HTML::TokeParser:     2.28
+    HTTP::Daemon:         0
+    HTTP::Request:        1.3
+    HTTP::Server::Simple:  0.35
+    HTTP::Server::Simple::CGI:  0
+    HTTP::Status:         0
+    LWP:                  5.829
+    LWP::UserAgent:       5.829
+    perl:                 5.008
+    Pod::Usage:           0
+    Test::More:           0.34
+    Test::Warn:           0.11
+    URI:                  1.36
+    URI::file:            0
+    URI::URL:             0
+resources:
+    bugtracker:   http://code.google.com/p/www-mechanize/issues/list
+    homepage:     http://code.google.com/p/www-mechanize/
+    license:      http://dev.perl.org/licenses/
+    MailingList:  http://groups.google.com/group/www-mechanize-users
+    Repository:   http://code.google.com/p/www-mechanize/source
+no_index:
+    directory:
+        - t
+        - inc
+generated_by:       ExtUtils::MakeMaker version 6.56
+meta-spec:
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
+    version:  1.4




More information about the Pkg-perl-cvs-commits mailing list