[libanyevent-handle-udp-perl] 56/60: Imported Upstream version 0.042

Jonas Smedegaard js at alioth.debian.org
Mon Sep 30 10:05:48 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libanyevent-handle-udp-perl.

commit 7827319160158336e692ea779ad0f656e1cdd820
Merge: dceb2d0 ab4ffc9
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Sep 30 11:49:07 2013 +0200

    Imported Upstream version 0.042

 Build.PL                   |    3 ++
 Changes                    |   10 +++++
 INSTALL                    |    8 ++--
 MANIFEST                   |    2 +-
 META.json                  |   16 ++++----
 META.yml                   |   14 +++----
 Makefile.PL                |   69 -----------------------------------
 README                     |    2 +-
 dist.ini                   |    4 +-
 lib/AnyEvent/Handle/UDP.pm |   34 +++++++++--------
 t/00-compile.t             |   87 +++++++++++++++-----------------------------
 11 files changed, 82 insertions(+), 167 deletions(-)

diff --cc Build.PL
index 0000000,0000000..cfa7a8b
new file mode 100644
--- /dev/null
+++ b/Build.PL
@@@ -1,0 -1,0 +1,3 @@@
++use 5.006;
++use Module::Build::Tiny 0.027;
++Build_PL();
diff --cc Changes
index 8eac39e,74eb6c6..7342626
--- a/Changes
+++ b/Changes
@@@ -1,5 -1,17 +1,15 @@@
  Revision history for AnyEvent-Handle-UDP
  
 -{{$NEXT}}
 -
+ 0.042     2013-09-10 21:21:05 Europe/Amsterdam
+           Require Moo 1.001000
+           Allow EINTR in recv
+ 
+ 0.041     2013-09-01 12:02:03 Europe/Amsterdam
+           Handle address reuse better
+ 
+ 0.040     2013-08-29 13:04:30 Europe/Amsterdam
+           Fix error handling in a number of places
+ 
  0.039     2013-01-17 16:04:04 Europe/Amsterdam
            Hopefully really fixed for old perl+old Socket.pm
            Made connect_to actually work
diff --cc INSTALL
index 628e7b5,0000000..27c7f3e
mode 100644,000000..100644
--- a/INSTALL
+++ b/INSTALL
@@@ -1,44 -1,0 +1,44 @@@
 +
 +This is the Perl distribution AnyEvent-Handle-UDP.
 +
 +Installing AnyEvent-Handle-UDP is straightforward.
 +
 +## Installation with cpanm
 +
 +If you have cpanm, you only need one line:
 +
 +    % cpanm AnyEvent::Handle::UDP
 +
 +If you are installing into a system-wide directory, you may need to pass the
 +"-S" flag to cpanm, which uses sudo to install the module:
 +
 +    % cpanm -S AnyEvent::Handle::UDP
 +
 +## Installing with the CPAN shell
 +
 +Alternatively, if your CPAN shell is set up, you should just be able to do:
 +
 +    % cpan AnyEvent::Handle::UDP
 +
 +## Manual installation
 +
 +As a last resort, you can manually install it. Download the tarball, untar it,
 +then build it:
 +
-     % perl Makefile.PL
-     % make && make test
++    % perl Build.PL
++    % ./Build && ./Build test
 +
 +Then install it:
 +
-     % make install
++    % ./Build install
 +
 +If you are installing into a system-wide directory, you may need to run:
 +
-     % sudo make install
++    % sudo ./Build install
 +
 +## Documentation
 +
 +AnyEvent-Handle-UDP documentation is available as POD.
 +You can run perldoc from a shell to read the documentation:
 +
 +    % perldoc AnyEvent::Handle::UDP
diff --cc MANIFEST
index 2fb1c8e,0000000..9bccc0e
mode 100644,000000..100644
--- a/MANIFEST
+++ b/MANIFEST
@@@ -1,16 -1,0 +1,16 @@@
++Build.PL
 +Changes
 +INSTALL
 +LICENSE
 +MANIFEST
 +META.json
 +META.yml
- Makefile.PL
 +README
 +dist.ini
 +examples/anyevent-udp-server.pl
 +lib/AnyEvent/Handle/UDP.pm
 +t/00-compile.t
 +t/10-basics.t
 +t/20-timeout.t
 +t/release-pod-coverage.t
 +t/release-pod-syntax.t
