Plack-Middleware-Security-Simple
view release on metacpan or search on metacpan
"Test::Perl::Critic" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
"Test::Pod::LinkCheck" : "0",
"Test::Portability::Files" : "0",
"Test::TrailingSpace" : "0.0203"
}
},
"runtime" : {
"recommends" : {
"Ref::Util::XS" : "0"
},
"requires" : {
"Exporter::Tiny" : "0",
"HTTP::Status" : "0",
"Hash::Match" : "0",
"Plack::Middleware" : "0",
"Plack::Response" : "0",
"Plack::Util::Accessor" : "0",
"Ref::Util" : "0",
"Regexp::Common" : "0",
"parent" : "0",
"perl" : "v5.14.0",
"warnings" : "0"
}
},
"test" : {
"recommends" : {
"CPAN::Meta" : "2.120900"
},
version: '1.4'
name: Plack-Middleware-Security-Simple
provides:
Plack::Middleware::Security::Common:
file: lib/Plack/Middleware/Security/Common.pm
version: v0.13.0
Plack::Middleware::Security::Simple:
file: lib/Plack/Middleware/Security/Simple.pm
version: v0.13.0
recommends:
Ref::Util::XS: '0'
requires:
Exporter::Tiny: '0'
HTTP::Status: '0'
Hash::Match: '0'
Plack::Middleware: '0'
Plack::Response: '0'
Plack::Util::Accessor: '0'
Ref::Util: '0'
Regexp::Common: '0'
parent: '0'
perl: v5.14.0
warnings: '0'
resources:
bugtracker: https://github.com/robrwo/Plack-Middleware-Security-Simple/issues
repository: git://github.com/robrwo/Plack-Middleware-Security-Simple.git
version: v0.13.0
x_authority: cpan:RRWO
x_generated_by_perl: v5.34.3
Makefile.PL view on Meta::CPAN
"LICENSE" => "artistic_2",
"MIN_PERL_VERSION" => "5.014000",
"NAME" => "Plack::Middleware::Security::Simple",
"PREREQ_PM" => {
"Exporter::Tiny" => 0,
"HTTP::Status" => 0,
"Hash::Match" => 0,
"Plack::Middleware" => 0,
"Plack::Response" => 0,
"Plack::Util::Accessor" => 0,
"Ref::Util" => 0,
"Regexp::Common" => 0,
"parent" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"File::Spec" => 0,
"HTTP::Exception" => 0,
"HTTP::Request::Common" => 0,
"Log::Dispatch" => "2.68",
"Log::Dispatch::Array" => 0,
Makefile.PL view on Meta::CPAN
"HTTP::Status" => 0,
"Hash::Match" => 0,
"Log::Dispatch" => "2.68",
"Log::Dispatch::Array" => 0,
"Module::Metadata" => 0,
"Plack::Builder" => 0,
"Plack::Middleware" => 0,
"Plack::Response" => 0,
"Plack::Test" => 0,
"Plack::Util::Accessor" => 0,
"Ref::Util" => 0,
"Regexp::Common" => 0,
"Test2::V0" => 0,
"Test::More" => 0,
"Test::Vars" => "0.015",
"parent" => 0,
"strict" => 0,
"warnings" => 0
);
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.032
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
requires "Exporter::Tiny" => "0";
requires "HTTP::Status" => "0";
requires "Hash::Match" => "0";
requires "Plack::Middleware" => "0";
requires "Plack::Response" => "0";
requires "Plack::Util::Accessor" => "0";
requires "Ref::Util" => "0";
requires "Regexp::Common" => "0";
requires "parent" => "0";
requires "perl" => "v5.14.0";
requires "warnings" => "0";
recommends "Ref::Util::XS" => "0";
on 'test' => sub {
requires "File::Spec" => "0";
requires "HTTP::Exception" => "0";
requires "HTTP::Request::Common" => "0";
requires "Log::Dispatch" => "2.68";
requires "Log::Dispatch::Array" => "0";
requires "Module::Metadata" => "0";
requires "Plack::Builder" => "0";
requires "Plack::Test" => "0";
lib/Plack/Middleware/Security/Simple.pm view on Meta::CPAN
# ABSTRACT: A simple security filter for Plack
use v5.14;
use warnings;
use parent qw( Plack::Middleware );
use Hash::Match;
use HTTP::Status qw( HTTP_BAD_REQUEST );
use Ref::Util qw/ is_plain_arrayref is_plain_hashref /;
use Plack::Response;
use Plack::Util::Accessor qw( rules handler status );
# RECOMMEND PREREQ: Ref::Util::XS
our $VERSION = 'v0.13.0';
sub prepare_app {
my ($self) = @_;
if (my $rules = $self->rules) {
if ( is_plain_arrayref($rules) || is_plain_hashref($rules) ) {
t/00-report-prereqs.dd view on Meta::CPAN
'Test::Perl::Critic' => '0',
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.08',
'Test::Pod::LinkCheck' => '0',
'Test::Portability::Files' => '0',
'Test::TrailingSpace' => '0.0203'
}
},
'runtime' => {
'recommends' => {
'Ref::Util::XS' => '0'
},
'requires' => {
'Exporter::Tiny' => '0',
'HTTP::Status' => '0',
'Hash::Match' => '0',
'Plack::Middleware' => '0',
'Plack::Response' => '0',
'Plack::Util::Accessor' => '0',
'Ref::Util' => '0',
'Regexp::Common' => '0',
'parent' => '0',
'perl' => 'v5.14.0',
'warnings' => '0'
}
},
'test' => {
'recommends' => {
'CPAN::Meta' => '2.120900'
},
( run in 0.566 second using v1.01-cache-2.11-cpan-a5abf4f5562 )