[Rt-commit] r5451 - in Test-Dependencies: . trunk/lib/Test trunk/t
zev at bestpractical.com
zev at bestpractical.com
Fri Jun 23 17:47:39 EDT 2006
Author: zev
Date: Fri Jun 23 17:47:38 2006
New Revision: 5451
Added:
Test-Dependencies/trunk/t/02-dependencies.t
Modified:
Test-Dependencies/ (props changed)
Test-Dependencies/trunk/META.yml
Test-Dependencies/trunk/Makefile.PL
Test-Dependencies/trunk/README
Test-Dependencies/trunk/lib/Test/Dependencies.pm
Log:
r4203 at galvatron (orig r2): zev | 2006-06-21 13:16:55 -0400
r4202 at galvatron: zev | 2006-06-21 13:16:49 -0400
bug fixes
Modified: Test-Dependencies/trunk/META.yml
==============================================================================
--- Test-Dependencies/trunk/META.yml (original)
+++ Test-Dependencies/trunk/META.yml Fri Jun 23 17:47:38 2006
@@ -1,11 +1,14 @@
abstract: Ensure that your Makefile.PL specifies all module dependencies
-author: Zev Benjamin, C<< <zev at cpan.org> >>
+author: =over 4
distribution_type: module
generated_by: Module::Install version 0.62
-license: perl
+license: unknown
name: Test-Dependencies
no_index:
directory:
- inc
- t
+requires:
+ Module::CoreList: 0
+ Pod::Strip: 0
version: 0.01
Modified: Test-Dependencies/trunk/Makefile.PL
==============================================================================
--- Test-Dependencies/trunk/Makefile.PL (original)
+++ Test-Dependencies/trunk/Makefile.PL Fri Jun 23 17:47:38 2006
@@ -3,7 +3,8 @@
name 'Test-Dependencies';
all_from 'lib/Test/Dependencies.pm';
-#requires('');
+requires('Module::CoreList');
+requires('Pod::Strip');
auto_install;
WriteAll;
Modified: Test-Dependencies/trunk/README
==============================================================================
--- Test-Dependencies/trunk/README (original)
+++ Test-Dependencies/trunk/README Fri Jun 23 17:47:38 2006
@@ -34,9 +34,30 @@
CPAN Ratings:
http://cpanratings.perl.org/d/Test-Dependencies
-COPYRIGHT AND LICENCE
+LICENCE AND COPYRIGHT
+ Copyright (c) 2005, Best Practical Solutions, LLC. All rights reserved.
-Copyright (C) 2006 Zev Benjamin
+ This module is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself. See perlartistic.
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
+DISCLAIMER OF WARRANTY
+ BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+ FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+ PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+ EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
+ YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR, OR CORRECTION.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+ REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
+ TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+ SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+ FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES.
Modified: Test-Dependencies/trunk/lib/Test/Dependencies.pm
==============================================================================
--- Test-Dependencies/trunk/lib/Test/Dependencies.pm (original)
+++ Test-Dependencies/trunk/lib/Test/Dependencies.pm Fri Jun 23 17:47:38 2006
@@ -40,6 +40,8 @@
=cut
+our @EXPORT = qw/ok_dependencies/;
+
our $exclude_re;
sub import {
@@ -54,7 +56,7 @@
} elsif (scalar @_ != 1) {
croak "wrong number of arguments while using Test::Dependencies";
}
- Test::Dependencies->export_to_level(1, qw/ok_dependencies/);
+ Test::Dependencies->export_to_level(1, '', qw/ok_dependencies/);
}
sub ok_dependencies {
@@ -78,8 +80,13 @@
$used{$_}++ for split ' ', $1;
}
};
-
- find( $wanted, qw/ lib bin t /);
+
+ for my $dir (qw/ lib bin t /) {
+ if ( -e $dir) {
+ find( { wanted => $wanted,
+ untaint => 1}, $dir);
+ }
+ }
my %required;
{
@@ -160,12 +167,33 @@
=head1 ACKNOWLEDGEMENTS
-=head1 COPYRIGHT & LICENSE
+LICENCE AND COPYRIGHT
+ Copyright (c) 2005, Best Practical Solutions, LLC. All rights reserved.
-Copyright 2006 Zev Benjamin, all rights reserved.
+ This module is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself. See perlartistic.
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
+DISCLAIMER OF WARRANTY
+ BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+ FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+ PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+ EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
+ YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR, OR CORRECTION.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+ REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
+ TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+ SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+ FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES.
=cut
Added: Test-Dependencies/trunk/t/02-dependencies.t
==============================================================================
--- (empty file)
+++ Test-Dependencies/trunk/t/02-dependencies.t Fri Jun 23 17:47:38 2006
@@ -0,0 +1,6 @@
+#!perl -T
+
+# yay bootstrap!
+use Test::Dependencies exclude => [qw/Test::Dependencies/];
+
+ok_dependencies();
\ No newline at end of file
More information about the Rt-commit
mailing list