diff --cc META.json
index 0661dce,0000000..a2835fd
mode 100644,000000..100644
--- a/META.json
+++ b/META.json
@@@ -1,74 -1,0 +1,72 @@@
 +{
 +   "abstract" : "client/server UDP handles for AnyEvent",
 +   "author" : [
 +      "Leon Timmermans <leont at cpan.org>"
 +   ],
 +   "dynamic_config" : 0,
-    "generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921",
++   "generated_by" : "Dist::Zilla version 4.300038, CPAN::Meta::Converter version 2.132140",
 +   "license" : [
 +      "perl_5"
 +   ],
 +   "meta-spec" : {
 +      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
 +      "version" : "2"
 +   },
 +   "name" : "AnyEvent-Handle-UDP",
 +   "prereqs" : {
 +      "configure" : {
 +         "requires" : {
-             "ExtUtils::MakeMaker" : "6.30"
++            "Module::Build::Tiny" : "0.027"
 +         }
 +      },
 +      "develop" : {
 +         "requires" : {
 +            "Pod::Coverage::TrustPod" : "0",
 +            "Test::Pod" : "1.41",
 +            "Test::Pod::Coverage" : "1.08"
 +         }
 +      },
 +      "runtime" : {
 +         "recommends" : {
 +            "Sub::Name" : "0"
 +         },
 +         "requires" : {
 +            "AnyEvent" : "0",
 +            "AnyEvent::Socket" : "0",
 +            "AnyEvent::Util" : "0",
 +            "Carp" : "0",
-             "Errno" : "0",
-             "Moo" : "0",
++            "Moo" : "1.001000",
 +            "Scalar::Util" : "0",
 +            "Socket" : "0",
-             "Sub::Name" : "0",
 +            "Symbol" : "0",
 +            "namespace::clean" : "0",
 +            "perl" : "5.006",
 +            "strict" : "0",
 +            "warnings" : "0"
 +         }
 +      },
 +      "test" : {
 +         "requires" : {
-             "File::Find" : "0",
-             "File::Temp" : "0",
++            "IO::Handle" : "0",
 +            "IO::Socket::INET" : "0",
++            "IPC::Open3" : "0",
 +            "Test::Fatal" : "0",
 +            "Test::More" : "0.89"
 +         }
 +      }
 +   },
 +   "release_status" : "stable",
 +   "resources" : {
 +      "bugtracker" : {
 +         "mailto" : "bug-anyevent-handle-udp at rt.cpan.org",
 +         "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=AnyEvent-Handle-UDP"
 +      },
 +      "repository" : {
 +         "type" : "git",
 +         "url" : "git://github.com/Leont/anyevent-handle-udp.git",
-          "web" : "http://github.com/Leont/anyevent-handle-udp"
++         "web" : "https://github.com/Leont/anyevent-handle-udp"
 +      }
 +   },
-    "version" : "0.039"
++   "version" : "0.042"
 +}
 +
diff --cc META.yml
index dd9db13,0000000..2a8f7a3
mode 100644,000000..100644
--- a/META.yml
+++ b/META.yml
@@@ -1,40 -1,0 +1,38 @@@
 +---
 +abstract: 'client/server UDP handles for AnyEvent'
 +author:
 +  - 'Leon Timmermans <leont at cpan.org>'
 +build_requires:
-   File::Find: 0
-   File::Temp: 0
++  IO::Handle: 0
 +  IO::Socket::INET: 0
++  IPC::Open3: 0
 +  Test::Fatal: 0
 +  Test::More: 0.89
 +configure_requires:
-   ExtUtils::MakeMaker: 6.30
++  Module::Build::Tiny: 0.027
 +dynamic_config: 0
- generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921'
++generated_by: 'Dist::Zilla version 4.300038, CPAN::Meta::Converter version 2.132140'
 +license: perl
 +meta-spec:
 +  url: http://module-build.sourceforge.net/META-spec-v1.4.html
 +  version: 1.4
 +name: AnyEvent-Handle-UDP
 +recommends:
 +  Sub::Name: 0
 +requires:
 +  AnyEvent: 0
 +  AnyEvent::Socket: 0
 +  AnyEvent::Util: 0
 +  Carp: 0
-   Errno: 0
-   Moo: 0
++  Moo: 1.001000
 +  Scalar::Util: 0
 +  Socket: 0
-   Sub::Name: 0
 +  Symbol: 0
 +  namespace::clean: 0
 +  perl: 5.006
 +  strict: 0
 +  warnings: 0
 +resources:
 +  bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=AnyEvent-Handle-UDP
 +  repository: git://github.com/Leont/anyevent-handle-udp.git
- version: 0.039
++version: 0.042
diff --cc README
index 8908748,0000000..29399c5
mode 100644,000000..100644
--- a/README
+++ b/README
@@@ -1,13 -1,0 +1,13 @@@
 +
 +
 +This archive contains the distribution AnyEvent-Handle-UDP,
