rjbs / Pod-Weaver

recombine pod documents into awesomer pod documents
26 stars 28 forks source link

Added ability for Pod::Weaver to determine NAME section from filenames f... #31

Closed brad-mac closed 3 years ago

brad-mac commented 9 years ago

...or non-module (i.e. script) files.

Hi Ricardo,

I think this addresses issue #29 - I hit the same one recently with a distribution I'm converting to use Dist::Zilla. I've included a test script as well, copied and modified from one of the existing tests.

Hope this helps!

Cheers

Brad

kentfredric commented 9 years ago

I feel this feature should be a toggle, not a global default.

Because some people would prefer it to fail on a bad/missing PODNAME than to have a default provided.

For instance, if I have accidentally created

lib/
lib/Foo/
lib/Foo/Bar.pm

I would rather a noisy complaint that Foo/Bar.pm lacked a reasonable name ( Because its a sign of a very serious error ) than to have it just assume that Bar was a suitable name.