Skip Menu |
 

This queue is for tickets about the WWW-Mechanize-Sleepy CPAN distribution.

Report information
The Basics
Id: 22754
Status: resolved
Worked: 30 min
Priority: 0/
Queue: WWW-Mechanize-Sleepy

People
Owner: esummers [...] cpan.org
Requestors: alexchorny [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5
Fixed in: (no value)



Subject: WWW::Mechanize->reload() changed
Download (untitled) / with headers
text/plain 328b
WWW::Mechanize->reload() was changed so it no longer calling overloaded methods. Added WWW::Mechanize::Sleepy->reload(). Should require WWW::Mechanize 1.06. WWW::Mechanize 1.04 has old behaviour. Tests pass with my patch. But there may be other errors due to WWW::Mechanize update. ------- Alexandr Ciornii, http://chorny.net
From: Alexandr Ciornii <alexchorny [...] gmail.com>
Forgot to add patch.
Download Sleepy.pm.patch
text/x-diff 343b
--- Sleepy.pm.dist Sun Aug 31 09:18:52 2003 +++ Sleepy.pm Thu Nov 2 14:43:55 2006 @@ -133,6 +133,12 @@ $self->SUPER::request( @_ ); } +sub reload { + my $self = shift; + $self->_sleep(); + $self->SUPER::reload( @_ ); +} + sub _sleep { my $self = shift; return( 1 ) if $self->{ Sleepy_Time } eq '0';
fixed in v0.6 just released to CPAN...thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.