Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-CatalystX-REPL
perl-CatalystX-REPL.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-CatalystX-REPL.spec of Package perl-CatalystX-REPL
# # spec file for package perl-CatalystX-REPL # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-CatalystX-REPL Version: 0.04 Release: 1 License: GPL+ or Artistic %define cpan_name CatalystX-REPL Summary: read-eval-print-loop for debugging your Catalyst application Url: http://search.cpan.org/dist/CatalystX-REPL/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/F/FL/FLORA/CatalystX-REPL-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.gz BuildRequires: perl(Carp::REPL) BuildRequires: perl(Catalyst) BuildRequires: perl(namespace::autoclean) BuildRequires: perl(Test::Expect) BuildRequires: perl BuildRequires: perl-macros Requires: perl(Carp::REPL) Requires: perl(Catalyst) Requires: perl(namespace::autoclean) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{perl_requires} %description Using Carp::REPL with a Catalyst application is hard. That's because of all the internal exceptions that are being thrown and caught by Catalyst during application startup. You'd have to manually skip over all of those. This role works around that by automatically setting up Carp::REPL after starting your application, if the 'CATALYST_REPL' or 'MYAPP_REPL' environment variables are set: MYAPP_REPL=1 ./script/myapp_server.pl # Hit an action ... 42 at lib/MyApp/Controller/Foo.pm line 8. # instead of exiting, you get a REPL! Trace begun at lib/MyApp/Controller/Foo.pm line 8 MyApp::Controller::Foo::bar('MyApp::Controller::Foo=HASH(0xc9fe20)', 'MyApp=HASH(0xcea6a4)') called at ... ... # Many more lines of stack trace $ $c MyApp=HASH(0xcea6ec) $ $c->req->uri http://localhost/foo/bar $ Options like 'warn' or 'nodie' can be passed to Carp::REPL by putting them, seperated by commas, into the environment variable: MYAPP_REPL=warn,nodie ./script/myapp_server.pl Carp::REPL uses the Devel::REPL manpage for the shell, so direct any questions how how to use or customize the repl at that module. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %doc Changes dist.ini LICENSE README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor