[Catalyst-commits] r12067 - in
Catalyst-Runtime/5.80/branches/better_scripts: . lib/Catalyst/Script
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sun Nov 29 14:00:38 GMT 2009
Author: rafl
Date: 2009-11-29 14:00:38 +0000 (Sun, 29 Nov 2009)
New Revision: 12067
Modified:
Catalyst-Runtime/5.80/branches/better_scripts/Makefile.PL
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
Log:
Port numbers need to be > 0.
Modified: Catalyst-Runtime/5.80/branches/better_scripts/Makefile.PL
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/Makefile.PL 2009-11-29 14:00:31 UTC (rev 12066)
+++ Catalyst-Runtime/5.80/branches/better_scripts/Makefile.PL 2009-11-29 14:00:38 UTC (rev 12067)
@@ -50,6 +50,7 @@
requires 'MRO::Compat';
requires 'MooseX::Getopt' => '0.25';
requires 'MooseX::Types';
+requires 'MooseX::Types::Common::Numeric';
requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
test_requires 'Class::Data::Inheritable';
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm 2009-11-29 14:00:31 UTC (rev 12066)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm 2009-11-29 14:00:38 UTC (rev 12067)
@@ -6,6 +6,7 @@
}
use Moose;
+use MooseX::Types::Common::Numeric qw/PositiveInt/;
use MooseX::Types::Moose qw/ArrayRef Str Bool Int RegexpRef/;
use namespace::autoclean;
@@ -42,7 +43,7 @@
has port => (
traits => [qw(Getopt)],
cmd_aliases => 'p',
- isa => Int,
+ isa => PositiveInt,
is => 'ro',
default => 3000,
documentation => 'Specify a different listening port (to the default port 3000)',
More information about the Catalyst-commits
mailing list