Permalink
Browse files

Replaced Any::Moose usage with Moose

  • Loading branch information...
1 parent b96c721 commit 85b57d8ea6e93cd22d6283f95db9fb7758e6a674 James Laver committed May 31, 2009
View
@@ -9,11 +9,10 @@ my $builder = Module::Build->new(
dist_version_from => 'lib/Spark/Form.pm',
build_requires => {
'Test::More' => 0,
-
},
requires => {
'Module::Pluggable' => 0,
- 'Any::Moose' => 0,
+ 'Moose::Runtime' => 0,
},
add_to_cleanup => [ 'Spark-*' ],
create_makefile_pl => 'traditional',
View
@@ -2,7 +2,7 @@ package Spark::Form;
our $VERSION = 0.01;
-use Any::Moose;
+use Moose;
has fields_a => (
isa => 'ArrayRef',
@@ -310,6 +310,9 @@ James Laver. L<http://jameslaver.com/>.
Thanks to the Django Project, whose forms module gave some inspiration.
+=head1 SEE ALSO
+
+The FAQ: L<Spark::Form::FAQ>
=head1 LICENSE
Copyright (C) 2009 James Laver
View
@@ -1,6 +1,6 @@
package Spark::Form::Field;
-use Any::Moose '::Role';
+use Moose::Role;
requires 'validate';
@@ -1,6 +1,6 @@
package Spark::Form::Field::Mandatory;
-use Any::Moose;
+use Moose;
with 'Spark::Form::Field';
with 'Spark::Form::Field::Role::NotEmpty';
with 'Spark::Form::Field::Role::Regex';
@@ -1,6 +1,6 @@
package Spark::Form::Field::Role::Confirm;
-use Any::Moose '::Role';
+use Moose::Role;
has confirm => (
isa => 'Maybe[Str]',
@@ -1,6 +1,6 @@
package Spark::Form::Field::Role::MaxLength;
-use Any::Moose '::Role';
+use Moose::Role;
has max_length => (
isa => 'Maybe[Int]',
@@ -1,6 +1,6 @@
package Spark::Form::Field::Role::MinLength;
-use Any::Moose '::Role';
+use Moose::Role;
has min_length => (
isa => 'Maybe[Int]',
@@ -1,6 +1,6 @@
package Spark::Form::Field::Role::NotEmpty;
-use Any::Moose '::Role';
+use Moose::Role;
has errmsg_empty => (
isa => 'Str',
@@ -1,6 +1,6 @@
package Spark::Form::Field::Role::Regex;
-use Any::Moose '::Role';
+use Moose::Role;
has regex => (
isa => 'Maybe[Regexp]',

0 comments on commit 85b57d8

Please sign in to comment.