bump version to 0.56 and update changes for release
[gitmo/Moose.git] / lib / Moose / Meta / TypeConstraint / Enum.pm
index 570433f..e6196fc 100644 (file)
@@ -7,6 +7,7 @@ use metaclass;
 use Moose::Util::TypeConstraints ();
 
 our $VERSION   = '0.56';
+$VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
 use base 'Moose::Meta::TypeConstraint';
@@ -20,7 +21,7 @@ sub new {
 
     $args{parent} = Moose::Util::TypeConstraints::find_type_constraint('Str');
 
-    my $self = $class->_new(%args);
+    my $self = $class->_new(\%args);
 
     $self->compile_type_constraint()
         unless $self->_has_compiled_type_constraint;