Catalyst-ActionRole-Methods

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Release history for Catalyst-ActionRole-Methods

0.104 - 2024-03-21
  - Support for HTTP::Request::Common < 6.21

0.103 - 2024-02-25
  - Correct content type for the default 405 response
  - Minor code cleanups and speedups
  - Improved documentation
  - Updated packaging

0.102 - 2024-02-25
[ Retracted: Identical to 0.103 except for some bad POD formatting ]

META.json  view on Meta::CPAN

         "requires" : {
            "Catalyst" : "5.90060",
            "Moose::Role" : "2.0602",
            "perl" : "5.008003"
         }
      },
      "test" : {
         "requires" : {
            "Catalyst::Controller" : "0",
            "Catalyst::Test" : "0",
            "HTTP::Request::Common" : "0",
            "Test::More" : "0.88"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "web" : "https://github.com/jjn1056/Catalyst-ActionRole-Methods/issues"
      },
      "license" : [

META.yml  view on Meta::CPAN

---
abstract: 'Dispatch by HTTP Methods'
author:
  - 'Aristotle Pagaltzis <pagaltzis@gmx.de>'
  - 'John Napiorkowski <jjnapiork@cpan.org>'
build_requires:
  Catalyst::Controller: '0'
  Catalyst::Test: '0'
  HTTP::Request::Common: '0'
  Test::More: '0.88'
dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Catalyst-ActionRole-Methods
no_index:
  directory:

Makefile.PL  view on Meta::CPAN

				perl 5.008003
				Catalyst 5.90060
				Moose::Role 2.0602
			)},
		},
		test => {
			requires => {qw(
				Test::More 0.88
				Catalyst::Test 0
				Catalyst::Controller 0
				HTTP::Request::Common 0
			)},
		},
	},
);

require './inc/WriteMakefile.pl';

t/basic.t  view on Meta::CPAN

  $INC{'MyApp/Controller/Root.pm'} = __FILE__;
  MyApp::Controller::Root->config(namespace=>'');

  package MyApp;
  use Catalyst;
  
  MyApp->setup;
}

use Catalyst::Test 'MyApp';
use HTTP::Request::Common;
# polyfill for HTTP::Request::Common < 6.21
BEGIN { defined &OPTIONS or *OPTIONS = sub { ( my $req = &POST )->method( 'OPTIONS' ); $req } }

{
  ok my $res = request(GET '/22');
  is $res->content, '1get22';
}

{
  ok my $res = request(HEAD '/22');
  is $res->content, '';



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