Questions about encouraging testers

2009-09-20 Thread craig
Hello module authors, I have a story and 3 questions. The story--- --- Last February I submitted a module to CPAN. Version 0.54 got 16 PASSes, 4 FAILS, and 128 UNKNOWNs. The UNKNOWNs were for 2 reasons: 1. I

Re: Questions about encouraging testers

2009-09-20 Thread craig
On Aug 10, 2009, at 8:27 AM, David Golden wrote: You might want to check out Devel::CheckLib as a tool for your Makefile.PL to check for the library and exit with a helpful error message when the Makefile.PL is run. On Sep 20, 2009, at 6:41 PM, David Golden wrote: On Sun, Sep 20, 2009 at

Why you don't want to use /dev/random for testing

2009-11-10 Thread craig
onds. Anyway, I found it interesting, Craig MacKenna

Fwd: Comparing hashes

2010-01-18 Thread craig
Bruce Gray's reply indicates that your routine, that constructs the array that you were comparing to the "gold" one, was populating the array by using each(%hash). Since the order in which entries are returned is not consistent, you can't use a "known correct" comparison. It seems he even sent y

2 Qs about Module::Build

2010-02-07 Thread craig
Hi, I'm working on my first CPAN module that uses Module::Build. It has an XS component. I can't find an exact correspondent to the OPTIMIZE parameter with ExtUtils::MakeMaker. I can add the optimization I want to the extra_compiler_flags parameter, but the optimization from the Perl build is

Re: 2 Qs about Module::Build

2010-02-10 Thread craig
I'm sorry, I worked through it but forgot to post what the solutions were, for anyone following this as a thread in the future. Restating my Qs with As: Q: How do I block the optimization from the Perl build being included the cc command? I would prefer to leave it in the optimization v

Module::Build question

2010-02-16 Thread craig
Recently I submitted IP::World, my first module using M::B. I think that the standard install process does not syntax check Perl scripts in a scripts folder. Is that right? So I would like to add some tests to one of my test files, involving something like `perl -c scripts/my_script`, and fail i

Re: Module::Build question

2010-02-16 Thread craig
Thanks Jonathan, Test::Script would have filled the bill nicely if it didn't have so many dependencies. I have aborted installations for having than many! So I ended up with the following, which works fine in my test program: my $build = Module::Build->current(); my $tail = $build->is_unixish(

Excluding files from CPAN diff

2010-02-18 Thread craig
Hi module-authors, Is there a way to exclude files from the 'diff' tool on one's module's CPAN page? I like to use this tool to confirm what I've changed from one distribution to the next. My latest one added two big data files, and 'diff' says its results are too big to show. Also the da

Re: Excluding files from CPAN diff

2010-02-18 Thread craig
I'm sorry, but we do not offer a pink unicorn for sale at this time. Thus there is not one in-house to go away. You can see our available unicorns at http://www.animalhead.com/unicorns.html I thought it was a reasonable question, but only a few people like Mr. Koenig or M. Barbie might be able t

Re: Excluding files from CPAN diff

2010-02-19 Thread craig
Assuming you have access to the code and would like to do an obscure good thing in your spare time :-), you could throw in a filter for what gets diffed, based on the -T file test. The code is written in perl, right? cmac On Feb 19, 2010, at 4:25 AM, Barbie wrote: On Thu, Feb 18, 2010 at 05:

Automating installation of a C library

2010-03-01 Thread craig
Hi module authors, I'm working on a module that has an accompanying script that can be scheduled (cron'ed on Unix/Linux) to update its database from the internet. The biggest problem with this, that is not covered by LWP, is that of proxies. I know how to access environment variables plus th

Re: Automating installation of a C library

2010-03-02 Thread craig
The one at work leads to five different proxies plus DIRECT which seems an important distinction. Finding a way to execute the thing would seem the easiest way to select one of these. Thanks for replying, cmac On Mar 2, 2010, at 7:20 AM, David Nicol wrote: how about looking at a few .pac fil

Re: Automating installation of a C library

2010-03-02 Thread craig
Thank you, JE and your patch are the answer to my problem! Someone ought to do something about the fact that JE doesn't come up on a search.cpan.org search for "javascript" until page 12! Might it be possible you could please put a version of HTTP::ProxyPac that uses JE on CPAN? Thanks much, cm

WPAD code

2010-03-02 Thread craig
ositive or negative, please tell me. This is based on http://en.wikipedia.org/wiki/ Web_Proxy_Autodiscovery_Protocol Best Regards, Craig use Sys::Hostname; use LWP::UserAgent; my @pacs = (); # do the WPAD discovery protocol my $ua = LWP::UserAgent->new('timeout' => 30); my ($

Re: WPAD code

