Merge 'trunk' into 'parameterized_type_fixes'
John Napiorkowski [Thu, 23 Oct 2008 17:09:35 +0000 (17:09 +0000)]
r17809@dev (orig r6354):  t0m | 2008-10-22 15:01:57 -0500
Speedups in does for MooseX::Storage, should also make protocol buffers suck less. WARNING: Relies on trunk CMOP, I've bumped versions so people should notice.
r17811@dev (orig r6356):  t0m | 2008-10-22 15:05:28 -0500
Also bump version in Moose.pm, as pointed out by autarch - cheers
r17812@dev (orig r6357):  autarch | 2008-10-22 15:46:02 -0500
Tests for resolve_meta{class,trait}_alias in Moose::Util.

Moved caching to resolve_metaclass_alias.
r17813@dev (orig r6358):  autarch | 2008-10-22 16:38:30 -0500
Just require the latest Scalar::Util (which is still about 2 years
old) to avoid the win32 silliness.

r17814@dev (orig r6359):  autarch | 2008-10-22 16:39:07 -0500
Require a more modern Test::More, because 0.75 (at least) caused some
TODO tests to be treated as failures. There was a TODO fix 0.77.

r17822@dev (orig r6367):  autarch | 2008-10-23 11:16:52 -0500
s/childtype/child_type/g - why ignore every naming standard already in use in the codebase, I ask rhetorically
r17823@dev (orig r6368):  autarch | 2008-10-23 11:18:28 -0500
Tidy some code here. Also remove an unused variable.

r17825@dev (orig r6370):  autarch | 2008-10-23 11:22:21 -0500
Remove some redundant comments and tidy the code.

r17826@dev (orig r6371):  autarch | 2008-10-23 11:24:27 -0500
Add changes entry for restoration of parameterized type bits.

r17827@dev (orig r6372):  autarch | 2008-10-23 11:27:58 -0500
Small wording tweak

r17830@dev (orig r6375):  autarch | 2008-10-23 11:31:42 -0500
bump all versions to 0.60

1  2 
Changes
lib/Moose/Meta/TypeConstraint/Class.pm

diff --cc Changes
+++ b/Changes
@@@ -5,27 -5,21 +5,40 @@@ Revision history for Perl extension Moo
        - Passing "-traits" when loading Moose caused the Moose.pm
          exports to be broken. Reported by t0m. (Dave Rolsky)
          - Tests for this bug. (t0m)
 -    
 +    * Moose::Util::TypeConstraint
 +      - restored code to properly parameterize type constraints using the new
 +        ->parameterize method.
 +      - changed the way subtypes are created so that the job is delegated to a
 +        type constraint parent.  This clears up some hardcoded checking and
 +        should allow correct subtypes of Moose::Meta::Type::Constraint
 +    * Moose::Meta::TypeConstraint
 +      - added new method 'create_childtype' so that a parent can now be in
 +        charge of creating and influencing it's own children.
 +    * Moose::Meta::TypeConstraint::Union
 +      - more careful sorting of the type constraints that make up a name string
 +      - support for create_childtype customization
 +    * Moose::Meta::TypeConstraint::Parameterized
 +      - support for create_childtype customization
 +    * Moose::Meta::TypeConstraint::Parameterizable
 +      - new parameterize method which is a type of factory method to make a new
 +        type constraint with a given parameterized type.
 +    * /t/040_type_constraints/027_parameterize_from.t
 +      - test to make sure the new parameterize method works.
 +    * /t/040_type_constraints/030-class_subtypes.t
 +      - test to make sure we can properly subclass Moose::Meta::TypeConstraint
+     * Moose::Util
+       - Change resolve_metaclass alias to use the new
+         load_first_existing_class function. This makes it a lot
+         simpler, and also around 5 times faster. (t0m)
+       - Add caching to resolve_metaclass_alias, which gives an order
+         of magnitude speedup to things which repeatedly call the
+         Moose::Meta::Attribute->does method, notably MooseX::Storage
+         (t0m)
 -
+     * Moose::Util::TypeConstraints
+       - Put back the changes for parameterized constraints that
+         shouldn't have been removed in 0.59. We still cannot parse
+         them, but MooseX modules can create them in some other
+         way. See the 0.58 changes for more details. (jnapiorkowski)
  
  0.59 Tue October 14, 2008
      * Moose