Skip Menu |

This queue is for tickets about the Parse-BACKPAN-Packages CPAN distribution.

Report information
The Basics
Id: 33802
Status: resolved
Priority: 0/
Queue: Parse-BACKPAN-Packages

People
Owner: Nobody in particular
Requestors: a.r.ferreira [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] alternate urls for BACKPAN index and fixed tests
Date: Tue, 4 Mar 2008 15:49:12 -0300
To: bug-Parse-BACKPAN-Packages [...] rt.cpan.org, "Leon Brocard" <acme [...] astray.com>
From: "Adriano Ferreira" <a.r.ferreira [...] gmail.com>
Hi, Leon. You find attached to this message a patch for Parse-BACKPAN-Packages touching the following points: - gzipped content is now handled by LWP::UA - constructor accepts alternate URL for BACKPAN index - backpan.txt can be downloaded from web (http://) or filesystem (file://), gzipped or not - demo included: eg/demo.pl - no live test anymore - t/simple.t uses a frozen small index from file "t/testpan.txt.gz" (fix RT #21759) - caching can be disabled ("no_cache => 1" in constructor) which is a handy feature for testing - support to proxy can be enabled with "use_env_proxy => 1" in constructor (fix RT #18203) besides a tiny refactoring creating methods _new_file and _new_dist which make easier to subclass Parse::BACKPAN::Packages and child packages. The changes has * the patch itself * a demo script (eg/demo.pl) * an embedded (truncated) BACKPAN index (t/backpan.txt.gz) which is now used at tests Best, Adriano Ferreira

Message body is not shown because sender requested not to inline it.

Download testpan.txt.gz
application/x-gzip 11.3k

Message body not shown because it is not plain text.

Message body is not shown because sender requested not to inline it.

Sorry for the massive delay. I've pushed parts of this into Parse-BACKPAN-Packages-0.36.tar.gz which just hit CPAN. 0.36 Mon Nov 16 08:48:45 GMT 2009 - add no_cache option (patch by Adriano Ferreira) - add an example program examples/backpan.pl (patch by Adriano Ferreira) So other bits had been fitted in already and I skipped some bits. Thanks! Leon