Catmandu-Plack-unAPI

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      "runtime" : {
         "requires" : {
            "Catmandu" : "0.9204",
            "Plack" : "1.0",
            "Plack::App::unAPI" : "0.61",
            "perl" : "5.010"
         }
      },
      "test" : {
         "requires" : {
            "HTTP::Request::Common" : "0",
            "Moo" : "0",
            "Plack::Test" : "0",
            "Test::More" : "0.96"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "web" : "https://github.com/gbv/Catmandu-Plack-unAPI/issues"

META.yml  view on Meta::CPAN

---
abstract: 'unAPI webservice based on Catmandu'
author:
  - 'Jakob Voß'
build_requires:
  HTTP::Request::Common: '0'
  Moo: '0'
  Plack::Test: '0'
  Test::More: '0.96'
configure_requires:
  Module::Build::Tiny: '0.037'
dynamic_config: 0
generated_by: 'Dist::Milla version v1.0.8, Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.141520'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html

cpanfile  view on Meta::CPAN

requires 'perl', '5.010';

requires 'Catmandu', '0.9204';
requires 'Plack', '1.0';
requires 'Plack::App::unAPI', '0.61';

on test => sub {
    requires 'Test::More', '0.96';
    requires 'Plack::Test';
    requires 'Moo';
    requires 'HTTP::Request::Common';
};

t/basic.t  view on Meta::CPAN

use strict;
use Test::More;
use HTTP::Request::Common;
use Plack::Test;

use_ok 'Catmandu::Plack::unAPI';
new_ok 'Catmandu::Plack::unAPI';

my $app = Catmandu::Plack::unAPI->new(
    query => sub { $_[0] =~ /\d+/ ? { hello => 'world' } : undef }
);

test_psgi $app, sub {

t/formats.t  view on Meta::CPAN

use strict;
use Test::More;
use HTTP::Request::Common;
use Plack::Test;
use Catmandu::Plack::unAPI;

{
    package Catmandu::Exporter::PlainText;
    use Moo;
    with 'Catmandu::Exporter';
    sub add {
        my ($self, $data) = @_;
        print {$self->fh} join('=', %$data) if $data;

t/store.t  view on Meta::CPAN

use strict;
use Test::More;
use HTTP::Request::Common;
use Plack::Test;
use Catmandu::Store::Hash;
use Catmandu::Plack::unAPI;

my $store = Catmandu::Store::Hash->new();
$store->add({_id => 42, foo => 'bar'});

my $app = Catmandu::Plack::unAPI->new( store => $store );

test_psgi $app, sub {



( run in 0.465 second using v1.01-cache-2.11-cpan-de7293f3b23 )