rjbs/pod-weaver — pull request #9 by barefootcoder (2012-02-28 10:08:45+00:00)
Title: Fix for extracting module names from MooseX::Declare-style classes

When using `Pod::Weaver` on code that utilizes `MooseX::Declare`, `Pod::Weaver::Section::Name` and `Pod::Weaver::Section::Version` cannot find the name of the module. This is a patch that fixes that issue.

The patch is in 3 commits: first a failing test, second a simple fix, then a refactoring which extracts the common functionality. If you don't like the refactoring, just toss that final commit; the patch works perfectly well without it.

I'm happy to rework the patch in any way you see fit if there's anything about it that isn't up to snuff. Just let me know.