The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
CHANGES 07
LICENSE 33
MANIFEST 01
MANIFEST.SKIP 01
META.json 090
META.yml 511
Makefile.PL 2626
README 1011
SIGNATURE 1415
lib/BackPAN/Index.pm 55
lib/Parse/BACKPAN/Packages.pm 11
11 files changed (This is a version diff) 64171
@@ -1,5 +1,12 @@
 Revision history for Perl module BackPAN::Index
 
+0.40  Tue, 01 Mar 2011 11:57:38 +1100
+  Fixes
+  * Using the BackPAN index from gitpan.integra.net which is kept up to date.
+  * Make all the primary keys not null to quiet a new DBIx::Class
+    warning (and its a good idea).
+
+
 0.39  Sat Apr 17 20:17:47 EEST 2010
   Fixes
   * Made compatible with DBIx::Class::Schema::Loader 0.05
@@ -1,4 +1,4 @@
-This software is copyright (c) 2010 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
+This software is copyright (c) 2011 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2010 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
+This software is Copyright (c) 2011 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
 
 This is free software, licensed under:
 
@@ -270,7 +270,7 @@ That's all there is to it!
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2010 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
+This software is Copyright (c) 2011 by Leon Brocard <acme@astray.com> & Michael G Schwern <schwern@pobox.com>.
 
 This is free software, licensed under:
 
@@ -28,4 +28,5 @@ t/Parse-BACKPAN-Packages/simple.t
 t/pod.t
 t/pod_coverage.t
 t/stringify.t
+META.json
 SIGNATURE    Added here by Module::Build
@@ -54,3 +54,4 @@
 
 t/cache/
 ^MYMETA.yml$
+^MYMETA\.json$
@@ -0,0 +1,90 @@
+{
+   "abstract" : "An interface to the BackPAN index",
+   "author" : [
+      "Leon Brocard <acme@astray.com>",
+      "Michael G Schwern <schwern@pobox.com>"
+   ],
+   "dynamic_config" : 1,
+   "generated_by" : "Module::Build version 0.3705, CPAN::Meta::Converter version 2.110440",
+   "license" : [
+      "perl_5"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
+   },
+   "name" : "BackPAN-Index",
+   "prereqs" : {
+      "build" : {
+         "requires" : {
+            "Test::Compile" : "0.11",
+            "Test::More" : "0.90"
+         }
+      },
+      "configure" : {
+         "requires" : {
+            "Module::Build" : "0.37"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "App::Cache" : "0.37",
+            "Archive::Extract" : 0,
+            "CLASS" : "1.00",
+            "CPAN::DistnameInfo" : "0.09",
+            "Class::Accessor::Fast" : 0,
+            "DBD::SQLite" : "1.25",
+            "DBIx::Class" : "0.08109",
+            "DBIx::Class::Schema::Loader" : "0.05003",
+            "LWP::Simple" : 0,
+            "Path::Class" : "0.17",
+            "autodie" : 0,
+            "parent" : 0,
+            "perl" : "5.008001"
+         }
+      }
+   },
+   "provides" : {
+      "BackPAN::Index" : {
+         "file" : "lib/BackPAN/Index.pm",
+         "version" : "0.40"
+      },
+      "BackPAN::Index::Dist" : {
+         "file" : "lib/BackPAN/Index/Dist.pm",
+         "version" : 0
+      },
+      "BackPAN::Index::File" : {
+         "file" : "lib/BackPAN/Index/File.pm",
+         "version" : 0
+      },
+      "BackPAN::Index::Release" : {
+         "file" : "lib/BackPAN/Index/Release.pm",
+         "version" : 0
+      },
+      "BackPAN::Index::Role::AsHash" : {
+         "file" : "lib/BackPAN/Index/Role/AsHash.pm",
+         "version" : 0
+      },
+      "BackPAN::Index::Schema" : {
+         "file" : "lib/BackPAN/Index/Schema.pm",
+         "version" : 0
+      },
+      "Parse::BACKPAN::Packages" : {
+         "file" : "lib/Parse/BACKPAN/Packages.pm",
+         "version" : "0.40"
+      }
+   },
+   "release_status" : "stable",
+   "resources" : {
+      "bugtracker" : {
+         "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-BACKPAN-Packages"
+      },
+      "license" : [
+         "http://dev.perl.org/licenses/"
+      ],
+      "repository" : {
+         "url" : "http://github.com/acme/parse-backpan-packages"
+      }
+   },
+   "version" : "0.40"
+}
@@ -7,8 +7,9 @@ build_requires:
   Test::Compile: 0.11
   Test::More: 0.90
 configure_requires:
-  Module::Build: 0.36
-generated_by: 'Module::Build version 0.3607'
+  Module::Build: 0.37
+dynamic_config: 1
+generated_by: 'Module::Build version 0.3705, CPAN::Meta::Converter version 2.110440'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -17,20 +18,25 @@ name: BackPAN-Index
 provides:
   BackPAN::Index:
     file: lib/BackPAN/Index.pm
-    version: 0.39
+    version: 0.40
   BackPAN::Index::Dist:
     file: lib/BackPAN/Index/Dist.pm
+    version: 0
   BackPAN::Index::File:
     file: lib/BackPAN/Index/File.pm
+    version: 0
   BackPAN::Index::Release:
     file: lib/BackPAN/Index/Release.pm
+    version: 0
   BackPAN::Index::Role::AsHash:
     file: lib/BackPAN/Index/Role/AsHash.pm
+    version: 0
   BackPAN::Index::Schema:
     file: lib/BackPAN/Index/Schema.pm
+    version: 0
   Parse::BACKPAN::Packages:
     file: lib/Parse/BACKPAN/Packages.pm
-    version: 0.39
+    version: 0.40
 requires:
   App::Cache: 0.37
   Archive::Extract: 0
@@ -49,4 +55,4 @@ resources:
   bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-BACKPAN-Packages
   license: http://dev.perl.org/licenses/
   repository: http://github.com/acme/parse-backpan-packages
-version: 0.39
+version: 0.40
@@ -1,31 +1,31 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.3607
+# Note: this file was auto-generated by Module::Build::Compat version 0.37_05
 require 5.008001;
 use ExtUtils::MakeMaker;
 WriteMakefile
 (
-          'test' => {
-                      'TESTS' => 't/*.t t/cache/*.t t/lib/*.t t/Parse-BACKPAN-Packages/*.t'
-                    },
-          'PL_FILES' => {},
-          'INSTALLDIRS' => 'site',
-          'NAME' => 'BackPAN::Index',
-          'EXE_FILES' => [],
-          'VERSION_FROM' => 'lib/BackPAN/Index.pm',
-          'PREREQ_PM' => {
-                           'parent' => '0',
-                           'CLASS' => '1.00',
-                           'DBD::SQLite' => '1.25',
-                           'App::Cache' => '0.37',
-                           'Class::Accessor::Fast' => '0',
-                           'CPAN::DistnameInfo' => '0.09',
-                           'Test::More' => '0.90',
-                           'Archive::Extract' => '0',
-                           'autodie' => '0',
-                           'Test::Compile' => '0.11',
-                           'Path::Class' => '0.17',
-                           'LWP::Simple' => '0',
-                           'DBIx::Class::Schema::Loader' => '0.05003',
-                           'DBIx::Class' => '0.08109'
-                         }
-        )
+  'NAME' => 'BackPAN::Index',
+  'VERSION_FROM' => 'lib/BackPAN/Index.pm',
+  'PREREQ_PM' => {
+                   'App::Cache' => '0.37',
+                   'Archive::Extract' => '0',
+                   'CLASS' => '1.00',
+                   'CPAN::DistnameInfo' => '0.09',
+                   'Class::Accessor::Fast' => '0',
+                   'DBD::SQLite' => '1.25',
+                   'DBIx::Class' => '0.08109',
+                   'DBIx::Class::Schema::Loader' => '0.05003',
+                   'LWP::Simple' => '0',
+                   'Path::Class' => '0.17',
+                   'Test::Compile' => '0.11',
+                   'Test::More' => '0.90',
+                   'autodie' => '0',
+                   'parent' => '0'
+                 },
+  'INSTALLDIRS' => 'site',
+  'EXE_FILES' => [],
+  'PL_FILES' => {},
+  'test' => {
+              'TESTS' => 't/*.t t/cache/*.t t/lib/*.t t/Parse-BACKPAN-Packages/*.t'
+            }
+)
 ;
