Re: Fw: Fixing SKIP:

2006-07-16 Thread Michael G Schwern
On 7/16/06, Jonathan Rockway <[EMAIL PROTECTED]> wrote: I retract my previous comment. My prototype was, in fact, completely bogus :) Let's make that array a reference to a list and everyone will be happy: can_ok($object, [qw(foo bar baz)], 'reason'); Hopefully that works and makes sense. If

Re: Fw: Fixing SKIP:

2006-07-16 Thread Jonathan Rockway
I retract my previous comment. My prototype was, in fact, completely bogus :) Let's make that array a reference to a list and everyone will be happy: can_ok($object, [qw(foo bar baz)], 'reason'); Hopefully that works and makes sense. If !ref $_[1], then just treat it as a single method name.

Re: Fw: Fixing SKIP:

2006-07-16 Thread Jonathan Rockway
> I do not think that prototype means what you think it means. It means what I think it means. Same syntax as we have currently, no. You would have to do this: my @methods = qw(foo bar baz) can_ok($object, @methods, 'reason') Instead of: can_ok($object, qw(foo bar baz), 'reason') Note that i

Re: [Slightly OT] Understanding Software Licences [was Re: Proposal Suggestion - Test::Run [was Re: [Israel.pm] Fwd: Call for proposals -- Perl Foundation Grants]]

2006-07-16 Thread David Landgren
Shlomi Fish wrote: On Friday 07 July 2006 18:39, Andy Lester wrote: Those who disagree with Shlomi on licenses are small-headed and ignorant. Got it. Keep digging that hole, Mr. Fish! That's not what I said or meant. What I meant was that someone here said and I quote: http://www.mail-ar

Re: fetching module version from the command line

2006-07-16 Thread Andreas J. Koenig
> On Mon, 17 Jul 2006 02:24:37 +0200, "A. Pagaltzis" <[EMAIL PROTECTED]> > said: > * Graham Barr <[EMAIL PROTECTED]> [2006-07-17 02:00]: >> perl -MDBI\ 999 >> DBI version 999 required--this is only version 1.50. >> BEGIN failed--compilation aborted. > You can use an equals sign in

Re: fetching module version from the command line

2006-07-16 Thread A. Pagaltzis
* Graham Barr <[EMAIL PROTECTED]> [2006-07-17 02:00]: > perl -MDBI\ 999 > DBI version 999 required--this is only version 1.50. > BEGIN failed--compilation aborted. You can use an equals sign instead of a space, there, which makes it a little easier to type: perl -MDBI=666 -e1 Regards, -- #A

Re: fetching module version from the command line

2006-07-16 Thread Graham Barr
David Wheeler wrote: > On Jul 12, 2006, at 03:41, Gabor Szabo wrote: > >> perl -MModule -e'print $Module::VERSION' > > I have this alias set up: > > function pv () { perl -M$1 -le "print $1->VERSION"; } > > I think that calling ->VERSION is more correct. I am sure this discussion has happene

Re: [ANNOUNCE] Test::Builder/More/Simple 0.64 (Emergency release)

2006-07-16 Thread Steve Peters
On Sun, Jul 16, 2006 at 02:53:08AM -0700, Michael G Schwern wrote: > Miyagawa noticed that the changes to Test::Builder::Tester's > test_fail() in 0.63 broke Test::Exception and probably plenty others. > The change broke backwards compat and should not have been accepted. > Bleadperl has been upg

[ANNOUNCE] Test::Builder/More/Simple 0.64 (Emergency release)

2006-07-16 Thread Michael G Schwern
Miyagawa noticed that the changes to Test::Builder::Tester's test_fail() in 0.63 broke Test::Exception and probably plenty others. The change broke backwards compat and should not have been accepted. So here's an emergency release to fix that. 0.64 Sun Jul 16 02:47:29 PDT 2006 * 0.63's chan

Re: Fw: Fixing SKIP:

2006-07-16 Thread Michael G Schwern
On 7/15/06, Jonathan Rockway <[EMAIL PROTECTED]> wrote: Worse, it's inconsistent with the rest of the API: ok$foo == $bar, $REASON; is$foo, $bar, $REASON; is_deeply $foo, $bar, $REASON; And then this: skip $REASON, $num; Sadly, it would be hard to change that since so many

Re: Fw: Fixing SKIP:

2006-07-16 Thread Michael G Schwern
On 7/15/06, Jonathan Rockway <[EMAIL PROTECTED]> wrote: What's the reasoning behind accepting an array, anyway? Convenience. You almost always use can_ok() with a list of methods. It also makes calculating the plan a little easier for it to be one test. I recall waffling around on the interfa

Re: Fixing SKIP:

2006-07-16 Thread Michael G Schwern
On 7/15/06, Ovid <[EMAIL PROTECTED]> wrote: I don't particularly like that this is a silent failure, but I'm not sure of a robust way to fix that. In any event, I reread the docs a couple of times before I realized I was being stupid. That suggests to me that this little nit could be improve

Re: CPANDB - was: Module::Dependency 1.84

2006-07-16 Thread brian d foy
In article <[EMAIL PROTECTED]>, Adam Kennedy <[EMAIL PROTECTED]> wrote: > Nobody would care about dependencies if they never failed (except for > the issue of installation time). I have a couple of clients that are very skittish about outside dependencies in general. They have to get thrid-part