[Catalyst-commits] r10232 - in Catalyst-Engine-Embeddable/trunk: . lib/Catalyst/Engine

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Fri May 22 01:07:41 GMT 2009


Author: t0m
Date: 2009-05-22 01:07:41 +0000 (Fri, 22 May 2009)
New Revision: 10232

Added:
   Catalyst-Engine-Embeddable/trunk/MANIFEST.SKIP
Removed:
   Catalyst-Engine-Embeddable/trunk/MANIFEST
   Catalyst-Engine-Embeddable/trunk/README
Modified:
   Catalyst-Engine-Embeddable/trunk/
   Catalyst-Engine-Embeddable/trunk/Makefile.PL
   Catalyst-Engine-Embeddable/trunk/lib/Catalyst/Engine/Embeddable.pm
Log:
Remove generated files, switch to M::I, add MANIFEST.SKIP, change to float version string


Property changes on: Catalyst-Engine-Embeddable/trunk
___________________________________________________________________
Name: svn:ignore
   + META.yml
pm_to_blib
blib
inc
Makefile
MANIFEST.bak
Makefile.old



Deleted: Catalyst-Engine-Embeddable/trunk/MANIFEST
===================================================================
--- Catalyst-Engine-Embeddable/trunk/MANIFEST	2009-05-22 00:50:13 UTC (rev 10231)
+++ Catalyst-Engine-Embeddable/trunk/MANIFEST	2009-05-22 01:07:41 UTC (rev 10232)
@@ -1,8 +0,0 @@
-t/lib/TestApp/Controller/Root.pm
-t/lib/TestApp.pm
-t/request.t
-Changes
-Makefile.PL
-README
-MANIFEST
-lib/Catalyst/Engine/Embeddable.pm

Added: Catalyst-Engine-Embeddable/trunk/MANIFEST.SKIP
===================================================================
--- Catalyst-Engine-Embeddable/trunk/MANIFEST.SKIP	                        (rev 0)
+++ Catalyst-Engine-Embeddable/trunk/MANIFEST.SKIP	2009-05-22 01:07:41 UTC (rev 10232)
@@ -0,0 +1,25 @@
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+# Avoid temp and backup files.
+~$
+\.tmp$
+\.old$
+\.bak$
+\#$
+\b\.#
+^..*\.sw[po]$
+# Avoid ShipIt configuration
+.shipit

Modified: Catalyst-Engine-Embeddable/trunk/Makefile.PL
===================================================================
--- Catalyst-Engine-Embeddable/trunk/Makefile.PL	2009-05-22 00:50:13 UTC (rev 10231)
+++ Catalyst-Engine-Embeddable/trunk/Makefile.PL	2009-05-22 01:07:41 UTC (rev 10232)
@@ -1,10 +1,13 @@
 use 5.008006;
-use ExtUtils::MakeMaker;
-WriteMakefile
-  (
-   NAME              => 'Catalyst::Engine::Embeddable',
-   VERSION_FROM      => 'lib/Catalyst/Engine/Embeddable.pm',
-   PREREQ_PM         => { Catalyst::Runtime => 5.7011, URI => 0, HTTP::Response => 0, HTTP::Request => 0, HTTP::Body => 0 },
-   ABSTRACT_FROM  => 'lib/Catalyst/Engine/Embeddable.pm',
-   AUTHOR         => 'Daniel Ruoso <daniel at ruoso.com>',
-  );
+use inc::Module::Install 0.78;
+name 'Catalyst-Engine-Embeddable';
+all_from 'lib/Catalyst/Engine/Embeddable.pm';
+requires 'Catalyst::Runtime' => '5.80004';
+requires 'URI' => '0';
+requires 'HTTP::Response' => '0';
+requires 'HTTP::Request' => '0';
+requires 'HTTP::Body' => '0';
+
+auto_install;
+WriteAll;
+

