Accepting request 741581 from devel:languages:perl:autoupdate
- updated to 0.17 see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes 0.17 2018-02-22 06:11:23 JST - Added support for loading debug middleware outside of the Plack::Middleware::Debug::* namespace, by prefixing the name of middleware with a "+", e.g. "+My::Plack::Middleware::Debug::Something". - Debug.pm no longer injects inline JavaScript 0.16 2013-09-06 11:41:25 PDT - Merge with upstream 0.15 2013-09-06 11:37:24 PDT - Convert to Milla - Fix broken latin-1 META.yml 0.14 - Fixed warnings (chiselwright) 0.13 - Fixed the way $spec mangling works (Jon Swartz) 0.12 - Added experimental TrackObjects panel - Fixed UUV warnings for Catalyst (jjn1016) 0.11 - Fixed memory leaks in Parameters panel (jnap) - Fixed memory leaks in responses not HTML/XML (forwardever) - updated to 0.14 see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes 0.14 - Fixed warnings (chiselwright) 0.13 - Fixed the way $spec mangling works (Jon Swartz) 0.12 - Added experimental TrackObjects panel - Fixed UUV warnings for Catalyst (jjn1016) 0.11 - Fixed memory leaks in Parameters panel (jnap) - Fixed memory leaks in responses not HTML/XML (forwardever) OBS-URL: https://build.opensuse.org/request/show/741581 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Plack-Middleware-Debug?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
7ede72f97f
commit
1ad6b08d6e
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d6b65efd651bf16d8db91a334282438dba575e35ccbca03a3dae5f71ca12f244
|
|
||||||
size 67767
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:696510f4b189eb3e179ac1d6ea2f2b2b15fcd22674ccd1f924dc19168729890c
|
|
||||||
size 73285
|
|
3
Plack-Middleware-Debug-0.17.tar.gz
Normal file
3
Plack-Middleware-Debug-0.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a30b62f1bb94e641f7b60b5ea5335e140c553b4131ec4003b56db37f47617a26
|
||||||
|
size 52951
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,58 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 3 07:24:42 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 0.17
|
||||||
|
see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes
|
||||||
|
|
||||||
|
0.17 2018-02-22 06:11:23 JST
|
||||||
|
|
||||||
|
- Added support for loading debug middleware outside of the
|
||||||
|
Plack::Middleware::Debug::* namespace, by prefixing the name of
|
||||||
|
middleware with a "+",
|
||||||
|
e.g. "+My::Plack::Middleware::Debug::Something".
|
||||||
|
- Debug.pm no longer injects inline JavaScript
|
||||||
|
|
||||||
|
0.16 2013-09-06 11:41:25 PDT
|
||||||
|
- Merge with upstream
|
||||||
|
|
||||||
|
0.15 2013-09-06 11:37:24 PDT
|
||||||
|
- Convert to Milla
|
||||||
|
- Fix broken latin-1 META.yml
|
||||||
|
|
||||||
|
0.14 Sun Sep 18 12:51:49 PDT 2011
|
||||||
|
- Fixed warnings (chiselwright)
|
||||||
|
|
||||||
|
0.13 Mon Jul 18 13:57:27 PDT 2011
|
||||||
|
- Fixed the way $spec mangling works (Jon Swartz)
|
||||||
|
|
||||||
|
0.12 Mon Mar 28 16:20:54 PDT 2011
|
||||||
|
- Added experimental TrackObjects panel
|
||||||
|
- Fixed UUV warnings for Catalyst (jjn1016)
|
||||||
|
|
||||||
|
0.11 Fri Jan 14 10:54:53 PST 2011
|
||||||
|
- Fixed memory leaks in Parameters panel (jnap)
|
||||||
|
- Fixed memory leaks in responses not HTML/XML (forwardever)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 3 07:24:41 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 0.14
|
||||||
|
see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes
|
||||||
|
|
||||||
|
0.14 Sun Sep 18 12:51:49 PDT 2011
|
||||||
|
- Fixed warnings (chiselwright)
|
||||||
|
|
||||||
|
0.13 Mon Jul 18 13:57:27 PDT 2011
|
||||||
|
- Fixed the way $spec mangling works (Jon Swartz)
|
||||||
|
|
||||||
|
0.12 Mon Mar 28 16:20:54 PDT 2011
|
||||||
|
- Added experimental TrackObjects panel
|
||||||
|
- Fixed UUV warnings for Catalyst (jjn1016)
|
||||||
|
|
||||||
|
0.11 Fri Jan 14 10:54:53 PST 2011
|
||||||
|
- Fixed memory leaks in Parameters panel (jnap)
|
||||||
|
- Fixed memory leaks in responses not HTML/XML (forwardever)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 1 13:34:30 UTC 2010 - coolo@novell.com
|
Wed Dec 1 13:34:30 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Plack-Middleware-Debug (Version 0.10)
|
# spec file for package perl-Plack-Middleware-Debug
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,79 +12,139 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
Name: perl-Plack-Middleware-Debug
|
Name: perl-Plack-Middleware-Debug
|
||||||
|
Version: 0.17
|
||||||
|
Release: 0
|
||||||
%define cpan_name Plack-Middleware-Debug
|
%define cpan_name Plack-Middleware-Debug
|
||||||
Summary: Display information about the current request/response
|
Summary: Display information about the current request/response
|
||||||
Version: 0.10
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Release: 1
|
|
||||||
License: GPL+ or Artistic
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/Plack-Middleware-Debug/
|
Url: https://metacpan.org/release/%{cpan_name}
|
||||||
#Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-Middleware-Debug-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source1: cpanspec.yml
|
||||||
Patch0: test-more-no-plan-and-note-removal.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Class::Method::Modifiers) >= 1.05
|
BuildRequires: perl(Class::Method::Modifiers) >= 1.05
|
||||||
BuildRequires: perl(Data::Dump)
|
BuildRequires: perl(Data::Dump)
|
||||||
|
BuildRequires: perl(Data::Dumper::Concise)
|
||||||
|
BuildRequires: perl(Encode) >= 2.23
|
||||||
BuildRequires: perl(File::ShareDir) >= 1.00
|
BuildRequires: perl(File::ShareDir) >= 1.00
|
||||||
BuildRequires: perl(Module::Versions) >= 0.01
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
||||||
BuildRequires: perl(parent)
|
|
||||||
BuildRequires: perl(Plack)
|
BuildRequires: perl(Plack)
|
||||||
BuildRequires: perl(Text::MicroTemplate)
|
BuildRequires: perl(Test::More) >= 0.70
|
||||||
|
BuildRequires: perl(Test::Requires) >= 0.08
|
||||||
|
BuildRequires: perl(Text::MicroTemplate) >= 0.15
|
||||||
|
BuildRequires: perl(parent)
|
||||||
Requires: perl(Class::Method::Modifiers) >= 1.05
|
Requires: perl(Class::Method::Modifiers) >= 1.05
|
||||||
Requires: perl(Data::Dump)
|
Requires: perl(Data::Dump)
|
||||||
|
Requires: perl(Data::Dumper::Concise)
|
||||||
|
Requires: perl(Encode) >= 2.23
|
||||||
Requires: perl(File::ShareDir) >= 1.00
|
Requires: perl(File::ShareDir) >= 1.00
|
||||||
Requires: perl(Module::Versions) >= 0.01
|
|
||||||
Requires: perl(parent)
|
|
||||||
Requires: perl(Plack)
|
Requires: perl(Plack)
|
||||||
Requires: perl(Text::MicroTemplate)
|
Requires: perl(Text::MicroTemplate) >= 0.15
|
||||||
|
Requires: perl(parent)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The debug middleware offers a configurable set of panels that displays
|
The debug middleware offers a configurable set of panels that displays
|
||||||
information about the current request and response. The information is
|
information about the current request and response. The information is
|
||||||
generated only for responses with a status of 200 (OK) and a Content-Type
|
generated only for responses with a status of 200 ('OK') and a
|
||||||
that contains text/html or application/xhtml+xml and is embedded in the
|
'Content-Type' that contains 'text/html' or 'application/xhtml+xml' and is
|
||||||
HTML that is sent back to the browser. Also the code is injected directly
|
embedded in the HTML that is sent back to the browser.
|
||||||
before the </body> tag so if there is no such tag, the information will not
|
|
||||||
be injected.
|
Note that the code is injected *directly before the closing tag*
|
||||||
|
('</body>') so if there is no such tag, the debug panel will not be
|
||||||
|
injected at all.
|
||||||
|
|
||||||
|
To enable the middleware, just use Plack::Builder as usual in your '.psgi'
|
||||||
|
file:
|
||||||
|
|
||||||
|
use Plack::Builder;
|
||||||
|
|
||||||
|
builder {
|
||||||
|
enable 'Debug', panels => [ qw(DBITrace Memory Timer) ];
|
||||||
|
$app;
|
||||||
|
};
|
||||||
|
|
||||||
|
The 'Debug' middleware takes an optional 'panels' argument whose value is
|
||||||
|
expected to be a reference to an array of panel specifications. If given,
|
||||||
|
only those panels will be enabled. If you don't pass a 'panels' argument,
|
||||||
|
the default list of panels - 'Environment', 'Response', 'Timer', 'Memory',
|
||||||
|
'Session' and 'DBITrace' - will be enabled, each with their default
|
||||||
|
settings, and automatically disabled if their target modules or middleware
|
||||||
|
components are not loaded.
|
||||||
|
|
||||||
|
Each panel specification can take one of three forms:
|
||||||
|
|
||||||
|
* A string
|
||||||
|
|
||||||
|
This is interpreted as the base name of a panel in the
|
||||||
|
'Plack::Middeware::Debug::' namespace, unless preceded by '+', in which
|
||||||
|
case it's interpreted as an absolute name similar to how Plack::Builder
|
||||||
|
handles such names, e.g. '+My::Plack::Middleware::Debug::Something'.
|
||||||
|
|
||||||
|
The panel class is loaded and a panel object is created with its default
|
||||||
|
settings.
|
||||||
|
|
||||||
|
* An array reference
|
||||||
|
|
||||||
|
If you need to pass arguments to the panel object as it is created, you may
|
||||||
|
use this form (But see below).
|
||||||
|
|
||||||
|
The first element of the array reference has to be the panel base name. The
|
||||||
|
remaining elements are key/value pairs to be passed to the panel.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
builder {
|
||||||
|
enable 'Debug', panels =>
|
||||||
|
[ qw(Environment Response Timer Memory),
|
||||||
|
[ 'DBITrace', level => 2 ]
|
||||||
|
];
|
||||||
|
$app;
|
||||||
|
};
|
||||||
|
|
||||||
|
Because each panel is a middleware component, you can write this way as
|
||||||
|
well:
|
||||||
|
|
||||||
|
builder {
|
||||||
|
enable 'Debug'; # load defaults
|
||||||
|
enable 'Debug::DBITrace', level => 2;
|
||||||
|
$app;
|
||||||
|
};
|
||||||
|
|
||||||
|
Note that the '<enable 'Debug''> line should come before other Debug panels
|
||||||
|
because of the order middleware components are executed.
|
||||||
|
|
||||||
|
* Custom middleware
|
||||||
|
|
||||||
|
You can also pass a Panel middleware component. This might be useful if you
|
||||||
|
have custom debug panels in your framework or web application.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch0 -p1
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Build.PL --installdirs=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
./Build build --flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
# do not perl_process_packlist (noarch)
|
|
||||||
# remove .packlist file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
||||||
# remove perllocal.pod file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
# Bug in perl_gen_filelist macro: remove %{perl_vendorlib}/auto from files list
|
|
||||||
%{__sed} -ie 's#^%dir %{perl_vendorlib}/auto$##' %{name}.files
|
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README README.mkdn
|
%doc Changes examples README
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user