Fix several test failures by doing s/HTTP::Micro/HTTPMicro/

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-08-21 14:37:10 -03:00
parent 8db5b77a4e
commit 615c5ad508
22 changed files with 147 additions and 142 deletions

View File

@@ -24,7 +24,7 @@ BEGIN {
Schema
SchemaIterator
VersionCheck
HTTP::Micro
HTTPMicro
Pingback
));
}
@@ -3629,9 +3629,9 @@ sub _d {
# ###########################################################################
{
package HTTP::Micro;
package HTTPMicro;
BEGIN {
$HTTP::Micro::VERSION = '0.001';
$HTTPMicro::VERSION = '0.001';
}
use strict;
use warnings;
@@ -3704,7 +3704,7 @@ sub _request {
headers => {},
};
my $handle = HTTP::Micro::Handle->new(timeout => $self->{timeout});
my $handle = HTTPMicro::Handle->new(timeout => $self->{timeout});
$handle->connect($scheme, $host, $port);
@@ -3770,7 +3770,7 @@ sub _split_url {
}
package
HTTP::Micro::Handle; # hide from PAUSE/indexers
HTTPMicro::Handle; # hide from PAUSE/indexers
use strict;
use warnings;
@@ -4094,7 +4094,7 @@ sub Dumper {
local $EVAL_ERROR;
eval {
require HTTP::Micro;
require HTTPMicro;
require VersionCheck;
};
@@ -4108,7 +4108,7 @@ sub pingback {
my ($dbh, $ua, $vc) = @args{qw(dbh ua VersionCheck)};
$ua ||= HTTP::Micro->new( timeout => 5 );
$ua ||= HTTPMicro->new( timeout => 5 );
$vc ||= VersionCheck->new();
my $response = $ua->request('GET', $url);