App-DNS-Adblock

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Pod::Coverage::TrustPod" : "0",
            "Test::Kwalitee" : "1.12",
            "Test::Pod" : "1.41",
            "Test::Pod::Coverage" : "1.08"
         }
      },
      "runtime" : {
         "requires" : {
            "Capture::Tiny" : "0",
            "Carp" : "0",
            "Data::Dumper" : "0",
            "LWP::Simple" : "0",
            "Mozilla::CA" : "0",
            "Net::DNS" : "0.74",
            "Net::DNS::Nameserver" : "0",
            "POSIX" : "0",
            "Storable" : "0",
            "Sys::HostIP" : "0",
            "perl" : "5.010",
            "strict" : "0",
            "warnings" : "0"

META.yml  view on Meta::CPAN

dynamic_config: 0
generated_by: 'Dist::Zilla version 5.008, CPAN::Meta::Converter version 2.133380'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: 1.4
name: App-DNS-Adblock
requires:
  Capture::Tiny: 0
  Carp: 0
  Data::Dumper: 0
  LWP::Simple: 0
  Mozilla::CA: 0
  Net::DNS: 0.74
  Net::DNS::Nameserver: 0
  POSIX: 0
  Storable: 0
  Sys::HostIP: 0
  perl: 5.010
  strict: 0
  warnings: 0

Makefile.PL  view on Meta::CPAN

  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => "6.30"
  },
  "DISTNAME" => "App-DNS-Adblock",
  "EXE_FILES" => [],
  "LICENSE" => "perl",
  "NAME" => "App::DNS::Adblock",
  "PREREQ_PM" => {
    "Capture::Tiny" => 0,
    "Carp" => 0,
    "Data::Dumper" => 0,
    "LWP::Simple" => 0,
    "Mozilla::CA" => 0,
    "Net::DNS" => "0.74",
    "Net::DNS::Nameserver" => 0,
    "POSIX" => 0,
    "Storable" => 0,
    "Sys::HostIP" => 0,
    "strict" => 0,
    "warnings" => 0
  },

Makefile.PL  view on Meta::CPAN

  "VERSION" => "0.015",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Capture::Tiny" => 0,
  "Carp" => 0,
  "Data::Dumper" => 0,
  "LWP::Simple" => 0,
  "Mozilla::CA" => 0,
  "Net::DNS" => "0.74",
  "Net::DNS::Nameserver" => 0,
  "Net::DNS::Resolver" => 0,
  "POSIX" => 0,
  "Storable" => 0,
  "Sys::HostIP" => 0,
  "Test::More" => 0,
  "lib" => 0,

lib/App/DNS/Adblock.pm  view on Meta::CPAN

use Net::DNS::Nameserver;
use Sys::HostIP;
use Capture::Tiny qw(capture);
use LWP::Simple qw($ua getstore);
$ua->agent("");
use Mozilla::CA;

use POSIX qw( strftime );
use Carp;

use Data::Dumper;

use Storable qw(freeze thaw);

my $attributes;

sub new {
	my ( $class, %self ) = @_;
	my $self = { %self };
	bless $self, $class;

t/1.t  view on Meta::CPAN

use Data::Dumper;
use Test::More;
use Net::DNS::Resolver;

use lib "../lib/";
use App::DNS::Adblock;

$SIG{CHLD} = 'IGNORE';

my $host = '127.0.0.1';
my $port = int(rand(9999)) + 10000;



( run in 0.597 second using v1.01-cache-2.11-cpan-4d50c553e7e )