Apache-No404Proxy-Mogile

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

use strict;
use warnings;
use Module::Build;

my $builder = Module::Build->new(
    module_name         => 'Apache::No404Proxy::Mogile',
    license             => 'perl',
    dist_author         => 'Nick Gerakines <nick@gerakines.net>',
    dist_version_from   => 'lib/Apache/No404Proxy/Mogile.pm',
    requires => {
        'Apache::No404Proxy' => 0,
        'MogileFS' => 0,
        'LWP::UserAgent' => 0,
    },
    build_requires => {
        'Test::More' => 0,
    },
    add_to_cleanup => [ 'Apache-No404Proxy-Mogile-*' ],
);

$builder->create_build_script();

Changes  view on Meta::CPAN

Revision history for Apache-No404Proxy-Mogile

0.01    2006-09-08
        First version, released on an unsuspecting world.

MANIFEST  view on Meta::CPAN

Build.PL
Changes
MANIFEST
META.yml # Will be created by "make dist"
README
lib/Apache/No404Proxy/Mogile.pm
t/00-basic.t

META.yml  view on Meta::CPAN

---
name: Apache-No404Proxy-Mogile
version: 0.1
author:
  - 'Nick Gerakines <nick@gerakines.net>'
abstract: Implementation of Apache::No404Proxy
license: perl
requires:
  Apache::No404Proxy: 0
  LWP::UserAgent: 0
  MogileFS: 0
build_requires:
  Test::More: 0
provides:
  Apache::No404Proxy::Mogile:
    file: lib/Apache/No404Proxy/Mogile.pm
    version: 0.1
generated_by: Module::Build version 0.2612

README  view on Meta::CPAN

Apache-No404Proxy-Mogile

Apache::No404Proxy::Mogile is one of the implementations of
Apache::No404Proxy. This module uses MogileFS and LWP::UserAgent to fetch
content from mogile.

INSTALLATION

To install this module, run the following commands:

    perl Build.PL
    ./Build
    ./Build test
    ./Build install


SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command.

    perldoc Apache::No404Proxy::Mogile

You can also look for information at:

    Search CPAN
        http://search.cpan.org/dist/Apache-No404Proxy-Mogile

    CPAN Request Tracker:
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache-No404Proxy-Mogile

    AnnoCPAN, annotated CPAN documentation:
        http://annocpan.org/dist/Apache-No404Proxy-Mogile

    CPAN Ratings:
        http://cpanratings.perl.org/d/Apache-No404Proxy-Mogile

COPYRIGHT AND LICENCE

Copyright (C) 2006 Nick Gerakines

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

lib/Apache/No404Proxy/Mogile.pm  view on Meta::CPAN

package Apache::No404Proxy::Mogile;

use strict;
use warnings;

use vars qw($VERSION);

$VERSION = '0.1';

use base 'Apache::No404Proxy';

use MogileFS;
use LWP::UserAgent;

sub get_mogile_object {
    my ($hosts, $domain) = @_;
    my $mog = MogileFS->new(
        hosts => $hosts,
        domain => $domain,
    );

lib/Apache/No404Proxy/Mogile.pm  view on Meta::CPAN

        }
    }
    return undef;
}

1;
__END__

=head1 NAME

Apache::No404Proxy::Mogile - Implementation of Apache::No404Proxy

=head1 SYNOPSIS

    # in httpd.conf
    PerlTransHandler Apache::No404Proxy::Mogile
    PerlSetVar MogileTracker 192.168.100.1:4100
    PerlSetVar MogileDomain webservice_name

=head1 EXPORT

Apache::No404Proxy::Mogile is one of the implementations of
Apache::No404Proxy. This module uses MogileFS and LWP::UserAgent to fetch
content from mogile.

=head1 AUTHOR

Nick Gerakines, C<< <nick at gerakines.net> >>

=head1 SEE ALSO

L<Apache::No404Proxy>, L<Apache::No404Proxy::Google>, L<MogileFS>

=head1 COPYRIGHT & LICENSE

Copyright 2006 Nick Gerakines, all rights reserved.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

=cut

t/00-basic.t  view on Meta::CPAN

#!perl -T

use Test::More tests => 1;

BEGIN {
	use_ok( 'Apache::No404Proxy::Mogile' );
}

diag( "Testing Apache::No404Proxy::Mogile $Apache::No404Proxy::Mogile::VERSION, Perl $], $^X" );



( run in 3.963 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )