st the byte) to each handle. If it comes in on pipe one and
the number is where it should be, it's a 'ok #', if it comes in on that
second pipe, it's a 'not ok #'.
Now that I think about it, though, I'm not sure if this causes problems
or solves problems. :)
Comments?
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
ampering with my
distributions as we speak. This message might not really be from Jon
Rockway :)
On a related note, I sent some patches in to the Crypt::OpenPGP author a
while ago but never heard anything back. Is that module still being
maintained?
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
lways write your own HTML
converter with HTML::TreeBuilder.
I do this in my blog software:
http://trac.jrock.us/trac/blog_software/browser/lib/Blog/Format/HTML.pm
This has the added advantage of allowing you to remove "nasty" HTML, if
that's relevant in your application.
Rega
ts.
I dunno, maybe I *am* overthinking this. It's just TAP. I guess what I
really want is for the perl interpreter to be able to serialize itself
so I can debug failing tests more easily. That's not really a TAP
issue,though :)
Regards,
Jonathan Rockway
Adam Kennedy wrote:
> Whoa whoa w
if i recall correctly, syck doesn't handle utf-8/16. does/will tap
care about that?
That's true -- I think Audrey patched the perl version to work properly,
but I forgot that other languages are without that functionality. Ruby
doesn't properly support Unicode either, so Unicode support pro
till be
acceptable.
OK, you've convinced me. All-YAML TAP isn't a good idea. I might play
with it a little more though, just for fun.
Regards,
Jonathan Rockway
r
and the quoter both misinterpret the interface in the same way.
Things to think about :)
Regards,
Jonathan Rockway
avior, and
99.99% of HTTP users have no idea what an HTTP header even is.)
Regards,
Jonathan Rockway
David Landgren wrote:
demerphq wrote:
On 7/12/06, Smylers <[EMAIL PROTECTED]> wrote:
David Landgren writes:
> Expected and actual has a long tradition in scientific endeavour,
And
ed -- there will be a HTML table or something.
That's the advantage of making these part of the TAP protocol; you won't
have to worry about the semantics of "got" or "expected"... that will
all be handled for you by the parser and then be presented nicely.
To summarize, right now "got" and "expected" are artifacts of Test::More
(etc.), not the TAP protocol.
Regards,
Jonathan Rockway
No worries
about TAP 1.0 vs. TAP 1.1, just download the new Test:Harness from CPAN
and everything will work. Right?
Regards,
Jonathan Rockway
ed, maybe we can hash out a ToC / outline and
submit a proposal to O'Reilly? That would be pretty neat :)
Regards,
Jonathan Rockway
the man page, it looks like isa_ok and can_ok can't even
accept a test description?
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
d accepting an array, anyway? Can't you just do:
can_ok($object, $_, "can object $_?") for @methods;
This would then run (scalar @methods) tests, but I'd think you'd want
that anyway. It doesn't make sense for a test for ->can("foo") to fail
when ->
eason')
Note that in my original post I specified "array" instead of "list" for
a reason :)
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
gle method name. Everyone's happy :)
Time for sleep!
Regards,
Jonathan Rockway
Jonathan Rockway wrote:
>> 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
now I see a third resolution: don't use M::I for CPAN modules.
CPAN (the software) handles dependency installing, it's standard with
perl, good enough. I do like M::I, I just can't think of why it's
really necessary for CPAN modules. (For non-CPAN perl packages, thou
est::More does right now, since can_ok
could now accept a test name.
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
This is partially true, but this is the beginning of a slippery slope
down to:
$i++ # increment $i by one
Things like can_ok($foo, "bar") are obvious on the surface -- but it's
good practice to document why you care that $foo can "bar", right?
Regards,
Jonath
4) Adopt a Perl Mongers group.
None around.
Andy means adopt a PM mailing list. Mention things like the M::I issue
to mongers groups that may not have anyone on perl-qa or the perl6 lists.
--
Jonathan Rockway
is test? :)
Regards,
Jonathan Rockway
chromatic wrote:
> On Wednesday 06 September 2006 02:53, Thomas Klausner wrote:
>
>> - buildtool_not_executable
>> Check if the buildtool (Makefile.PL, Build.PL) are not executable
>> (and thus need to be called with 'perl Build.P
what gets stringified where. Feel free to come up with a
better name than "data" though. (I like it, others don't.)
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
them), but I'll
have a fixed version up tonight.
So don't try the module yet -- I'll send another note to the list when
I'm happy with it :)
Regards,
Jonathan Rockway
(Disclaimer: nothing is broken in the current version, but it does
assume that you're using your native
-Scratch-0.09.tar.gz
>
> has entered CPAN as
>
> file: $CPAN/authors/id/J/JR/JROCKWAY/Directory-Scratch-0.09.tar.gz
> size: 36142 bytes
> md5: 7ae1eb53cbe07a6dcb2b5cba9b9c45ac
Regards,
Jonathan Rockway
Jonathan Rockway wrote:
> BTW, my Directory::Scratch module is meant to
subtests failed.
-
This has the added benefit of restricting this test to the developer --
it's unlikely that end-users of your module care about the TAP comments.
I think this would be pretty easy to implement, too.
Regards,
Jonathan Rockway
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-
ake: Error: -- flex: No such file or directory
I don't have nmake around to see what that does...
"Error" is a common string, but only in English :/ I think the "tee"
mechanism needs to be rethought -- maybe a small wrapper around make
that gets the exit code and prints
I like the "YAML" syntax, but can we live with:
got: |
this is line 1
this is line 2
expected: |
this is line 1
this is line 2
Instead? That way a real YAML parser can parse the output of TAP, which
could be important for adoption by other languages. Rather than require
others to write a TA
e to send test reports from, but don't run an MTA
(Cygwin). If I could HTTP POST the reports somewhere, that would be
good. Plus, if someone starts spamming, you can just shut off their
BitCard account.
My $0.02.
Regards,
Jonathan Rockway
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->
lyst.
However, you will want to check the POD coverage on *your* app. Hence,
you'll set PERL_AUTHORTEST_MYAPP=1 and PERL_AUTHORTEST_CATALYST=0 in
your .profile, and everything will work as expected :)
Regards,
Jonathan Rockway
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->con
osting a message) and then showed the RT
ticket number near the note. I looked at the source and was going to
add this myself, but I've been kinda busy. If there's interest, I'll
submit a patch...
(The hard part will be getting the status back from CPAN RT. I think
the REST interfac
ainly be upset if a module, in the interest of taint safety, set
$ENV{PATH} to qw(/bin /usr/bin) when I wanted to exec a binary
in /usr/libexec/bin instead. It's up to me to know the specific details of
my environment, not a generic module.
Regards,
Jonathan Rockway
--
package JAPH;use Catal
ust want counts, though, this should
be fast.)
Anyway, if anything interesting comes of this I'll let the list know.
Regards,
Jonathan Rockway
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[s
ot;solves everyone's
problems" thing. It's something I hacked together in an hour :)
That said, I am willing to clean it up when I have time, and hopefully
be able to provide a libtap that makes TAP support easy for any language.
Regards,
Jonathan Rockway
--
package JAPH;use Catalys
> There is already a libtap
Ah! Thanks for pointing that out. I was planning a libtap to *parse*
TAP, whereas this libtap *emits* TAP. If necessary, the name could be
changed to libparsetap or something :)
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[
nymore, use x.y.(z+1) instead".
Problems like this might be too late for the 5pan to solve, though. (I'm not
sure I like any of the 6pan proposals, though, so fixing the current CPAN is
not necessarily a bad idea or a waste of time.)
Regards,
Jonathan Rockway
--
package JAPH;use Cat
Clint Moore wrote:
> On 12/4/06, Michael G Schwern <[EMAIL PROTECTED]> wrote:
>>
>> Thanks for reporting this, but its also nice to clean up what you
>> see. It a wiki, edit it.
>>
>
> I had that attitude once. Sort of like when I believed in Santa
> Claus. Then I decided to clean kwiki.org and
Shlomi Fish wrote:
> Maybe I'm missing something, but in your second example, you declare
> $override as a lexical and don't use it anywhere. May I inquire what
> was your real intention?
I'm pretty sure he was trying to do this:
add_user.t
$testing = 1;
add_user(); # prints TAP
do_something_tha
else {
> plan tests => 2;
> }
>
> BEGIN { use_ok('Some::Module') }
>
>
XML::LibXML does this. Attached is a patch to fix it.
Regards,
Jonathan Rockway
--- t/40reader-BROKEN.t 2007-09-15 22:31:56.0 -0500
+++ t/40rea
Michael G Schwern wrote:
> Test::More 0.71 fixed a subtle bug where a call to use_ok() inside a BEGIN
> block without a plan would be silently ignored. That is...
>
>
Found another, File::Finder. Patch to fix this is attached.
Regards,
Jonathan Rockway
ff-useok-fix.t
Descri
> • Solaris::Disk::VTOC (15size2.t)
> • SVN::Notify (html.t)
> • Test::MinimumVersion (pod-coverage.t)
> • Text::Aspell (05-core.t)
> • Text::Capitalize (003-captitle-preserve_whitespace.t)
> • Tuxedo::Admin (1.t)
> • WWW::Ofoto (14-upload_lots.t)
>
Aristotle++. Your metho
use things. I'd argue that this
> means there's a bug in Pod::Simple::Checker and/or Test::Pod, if
> they're looking at stuff in __DATA__.
You might like File::ShareDir for this. That way you can keep the big
data file out of band, and avoid having to maintain a database i
re often people will pay more attention? ;)
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
make authors go to
> multiple places to create and manage their metadata.
>
Yuck. I don't want to release a new dist just to add a tag to my module.
Regards,
Jonathan Rockway
META.yml. Is
the rest worth adding, or is it time to forget about it?)
As for "keywords", can I use those for anything? It would be nice to
replace the manually-generated categories on search.cpan (and other
places) with popular tags. Maybe that's too "web 2.0y" but I th
Ovid wrote:
> Yeah, it's a crappy name. Test::Use? Test::UseOK? Test::UseAllOK,
> Test::JustLoadMyFrigginPackages? :
I'm fine with Test::Load. I immediately guessed what your module did by
the name :)
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
example). You might like
that approach best.
Full details are in &Catalyst::Util::home:
http://search.cpan.org/src/MRAMBERG/Catalyst-Runtime-5.7011/lib/Catalyst/Utils.pm
Hope this helps.
Regards,
Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
in TAP
1.0, then even Test::More::diag('@ BLOCK{1} 1..2') would still be
old-style TAP as far as the new parser is concerned (since it would
print "# @ BLOCK..."). Nifty.
Thoughts?
Regards,
Jonathan Rockway
think the real solution, though, is to agree that the perl interpreter
without all of the core modules installed isn't Perl. (I'm not a big
fan of core modules, but the concept is especially worthless if you
can't depend on their existence.)
Regards,
Jonathan Rockway
. Compare "files_are_valid(@FILES)" to
"file_is_valid($_) for @FILES". Same effect, but with the first one you
can declare the plan in advance. (OK, bad example because you know how
many elements are in @FILES. But the concept still applies.)
Regards,
Jonathan Rockway
distribute this module
on thepiratebay. I will definitely seed the torrent.
Finally, could the C&D letter be made available?
Regards,
Jonathan Rockway
signature.asc
Description: This is a digitally signed message part
the module, not people distributing the
module.
Let's not kill the free software movement by deleting anything that
anyone with a lawyer requests to be deleted.
Regards,
Jonathan Rockway
signature.asc
Description: This is a digitally signed message part
On Tue, 2007-11-27 at 09:25 -0800, chromatic wrote:
> On Tuesday 27 November 2007 08:53:52 Jonathan Rockway wrote:
>
> > What legal precedent is there here? Violating the ToS is the
> > responsibility of the user of the module, not people distributing
the
> > mod
*1) Tangent 1: is is cheaper to pay a lawyer to send out C&Ds, or is it
cheaper to pay a programmer to put a password / captcha on the data they
don't want scraped? I would be (pleasantly) surprised if programmers
are more expensive than lawyers...
> PS: I kept a copy of Time::Cubic if you
Anyway, I think most authors like the reports. Personally, it motivates
me to fix my modules when I know someone is actually trying to use them.
(Smokers are nice too because I can fix my modules before a real person
wastes their time trying to install my broken code :)
Regards,
Jonathan Ro
On Fri, 2008-01-18 at 17:22 -0600, Jonathan Rockway wrote:
> On Fri, 2008-01-18 at 16:57 -0600, Ian Malpass wrote:
> > I got a failure message from CPAN testers for Pod::Extract::URI for
> > 5.11.0 patch 33001 on Linux 2.6.22-3-amd64 (x86_64-linux-thread-multi-ld)[0]
> >
begin differing at:
> # $got->[0] = (?i-xsm:foo)
> # $expected->[0] = (?-xism:foo)
> # Looks like you failed 1 test of 24.
Are you positive you didn't mean to say qr/foo/i ? Are you sure that
$peu->stop_uris should be returning qr/foo/i instead of qr/foo/?
I know
eady in the CPAN?
What's wrong with Module::ScanDeps? It has options for static scanning
(regexing the code, basically) or running the code and inspecting %INC.
Also, it comes with scandeps.pl, so you don't need to write any code.
Regards,
Jonathan Rockway
style
> output format for us Emacs users?
Might as well use M-x rgrep from within emacs.
Regards,
Jonathan Rockway
ling list.
The cpan-testers mailing list is a mailing list that sends *every* cpan
testers report; good for, say, irc bots that announce the results of
testers reports live.
Regards,
Jonathan Rockway
olbox. I think that is more
valuable than comparing Text::Template and TT.
Anyway, no need to worry about what I think. Just add yourself to
Planet Perl and start writing. Instant access to 2000+ readers.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
this thread. His stuff looks
> really good. He pointed me to this (offlist):
>
> http://git.jrock.us/?p=MetaCPAN.git;a=blob_plain;f=HOWTO
BTW, I meant for this to be public... but I didn't pay attention to
where "Reply" sent the mail.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
* On Sun, Apr 06 2008, Gabor Szabo wrote:
> Is there a W3C validator that works locally on my computer?
HTML::Tidy is close.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
hing_else };
if(!$a && !$b){ die 'both alternatives failed!' }
Anyway, automatically setting variables should always be avoided,
regardless of whether or not it is "perlish". I want correct tests, not
"perlish" tests.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
Yeah, auto_install needs to die. The recently-uploaded 0.14 release
kills it :)
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
rated highly for no good reason, or rated that way by
its own author.)
I personally don't care and generally ignore the ratings, but it's the
same thing as Kwalitee, except not even objective.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
xactly what this reason is, but I have a feeling it's "who
cares" or "why should I bother".
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
e, though. This starts being a problem when
you are getting around 10-100 million writes a day, according to the
SQLite docs.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
eate world-writable files... right? That
is much easier than convincing every person on the Internet to do what
you want. It is also easier than convincing every CPAN author to
upgrade MakeMaker.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
m, and it doesn't require
authors to know that this problem exists. Abstraction++
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
* On Wed, Feb 11 2009, Steffen Schwigon wrote:
> "TAP::DOM" is a nice idea. Thank you, too. But although DOM isn't
> strictly associated to XML, most people would probably have this
> connotation in mind
I don't think so. Everyone calls documents-parsed-into-trees-of-objects
DOMs. There is plen
software. Just
another way to abstract away common code.
We don't use Monads in Perl because they only save typing if you have
type inference, and because we don't have the syntax sugar that Haskell
does. We can do the same thing in a different way. (In this case,
block eval works. If we call a method on undef, the block exits,
returning undef.)
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
hat
"never happen" can happen.)
Fortunately this is easy to fix with static analysis, but it is possible
for your program to compile and start running with these errors, only to
die at an undetermined moment. That's never fun -- so testing is needed
even in Haskell programs.
Regar
* On Wed, Feb 25 2009, Michael G Schwern wrote:
> Here's a kind of crappy way to make TAP read from STDIN.
>
> $ prove --exec 'cat -' test.dummy
> test
>
> Now you can write TAP and finish with ctrl-d. But test.dummy has to exist.
I just tried this, and it works without test.dummy existin
* On Wed, Apr 08 2009, Michael G Schwern wrote:
> # Moose
> sub DOES {
> return $_[0]->meta->does_role($_[1]);
> }
>
> # Class::Trait
> sub DOES {
> return $_[0]->does($_[1]);
> }
Why is the Perl 5.10 way ALL CAPS, anyway? DOES is not automatically
called by Perl, is it? (Follow-up quest
* On Mon, Jul 13 2009, Ovid wrote:
> How would Smolder (which we're not using since we use Hudson) help
> with this? With over 15,000 tests being reported for t/aggregate.t, I
> think a drill-down would be problematic here. Plus, tying the TODO to
> the appropriate test file being aggregated is ne
les?
Why use a script at all? They are clearly difficult to test, and code
that is difficult to test is where the bugs always hide.
(Yeah, this is a bit of an old thread, but I am behind on my mailing
list mail :)
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
75 matches
Mail list logo