X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FModule%2FMetadata.pm;h=99cee971c71bc3b5c8d2ce845f8a00e04e0d42b0;hb=9d50689d146d2ddb32442bce32443d614c336870;hp=6bfe11c6ac670e25fa6d196bfb1a1a9eb8d95518;hpb=e6ddd76509b1b36e888c88848f78f6f829cc9c1e;p=p5sagit%2FModule-Metadata.git diff --git a/lib/Module/Metadata.pm b/lib/Module/Metadata.pm index 6bfe11c..99cee97 100644 --- a/lib/Module/Metadata.pm +++ b/lib/Module/Metadata.pm @@ -11,7 +11,7 @@ package Module::Metadata; use strict; use vars qw($VERSION); -$VERSION = '0.36_04'; +$VERSION = '1.000001'; $VERSION = eval $VERSION; use File::Spec; @@ -597,14 +597,9 @@ sub pod { 1; -__END__ - -=for :stopwords ModuleInfo - =head1 NAME -ModuleInfo - Gather package and POD information from a perl module file - +Module::Metadata - Gather package and POD information from perl module files =head1 DESCRIPTION @@ -675,13 +670,33 @@ optional parameter, otherwise @INC is searched. Can be called as either an object or a class method. -=back +=item package_versions_from_directory($dir, \@files?) + +Scans C<$dir> for .pm files (unless C<@files> is given, in which case looks +for those files in C<$dir> - and reads each file for packages and versions, +returning a hashref of the form: + { + 'Package::Name' => { + version => '0.123', + file => 'Package/Name.pm' + }, + 'OtherPackage::Name' => ... + } + +=item log_info (internal) + +Used internally to perform logging; imported from Log::Contextual if +Log::Contextual has already been loaded, otherwise simply calls warn. + +=back =head1 AUTHOR Ken Williams , Randy W. Sims +Released as Module::Metadata by Matt S Trout (mst) with +assistance from David Golden (xdg) =head1 COPYRIGHT @@ -690,10 +705,9 @@ Copyright (c) 2001-2006 Ken Williams. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. - =head1 SEE ALSO -perl(1), L(3) +perl(1), L(3) =cut