App-Pocoirc

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         "requires" : {
            "Test::Pod" : "1.41"
         }
      },
      "runtime" : {
         "requires" : {
            "Class::Load" : "0.20",
            "Data::Dump" : "0",
            "IO::WrapOutput" : "0.02",
            "IRC::Utils" : "0.07",
            "JSON::XS" : "0",
            "Module::Pluggable" : "0",
            "POE" : "1.310",
            "POE::Component::Client::DNS" : "0.99",
            "POE::Component::IRC::State" : "6.61",
            "Proc::Daemon" : "0.02",
            "Term::ANSIColor" : "0",
            "Term::Cap" : "1.10",
            "Term::ReadKey" : "2.21",
            "YAML::XS" : "0",
            "perl" : "5.008"

META.yml  view on Meta::CPAN

  directory:
    - t
    - xt
    - utils
    - example
requires:
  Class::Load: 0.20
  Data::Dump: 0
  IO::WrapOutput: 0.02
  IRC::Utils: 0.07
  JSON::XS: 0
  Module::Pluggable: 0
  POE: 1.310
  POE::Component::Client::DNS: 0.99
  POE::Component::IRC::State: 6.61
  Proc::Daemon: 0.02
  Term::ANSIColor: 0
  Term::Cap: 1.10
  Term::ReadKey: 2.21
  YAML::XS: 0
  perl: 5.008

Makefile.PL  view on Meta::CPAN

  "EXE_FILES" => [
    "bin/pocoirc"
  ],
  "LICENSE" => "perl",
  "NAME" => "App::Pocoirc",
  "PREREQ_PM" => {
    "Class::Load" => "0.20",
    "Data::Dump" => 0,
    "IO::WrapOutput" => "0.02",
    "IRC::Utils" => "0.07",
    "JSON::XS" => 0,
    "Module::Pluggable" => 0,
    "POE" => "1.310",
    "POE::Component::Client::DNS" => "0.99",
    "POE::Component::IRC::State" => "6.61",
    "Proc::Daemon" => "0.02",
    "Term::ANSIColor" => 0,
    "Term::Cap" => "1.10",
    "Term::ReadKey" => "2.21",
    "YAML::XS" => 0
  },

bin/pocoirc  view on Meta::CPAN


        if ($@) {
            chomp $@;
            die "Failed to read YAML data from $args{cfg_file}: $@\n"
        }
        if (ref $config ne 'HASH') {
            die "YAML data in $args{cfg_file} should be a hash\n";
        }
    }
    elsif ($args{cfg_file} =~ /\.json$/i) {
        require JSON::XS;
        JSON::XS->import('decode_json');

        open my $fh, '<', $args{cfg_file} or die "Can't open $args{cfg_file}: $!\n";
        my $json = do { local $/; <$fh> };

        eval { $config = decode_json($json) };
        if ($@) {
            chomp $@;
            die "Failed to read JSON data from $args{cfg_file}: $@\n"
        }
        if (ref $config ne 'HASH') {
            die "JSON data in $args{cfg_file} be a hash\n";
        }
    }
    else {
        die "Config file format not supported, it must be YAML or JSON\n";
    }
}
else {
    my @plugins;
    if ($args{plugin_specs} && @{ $args{plugin_specs} }) {
        require JSON::XS;
        JSON::XS->import('decode_json');

        for my $plugspec (@{ $args{plugin_specs} }) {
            my ($class, $json) = $plugspec =~ /^([:A-Za-z0-9]+)\s*(.+)?/;
            die "Missing plugin class for option --plugin\n" if !defined $class;

            my $plug_args;
            if (defined $json) {
                eval { $plug_args = decode_json($json) };
                if ($@) {
                    chomp $@;

dist.ini  view on Meta::CPAN

github_user        = hinrik
git_tag_message    = CPAN release %v
no_AutoPrereq      = 1

[Prereqs / RuntimeRequires]
perl                        = 5.008
Class::Load                 = 0.20
Data::Dump                  = 0
IRC::Utils                  = 0.07
IO::WrapOutput              = 0.02
JSON::XS                    = 0
Module::Pluggable           = 0
POE                         = 1.310
POE::Component::Client::DNS = 0.99
POE::Component::IRC::State  = 6.61
Proc::Daemon                = 0.02
Term::ANSIColor             = 0
Term::Cap                   = 1.10
Term::ReadKey               = 2.21
YAML::XS                    = 0



( run in 0.479 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )