r54770 - in /trunk/libipc-run-perl: ./ debian/ lib/IPC/ lib/IPC/Run/ t/

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Thu Mar 25 11:34:49 UTC 2010


Author: carnil-guest
Date: Thu Mar 25 11:34:35 2010
New Revision: 54770

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=54770
Log:
* New upstream release 
* Add myself to Uploaders. 

Added:
    trunk/libipc-run-perl/t/windows_search_path.t
      - copied unchanged from r54769, branches/upstream/libipc-run-perl/current/t/windows_search_path.t
Modified:
    trunk/libipc-run-perl/Changes
    trunk/libipc-run-perl/MANIFEST
    trunk/libipc-run-perl/META.yml
    trunk/libipc-run-perl/Makefile.PL
    trunk/libipc-run-perl/debian/changelog
    trunk/libipc-run-perl/debian/control
    trunk/libipc-run-perl/lib/IPC/Run.pm
    trunk/libipc-run-perl/lib/IPC/Run/Debug.pm
    trunk/libipc-run-perl/lib/IPC/Run/IO.pm
    trunk/libipc-run-perl/lib/IPC/Run/Timer.pm
    trunk/libipc-run-perl/lib/IPC/Run/Win32Helper.pm
    trunk/libipc-run-perl/lib/IPC/Run/Win32IO.pm
    trunk/libipc-run-perl/lib/IPC/Run/Win32Pump.pm
    trunk/libipc-run-perl/t/run.t

Modified: trunk/libipc-run-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/Changes?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/Changes (original)
+++ trunk/libipc-run-perl/Changes Thu Mar 25 11:34:35 2010
@@ -1,4 +1,14 @@
 Revision history for Perl extension IPC::Run
+
+0.86 Wed 24 Mar 2010
+  - Add all files to subversion for easier releases
+  - bump version on ALL files to 86
+
+0.85 Mon 22 Mar 2010
+  - Remove use UNIVERSAL. - RT 51509
+  - fix pod for Win32Helper - RT 51695
+  - Better PATHEXT logic bug if cmd_name contains periods - RT 50739
+  - Enhance tests for run.t for better diagnostics - RT 47630
 
 0.84 Mon 13 Jul 2009
 	- Add darwin to the list of known-bad platforms

Modified: trunk/libipc-run-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/MANIFEST?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/MANIFEST (original)
+++ trunk/libipc-run-perl/MANIFEST Thu Mar 25 11:34:35 2010
@@ -39,6 +39,7 @@
 t/signal.t
 t/timeout.t
 t/timer.t
+t/windows_search_path.t
 t/win32_compile.t
 TODO
 META.yml                                 Module meta-data (added by MakeMaker)

Modified: trunk/libipc-run-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/META.yml?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/META.yml (original)
+++ trunk/libipc-run-perl/META.yml Thu Mar 25 11:34:35 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               IPC-Run
-version:            0.84
+version:            0.86
 abstract:           system() and background procs w/ piping, redirs, ptys (Unix, Win32)
 author:  []
 license:            unknown
@@ -9,14 +9,25 @@
     ExtUtils::MakeMaker:  0
 build_requires:
     ExtUtils::MakeMaker:  0
+    Test::More:           0
 requires:
-    IO::Pty:     1.08
     Test::More:  0.47
+resources:
+    bugtracker:  https://rt.cpan.org/NoAuth/Bugs.html?Dist=IPC-Run
+    license:     http://dev.perl.org/licenses/
+    repository:  http://svn.ali.as/cpan/trunk/IPC-Run
 no_index:
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.50
+generated_by:       ExtUtils::MakeMaker version 6.56
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4
+recommends:
+    IO::Pty:              0
+    Perl::MinimumVersion:  0
+    Pod::Simple:          0
+    Test::CPAN::Meta:     0
+    Test::MinimumVersion:  0
+    Test::Pod:            0

Modified: trunk/libipc-run-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/Makefile.PL?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/Makefile.PL (original)
+++ trunk/libipc-run-perl/Makefile.PL Thu Mar 25 11:34:35 2010
@@ -46,14 +46,34 @@
 	PREREQ_PM    => {
 		Test::More => '0.47',
 		%PREREQ_PM,
-	}
-);
+	},
+	META_MERGE  => {
+	    recommends => {
+		'Test::CPAN::Meta' => 0,
+		'Pod::Simple' =>  0,
+		'Test::Pod' => 0,
+		'Perl::MinimumVersion' => 0,
+		'Test::MinimumVersion' => 0,
+		'IO::Pty' => 0,
+	    },
+	    build_requires => {
+		'Test::More' => 0,  # For testing
+	    },
+	    resources => {
+		license => 'http://dev.perl.org/licenses/',
+#            homepage => 'http://',
+		bugtracker => 'https://rt.cpan.org/NoAuth/Bugs.html?Dist=IPC-Run',
+		repository => 'http://svn.ali.as/cpan/trunk/IPC-Run',
+#            MailingList => 'http://groups.google.com/group/IPC-Run',
+	    }
+	});
+	  
 
 sub MY::libscan {
 	package MY;
 	my $self = shift;
 	my ($path) = @_;
-	return '' if /\.sw[a-z]$/;
+	return '' if $path =~ m/\.sw[a-z]\z/msx;
 	return '' unless length $self->SUPER::libscan($path);
 	return $path;
 }

Modified: trunk/libipc-run-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/debian/changelog?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/debian/changelog (original)
+++ trunk/libipc-run-perl/debian/changelog Thu Mar 25 11:34:35 2010
@@ -1,10 +1,15 @@
-libipc-run-perl (0.84-2) UNRELEASED; urgency=low
+libipc-run-perl (0.86-1) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   * Extend patch hashbang.patch to also fix the path to perl in yet another
     example script; thanks to Dario Minnucci for the bug report
     (closes: #543673).
 
- -- gregor herrmann <gregoa at debian.org>  Wed, 26 Aug 2009 18:43:26 +0200
+  [ Salvatore Bonaccorso ]
+  * New upstream release 
+  * Add myself to Uploaders. 
+
+ -- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com>  Thu, 25 Mar 2010 12:34:00 +0100
 
 libipc-run-perl (0.84-1) unstable; urgency=low
 

Modified: trunk/libipc-run-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/debian/control?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/debian/control (original)
+++ trunk/libipc-run-perl/debian/control Thu Mar 25 11:34:35 2010
@@ -4,7 +4,8 @@
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jay Bonci <jaybonci at debian.org>,
  gregor herrmann <gregoa at debian.org>, 
- Gunnar Wolf <gwolf at debian.org>
+ Gunnar Wolf <gwolf at debian.org>,
+ Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com>
 Standards-Version: 3.8.2
 Homepage: http://search.cpan.org/dist/IPC-Run/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libipc-run-perl/

Modified: trunk/libipc-run-perl/lib/IPC/Run.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run.pm Thu Mar 25 11:34:35 2010
@@ -1011,7 +1011,7 @@
 use Exporter ();
 use vars qw{$VERSION @ISA @FILTER_IMP @FILTERS @API @EXPORT_OK %EXPORT_TAGS};
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 	@ISA     = qw{ Exporter };
 
 	## We use @EXPORT for the end user's convenience: there's only one function
@@ -1149,12 +1149,16 @@
 
    if ( Win32_MODE
       && ( $cmd_name =~ /$dirsep/ )
-      && ( $cmd_name !~ /\..+$/ )  ## Only run if cmd_name has no extension?
+#      && ( $cmd_name !~ /\..+$/ )  ## Only run if cmd_name has no extension?
+      && ( $cmd_name !~ m!\.[^\\/\.]+$! )
     ) {
+
+      _debug "no extension(.exe), checking ENV{PATHEXT}"  if _debugging;
       for ( split /;/, $ENV{PATHEXT} || ".COM;.BAT;.EXE" ) {
          my $name = "$cmd_name$_";
          $cmd_name = $name, last if -f $name && -x _;
       }
+      _debug "cmd_name is now '$cmd_name'"  if _debugging;
    }
 
    if ( $cmd_name =~ /($dirsep)/ ) {

Modified: trunk/libipc-run-perl/lib/IPC/Run/Debug.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/Debug.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/Debug.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/Debug.pm Thu Mar 25 11:34:35 2010
@@ -70,7 +70,7 @@
 use Exporter;
 use vars qw{$VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS};
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 	@ISA     = qw( Exporter );
 	@EXPORT  = qw(
 		_debug
@@ -118,7 +118,6 @@
 STUBS
 
 use POSIX;
-use UNIVERSAL qw( isa );
 
 sub _map_fds {
    my $map = '';

Modified: trunk/libipc-run-perl/lib/IPC/Run/IO.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/IO.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/IO.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/IO.pm Thu Mar 25 11:34:35 2010
@@ -76,14 +76,13 @@
 use Carp;
 use Fcntl;
 use Symbol;
-use UNIVERSAL ();
 
 use IPC::Run::Debug;
 use IPC::Run qw( Win32_MODE );
 
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 	if ( Win32_MODE ) {
 		eval "use IPC::Run::Win32Helper; require IPC::Run::Win32IO; 1"
 		or ( $@ && die ) or die "$!";

Modified: trunk/libipc-run-perl/lib/IPC/Run/Timer.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/Timer.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/Timer.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/Timer.pm Thu Mar 25 11:34:35 2010
@@ -163,7 +163,7 @@
 use Exporter;
 use vars qw( $VERSION @ISA @EXPORT_OK %EXPORT_TAGS );
 BEGIN {
-	$VERSION   = '0.84';
+	$VERSION   = '0.86';
 	@ISA       = qw( Exporter );
 	@EXPORT_OK = qw(
 		check

Modified: trunk/libipc-run-perl/lib/IPC/Run/Win32Helper.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/Win32Helper.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/Win32Helper.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/Win32Helper.pm Thu Mar 25 11:34:35 2010
@@ -24,7 +24,7 @@
 use IO::Handle;
 use vars qw{ $VERSION @ISA @EXPORT };
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 	@ISA = qw( Exporter );
 	@EXPORT = qw(
 		win32_spawn
@@ -103,7 +103,7 @@
 to a scalar or subroutine with or without filters, but only if
 the child in question closes its inputs or takes input from 
 unfiltered SCALARs or named files.  Normally, a child inherits its STDIN
-from its parent; to close it, use "0<&-" or the C<noinherit => 1> option.
+from its parent; to close it, use "0<&-" or the C<< noinherit => 1 >> option.
 If data is sent to the child from CODE refs, filehandles or from
 scalars through filters than the child's outputs will not be optimized
 because C<optimize()> assumes the parent is interacting with the child.

Modified: trunk/libipc-run-perl/lib/IPC/Run/Win32IO.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/Win32IO.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/Win32IO.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/Win32IO.pm Thu Mar 25 11:34:35 2010
@@ -31,7 +31,7 @@
 
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 }
 
 use Socket qw( IPPROTO_TCP TCP_NODELAY );

Modified: trunk/libipc-run-perl/lib/IPC/Run/Win32Pump.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/lib/IPC/Run/Win32Pump.pm?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/lib/IPC/Run/Win32Pump.pm (original)
+++ trunk/libipc-run-perl/lib/IPC/Run/Win32Pump.pm Thu Mar 25 11:34:35 2010
@@ -29,7 +29,7 @@
 use strict;
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.84';
+	$VERSION = '0.86';
 }
 
 use Win32API::File qw(

Modified: trunk/libipc-run-perl/t/run.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libipc-run-perl/t/run.t?rev=54770&op=diff
==============================================================================
--- trunk/libipc-run-perl/t/run.t (original)
+++ trunk/libipc-run-perl/t/run.t Thu Mar 25 11:34:35 2010
@@ -119,11 +119,15 @@
 }
 
 sub eok {
-   my ( $got, $exp ) = ( shift, shift );
+   my ( $got, $exp, $name ) = @_;
    $got =~ s/([\000-\037])/sprintf "\\0x%02x", ord $1/ge if defined $exp;
    $exp =~ s/([\000-\037])/sprintf "\\0x%02x", ord $1/ge if defined $exp;
-   @_ = ( $got, $exp, @_ );
-   goto &is;
+
+   my($pack, $file, $line) = caller();
+   $name ||= qq[eok at $file line $line];
+
+   local $Test::Builder::Level = $Test::Builder::Level + 1;
+   return is( $got, $exp, $name );
 }
 
 my $r;
@@ -288,7 +292,7 @@
 is( _map_fds, $fd_map );
 
 is( length $out, 20000 );
-ok( $out !~ /[^-]/ );
+unlike( $out, qr/[^-]/ );
 
 
 ##
@@ -301,7 +305,7 @@
    $in = "\n";
    $out = "";
    pump $h until length $out;
-   ok $out eq "\n";
+   is $out, "\n";
 
 
 
@@ -321,7 +325,7 @@
    $x = $@ if $ok_1 && ! $ok_2;
 
    if ( $ok_1 && $ok_2 ) {
-      ok $long_string eq $out;
+      is $long_string, $out;
    }
    else {
        $x =~ s/(x+)/sprintf "...%d \"x\" chars...", length $1/e;
@@ -607,12 +611,7 @@
    eval {
       $r = run \@perl, ">$out_file", "<$bad_file";
    };
-   if ( $@ =~ /\Q$bad_file\E/ ) {
-      ok 1;
-   }
-   else {
-      is $@, "qr/\Q$bad_file\E/";
-   }
+   like $@, qr/\Q$bad_file\E/;
 is( _map_fds, $fd_map );
 
 ##
@@ -686,7 +685,7 @@
    ok( $r );
 ok( ! $? );
 is( _map_fds, $fd_map );
-$out =~ /(?:$text){2}/i ? ok 1 : is $out, "qr/($text){2}/i";
+like $out, qr/(?:$text){2}/i;
 eok( $err, '' );
 
 ##
@@ -700,7 +699,7 @@
 ok( ! $? );
 is( _map_fds, $fd_map );
 
-ok( $out =~ qr/(?:$text){2}/i );
+like $out, qr/(?:$text){2}/i;
 
 ##
 ## Non-zero exit value, command with args, no redirects.
@@ -787,19 +786,19 @@
    ok( $r );
 ok( ! $? );
 is( _map_fds, $fd_map );
-ok( $out =~ qr/^(?:HELLO World\n|Hello world\n){2}\z/s );
-ok( $err =~ qr/^(?:[12]:Hello World.*){2}\z/s );
+like $out, qr/^(?:HELLO World\n|Hello world\n){2}$/s;
+like $err, qr/^(?:[12]:Hello World.*){2}$/s;
 
 ##
 ## A few error cases...
 ##
    eval { $r = run \@perl, '<', [], [] };
-   ok( $@ =~ qr/not allowed/ );
+   like( $@, qr/not allowed/ );
    eval { $r = run \@perl, '>', [], [] };
-   ok( $@ =~ qr/not allowed/ );
+   like( $@, qr/not allowed/ );
    foreach my $foo ( qw( | & < > >& 1>&2 >file <file 2<&1 <&- 3<&- ) ) {
       eval { $r = run $foo, [] };
-      ok( $@ =~ qr/command/ );
+      like( $@, qr/command/ );
    }
    $out = 'REPLACE ME';
    $err = 'REPLACE ME';
@@ -844,7 +843,7 @@
       [ @perl, '-pe', 'BEGIN { $| = 1 } print STDERR uc($_)' ],
       \$in, \$out, \$err,
    );
-   ok( $h->isa('IPC::Run') );
+   isa_ok( $h, 'IPC::Run' );
 is( $?, 99 );
 
 eok( $in,  'SHOULD BE UNCHANGED' );
@@ -855,7 +854,7 @@
    $in  = '';
    $? = 0;
    pump_nb $h for ( 1..100 );
-   ok( 1 );
+   pass( "after pump_nb" );
 eok( $in, '' );
 eok( $out, '' );
 eok( $err, '' );
@@ -864,7 +863,7 @@
    $in  = $text;
    $? = 0;
    pump $h until $out =~ /Hello World/;
-   ok( 1 );
+   pass("after pump");
 ok( ! $? );
 eok( $in, '' );
 eok( $out, $text );




More information about the Pkg-perl-cvs-commits mailing list