Plack-Middleware-Text-Minify

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Test::Pod" : "1.41",
            "Test::Pod::Coverage" : "1.08",
            "Test::Pod::LinkCheck" : "0",
            "Test::Portability::Files" : "0",
            "Test::TrailingSpace" : "0.0203",
            "Test::Vars" : "0.015"
         }
      },
      "runtime" : {
         "recommends" : {
            "Ref::Util::XS" : "0"
         },
         "requires" : {
            "Plack::Middleware" : "0",
            "Ref::Util" : "0",
            "Text::Minify::XS" : "v0.7.0",
            "parent" : "0",
            "perl" : "v5.14.0",
            "warnings" : "0"
         }
      },
      "test" : {
         "recommends" : {
            "CPAN::Meta" : "2.120900"
         },

META.yml  view on Meta::CPAN

license: artistic_2
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Plack-Middleware-Text-Minify
provides:
  Plack::Middleware::Text::Minify:
    file: lib/Plack/Middleware/Text/Minify.pm
    version: v0.4.1
recommends:
  Ref::Util::XS: '0'
requires:
  Plack::Middleware: '0'
  Ref::Util: '0'
  Text::Minify::XS: v0.7.0
  parent: '0'
  perl: v5.14.0
  warnings: '0'
resources:
  bugtracker: https://github.com/robrwo/Plack-Middleware-Text-Minify/issues
  repository: git://github.com/robrwo/Plack-Middleware-Text-Minify.git
version: v0.4.1
x_authority: cpan:RRWO
x_generated_by_perl: v5.34.0

Makefile.PL  view on Meta::CPAN

  "AUTHOR" => "Robert Rothenberg <rrwo\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Plack-Middleware-Text-Minify",
  "LICENSE" => "artistic_2",
  "MIN_PERL_VERSION" => "5.014000",
  "NAME" => "Plack::Middleware::Text::Minify",
  "PREREQ_PM" => {
    "Plack::Middleware" => 0,
    "Ref::Util" => 0,
    "Text::Minify::XS" => "0.7.0",
    "parent" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "File::Temp" => 0,
    "HTTP::Request::Common" => 0,
    "IO::File" => 0,
    "Module::Metadata" => 0,

Makefile.PL  view on Meta::CPAN

  "File::Spec" => 0,
  "File::Temp" => 0,
  "HTTP::Request::Common" => 0,
  "IO::File" => 0,
  "Module::Metadata" => 0,
  "Plack::Builder" => 0,
  "Plack::MIME" => 0,
  "Plack::Middleware" => 0,
  "Plack::Middleware::ContentLength" => 0,
  "Plack::Test" => 0,
  "Ref::Util" => 0,
  "Test2::V0" => 0,
  "Test::Differences" => 0,
  "Test::More" => 0,
  "Text::Minify::XS" => "0.7.0",
  "parent" => 0,
  "strict" => 0,
  "utf8" => 0,
  "warnings" => 0
);

cpanfile  view on Meta::CPAN

# This file is generated by Dist::Zilla::Plugin::CPANFile v6.030
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.

requires "Plack::Middleware" => "0";
requires "Ref::Util" => "0";
requires "Text::Minify::XS" => "v0.7.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 "File::Temp" => "0";
  requires "HTTP::Request::Common" => "0";
  requires "IO::File" => "0";
  requires "Module::Metadata" => "0";
  requires "Plack::Builder" => "0";
  requires "Plack::MIME" => "0";
  requires "Plack::Middleware::ContentLength" => "0";

lib/Plack/Middleware/Text/Minify.pm  view on Meta::CPAN


# ABSTRACT: remove HTML indentation on the fly

use v5.14;
use warnings;

use parent qw/ Plack::Middleware /;

use Plack::Util;
use Plack::Util::Accessor qw/ path type /;
use Ref::Util qw/ is_arrayref is_coderef /;
use Text::Minify::XS v0.7.0 ();

# RECOMMEND PREREQ:  Ref::Util::XS

our $VERSION = 'v0.4.1';

sub call {
    my ($self, $env) = @_;

    my $res = $self->app->($env);

    return $res if $env->{'psgix.no-minify'};

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'Test::Pod' => '1.41',
                                      'Test::Pod::Coverage' => '1.08',
                                      'Test::Pod::LinkCheck' => '0',
                                      'Test::Portability::Files' => '0',
                                      'Test::TrailingSpace' => '0.0203',
                                      'Test::Vars' => '0.015'
                                    }
                    },
       'runtime' => {
                      'recommends' => {
                                        'Ref::Util::XS' => '0'
                                      },
                      'requires' => {
                                      'Plack::Middleware' => '0',
                                      'Ref::Util' => '0',
                                      'Text::Minify::XS' => 'v0.7.0',
                                      'parent' => '0',
                                      'perl' => 'v5.14.0',
                                      'warnings' => '0'
                                    }
                    },
       'test' => {
                   'recommends' => {
                                     'CPAN::Meta' => '2.120900'
                                   },



( run in 0.330 second using v1.01-cache-2.11-cpan-4d50c553e7e )