App-EvalServerAdvanced-ConstantCalc

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "File::Spec" : "0",
            "IO::Handle" : "0",
            "IPC::Open3" : "0",
            "Test::More" : "0",
            "Test::Perl::Critic" : "0",
            "Test::Pod" : "1.41"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::Dumper" : "0",
            "Function::Parameters" : "2.001003",
            "Moo" : "0",
            "Parser::MGC" : "0",
            "feature" : "0",
            "integer" : "0",
            "parent" : "0",
            "perl" : "v5.24.0",
            "strict" : "0",
            "warnings" : "0"
         }

META.yml  view on Meta::CPAN

    - examples
    - inc
    - share
    - t
    - xt
provides:
  App::EvalServerAdvanced::ConstantCalc:
    file: lib/App/EvalServerAdvanced/ConstantCalc.pm
    version: '0.06'
requires:
  Data::Dumper: '0'
  Function::Parameters: '2.001003'
  Moo: '0'
  Parser::MGC: '0'
  feature: '0'
  integer: '0'
  parent: '0'
  perl: v5.24.0
  strict: '0'
  warnings: '0'
resources:

Makefile.PL  view on Meta::CPAN

  "ABSTRACT" => "turns strings and constants into values",
  "AUTHOR" => "Ryan Voots <simcop2387\@simcop2387.info>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "App-EvalServerAdvanced-ConstantCalc",
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.024000",
  "NAME" => "App::EvalServerAdvanced::ConstantCalc",
  "PREREQ_PM" => {
    "Data::Dumper" => 0,
    "Function::Parameters" => "2.001003",
    "Moo" => 0,
    "Parser::MGC" => 0,
    "feature" => 0,
    "integer" => 0,
    "parent" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {

Makefile.PL  view on Meta::CPAN

    "Test::More" => 0
  },
  "VERSION" => "0.06",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Data::Dumper" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::Spec" => 0,
  "Function::Parameters" => "2.001003",
  "Moo" => 0,
  "Parser::MGC" => 0,
  "Test::More" => 0,
  "feature" => 0,
  "integer" => 0,
  "parent" => 0,
  "strict" => 0,

lib/App/EvalServerAdvanced/ConstantCalc.pm  view on Meta::CPAN

package App::EvalServerAdvanced::ConstantCalc;

our $VERSION = '0.06';

# ABSTRACT: turns strings and constants into values

use v5.24;
use Moo;
use Function::Parameters;
use Data::Dumper;

has constants => (is => 'ro', default => sub {+{}});
has _parser => (is => 'ro', default => sub {App::EvalServerAdvanced::ConstantCalc::Parser->new(consts => $_[0])});

method get_value($key) {
  die "Missing constant [$key]" unless exists($self->constants->{$key});

  return $self->constants->{$key};
}

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

                                      'File::Spec' => '0',
                                      'IO::Handle' => '0',
                                      'IPC::Open3' => '0',
                                      'Test::More' => '0',
                                      'Test::Perl::Critic' => '0',
                                      'Test::Pod' => '1.41'
                                    }
                    },
       'runtime' => {
                      'requires' => {
                                      'Data::Dumper' => '0',
                                      'Function::Parameters' => '2.001003',
                                      'Moo' => '0',
                                      'Parser::MGC' => '0',
                                      'feature' => '0',
                                      'integer' => '0',
                                      'parent' => '0',
                                      'perl' => 'v5.24.0',
                                      'strict' => '0',
                                      'warnings' => '0'
                                    }



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