r77448 - in /branches/upstream/libmodule-corelist-perl/current: Changes MANIFEST META.json META.yml corelist lib/Module/CoreList.pm

carnil at users.alioth.debian.org carnil at users.alioth.debian.org
Fri Jul 15 06:15:46 UTC 2011


Author: carnil
Date: Fri Jul 15 06:15:41 2011
New Revision: 77448

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77448
Log:
[svn-upgrade] new version libmodule-corelist-perl (2.53)

Added:
    branches/upstream/libmodule-corelist-perl/current/META.json
Modified:
    branches/upstream/libmodule-corelist-perl/current/Changes
    branches/upstream/libmodule-corelist-perl/current/MANIFEST
    branches/upstream/libmodule-corelist-perl/current/META.yml
    branches/upstream/libmodule-corelist-perl/current/corelist
    branches/upstream/libmodule-corelist-perl/current/lib/Module/CoreList.pm

Modified: branches/upstream/libmodule-corelist-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/Changes?rev=77448&op=diff
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/Changes (original)
+++ branches/upstream/libmodule-corelist-perl/current/Changes Fri Jul 15 06:15:41 2011
@@ -1,3 +1,6 @@
+2.53 Thu Jul 14 2011
+  - Added release date option '-r' to corelist
+
 2.52 Mon Jul 4  2011
   - [rt.cpan.org #69108] Extraneous modules listed
     reported by Dee Newcum

Modified: branches/upstream/libmodule-corelist-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/MANIFEST?rev=77448&op=diff
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/MANIFEST (original)
+++ branches/upstream/libmodule-corelist-perl/current/MANIFEST Fri Jul 15 06:15:41 2011
@@ -10,3 +10,4 @@
 t/deprecated.t
 t/find_modules.t
 t/pod.t
+META.json                                Module JSON meta-data (added by MakeMaker)

Added: branches/upstream/libmodule-corelist-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/META.json?rev=77448&op=file
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/META.json (added)
+++ branches/upstream/libmodule-corelist-perl/current/META.json Fri Jul 15 06:15:41 2011
@@ -1,0 +1,41 @@
+{
+   "abstract" : "what modules shipped with versions of perl",
+   "author" : [
+      "unknown"
+   ],
+   "dynamic_config" : 1,
+   "generated_by" : "ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001",
+   "license" : [
+      "perl_5"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
+   },
+   "name" : "Module-CoreList",
+   "no_index" : {
+      "directory" : [
+         "t",
+         "inc"
+      ]
+   },
+   "prereqs" : {
+      "build" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : 0
+         }
+      },
+      "configure" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : 0
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "Test::More" : 0
+         }
+      }
+   },
+   "release_status" : "stable",
+   "version" : "2.53"
+}

Modified: branches/upstream/libmodule-corelist-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/META.yml?rev=77448&op=diff
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/META.yml (original)
+++ branches/upstream/libmodule-corelist-perl/current/META.yml Fri Jul 15 06:15:41 2011
@@ -1,21 +1,22 @@
---- #YAML:1.0
-name:               Module-CoreList
-version:            2.52
-abstract:           what modules shipped with versions of perl
-author:  []
-license:            perl
-distribution_type:  module
+---
+abstract: 'what modules shipped with versions of perl'
+author:
+  - unknown
+build_requires:
+  ExtUtils::MakeMaker: 0
 configure_requires:
-    ExtUtils::MakeMaker:  0
-build_requires:
-    ExtUtils::MakeMaker:  0
+  ExtUtils::MakeMaker: 0
+dynamic_config: 1
+generated_by: 'ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001'
+license: perl
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: 1.4
+name: Module-CoreList
+no_index:
+  directory:
+    - t
+    - inc
 requires:
-    Test::More:  0
-no_index:
-    directory:
-        - t
-        - inc
-generated_by:       ExtUtils::MakeMaker version 6.57_05
-meta-spec:
-    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
-    version:  1.4
+  Test::More: 0
+version: 2.53

Modified: branches/upstream/libmodule-corelist-perl/current/corelist
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/corelist?rev=77448&op=diff
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/corelist (original)
+++ branches/upstream/libmodule-corelist-perl/current/corelist Fri Jul 15 06:15:41 2011
@@ -13,6 +13,7 @@
     corelist -v
     corelist [-a|-d] <ModuleName> | /<ModuleRegex>/ [<ModuleVersion>] ...
     corelist [-v <PerlVersion>] [ <ModuleName> | /<ModuleRegex>/ ] ...
+    corelist [-r <PerlVersion>] ...
 
 =head1 OPTIONS
 
@@ -23,26 +24,54 @@
 lists all versions of the given module (or the matching modules, in case you
 used a module regexp) in the perls Module::CoreList knows about.
 
-    corelist -a utf8
-
-    utf8 was first released with perl 5.006
-      5.006      undef
-      5.006001   undef
-      5.006002   undef
-      5.007003   1.00
-      5.008      1.00
-      5.008001   1.02
-      5.008002   1.02
-      5.008003   1.02
-      5.008004   1.03
-      5.008005   1.04
-      5.008006   1.04
-      5.008007   1.05
-      5.008008   1.06
-      5.009      1.02
-      5.009001   1.02
-      5.009002   1.04
-      5.009003   1.06
+    corelist -a Unicode
+
+    Unicode was first released with perl v5.6.2
+      v5.6.2     3.0.1
+      v5.8.0     3.2.0
+      v5.8.1     4.0.0
+      v5.8.2     4.0.0
+      v5.8.3     4.0.0
+      v5.8.4     4.0.1
+      v5.8.5     4.0.1
+      v5.8.6     4.0.1
+      v5.8.7     4.1.0
+      v5.8.8     4.1.0
+      v5.8.9     5.1.0
+      v5.9.0     4.0.0
+      v5.9.1     4.0.0
+      v5.9.2     4.0.1
+      v5.9.3     4.1.0
+      v5.9.4     4.1.0
+      v5.9.5     5.0.0
+      v5.10.0    5.0.0
+      v5.10.1    5.1.0
+      v5.11.0    5.1.0
+      v5.11.1    5.1.0
+      v5.11.2    5.1.0
+      v5.11.3    5.2.0
+      v5.11.4    5.2.0
+      v5.11.5    5.2.0
+      v5.12.0    5.2.0
+      v5.12.1    5.2.0
+      v5.12.2    5.2.0
+      v5.12.3    5.2.0
+      v5.12.4    5.2.0
+      v5.13.0    5.2.0
+      v5.13.1    5.2.0
+      v5.13.2    5.2.0
+      v5.13.3    5.2.0
+      v5.13.4    5.2.0
+      v5.13.5    5.2.0
+      v5.13.6    5.2.0
+      v5.13.7    6.0.0
+      v5.13.8    6.0.0
+      v5.13.9    6.0.0
+      v5.13.10   6.0.0
+      v5.13.11   6.0.0
+      v5.14.0    6.0.0
+      v5.14.1    6.0.0
+      v5.15.0    6.0.0
 
 =item -d
 
@@ -67,6 +96,12 @@
 like C<5.8.8>.)
 
 In module filtering context, it can be used as Perl version filter.
+
+=item -r
+
+lists all of the perl releases and when they were released
+
+If you pass a perl version you get the release date for that version only.
 
 =back
 
@@ -84,10 +119,34 @@
 
 my %Opts;
 
-GetOptions(\%Opts, qw[ help|?! man! v|version:s a! d ] );
+GetOptions(\%Opts, qw[ help|?! man! r|release:s v|version:s a! d ] );
 
 pod2usage(1) if $Opts{help};
 pod2usage(-verbose=>2) if $Opts{man};
+
+if(exists $Opts{r} ){
+    if ( !$Opts{r} ) {
+        print "\nModule::CoreList has release info for the following perl versions:\n";
+        my $versions = { };
+        my $max_ver_len = max_mod_len(\%Module::CoreList::released);
+        for my $ver ( sort keys %Module::CoreList::released ) {
+          printf "%-${max_ver_len}s    %s\n", format_perl_version($ver), $Module::CoreList::released{$ver};
+        }
+        print "\n";
+        exit 0;
+    }
+
+    my $num_r = numify_version( $Opts{r} );
+    my $version_hash = Module::CoreList->find_version($num_r);
+
+    if( !$version_hash ) {
+        print "\nModule::CoreList has no info on perl $Opts{r}\n\n";
+        exit 1;
+    }
+
+    printf "Perl %s was released on %s\n\n", format_perl_version($num_r), $Module::CoreList::released{$num_r};
+    exit 0;
+}
 
 if(exists $Opts{v} ){
     if( !$Opts{v} ) {

Modified: branches/upstream/libmodule-corelist-perl/current/lib/Module/CoreList.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-corelist-perl/current/lib/Module/CoreList.pm?rev=77448&op=diff
==============================================================================
--- branches/upstream/libmodule-corelist-perl/current/lib/Module/CoreList.pm (original)
+++ branches/upstream/libmodule-corelist-perl/current/lib/Module/CoreList.pm Fri Jul 15 06:15:41 2011
@@ -2,7 +2,7 @@
 use strict;
 use vars qw/$VERSION %released %version %families %upstream
 	    %bug_tracker %deprecated/;
-$VERSION = '2.52';
+$VERSION = '2.53';
 
 =head1 NAME
 




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