GitXplorerGitXplorer
a

class-discover

public
4 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
6969fca86607b4da55841e1fbdb1a88b289624b7

Added simple test for ppi_document option

bbline committed 15 years ago
Unverified
91af8c82254858e61c08b017b8e6e3b28de1d4af

Added a ppi_document option to allow Pod::Weaver::Section::Name to use Class::Discover. This option is also generally useful if you already have a parsed document.

bbline committed 15 years ago
Unverified
20833cddb232394716413d2aba103de1beefbbff

v1.000003 - Re-building tarball - no code changes

aashb committed 15 years ago
Unverified
2051425a161bd927f8dec4774b59720875ba1dec

Fix link in POD

aashb committed 15 years ago
Unverified
82491c76d022ee5bc83b1278cad4aeb75e6aca85

Version 1.000002

aashb committed 15 years ago
Unverified
f6aa5421c6d999e9452ee328c29a8c5532c1c5b3

added code that ensures that the expected results that the tests are run against are formatted in the native path style

wwchristian committed 15 years ago

README

The README file for this repository.

NAME Class::Discover - detect MooseX::Declare's 'class' keyword in files.

SYNOPSIS DESCRIPTION This class is designed primarily for tools that whish to populate the "provides" field of META.{yml,json} files so that the CPAN indexer will pay attention to the existance of your classes, rather than blithely ignoring them.

The version parsing is basically the same as what M::I's
"->version_form" does, so should hopefully work as well as it does.

METHODS discover_classes Class::Discover->discover_classes(%opts)

Takes a single options hash-ref, and returns a array-ref of hashes with
the following format:

 { MyClass => { file => "lib/MtClass.pm", type => "class", version => "1" } }

"version" will only be present if the class has a (detected) version.
"type" is the "keyword" match that triggered this class.

The following options are understood:

dir The (absolute) directory from which files should be given relative
    to. If "files" is not passed, then the dir under which to search for
    modules.

files
    Array-ref of files in which to look. If provided, then only these
    files will be searched.

keywords
    List of 'keywords' which are treated as being class declarators.
    Defaults to "class" and "role".

no_index
    A hash of arrays with keys of "directory" and "file" which are
    ignored when searching for packages.

SEE ALSO MooseX::Declare for the main reason for this module to exist.

Module::Install::ProvidesClass

Dist::Zilla

AUTHOR Ash Berlin "ash@cpan.org". (C) 2009. All rights reserved.

LICENSE Licensed under the same terms as Perl itself.