[Bps-public-commit] r17216 - in Prophet/branches/actions: .

jesse at bestpractical.com jesse at bestpractical.com
Sat Dec 13 15:32:47 EST 2008


Author: jesse
Date: Sat Dec 13 15:32:47 2008
New Revision: 17216

Modified:
   Prophet/branches/actions/Makefile.PL
   Prophet/branches/actions/lib/Prophet/Server.pm

Log:
* Make Module::Refresh an optional dependency

Modified: Prophet/branches/actions/Makefile.PL
==============================================================================
--- Prophet/branches/actions/Makefile.PL	(original)
+++ Prophet/branches/actions/Makefile.PL	Sat Dec 13 15:32:47 2008
@@ -38,6 +38,7 @@
     ],
     'Web server' => [
         -default => 1,
+        'File::ShareDir',
         'HTTP::Server::Simple', # HTTP::Server::Simple::CGI
     ],
 
@@ -58,6 +59,7 @@
         -default   => 1,
         'Test::HTTP::Server::Simple',
         'YAML::Syck' => 0,
+        'Module::Refresh' => 0,
         'Test::WWW::Mechanize' => '1.16',
         'Test::Pod::Coverage'
     ],

Modified: Prophet/branches/actions/lib/Prophet/Server.pm
==============================================================================
--- Prophet/branches/actions/lib/Prophet/Server.pm	(original)
+++ Prophet/branches/actions/lib/Prophet/Server.pm	Sat Dec 13 15:32:47 2008
@@ -10,7 +10,6 @@
 use Params::Validate qw/:all/;
 use File::ShareDir qw//;
 use File::Spec ();
-use Module::Refresh;
 use Cwd ();
 use JSON;
 
@@ -87,7 +86,7 @@
     my ( $self, $cgi ) = validate_pos( @_, { isa => 'Prophet::Server' }, { isa => 'CGI' } );
     $self->cgi($cgi);
     $self->nav(Prophet::Web::Menu->new( cgi => $self->cgi));
-    if ($ENV{'PROPHET_DEVEL'}) {    Module::Refresh->refresh(); }
+    if ($ENV{'PROPHET_DEVEL'}) {    require 'Module::Refresh'; Module::Refresh->refresh(); }
 
     
 



More information about the Bps-public-commit mailing list