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.
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.