Bot-Cobalt

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Import::Into" : "0",
            "JSON::MaybeXS" : "0",
            "List::Objects::Types" : "1.002",
            "List::Objects::WithUtils" : "2.008",
            "Module::Runtime" : "0",
            "Moo" : "1.006",
            "Net::IP::Minimal" : "0.04",
            "POE" : "1.3",
            "POE::Component::Client::DNS" : "0",
            "POE::Component::Client::HTTP" : "0.947",
            "POE::Component::Client::Keepalive" : "0",
            "POE::Component::IRC" : "6.78",
            "POE::Component::Resolver" : "0.920",
            "POE::Component::Syndicator" : "0.06",
            "Path::Tiny" : "0.05",
            "Proc::PID::File" : "1.26",
            "Try::Tiny" : "0",
            "Type::Tiny" : "0.04",
            "Types::Path::Tiny" : "0.005",
            "URI::Escape" : "0",
            "YAML::XS" : "0.34",

META.yml  view on Meta::CPAN

  Import::Into: '0'
  JSON::MaybeXS: '0'
  List::Objects::Types: '1.002'
  List::Objects::WithUtils: '2.008'
  Module::Runtime: '0'
  Moo: '1.006'
  Net::IP::Minimal: '0.04'
  POE: '1.3'
  POE::Component::Client::DNS: '0'
  POE::Component::Client::HTTP: '0.947'
  POE::Component::Client::Keepalive: '0'
  POE::Component::IRC: '6.78'
  POE::Component::Resolver: '0.920'
  POE::Component::Syndicator: '0.06'
  Path::Tiny: '0.05'
  Proc::PID::File: '1.26'
  Try::Tiny: '0'
  Type::Tiny: '0.04'
  Types::Path::Tiny: '0.005'
  URI::Escape: '0'
  YAML::XS: '0.34'

Makefile.PL  view on Meta::CPAN

    "Import::Into" => 0,
    "JSON::MaybeXS" => 0,
    "List::Objects::Types" => "1.002",
    "List::Objects::WithUtils" => "2.008",
    "Module::Runtime" => 0,
    "Moo" => "1.006",
    "Net::IP::Minimal" => "0.04",
    "POE" => "1.3",
    "POE::Component::Client::DNS" => 0,
    "POE::Component::Client::HTTP" => "0.947",
    "POE::Component::Client::Keepalive" => 0,
    "POE::Component::IRC" => "6.78",
    "POE::Component::Resolver" => "0.920",
    "POE::Component::Syndicator" => "0.06",
    "Path::Tiny" => "0.05",
    "Proc::PID::File" => "1.26",
    "Try::Tiny" => 0,
    "Type::Tiny" => "0.04",
    "Types::Path::Tiny" => "0.005",
    "URI::Escape" => 0,
    "YAML::XS" => "0.34",

Makefile.PL  view on Meta::CPAN

  "Import::Into" => 0,
  "JSON::MaybeXS" => 0,
  "List::Objects::Types" => "1.002",
  "List::Objects::WithUtils" => "2.008",
  "Module::Runtime" => 0,
  "Moo" => "1.006",
  "Net::IP::Minimal" => "0.04",
  "POE" => "1.3",
  "POE::Component::Client::DNS" => 0,
  "POE::Component::Client::HTTP" => "0.947",
  "POE::Component::Client::Keepalive" => 0,
  "POE::Component::IRC" => "6.78",
  "POE::Component::Resolver" => "0.920",
  "POE::Component::Syndicator" => "0.06",
  "Path::Tiny" => "0.05",
  "Proc::PID::File" => "1.26",
  "Test::File::ShareDir" => 0,
  "Test::More" => "0.88",
  "Try::Tiny" => 0,
  "Type::Tiny" => "0.04",
  "Types::Path::Tiny" => "0.005",

bin/cobalt2  view on Meta::CPAN

  }
}


sub _start_cobalt {
  my $pid = Proc::PID::File->new(
    dir => $vardir,
    name => 'cobalt',
  );
  die "cobalt appears to be already running\n"
    if $pid->alive;

  ## POSIX fork dance
  use POSIX ();
  if ($opt_detach)
  {
    say "Starting cobalt in background";
    my $fork = fork;
    exit 1 if not defined $fork;
    exit 0 if $fork;
    POSIX::setsid();

cpanfile  view on Meta::CPAN

requires "List::Objects::Types" => "1.002";

requires "Module::Runtime" => "0";
requires "Moo" => "1.006";
requires "Net::IP::Minimal" => "0.04";

requires "Path::Tiny" => "0.05";
requires "POE" => "1.3";
requires "POE::Component::Resolver" => "0.920";
requires "POE::Component::Client::HTTP" => "0.947";
requires "POE::Component::Client::Keepalive" => "0";
requires "POE::Component::Client::DNS" => "0";
requires "POE::Component::IRC" => "6.78";
requires "POE::Component::Syndicator" => "0.06";
requires "Proc::PID::File" => "1.26";

requires "Try::Tiny" => "0";
requires "Type::Tiny" => "0.04";
requires "Types::Path::Tiny" => "0.005";

requires "URI::Escape" => "0";

lib/Bot/Cobalt/Plugin/WWW.pm  view on Meta::CPAN

package Bot::Cobalt::Plugin::WWW;
$Bot::Cobalt::Plugin::WWW::VERSION = '0.021003';
use strictures 2;
use Scalar::Util 'reftype';

use Bot::Cobalt;
use Bot::Cobalt::Common;

use POE qw/
  Component::Client::HTTP
  Component::Client::Keepalive
/;


sub opts {
  my $opts = core->get_plugin_cfg($_[0])->{Opts};
  return +{} unless ref $opts and reftype $opts eq 'HASH';
  $opts
}

sub bindaddr {

lib/Bot/Cobalt/Plugin/WWW.pm  view on Meta::CPAN


  ## Create "ht_${plugin_alias}" session
  POE::Component::Client::HTTP->spawn(

    FollowRedirects => 5,

    Agent => __PACKAGE__,

    Alias => 'ht_'. core()->get_plugin_alias($self),

    ConnectionManager => POE::Component::Client::Keepalive->new(
      keep_alive   => 1,
      max_per_host => $self->max_per_host,
      max_open     => $self->max_workers,
      timeout      => $self->timeout,
    ),
    
    %opts,

  );
  
  core()->Provided->{www_request} = __PACKAGE__ ;

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'Import::Into' => '0',
                                      'JSON::MaybeXS' => '0',
                                      'List::Objects::Types' => '1.002',
                                      'List::Objects::WithUtils' => '2.008',
                                      'Module::Runtime' => '0',
                                      'Moo' => '1.006',
                                      'Net::IP::Minimal' => '0.04',
                                      'POE' => '1.3',
                                      'POE::Component::Client::DNS' => '0',
                                      'POE::Component::Client::HTTP' => '0.947',
                                      'POE::Component::Client::Keepalive' => '0',
                                      'POE::Component::IRC' => '6.78',
                                      'POE::Component::Resolver' => '0.920',
                                      'POE::Component::Syndicator' => '0.06',
                                      'Path::Tiny' => '0.05',
                                      'Proc::PID::File' => '1.26',
                                      'Try::Tiny' => '0',
                                      'Type::Tiny' => '0.04',
                                      'Types::Path::Tiny' => '0.005',
                                      'URI::Escape' => '0',
                                      'YAML::XS' => '0.34',



( run in 1.378 second using v1.01-cache-2.11-cpan-39bf76dae61 )