- version 0.039:
++version 0.042:
 +
 +  client/server UDP handles for AnyEvent
 +
 +This software is copyright (c) 2011 by Leon Timmermans.
 +
 +This is free software; you can redistribute it and/or modify it under
 +the same terms as the Perl 5 programming language system itself.
 +
 +
diff --cc lib/AnyEvent/Handle/UDP.pm
index 3de157f,99b56ea..692a60a
--- a/lib/AnyEvent/Handle/UDP.pm
+++ b/lib/AnyEvent/Handle/UDP.pm
@@@ -1,7 -1,4 +1,7 @@@
  package AnyEvent::Handle::UDP;
 +{
-   $AnyEvent::Handle::UDP::VERSION = '0.039';
++  $AnyEvent::Handle::UDP::VERSION = '0.042';
 +}
  use strict;
  use warnings FATAL => 'all';
  
@@@ -346,18 -348,6 +351,18 @@@ sub destroy 
  
  # ABSTRACT: client/server UDP handles for AnyEvent
  
- 
 +__END__
++
 +=pod
 +
 +=head1 NAME
 +
 +AnyEvent::Handle::UDP - client/server UDP handles for AnyEvent
 +
 +=head1 VERSION
 +
- version 0.039
++version 0.042
 +
  =head1 SYNOPSIS
  
   my $echo_server = AnyEvent::Handle::UDP->new(
@@@ -480,19 -466,8 +485,18 @@@ Destroy the handle
  
  This module is B<not> backwards compatible in any way with the defunct previous module of the same name by Jan Henning Thorsen. 
  
 -=for Pod::Coverage
 -BUILD
 +=for Pod::Coverage BUILD
  =end
  
 +=head1 AUTHOR
 +
 +Leon Timmermans <leont at cpan.org>
 +
 +=head1 COPYRIGHT AND LICENSE
 +
 +This software is copyright (c) 2011 by Leon Timmermans.
 +
 +This is free software; you can redistribute it and/or modify it under
 +the same terms as the Perl 5 programming language system itself.
 +
  =cut
- 
diff --cc t/00-compile.t
index 6771e12,0000000..5a825cd
mode 100644,000000..100644
--- a/t/00-compile.t
+++ b/t/00-compile.t
@@@ -1,73 -1,0 +1,44 @@@
- #!perl
- 
 +use strict;
 +use warnings;
 +
- use Test::More;
++# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.027
 +
++use Test::More  tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
 +
 +
- use File::Find;
- use File::Temp qw{ tempdir };
 +
- my @modules;
- find(
-   sub {
-     return if $File::Find::name !~ /\.pm\z/;
-     my $found = $File::Find::name;
-     $found =~ s{^lib/}{};
-     $found =~ s{[/\\]}{::}g;
-     $found =~ s/\.pm$//;
-     # nothing to skip
-     push @modules, $found;
-   },
-   'lib',
++my @module_files = (
++    'AnyEvent/Handle/UDP.pm'
 +);
 +
- sub _find_scripts {
-     my $dir = shift @_;
- 
-     my @found_scripts = ();
-     find(
-       sub {
-         return unless -f;
-         my $found = $File::Find::name;
-         # nothing to skip
-         open my $FH, '<', $_ or do {
-           note( "Unable to open $found in ( $! ), skipping" );
-           return;
-         };
-         my $shebang = <$FH>;
-         return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
-         push @found_scripts, $found;
-       },
-       $dir,
-     );
- 
-     return @found_scripts;
- }
 +
- my @scripts;
- do { push @scripts, _find_scripts($_) if -d $_ }
-     for qw{ bin script scripts };
 +
- my $plan = scalar(@modules) + scalar(@scripts);
- $plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
++# no fake home requested
 +
++use IPC::Open3;
++use IO::Handle;
++
++my @warnings;
++for my $lib (@module_files)
 +{
-     # fake home for cpan-testers
-     # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
- 
-     like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
-         for sort @modules;
- 
-     SKIP: {
-         eval "use Test::Script 1.05; 1;";
-         skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
-         foreach my $file ( @scripts ) {
-             my $script = $file;
-             $script =~ s!.*/!!;
-             script_compiles( $file, "$script script compiles" );
-         }
++    # see L<perlfaq8/How can I capture STDERR from an external command?>
++    my $stdin = '';     # converted to a gensym by open3
++    my $stderr = IO::Handle->new;
++    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
++
++    my $pid = open3($stdin, '>&STDERR', $stderr, qq{$^X -Mblib -e"require q[$lib]"});
++    waitpid($pid, 0);
++    is($? >> 8, 0, "$lib loaded ok");
++
++    if (my @_warnings = <$stderr>)
++    {
++        warn @_warnings;
++        push @warnings, @_warnings;
 +    }
 +}
++
++
++
++is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
++
++

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-handle-udp-perl.git



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