Permalink
Browse files

add pod

  • Loading branch information...
yappo committed Dec 25, 2009
1 parent 8705f57 commit 3336af2f0816d6bd5e8d76f578df271d0cb45e12
Showing with 150 additions and 12 deletions.
  1. +48 −4 README
  2. +50 −4 README.pod
  3. +52 −4 lib/Module/Requires.pm
View
52 README
@@ -1,16 +1,60 @@
NAME
- Module::Requires -
+ Module::Requires - Checks to see if the module can be loaded
SYNOPSIS
- use Module::Requires;
+ more simply
+
+ use Module::Requires 'Class::Trigger', 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+ with version Checks
+
+ use Module::Requires
+ 'Class::Trigger' => 0.13,
+ 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+ detailed check of version # It is more than 0.10 and is except 0.12. use
+ Module::Requires 'Class::Trigger' => [ '>' => 0.10, '!=', 0.12 ],
+ 'Class::Accessor'; use Class::Trigger; use Class::Accessor;
+
+ with autoloader
+
+ use Module::Requires -autoload,
+ 'Class::Trigger', 'Class::Accessor';
+
+ with autoloader and import params
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => { import => [qw/ foo bar baz /] },
+ 'Class::Accessor';
+
+ with autoloader and import params and version check
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => {
+ import => [qw/ foo bar baz /],
+ version => [ '>' => 0.10, '!=', 0.12 ],
+ },
+ 'Class::Accessor';
DESCRIPTION
- Module::Requires is
+ Module::Requires is Checks to see if the module can be loaded.
+
+ required modules warns of not installed if Inside of Makefile.PL With
+ feature When specifying require module.
+
+ When writing modules, such as plugin, required modules which runs short
+ is displayed on a user.
AUTHOR
- Default Name <default {at} example.com>
+ Kazuhiro Osawa <yappo <at> shibuya <döt> pl>
SEE ALSO
+ Test::Requires, idea by DBIx::Class::Storage::DBI::Replicated
+
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
@@ -1,21 +1,67 @@
=head1 NAME
-Module::Requires -
+Module::Requires - Checks to see if the module can be loaded
=head1 SYNOPSIS
- use Module::Requires;
+more simply
+
+ use Module::Requires 'Class::Trigger', 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+with version Checks
+
+ use Module::Requires
+ 'Class::Trigger' => 0.13,
+ 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+detailed check of version
+ # It is more than 0.10 and is except 0.12.
+ use Module::Requires
+ 'Class::Trigger' => [ '>' => 0.10, '!=', 0.12 ],
+ 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+with autoloader
+
+ use Module::Requires -autoload,
+ 'Class::Trigger', 'Class::Accessor';
+
+with autoloader and import params
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => { import => [qw/ foo bar baz /] },
+ 'Class::Accessor';
+
+with autoloader and import params and version check
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => {
+ import => [qw/ foo bar baz /],
+ version => [ '>' => 0.10, '!=', 0.12 ],
+ },
+ 'Class::Accessor';
=head1 DESCRIPTION
-Module::Requires is
+Module::Requires is Checks to see if the module can be loaded.
+
+required modules warns of not installed if Inside of Makefile.PL With feature When specifying require module.
+
+When writing modules, such as plugin, required modules which runs short is displayed on a user.
=head1 AUTHOR
-Default Name E<lt>default {at} example.comE<gt>
+Kazuhiro Osawa E<lt>yappo <at> shibuya <döt> plE<gt>
=head1 SEE ALSO
+L<Test::Requires>, idea by L<DBIx::Class::Storage::DBI::Replicated>
+
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
View
@@ -3,27 +3,75 @@ use strict;
use warnings;
our $VERSION = '0.01';
+# Foo version 0.04 required--this is only version 0.03
+
1;
__END__
=head1 NAME
-Module::Requires -
+Module::Requires - Checks to see if the module can be loaded
=head1 SYNOPSIS
- use Module::Requires;
+more simply
+
+ use Module::Requires 'Class::Trigger', 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+with version Checks
+
+ use Module::Requires
+ 'Class::Trigger' => 0.13,
+ 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+detailed check of version
+ # It is more than 0.10 and is except 0.12.
+ use Module::Requires
+ 'Class::Trigger' => [ '>' => 0.10, '!=', 0.12 ],
+ 'Class::Accessor';
+ use Class::Trigger;
+ use Class::Accessor;
+
+with autoloader
+
+ use Module::Requires -autoload,
+ 'Class::Trigger', 'Class::Accessor';
+
+with autoloader and import params
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => { import => [qw/ foo bar baz /] },
+ 'Class::Accessor';
+
+with autoloader and import params and version check
+
+ use Module::Requires -autoload,
+ 'Class::Trigger' => {
+ import => [qw/ foo bar baz /],
+ version => [ '>' => 0.10, '!=', 0.12 ],
+ },
+ 'Class::Accessor';
=head1 DESCRIPTION
-Module::Requires is
+Module::Requires is Checks to see if the module can be loaded.
+
+required modules warns of not installed if Inside of Makefile.PL With feature When specifying require module.
+
+When writing modules, such as plugin, required modules which runs short is displayed on a user.
=head1 AUTHOR
-Default Name E<lt>default {at} example.comE<gt>
+Kazuhiro Osawa E<lt>yappo <at> shibuya <döt> plE<gt>
=head1 SEE ALSO
+L<Test::Requires>, idea by L<DBIx::Class::Storage::DBI::Replicated>
+
=head1 LICENSE
This library is free software; you can redistribute it and/or modify

0 comments on commit 3336af2

Please sign in to comment.