Deleted: Catalyst-Engine-Embeddable/trunk/README
===================================================================
--- Catalyst-Engine-Embeddable/trunk/README	2009-05-22 00:50:13 UTC (rev 10231)
+++ Catalyst-Engine-Embeddable/trunk/README	2009-05-22 01:07:41 UTC (rev 10232)
@@ -1,88 +0,0 @@
-NAME
-    Catalyst::Engine::Embeddable - Use a Catalyst application as an object
-
-SYNOPSIS
-      # after creating the application using this engine, you can just
-      my $http_response;
-      my $response_code $app->handle_request(
-               $http_request, \$http_response);
-
-ABSTRACT
-    Enables a Catalyst application to be used as a standard Perl object.
-
-SUMMARY
-    This module provides a way to embed a Catalyst application in any other
-    program using standard Perl Object Orientation to do a request and get
-    the response.
-
-    It works by using the arguments that are passed from the handle_request
-    method in the Catalyst module to the prepare_request method in the
-    engine, which will then handle the request as coming from the
-    HTTP::Request object passed, instead of trying to fetch the elements
-    from the ENV, like the CGI engine does.
-
-    As the handle_request method only returns the response code and not the
-    response object at all, in the case you want the complete response you
-    need to pass a second argument which is a scalar ref where the
-    HTTP::Response object will be stored in the "finalize" phase of the
-    processing.
-
-    This engine provides complete compatibility with any plugin the
-    application may use, in a way that different embedded applications may
-    use different plugins and still be used side-by-side.
-
-    There's one important consideration regarding the URI in the request.
-    For the means of the Catalyst processing, the base path for the script
-    is always constructed as the "/" path of the same URI as the request.
-
-METHODS
-    The following methods were overriden from Catalyst::Engine.
-
-    $engine->prepare_request($c, $http_request, $http_response_ret_ref)
-        This method is overrided in order to store the request and the
-        response in $c as to continue the processing later. The scalar ref
-        here will be used to set the response object, as there is no other
-        way to obtain the response.
-
-        This information will be stored as
-        $c->req->{_engine_embeddable}{req} and
-        $c->req->{_engine_embeddable}{res} for future usage.
-
-    $engine->prepare_headers($c)
-        This is where the headers are fetched from the HTTP::Request object
-        and set into $c->req.
-
-    $engine->prepare_path($c)
-        Get the path info from the HTTP::Request object.
-
-    $engine->prepare_query_parameters($c)
-        Set the query params from the HTTP::Request to the catalyst request.
-
-    $engine->prepare_body($c)
-        Gets the body of the HTTP::Request, creates an HTTP::Body object,
-        and set it in $c->req->{_body}, then being compatible with
-        Catalyst::Engine from now on.
-
-    $engine->finalize_headers($c)
-        Set the "Status" header in the response and store the headers from
-        the catalyst response object to the HTTP::Response object.
-
-    $engine->finalize_body($c)
-        Copies the body from the catalyst response to the HTTP::Response
-        object.
-
-SEE ALSO
-    Catalyst::Engine, Catalyst::Engine::CGI, HTTP::Request, HTTP::Reponse,
-    Catalyst
-
-AUTHORS
-    Daniel Ruoso "daniel at ruoso.com"
-
-BUG REPORTS
-    Please submit all bugs regarding "Catalyst::Engine::Embeddable" to
-    "bug-catalyst-engine-embeddable at rt.cpan.org"
-
-LICENSE
-    This library is free software, you can redistribute it and/or modify it
-    under the same terms as Perl itself.
-

Modified: Catalyst-Engine-Embeddable/trunk/lib/Catalyst/Engine/Embeddable.pm
===================================================================
--- Catalyst-Engine-Embeddable/trunk/lib/Catalyst/Engine/Embeddable.pm	2009-05-22 00:50:13 UTC (rev 10231)
+++ Catalyst-Engine-Embeddable/trunk/lib/Catalyst/Engine/Embeddable.pm	2009-05-22 01:07:41 UTC (rev 10232)
@@ -1,6 +1,5 @@
 package Catalyst::Engine::Embeddable;
-
-our $VERSION = '0.0.1';
+our $VERSION = '0.000002';
 use base qw(Catalyst::Engine);
 use strict;
 use warnings;




More information about the Catalyst-commits mailing list