NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Doing it from ExtUtils::MakeMaker (Score:1)
Reply to This
Re: (Score:1)
Eric, Alias, & claes
This is good stuff. It's great that there's already a convention for it.
Maybe a bookmarklet or greasmonkey script could bring this feature to the forefront.
Re: (Score:1)
Ask, and thou shalt receive: http://userscripts.org/scripts/show/31660 [userscripts.org]. Enjoy! :-)
Re: (Score:1)
Wow, that's frickin' sweet!
I made /repository:\s+(\S+)/ case insensitive by adding the /i at the end: /repository:\s+(\S+)/i
Cheers
Re: (Score:1)
Wow, that's frickin' sweet!
*g* Thanks.
[ //i ]
Not a bad idea. I'll add it to the next iteration of the script!
Re: (Score:1)
Yeah, I forgot to mention I changed it so it would work with Alias's example:
http://search.cpan.org/dist/ack/ [cpan.org]
Re: (Score:1)
Andy breaking the specs? Tsk, tsk, tsk... ;-)
This being said, the script has been updated and will match on any capitalization of rEpOSitory now. Thanks again for pointing this out!
Re: repository (Score:1)
From my reading, 'repository' is an official key in the standard, so shouldn't need to be case insensitive. Are there dists using 'Repository'?
Re: (Score:1)
Yes, Alias's example has 'Repository' instead of 'repository'
http://search.cpan.org/dist/ack/ [cpan.org]
As for being an official key, that may be true, but I can't think of a good case where TPTB would want to differentiate between a Repository: or repository: or rEpOsitOry: or whatever (so case insensitivity shouldn't hurt).
Re: (Score:1)
Hmm, either Andy was ahead of his time or not reading carefully enough.
As for being an official key, that may be true, but I can't think of a good case ... so case insensitivity shouldn't hurt.
Well, hash-lookups are case sensitive. If we're going to get into a case-insensitive-preserving behavior with META.yml, that could get frustrating really quick. And generally, with regard to standards: "couldn't hurt" ... will.
Re: (Score:1)
You're right, a hash lookup would be problematic.
Maybe we can help people out by issuing warnings about their META. Some things that could help:
1. A META validator
2. A standard way of generating META during the dist build/ship process
Re: (Score:1)
1. A META validator
That would make a fine cpan module... possibly a kwalitee point?
2. A standard way of generating META during the dist build/ship process
Well, M::B already does a lot of that. I suppose it either needs to provide validation on the meta_merge or a nicer way to specify such things (extracted from standard sections in the pod would be nice too.)