Out of the comments generated by a post by grink, I've learned that the location of the distribution's repository can be inserted in the META.yml. Neato!
And when grink asked if someone could come up with a Greasemonkey script to extract that information and show it on the distro's page... well, that's no simian fun I could let pass untackled. The resulting greasemonkey script can be found here.
Installed, but... (Score:1)
Re: (Score:1)
Yeah, from the other thread, here is one:
http://search.cpan.org/dist/ack/ [cpan.org]
META.yml repository HOWTO (Score:1)
with Module::Install, add the following to your Makefile.PL:
resources repository => 'http://...';
with MakeMaker, add the following to WriteMakefile (thanks claes):
EXTRA_META => q{
resources:
repository: http://.../ [...]
},
Re: (Score:1)
...and with Module::Build, it's:
displaying bugtracker, homepage and mailinglist (Score:1)
Why stop the fun at the repository?
I've augmented the original script to display the bugtracker (if different than rt), homepage and mailinglist advertised in the META.yml as well. This version can be found at http://userscripts.org/scripts/show/31748 [userscripts.org].
Re: (Score:1)
Would it be possible to key off something else other than "CPAN Testers"? That particular row doesn't show up unless tests have been run.
Admittedly, it's an edge case, but still...
Here's an example fix:
102c102
< /<tr>\s*<td.*?>CPAN Testers/i,
---
> /<tr>\s*<td.*?>Links/i,
Also, any thought to setting up a github for this script?
Re: (Score:1)
Would it be possible to key off something else other than "CPAN Testers"? That particular row doesn't show up unless tests have been run. Admittedly, it's an edge case, but still...
Good catch. I'll try to fix that as soon as I can. Thanks!
any thought to setting up a github for this script?
Ask, and... well, you know the drill by now. ;-) It's at http://github.com/yanick/greaseyanick/tree/master [github.com]
Re: (Score:1)
Just to say that I finally got around moving the hook off 'Testers' and on a more trustworthy row. I've made the change to the new CPAN_Meta script, though, considering that it supersede the original CPAN_repository. Enjoy! :-)