[Bps-public-commit] r16805 - in sd/trunk: . lib/App/SD lib/App/SD/Server

jesse at bestpractical.com jesse at bestpractical.com
Mon Nov 10 08:52:03 EST 2008


Author: jesse
Date: Mon Nov 10 08:52:03 2008
New Revision: 16805

Added:
   sd/trunk/lib/App/SD/Server/Dispatcher.pm
Modified:
   sd/trunk/   (props changed)
   sd/trunk/Makefile.PL
   sd/trunk/lib/App/SD/Model/Ticket.pm
   sd/trunk/lib/App/SD/Record.pm

Log:
 r51804 at 31b:  jesse | 2008-11-10 13:49:48 +0800
 * starting work to allow sd to have its own dispatch logic
     - @Great Wall
 r51806 at 31b:  jesse | 2008-11-10 14:55:33 +0800
 * a bit of cleanup in advance of committing a test file for the sd server - @greatwall


Modified: sd/trunk/Makefile.PL
==============================================================================
--- sd/trunk/Makefile.PL	(original)
+++ sd/trunk/Makefile.PL	Mon Nov 10 08:52:03 2008
@@ -5,7 +5,7 @@
 license('MIT');
 version_from('lib/App/SD.pm');
 requires('Time::Progress');
-requires 'Prophet'; # URI UNIVERSAL::require Params::Validate Path::Class Class::Accessor Template::Declare::Tags
+requires 'Prophet'; # URI UNIVERSAL::require Params::Validate Path::Class Class::Accessor Template::Declare::Tags Test::HTTP::Server::Simple JSON Test::WWW::Mechanize
 requires('Moose'); # Moose::Role
 requires('HTTP::Date');
 

Modified: sd/trunk/lib/App/SD/Model/Ticket.pm
==============================================================================
--- sd/trunk/lib/App/SD/Model/Ticket.pm	(original)
+++ sd/trunk/lib/App/SD/Model/Ticket.pm	Mon Nov 10 08:52:03 2008
@@ -6,7 +6,9 @@
 use HTTP::Date;
 
 use constant collection_class => 'App::SD::Collection::Ticket';
-use constant type => 'ticket';
+#use constant type => 'ticket';
+
+has type => ( default => 'ticket');
 
 =head2 default_prop_status
 

Modified: sd/trunk/lib/App/SD/Record.pm
==============================================================================
--- sd/trunk/lib/App/SD/Record.pm	(original)
+++ sd/trunk/lib/App/SD/Record.pm	Mon Nov 10 08:52:03 2008
@@ -5,7 +5,6 @@
 use Moose;
 use Params::Validate;
 
-
 sub declared_props { 'created', inner() }
 
 extends 'Prophet::Record';

Added: sd/trunk/lib/App/SD/Server/Dispatcher.pm
==============================================================================
--- (empty file)
+++ sd/trunk/lib/App/SD/Server/Dispatcher.pm	Mon Nov 10 08:52:03 2008
@@ -0,0 +1,11 @@
+package App::SD::Server::Dispatcher;
+use Prophet::Server::Dispatcher -base;
+
+on qr/.*/ => sub {
+    next_rule;
+};
+
+redispatch_to 'Prophet::Server::Dispatcher';
+
+
+1;



More information about the Bps-public-commit mailing list