Catalyst-Plugin-PrometheusTiny

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Carp" : "0",
            "Catalyst::Runtime" : "5.900000",
            "Moose::Role" : "0",
            "Prometheus::Tiny" : "0.006",
            "Prometheus::Tiny::Shared" : "0.021",
            "perl" : "5.010001"
         }
      },
      "test" : {
         "requires" : {
            "HTTP::Request::Common" : "0",
            "Plack" : "1.0029",
            "Scalar::Util" : "0",
            "Sub::Override" : "0",
            "Test::Deep" : "0",
            "Test::More" : "0"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {

META.yml  view on Meta::CPAN

---
abstract: 'Prometheus metrics for Catalyst'
author:
  - 'Peter Mottram (SysPete) <peter@sysnix.com>'
build_requires:
  ExtUtils::MakeMaker: '0'
  HTTP::Request::Common: '0'
  Plack: '1.0029'
  Scalar::Util: '0'
  Sub::Override: '0'
  Test::Deep: '0'
  Test::More: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010'
license: perl

Makefile.PL  view on Meta::CPAN

use ExtUtils::MakeMaker;
( do './maint/Makefile.PL.include' or die $@ ) unless -f 'META.yml';
WriteMakefile(
    NAME             => "Catalyst::Plugin::PrometheusTiny",
    ABSTRACT         => "Prometheus metrics for Catalyst",
    AUTHOR           => q{Peter Mottram (SysPete) <peter@sysnix.com>},
    VERSION_FROM     => 'lib/Catalyst/Plugin/PrometheusTiny.pm',
    MIN_PERL_VERSION => 5.010001,
    TEST_REQUIRES    => {
        'HTTP::Request::Common' => 0,
        'Plack'                 => '1.0029',
        'Scalar::Util'          => 0,
        'Sub::Override'         => 0,
        'Test::Deep'            => 0,
        'Test::More'            => 0,
    },
    PREREQ_PM => {
        'Carp'                     => 0,
        'Catalyst::Runtime'        => '5.900000',
        'Moose::Role'              => 0,

t/lib/TestApp/Helper.pm  view on Meta::CPAN

package TestApp::Helper;

use warnings;
use strict;

use Test::More;
use Test::Deep;

use HTTP::Request::Common;
use Plack::Test;
use TestApp;

sub get_metrics {
    my ( $test, $endpoint ) = @_;

    my $res = $test->request( GET $endpoint );
    return [ grep { $_ !~ /^#/ } split /\n/, $res->content ];
}



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