Catalyst-Action-FromPSGI

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         }
      },
      "runtime" : {
         "requires" : {
            "Catalyst::Runtime" : "5.90049004",
            "Plack" : "0.992"
         }
      },
      "test" : {
         "requires" : {
            "HTTP::Request::Common" : "0",
            "Test::More" : "0.88",
            "Web::Simple" : "0.016"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "web" : "https://github.com/frioux/Catalyst-Action-FromPSGI/issues"
      },

META.yml  view on Meta::CPAN

---
abstract: 'Use a PSGI app as a Catalyst action'
author:
  - 'Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>'
build_requires:
  HTTP::Request::Common: '0'
  Test::More: '0.88'
  Web::Simple: '0.016'
configure_requires:
  ExtUtils::MakeMaker: '6.30'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141170'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'

Makefile.PL  view on Meta::CPAN

  },
  "DISTNAME" => "Catalyst-Action-FromPSGI",
  "EXE_FILES" => [],
  "LICENSE" => "perl",
  "NAME" => "Catalyst::Action::FromPSGI",
  "PREREQ_PM" => {
    "Catalyst::Runtime" => "5.90049004",
    "Plack" => "0.992"
  },
  "TEST_REQUIRES" => {
    "HTTP::Request::Common" => 0,
    "Test::More" => "0.88",
    "Web::Simple" => "0.016"
  },
  "VERSION" => "0.001006",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Catalyst::Runtime" => "5.90049004",
  "HTTP::Request::Common" => 0,
  "Plack" => "0.992",
  "Test::More" => "0.88",
  "Web::Simple" => "0.016"
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;

cpanfile  view on Meta::CPAN

requires 'Catalyst::Runtime' => 5.90049_004;
requires 'Plack' => 0.9920;

on test => sub {
   requires 'Web::Simple' => 0.016;
   requires 'HTTP::Request::Common' => 0;
   requires 'Test::More' => 0.88;
}

t/complex.t  view on Meta::CPAN

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use lib 't/lib';

use Catalyst::Test 'Simplyst';
use HTTP::Request::Common;

is( get('/complex/from_plack/foo'), 'Hello local world', 'app under Local works');
is( get('/globule/foo'), 'Hello globule world', 'app under Global works');
is( get('/chain1/frew/middle/frue/end/foo'), 'Hello chain: frew, frue world', 'app under Chain works');

{
    my $request = POST(
        '/complex/post_content',
        'Content'      => {qw(foo bar baz quux)},
        'Content-Type' => 'application/x-www-form-urlencoded'



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