On Sun Oct 11 09:05:26 2015, SREZIC wrote:
Show quoted text> It seems that Struct-Dumb-0.07 fixed the issue.
>
> However, it could be a good idea to make sure that the problematic
> 0.05 and 0.06 versions are upgraded, e.g. by using something like
>
> my $min_struct_dumb_version = 0;
> if (eval { require Struct::Dumb; $Struct::Dumb::VERSION == 0.05 ||
> $Struct::Dumb::VERSION == 0.06 }) {
> $min_struct_dumb_version = '0.07';
> }
>
> in Build.PL.
Eh, why bother? Just stick it to requiring 0.07.
Patch attached.
--
Paul Evans
=== modified file 'Build.PL'
--- Build.PL 2015-07-02 17:59:36 +0000
+++ Build.PL 2015-11-18 14:37:14 +0000
@@ -15,7 +15,7 @@
'IO::Async::Stream' => '0.59',
'IO::Async::Timer::Countdown' => 0,
'List::Util' => "1.29", # pairs()
- 'Struct::Dumb' => 0,
+ 'Struct::Dumb' => '0.07',
'URI' => 0,
},
recommends => {
=== modified file 'lib/Net/Async/HTTP.pm'
--- lib/Net/Async/HTTP.pm 2015-07-27 18:53:57 +0000
+++ lib/Net/Async/HTTP.pm 2015-11-18 14:37:14 +0000
@@ -55,7 +55,7 @@
use constant READ_LEN => 64*1024; # 64 KiB
use constant WRITE_LEN => 64*1024; # 64 KiB
-use Struct::Dumb;
+use Struct::Dumb 0.07; # equallity operator overloading
struct Ready => [qw( future connecting )];
=head1 NAME