Dave Rolsky wrote:
The first alpha release has been uploaded to PAUSE and should be on a CPAN mirror near you sometime soon. I've also asked to register the DateTime namespace (but no others yet).
Huzzah! And there was great rejoicing!
I don't like the fact that I have to install DateTime::TimeZone blind (i.e. no testing) before I can test/install DateTime. I would much rather that some way be found to include a skeleton DT::TZ that can be included in DT just for testing, so that it can be installed first. Then the full DT::TZ could be installed. I'll look at your test scripts and see what I can come up with.Please try them out and let me know what you think, what bugs you find, etc.
A trivial NULL subclass works without a single failure. I am trying to think of a clever way to rewrite your tests so that any subclass intending to be a full replacement need only run the full DT testsuite to demonstrate compliance. Currently it involves replacing:There's still lots left to do but what is written so far seems to work reasonably well, so getting it out there into people's hands seems like a good idea.
use DateTime;
with
eval "use $CLASS";
where $CLASS is suitably set beforehand. I suspect there is some way to get the Makefile.PL to automatically predefine a variable to pass to the testfiles to automate this; I'll dig deeper into ExtUtils::MakeMaker and see what I find...
Good work!
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
