[Moose-commits] r7948 - in MooseX-Method/trunk: . lib/MooseX
lib/MooseX/Meta/Parameter/Moose lib/MooseX/Meta/Signature
lib/MooseX/Meta/Signature/Combined lib/MooseX/Meta/Signature/Named
lib/MooseX/Meta/Signature/Positional
gphat at code2.0beta.co.uk
gphat at code2.0beta.co.uk
Mon Jun 15 14:56:55 GMT 2009
Author: gphat
Date: 2009-06-15 07:56:54 -0700 (Mon, 15 Jun 2009)
New Revision: 7948
Modified:
MooseX-Method/trunk/Changes
MooseX-Method/trunk/lib/MooseX/Meta/Parameter/Moose/Compiled.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined/Compiled.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named/Compiled.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional.pm
MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional/Compiled.pm
MooseX-Method/trunk/lib/MooseX/Method.pm
Log:
Fix warnings and mark as deprecated.
Modified: MooseX-Method/trunk/Changes
===================================================================
--- MooseX-Method/trunk/Changes 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/Changes 2009-06-15 14:56:54 UTC (rev 7948)
@@ -1,3 +1,8 @@
+0.43 2009-06-15
+ - Add deprecation notice
+ - Add inline_constructor => 0 to various classes that define their own
+ constructors
+
0.42 2008-06-27
- Add export methods back to Named and Positional
0.41 2008-05-29
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Parameter/Moose/Compiled.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Parameter/Moose/Compiled.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Parameter/Moose/Compiled.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -166,7 +166,7 @@
return $params;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined/Compiled.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined/Compiled.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined/Compiled.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -100,7 +100,7 @@
return $params;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Combined.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -62,7 +62,7 @@
$self->{named_signature}->validate (%named_args);
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named/Compiled.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named/Compiled.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named/Compiled.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -136,7 +136,7 @@
return $params;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Named.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -86,7 +86,7 @@
return $export;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional/Compiled.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional/Compiled.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional/Compiled.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -127,7 +127,7 @@
return $params;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Meta/Signature/Positional.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -79,7 +79,7 @@
return $export;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
Modified: MooseX-Method/trunk/lib/MooseX/Method.pm
===================================================================
--- MooseX-Method/trunk/lib/MooseX/Method.pm 2009-06-14 18:34:27 UTC (rev 7947)
+++ MooseX-Method/trunk/lib/MooseX/Method.pm 2009-06-15 14:56:54 UTC (rev 7948)
@@ -19,7 +19,7 @@
use Sub::Exporter;
use Sub::Name qw/subname/;
-our $VERSION = '0.42';
+our $VERSION = '0.43';
our $AUTHORITY = 'cpan:BERLE';
@@ -218,7 +218,7 @@
=head1 NAME
-MooseX::Method - Method declaration with type checking
+MooseX::Method - (DEPRECATED) Method declaration with type checking
=head1 SYNOPSIS
@@ -270,6 +270,12 @@
Foo->greet; # Won't work.
+=head1 DEPRECATION NOTICE
+
+This module has been deprecated in favor of L<MooseX::Method::Signatures>. It
+is being maintained purely for people who need more time to change their
+implementations. It should not be used for new code.
+
=head1 DESCRIPTION
=head2 The problem
More information about the Moose-commits
mailing list