[Bps-public-commit] Prophet branch, master, updated. 0.73-27-g68286d8

spang at bestpractical.com spang at bestpractical.com
Fri Jan 1 21:11:35 EST 2010


The branch, master has been updated
       via  68286d8a57e959a480f59173e85987894b3d9ffb (commit)
      from  d29766da296be3323d6f951f101cc7033c90f4f9 (commit)

Summary of changes:
 lib/Prophet/DatabaseSetting.pm |    2 +-
 lib/Prophet/Server.pm          |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 68286d8a57e959a480f59173e85987894b3d9ffb
Author: Christine Spang <spang at bestpractical.com>
Date:   Fri Jan 1 18:40:30 2010 -0500

    Two small tweaks for Moose compatibility

diff --git a/lib/Prophet/DatabaseSetting.pm b/lib/Prophet/DatabaseSetting.pm
index a223446..6a18b84 100644
--- a/lib/Prophet/DatabaseSetting.pm
+++ b/lib/Prophet/DatabaseSetting.pm
@@ -14,7 +14,7 @@ has label => (
     is  => 'rw',
 );
 
-has type => (default => '__prophet_db_settings');
+has '+type' => ( default => '__prophet_db_settings' );
 
 sub BUILD {
     my $self = shift;
diff --git a/lib/Prophet/Server.pm b/lib/Prophet/Server.pm
index 8a416b4..970e309 100644
--- a/lib/Prophet/Server.pm
+++ b/lib/Prophet/Server.pm
@@ -15,6 +15,12 @@ use Cwd ();
 use JSON;
 use HTTP::Date;
 
+# Only define a class type constraint for CGI if it's not already defined,
+# because Moose doesn't auto-define class type constraints while Mouse does.
+unless (find_type_constraint('CGI')) {
+    use Any::Moose '::Util::TypeConstraints';
+    class_type('CGI');
+}
 
 
 has app_handle => (

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list