@@ -43,7 +43,7 @@ METHODS
 
     new() takes some options
 
-    update
+   update
     Because it is rather large, BackPAN::Index caches a copy of the BackPAN
     index and builds a local database to speed access. This flag controls if
     the local index is updated.
@@ -54,31 +54,31 @@ METHODS
     It will always create a new index if one does not exist.
 
     By default the index is cached and checked for updates according to
-    `<$backpan-'cache_ttl>>.
+    "<$backpan-"cache_ttl>>.
 
-    cache_ttl
+   cache_ttl
     How many seconds before checking for an updated index.
 
     Defaults to an hour.
 
-    debug
+   debug
     If true, debug messages will be printed.
 
     Defaults to false.
 
-    releases_only_from_authors
-    If true, only files in the `authors' directory will be considered as
+   releases_only_from_authors
+    If true, only files in the "authors" directory will be considered as
     releases. If false any file in the index may be considered for a
     release.
 
     Defaults to true.
 
-    cache_dir
+   cache_dir
     Location of the cache directory.
 
     Defaults to whatever App::Cache does.
 
-    backpan_index_url
+   backpan_index_url
     URL to the BackPAN index.
 
     Defaults to a sensible location.
@@ -183,6 +183,7 @@ SEE ALSO
     DBIx::Class::ResultSet, BackPAN::Index::File, BackPAN::Index::Release,
     BackPAN::Index::Dist
 
-    Repository: http://github.com/acme/parse-backpan-packages Bugs:
-    http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-BACKPAN-Packages
+    Repository: <http://github.com/acme/parse-backpan-packages> Bugs:
+    <http://rt.cpan.org/Public/Dist/Display.html?Name=Parse-BACKPAN-Packages
+    >
 
@@ -1,5 +1,5 @@
 This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.61.
+signed via the Module::Signature module, version 0.66.
 
 To verify the content in this distribution, first make sure you have
 Module::Signature installed, then type:
@@ -15,22 +15,23 @@ not run its Makefile.PL or Build.PL.
 Hash: SHA1
 
 SHA1 cafef2afb668f8f0628277061a6b8c7ed2efe0c0 Build.PL
-SHA1 194525ab375cf04d19d888eb761c0743d5ab41e8 CHANGES
-SHA1 b331ad50e4d7042fd2fe82ddfb399b021eb4618b LICENSE
-SHA1 1af29c648507bb95631dea34f97d79f4d5033e9d MANIFEST
-SHA1 3aa708cbb2c691597068cf93217c17b41a3508bd MANIFEST.SKIP
-SHA1 cc9be084f050787610b6d606470c281e22e146bb META.yml
-SHA1 eebf1c08ba41ceec45f6d4ae71dbde2e00160e91 Makefile.PL
-SHA1 7c484d22087ad9d96e8480c9d11051631c7a2fd1 README
+SHA1 edba52faf62158826b8a0f8e65238f66ae4dce99 CHANGES
+SHA1 2375e6daabfdfb68d8b70fca48aefc5ea20d0077 LICENSE
+SHA1 26cd98f86b514030eaff085f7c80d482885850da MANIFEST
+SHA1 aeba238517337cb2a84f85e028b1d777c35dfbed MANIFEST.SKIP
+SHA1 73461ef22c0db027d81de3f5c2943f31496eab01 META.json
+SHA1 3e7f86fc9471f3632e956abd96495574c3d685cb META.yml
+SHA1 43a401ee3bda4c82d3f05ebfd28657a6a468b69b Makefile.PL
+SHA1 ff46b51bcaf1032e99fb25638e52ecf176819530 README
 SHA1 2463d9b66c3b8b2b0c53610ed00f62b33d7b9cfd create_backpan_index.pl
 SHA1 5b69ca38217d66bab25b8b4cebcf57de33a4a4dc examples/backpan.pl
-SHA1 8184440e7042afe550c7637baeabb66227e03150 lib/BackPAN/Index.pm
+SHA1 82a6ff9346926a75a61231e9c8375d37b374ed3c lib/BackPAN/Index.pm
 SHA1 a831c962dffe4f7bcf7c63369b3b2ad2aecded1e lib/BackPAN/Index/Dist.pm
 SHA1 da5a857ed197316cab9d32ea41733a78027cff25 lib/BackPAN/Index/File.pm
 SHA1 55c33df814b6349b4191bb9ae36b14501431ec6c lib/BackPAN/Index/Release.pm
 SHA1 9f9cf54710ecf4376ef1ddefd357e19057eb67c8 lib/BackPAN/Index/Role/AsHash.pm
 SHA1 fee34fd451390783f724dcb398c965534ed5d160 lib/BackPAN/Index/Schema.pm
-SHA1 c7c3418daf2b79f69078c2965b85e7f75a892b23 lib/Parse/BACKPAN/Packages.pm
+SHA1 73bdbd044c191cd6be677bcc04428c76df6f0132 lib/Parse/BACKPAN/Packages.pm
 SHA1 64de2488257a5618234b76fe1cfa6bf4b3ef085a t/00compile.t
 SHA1 beebf607ec71c6a0275fd04ed91ed270664488d6 t/00setup.t
 SHA1 fab0e8991f90da29b4fc656d287f0e523eace651 t/Parse-BACKPAN-Packages/simple.t
@@ -45,9 +46,9 @@ SHA1 5cab71a927fc7deaebb2ccf2f0238f3380bcb938 t/pod.t
 SHA1 90287816163957f230293bda2c22ed6a1b3eca8b t/pod_coverage.t
 SHA1 9cc9a02a0909479f0b0c2a0371bfc13d31145f90 t/stringify.t
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.13 (Darwin)
+Version: GnuPG v2.0.16 (Darwin)
 
-iEYEARECAAYFAkvJ7ccACgkQWMohlhD1Qyf2bQCgpsZIqHiaq2+5B5E/1N8meoDi
-BfYAnja8T1N/VQJR6qv4ibO5Yp49ubaX
-=/sfK
+iEYEARECAAYFAk1sRPIACgkQWMohlhD1Qyc+9QCgpcXTAOJz5EN5fYXLX2o/THQo
+OGEAoL2FRKzU/SCa3oBasF2BFkfsz0if
+=U1YP
 -----END PGP SIGNATURE-----
@@ -3,7 +3,7 @@ package BackPAN::Index;
 use strict;
 use warnings;
 
-our $VERSION = '0.39';
+our $VERSION = '0.40';
 
 use autodie;
 use App::Cache 0.37;
@@ -28,7 +28,7 @@ __PACKAGE__->mk_accessors(qw(
 ));
 
 my %Defaults = (
-    backpan_index_url           => "http://www.astray.com/tmp/backpan.txt.gz",
+    backpan_index_url           => "http://gitpan.integra.net/backpan-index.gz",
     releases_only_from_authors  => 1,
     debug                       => 0,
     cache_ttl                   => 60 * 60,
@@ -240,14 +240,14 @@ sub _setup_database {
     my %create_for = (
         files           => <<'SQL',
 CREATE TABLE IF NOT EXISTS files (
-    path        TEXT            PRIMARY KEY,
+    path        TEXT            NOT NULL PRIMARY KEY,
     date        INTEGER         NOT NULL,
     size        INTEGER         NOT NULL CHECK ( size >= 0 )
 )
 SQL
         releases        => <<'SQL',
 CREATE TABLE IF NOT EXISTS releases (
-    path        TEXT            PRIMARY KEY REFERENCES files,
+    path        TEXT            NOT NULL PRIMARY KEY REFERENCES files,
     dist        TEXT            NOT NULL REFERENCES dists,
     date        INTEGER         NOT NULL,
     size        TEXT            NOT NULL,
@@ -260,7 +260,7 @@ SQL
 
         dists           => <<'SQL',
 CREATE TABLE IF NOT EXISTS dists (
-    name                TEXT            PRIMARY KEY,
+    name                TEXT            NOT NULL PRIMARY KEY,
     first_release       TEXT            NOT NULL REFERENCES releases,
     latest_release      TEXT            NOT NULL REFERENCES releases,
     first_date          INTEGER         NOT NULL,
@@ -3,7 +3,7 @@ package Parse::BACKPAN::Packages;
 use strict;
 use warnings;
 
-our $VERSION = '0.39';
+our $VERSION = '0.40';
 
 use parent qw(Class::Accessor::Fast);