Catalyst-Plugin-JSONRPC-Server

 view release on metacpan or  search on metacpan

AGENTS.md  view on Meta::CPAN

change does what it claims. A change is not done until `prove -lr t` is green.

## Build and test

    cpanm --installdeps .                          # dependencies
    prove -lr t                                    # the suite
    PERL_CRITIC_TEST=1 prove -l t/perl_critic.t    # style gate

## Conventions

- Perl 5.36+; subroutine signatures. Moo for OO; Try::Tiny over bare `eval`.
- Four-space soft tabs, no hard tabs, no trailing whitespace, newline at EOF.
- POD and comments are ASCII-only: rewrite prose rather than adding non-ASCII
  characters (no em dashes).
- Perl::Critic severity 3 (see `.perlcriticrc`); keep the critic test clean
  rather than scattering `## no critic`.

## Versioning and releases

- The version lives in every module's `$VERSION` (they move together) and is
  read from the main module by `Makefile.PL`.

META.json  view on Meta::CPAN

            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Carp" : "0",
            "Catalyst::Runtime" : "5.90000",
            "JSON::MaybeXS" : "0",
            "Moo" : "0",
            "Scalar::Util" : "0",
            "Try::Tiny" : "0",
            "namespace::clean" : "0",
            "perl" : "5.036"
         }
      },
      "test" : {
         "requires" : {
            "HTTP::Request::Common" : "0",
            "Moose" : "0",
            "Test::Fatal" : "0",
            "Test::More" : "0.98"

META.yml  view on Meta::CPAN

no_index:
  directory:
    - t
    - inc
requires:
  Carp: '0'
  Catalyst::Runtime: '5.90000'
  JSON::MaybeXS: '0'
  Moo: '0'
  Scalar::Util: '0'
  Try::Tiny: '0'
  namespace::clean: '0'
  perl: '5.036'
resources:
  bugtracker: https://github.com/fleetfootmike/Catalyst-Plugin-JSONRPC-Server/issues
  homepage: https://github.com/fleetfootmike/Catalyst-Plugin-JSONRPC-Server
  repository: https://github.com/fleetfootmike/Catalyst-Plugin-JSONRPC-Server.git
version: '0.004'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

WriteMakefile(
    NAME             => 'Catalyst::Plugin::JSONRPC::Server',
    VERSION_FROM     => 'lib/Catalyst/Plugin/JSONRPC/Server.pm',
    ABSTRACT         => 'Generic JSON-RPC 2.0 server plugin for Catalyst',
    AUTHOR           => 'Mike Whitaker <mike@altrion.org>',
    LICENSE          => 'perl_5',
    MIN_PERL_VERSION => '5.036',
    PREREQ_PM => {
        'Moo'              => 0,
        'JSON::MaybeXS'    => 0,
        'Try::Tiny'        => 0,
        'namespace::clean' => 0,
        'Carp'             => 0,
        'Scalar::Util'     => 0,
        'Catalyst::Runtime' => '5.90000',
    },
    TEST_REQUIRES => {
        'Test::More'            => '0.98',
        'Test::Fatal'           => 0,
        'HTTP::Request::Common' => 0,
        'Moose'                 => 0,

cpanfile  view on Meta::CPAN

requires 'perl', '5.036';
requires 'Moo';
requires 'JSON::MaybeXS';
requires 'Try::Tiny';
requires 'namespace::clean';
requires 'Carp';
requires 'Scalar::Util';
requires 'Catalyst::Runtime', '5.90000';

on test => sub {
    requires 'Test::More', '0.98';
    requires 'Test::Fatal';
    requires 'HTTP::Request::Common';
    requires 'Moose';

lib/Catalyst/Plugin/JSONRPC/Server/Dispatcher.pm  view on Meta::CPAN

package Catalyst::Plugin::JSONRPC::Server::Dispatcher;
use v5.36;
use Moo;
use JSON::MaybeXS ();
use Try::Tiny;
use Carp qw/croak/;
use Scalar::Util qw/blessed/;
use Catalyst::Plugin::JSONRPC::Server::Error;
use namespace::clean;

our $VERSION = '0.003';

=encoding utf8

=head1 NAME



( run in 0.541 second using v1.01-cache-2.11-cpan-5fbc6bb55f2 )