2010-03-02 Thread craig
Whoops, thanks, meant to say 'for'. My work proxy never gave me anything in @netWpadAddrs. Redfaced, cmac On Mar 2, 2010, at 7:11 PM, Bruce Gray wrote: On Mar 2, 2010, at 7:44 PM, cr...@animalhead.com wrote: --snip-- while (@netWpadAddrs) { # the proxy answered with (an) IP address(es)

Dynamic prerequisite installation

2010-03-03 Thread craig
Hi module authors, The author of HTTP::ProxyPAC has graciously made me a co-maintainer. What I want to do is to allow the module to be based on either of 2 JavaScript interpreters, JavaScript (based on Mozilla libjs) or JE, so that people who have already started with H:PP version 0.1 and JavaSc

Names and ideas for new modules

2010-03-15 Thread craig
Hi CPAN authors, I'm planning two new CPAN modules if you folks agree they're OK things to do. Someone got excited when I mentioned and posted some WPAD code here a week or two ago, so it may be worthwhile to post it as a module. The second name should probably be WPAD, but what category

Q about prerequisites

2010-03-25 Thread craig
I added LWP::UserAgent to a test, and thought I had it covered by adding LWP to Makefile.PL like this: 'BUILD_REQUIRES' => {'LWP' => 5.834, 'Test::More'=> 0}, One of many smoke-test systems has a problem with this. http://www.cpantesters.org/cpan/report

Re: Q about prerequisites

2010-03-25 Thread craig
Jonathan, David, Aristotle: With such smart and helpful people as you, all problems can be solved. Looking at the test report, EU::MM was only 6.42, which is before it could process BUILD_REQUIRES, which makes David correct in his diagnosis. So I'll put CONFIG_REQUIRES => {EU:MM => 6.56} into M

Re: Q about prerequisites

2010-03-25 Thread craig
all module and has no "sections" that I can think of. What do you mean? Craig On Mar 25, 2010, at 6:10 PM, David Golden wrote: On Thu, Mar 25, 2010 at 7:39 PM, wrote: diagnosis. So I'll put CONFIG_REQUIRES => {EU:MM => 6.56} into Makefile.PL, and check th

Testing problem (32 bit numeric constants?)

2010-04-11 Thread craig
My CPAN module takes an IP4 address as its operand, and checks its operand as follows: 1) if the scalar is 4 bytes long, it's taken as a packed 32-bit binary value, 2) otherwise it is syntax checked as a "dotted quad", as in '1.2.3.4'. An operand that fails these tests results in a return valu

Re: Testing problem (32 bit numeric constants?)

2010-04-11 Thread craig
The subject module IP::World has been up on CPAN for some time. I'm asking two questions relating to a weird test problem, not about IP addresses: Can a Perl be built or conditioned to compile short, unquoted numeric constants into packed numeric values, as the test results suggest has occurred o

Re: Module::Build 0.30 is released - ppm.t on VMS depends on Archive::Tar patch.

2008-10-02 Thread Craig A. Berry
On Wed, Oct 1, 2008 at 12:00 PM, Steve Hay <[EMAIL PROTECTED]> wrote: > Blead is now updated to Archive-Tar-1.39_04 in #34452. > > One local change remains in blead: > > Change 32352 by [EMAIL PROTECTED] on 2007/11/16 23:46:13 > >The new Archive::Tar tests are TODO on VMS for reasons unrel

Re: Module::Build 0.30 is released

2008-10-02 Thread Craig A. Berry
ime time on VMS. > > (ppm.t) > > Change 32351 by [EMAIL PROTECTED] on 2007/11/16 23:43:46 > >Silence ill-behaved or failing Module::Build tests on VMS. > > (test_type.t and xs.t parts only--the tilde.t part appears to have been > superseded by code in 0.30. Please can you

Re: Module::Build 0.30 is released

2008-10-04 Thread Craig A. Berry
On Wed, Oct 1, 2008 at 1:13 PM, Craig A. Berry <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 6:33 AM, Steve Hay <[EMAIL PROTECTED]> wrote: > >> Thanks, applied to bleadperl as 34446. >> >> Two local changes remain: >> >> Change 3

Re: Simulating miniperl (was Re: [ANNOUNCE] ExtUtils::MakeMaker 6.52)

2009-06-06 Thread Craig A. Berry
On Sat, Jun 6, 2009 at 12:28 AM, Michael G Schwern wrote: > I'd like to somehow test for this issue without having to shove MakeMaker into > bleadperl and build it on multiple OS'. [1] To me that sounds easier than the alternatives. How hard would it be to fork blead on github, merge in develop

Re: request to take over modules owned by bhughes

2015-07-05 Thread Craig A. Berry
> On Jul 4, 2015, at 2:33 AM, Neil Bowers wrote: > > Hi Craig, > >> E-mail to b...@tgsmc.com bounces after multiple attempts and >> bhug...@cpan.org seems to be forwarded to that. I posted to the vmsperl >> list last October, where Brad Hughes was active 10+ ye