[Rt-commit] r5604 - in Test-Dependencies/trunk: lib/Test
zev at bestpractical.com
zev at bestpractical.com
Tue Jul 18 22:48:01 EDT 2006
Author: zev
Date: Tue Jul 18 22:48:00 2006
New Revision: 5604
Modified:
Test-Dependencies/trunk/ (props changed)
Test-Dependencies/trunk/Changes
Test-Dependencies/trunk/META.yml
Test-Dependencies/trunk/Makefile.PL
Test-Dependencies/trunk/lib/Test/Dependencies.pm
Log:
r11521 at galvatron: zev | 2006-07-15 00:32:25 -0400
* build_require version 0.63 of Test::Builder::Tester
* handle empty files correctly
* new version 0.04
Modified: Test-Dependencies/trunk/Changes
==============================================================================
--- Test-Dependencies/trunk/Changes (original)
+++ Test-Dependencies/trunk/Changes Tue Jul 18 22:48:00 2006
@@ -12,3 +12,7 @@
Makefile.PL. We now differentiate between requires and
build_requires, and complain if listed requirements are not
actually used.
+
+0.04 Sat Jul 15 00:24:01 EDT 2006
+ * Properly specify the dependency on Test::Builder::Tester 0.63.
+ * handle empty files
\ No newline at end of file
Modified: Test-Dependencies/trunk/META.yml
==============================================================================
--- Test-Dependencies/trunk/META.yml (original)
+++ Test-Dependencies/trunk/META.yml Tue Jul 18 22:48:00 2006
@@ -1,6 +1,6 @@
-author: Zev Benjamin <zev at bestpractical.com>
+author: Zev Benjamin <zev at cpan.com>
build_requires:
- Test::Builder::Tester: 0
+ Test::Builder::Tester: 0.63
distribution_type: module
generated_by: Module::Install version 0.630
license: perl
@@ -16,4 +16,4 @@
PerlReq::Utils: 0
Test::Builder::Module: 0
YAML: 0
-version: 0.03
+version: 0.04
Modified: Test-Dependencies/trunk/Makefile.PL
==============================================================================
--- Test-Dependencies/trunk/Makefile.PL (original)
+++ Test-Dependencies/trunk/Makefile.PL Tue Jul 18 22:48:00 2006
@@ -1,7 +1,7 @@
use inc::Module::Install;
name 'Test-Dependencies';
-author 'Zev Benjamin <zev at bestpractical.com>';
+author 'Zev Benjamin <zev at cpan.com>';
version_from 'lib/Test/Dependencies.pm';
license 'perl';
@@ -12,7 +12,7 @@
requires('Test::Builder::Module');
requires('YAML');
-build_requires('Test::Builder::Tester');
+build_requires('Test::Builder::Tester' => 0.63);
auto_install;
WriteAll;
Modified: Test-Dependencies/trunk/lib/Test/Dependencies.pm
==============================================================================
--- Test-Dependencies/trunk/lib/Test/Dependencies.pm (original)
+++ Test-Dependencies/trunk/lib/Test/Dependencies.pm Tue Jul 18 22:48:00 2006
@@ -18,11 +18,11 @@
=head1 VERSION
-Version 0.03
+Version 0.04
=cut
-our $VERSION = '0.03';
+our $VERSION = '0.04';
=head1 SYNOPSIS
@@ -93,15 +93,17 @@
sub _taint_flag {
my $filename = shift;
- open FILE, $filename;
+ open FILE, $filename
+ or warn "Could not open '$filename': $!";
my $shebang = <FILE>;
close FILE;
- chomp $shebang;
- if ($shebang =~ m/^#!.*perl.*-T/) {
- return '-T';
- } else {
- return '';
+ if (defined $shebang) {
+ chomp $shebang;
+ if ($shebang =~ m/^#!.*perl.*-T/) {
+ return '-T';
+ }
}
+ return '';
}
sub _get_modules_used_in {
More information about the Rt-commit
mailing list