Yuval Kogman [Sat, 17 Jan 2009 22:03:09 +0000]
whitespace
Yuval Kogman [Sat, 17 Jan 2009 22:02:53 +0000]
use _compile_code in Constructor
Yuval Kogman [Sat, 17 Jan 2009 22:02:37 +0000]
use _compile_code in Accessor
Yuval Kogman [Sat, 17 Jan 2009 22:02:14 +0000]
Merge branch 'master' into method_generation_cleanup
Conflicts:
Changes
MANIFEST
Makefile.PL
README
lib/Moose.pm
lib/Moose/Error/Confess.pm
lib/Moose/Error/Croak.pm
lib/Moose/Error/Default.pm
lib/Moose/Exporter.pm
lib/Moose/Meta/Attribute.pm
lib/Moose/Meta/Class.pm
lib/Moose/Meta/Instance.pm
lib/Moose/Meta/Method.pm
lib/Moose/Meta/Method/Accessor.pm
lib/Moose/Meta/Method/Augmented.pm
lib/Moose/Meta/Method/Constructor.pm
lib/Moose/Meta/Method/Delegation.pm
lib/Moose/Meta/Method/Destructor.pm
lib/Moose/Meta/Method/Overriden.pm
lib/Moose/Meta/Role.pm
lib/Moose/Meta/Role/Application.pm
lib/Moose/Meta/Role/Application/RoleSummation.pm
lib/Moose/Meta/Role/Application/ToClass.pm
lib/Moose/Meta/Role/Application/ToInstance.pm
lib/Moose/Meta/Role/Application/ToRole.pm
lib/Moose/Meta/Role/Composite.pm
lib/Moose/Meta/Role/Method.pm
lib/Moose/Meta/Role/Method/Required.pm
lib/Moose/Meta/TypeCoercion.pm
lib/Moose/Meta/TypeCoercion/Union.pm
lib/Moose/Meta/TypeConstraint.pm
lib/Moose/Meta/TypeConstraint/Class.pm
lib/Moose/Meta/TypeConstraint/Enum.pm
lib/Moose/Meta/TypeConstraint/Parameterizable.pm
lib/Moose/Meta/TypeConstraint/Parameterized.pm
lib/Moose/Meta/TypeConstraint/Registry.pm
lib/Moose/Meta/TypeConstraint/Role.pm
lib/Moose/Meta/TypeConstraint/Union.pm
lib/Moose/Object.pm
lib/Moose/Role.pm
lib/Moose/Util.pm
lib/Moose/Util/MetaRole.pm
lib/Moose/Util/TypeConstraints.pm
lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm
lib/Test/Moose.pm
lib/oose.pm
Matt S Trout [Fri, 12 Dec 2008 08:36:13 +0000]
move across to _eval_closure hashref style
Matt S Trout [Fri, 12 Dec 2008 00:49:50 +0000]
Merge 'trunk' into 'method_generation_cleanup'
r26263@agaton (orig r6884): marcus | 2008-12-05 13:11:32 +0000
Bump dependency for MoreUtils
r26266@agaton (orig r6887): marcus | 2008-12-05 14:53:43 +0000
Revert unwanted MMM::Accessor change
r26267@agaton (orig r6888): autarch | 2008-12-05 14:59:04 +0000
update MANIFEST for test changes
r26268@agaton (orig r6889): autarch | 2008-12-05 15:01:31 +0000
Don't call get_all_package_symbols in list context
r26269@agaton (orig r6890): autarch | 2008-12-05 16:48:07 +0000
Spell coerce like a proper Merkan
r26272@agaton (orig r6893): autarch | 2008-12-05 16:57:18 +0000
Handle defaults with quote-breaking values correctly by using
quotemeta. Added tests for this.
r26278@agaton (orig r6899): autarch | 2008-12-05 19:21:54 +0000
bump version and update Changes
r26281@agaton (orig r6902): autarch | 2008-12-05 19:30:39 +0000
require latest CMOP
r26288@agaton (orig r6909): jnapiorkowski | 2008-12-05 21:49:20 +0000
changes to the way Moose::Meta::TypeConstraint passed arguments to the compiled type constraint coderef so that I can support MooseX::Types::Structured::Optional
r26289@agaton (orig r6910): thepler | 2008-12-05 22:36:27 +0000
more tests for metaclass traits with required attributes
r26535@agaton (orig r6926): sartak | 2008-12-07 01:29:56 +0000
r76625@onn: sartak | 2008-12-06 20:26:31 -0500
Failing test for passing parameters to role->create (fix will go in Class::MOP)
r26557@agaton (orig r6948): autarch | 2008-12-07 18:45:18 +0000
Remove an unneeded "the"
r26559@agaton (orig r6950): autarch | 2008-12-07 18:50:19 +0000
Fix some unintended bugs in the "standard" P5 code.
r26560@agaton (orig r6951): autarch | 2008-12-07 18:53:41 +0000
Small tweaks to some of the text.
r26586@agaton (orig r6977): autarch | 2008-12-08 17:09:21 +0000
Add changes for 0.63
r26589@agaton (orig r6980): autarch | 2008-12-08 17:11:18 +0000
update manifest
r26590@agaton (orig r6981): autarch | 2008-12-08 17:12:33 +0000
No point in keeping this todo test for parameterized roles in the
Moose distro now that we have an MX module for it.
r26591@agaton (orig r6982): autarch | 2008-12-08 17:14:17 +0000
bump version to 0.63
r26599@agaton (orig r6990): autarch | 2008-12-08 22:21:44 +0000
I was channeling stevan and misspeled declaratively
r26600@agaton (orig r6991): perigrin | 2008-12-08 22:25:12 +0000
zero or more Roles
r26628@agaton (orig r7019): sartak | 2008-12-09 06:39:26 +0000
r76787@onn: sartak | 2008-12-09 01:39:11 -0500
Always inline predicate and clearer methods
r26693@agaton (orig r7050): autarch | 2008-12-11 06:23:32 +0000
Doh, we really need CMOP 0.72
Dave Rolsky [Thu, 11 Dec 2008 06:23:32 +0000]
Doh, we really need CMOP 0.72
Matt S Trout [Tue, 9 Dec 2008 22:06:59 +0000]
unsupport passing meta-attr object to triggers because (a) it's not tested (b) it's not documented (c) it makes it impossible to not close over the meta-attr objects
Shawn M Moore [Tue, 9 Dec 2008 06:39:26 +0000]
Always inline predicate and clearer methods
Chris Prather [Mon, 8 Dec 2008 22:25:12 +0000]
zero or more Roles
Dave Rolsky [Mon, 8 Dec 2008 22:21:44 +0000]
I was channeling stevan and misspeled declaratively
Dave Rolsky [Mon, 8 Dec 2008 17:14:17 +0000]
bump version to 0.63
Dave Rolsky [Mon, 8 Dec 2008 17:12:33 +0000]
No point in keeping this todo test for parameterized roles in the
Moose distro now that we have an MX module for it.
Dave Rolsky [Mon, 8 Dec 2008 17:11:18 +0000]
update manifest
Dave Rolsky [Mon, 8 Dec 2008 17:09:21 +0000]
Add changes for 0.63
Dave Rolsky [Sun, 7 Dec 2008 18:53:41 +0000]
Small tweaks to some of the text.
Dave Rolsky [Sun, 7 Dec 2008 18:50:19 +0000]
Fix some unintended bugs in the "standard" P5 code.
Dave Rolsky [Sun, 7 Dec 2008 18:45:18 +0000]
Remove an unneeded "the"
Shawn M Moore [Sun, 7 Dec 2008 01:29:56 +0000]
Failing test for passing parameters to role->create (fix will go in Class::MOP)
Todd Hepler [Fri, 5 Dec 2008 22:36:27 +0000]
more tests for metaclass traits with required attributes
John Napiorkowski [Fri, 5 Dec 2008 21:49:20 +0000]
changes to the way Moose::Meta::TypeConstraint passed arguments to the compiled type constraint coderef so that I can support MooseX::Types::Structured::Optional
Dave Rolsky [Fri, 5 Dec 2008 19:30:39 +0000]
require latest CMOP
Dave Rolsky [Fri, 5 Dec 2008 19:21:54 +0000]
bump version and update Changes
Dave Rolsky [Fri, 5 Dec 2008 16:57:18 +0000]
Handle defaults with quote-breaking values correctly by using
quotemeta. Added tests for this.
Dave Rolsky [Fri, 5 Dec 2008 16:48:07 +0000]
Spell coerce like a proper Merkan
Dave Rolsky [Fri, 5 Dec 2008 15:01:31 +0000]
Don't call get_all_package_symbols in list context
Dave Rolsky [Fri, 5 Dec 2008 14:59:04 +0000]
update MANIFEST for test changes
Marcus Ramberg [Fri, 5 Dec 2008 14:53:43 +0000]
Revert unwanted MMM::Accessor change
Marcus Ramberg [Fri, 5 Dec 2008 13:11:32 +0000]
Bump dependency for MoreUtils
Matt S Trout [Fri, 5 Dec 2008 03:05:55 +0000]
use _eval_closure
Matt S Trout [Fri, 5 Dec 2008 02:32:21 +0000]
Merge 'trunk' into 'method_generation_cleanup'
r26239@agaton (orig r6860): autarch | 2008-12-05 02:04:21 +0000
this test is obsolete
basically, it tested for behavior we just decided was wrong, and which has now changed
r26241@agaton (orig r6862): autarch | 2008-12-05 02:15:40 +0000
If the constructor in a parent class has method modifiers, we will not
inline it. In that case, mention the fact that it is wrapped in the
warning.
r26242@agaton (orig r6863): autarch | 2008-12-05 02:17:14 +0000
This todo test is now partially implemented. The other part is not
going to be fixed unless we can inline method modifiers.
r26243@agaton (orig r6864): autarch | 2008-12-05 02:18:23 +0000
Fix pod coverage
Dave Rolsky [Fri, 5 Dec 2008 02:18:23 +0000]
Fix pod coverage
Dave Rolsky [Fri, 5 Dec 2008 02:17:14 +0000]
This todo test is now partially implemented. The other part is not
going to be fixed unless we can inline method modifiers.
Dave Rolsky [Fri, 5 Dec 2008 02:15:40 +0000]
If the constructor in a parent class has method modifiers, we will not
inline it. In that case, mention the fact that it is wrapped in the
warning.
Dave Rolsky [Fri, 5 Dec 2008 02:04:21 +0000]
this test is obsolete
basically, it tested for behavior we just decided was wrong, and which has now changed
Matt S Trout [Fri, 5 Dec 2008 01:39:43 +0000]
create Moose branch for method generation refac
Dave Rolsky [Thu, 4 Dec 2008 23:12:12 +0000]
Update the compatibility list in the Makefile.PL
Dave Rolsky [Thu, 4 Dec 2008 23:11:49 +0000]
Don't bother checking the expected constructor class for an inlined
constructor.
Note that while this is correct, it's also largely pointless. See the
new comment for an explanation of why this is so.
Dave Rolsky [Thu, 4 Dec 2008 23:05:41 +0000]
Ok, I was getting a little wacky.
If our parent has inlined a constructor, then the child can too. It's
that simple, since the assumption is that inlined constructors are
specific to the class in which they're inlined, and are not meant to
be inherited.
Dave Rolsky [Thu, 4 Dec 2008 23:00:05 +0000]
Make sure that whenever we don't inline, we warn, and add tests.
Dave Rolsky [Thu, 4 Dec 2008 22:39:05 +0000]
The last checkin was broken in the case where class B inherited from
class A, and class A had made itself immutable.
In that case, MMMC thought that the inlined constructor for A meant it
couldn't inline for B. This checkin fixes it to be much smarter. If
any parent is inlined, it checks to see if the inlined constructor's
class in the parent matches the constructor class that's trying to do
inlining. If they match, it goes ahead and inlines, otherwise it
doesn't.
Dave Rolsky [Thu, 4 Dec 2008 21:41:48 +0000]
Break the long string into two lines
Dave Rolsky [Thu, 4 Dec 2008 21:36:23 +0000]
Implement a can_be_inlined method for MMM::Constructor that does not
inline unless the new method comes from Moose::Object, by
default. Also left a hook in to allow subclasses of MMMC to easily
share this logic.
Dave Rolsky [Thu, 4 Dec 2008 16:44:34 +0000]
When applying a role to a class and some methods are missing (or are
accessors), collect all the missing methods together and mention them
all in the error, rather than just dying on the first one. This makes
for a much friendlier error message. (RT #41119).
Dave Rolsky [Thu, 4 Dec 2008 16:17:10 +0000]
Put some space between ok and {
Dave Rolsky [Thu, 4 Dec 2008 16:15:40 +0000]
Got rid of a bunch of random whitespace and tidied the file
Dave Rolsky [Thu, 4 Dec 2008 15:54:16 +0000]
Quote subtype names here
Dave Rolsky [Thu, 4 Dec 2008 03:20:58 +0000]
bump version and update changes.
Also require CMOP 0.71_01 (mostly so people can ensure they have the fastest version)
Dave Rolsky [Wed, 3 Dec 2008 03:23:42 +0000]
Document latest speed tweak
Dave Rolsky [Wed, 3 Dec 2008 00:16:46 +0000]
Make the type constraint classes immutable in
Moose::Util::TypeConstraints, just before we make a bunch of constaint
objects for the recipe.
This keeps us from calling the very slow MOP-based accessor methods
while making these objects, which should speed up compilation a bit
(at least it improves the profile ;)
Shawn M Moore [Sat, 29 Nov 2008 01:39:33 +0000]
Use the new method->execute API for BUILDALL and DEMOLISHALL
Dave Rolsky [Wed, 26 Nov 2008 19:52:01 +0000]
Document chris's constructor fix
Dave Rolsky [Wed, 26 Nov 2008 19:49:51 +0000]
update MANIFEST
Dave Rolsky [Wed, 26 Nov 2008 19:37:48 +0000]
Add release date
Dave Rolsky [Wed, 26 Nov 2008 18:17:58 +0000]
bump version to 0.62
Dave Rolsky [Wed, 26 Nov 2008 17:18:11 +0000]
require Class::MOP 0.71
Dave Rolsky [Wed, 26 Nov 2008 17:15:45 +0000]
Fix the changelog whitespacing
Tomas Doran [Wed, 26 Nov 2008 14:43:31 +0000]
Make removing attributes also remove their installed delegators + test
Shawn M Moore [Wed, 26 Nov 2008 07:06:55 +0000]
Attempt to explain why a role that just requires methods is useful. Prose cleanups welcome.
Shawn M Moore [Wed, 26 Nov 2008 02:27:36 +0000]
Use single quotes for consistency
Shawn M Moore [Wed, 26 Nov 2008 02:26:05 +0000]
Changes tweaks
Shawn M Moore [Wed, 26 Nov 2008 02:25:52 +0000]
Fix the error message when we're composing role A with a role B which is excluded by role A. Before it just used to say "role B excludes role B".
Shawn M Moore [Wed, 26 Nov 2008 02:02:48 +0000]
Make sure we properly blow away the anon role's symbol table
Shawn M Moore [Wed, 26 Nov 2008 02:02:02 +0000]
Weaken anonymous roles in the metaclass lookup table so that they can eventually be freed
Shawn M Moore [Wed, 26 Nov 2008 01:26:05 +0000]
Test that we free anonymous roles automatically (we don't)
Shawn M Moore [Tue, 25 Nov 2008 07:27:49 +0000]
ditto load_class
Shawn M Moore [Tue, 25 Nov 2008 07:24:43 +0000]
Make sure that creating an anonymous role satisfies is_class_loaded
Shawn M Moore [Tue, 25 Nov 2008 06:40:56 +0000]
More consistent errors for roles (don't really want to specify Moose::Role)
Shawn M Moore [Tue, 25 Nov 2008 06:10:30 +0000]
Be more consistent with the Moose::Meta::Class->create($package, %opts) api
Shawn M Moore [Tue, 25 Nov 2008 06:07:54 +0000]
Make pod coverage happy
Shawn M Moore [Tue, 25 Nov 2008 06:05:07 +0000]
More tests
Shawn M Moore [Tue, 25 Nov 2008 06:04:58 +0000]
First cut of anonymous roles!
Shawn M Moore [Tue, 25 Nov 2008 05:51:46 +0000]
Moose::Meta::Role->create for dynamic role construction
Chris Prather [Fri, 21 Nov 2008 17:32:18 +0000]
remove the number check from M:M:Constructor.pm to fix failing tests in t/100/019_*.t
Chris Prather [Fri, 21 Nov 2008 17:28:37 +0000]
add '0 but true'
Chris Prather [Fri, 21 Nov 2008 17:25:23 +0000]
add more use cases
Chris Prather [Fri, 21 Nov 2008 17:08:22 +0000]
move to teh right name
Chris Prather [Fri, 21 Nov 2008 17:01:52 +0000]
add failing test for octal problem
tidy the test some
add test for octal doing the right thing
Shawn M Moore [Mon, 17 Nov 2008 22:44:32 +0000]
Remove the make_immutable keyword, it's been deprecated and can break metaclasses
Tomas Doran [Sun, 16 Nov 2008 17:56:58 +0000]
Add a comment as per the traits case
Tomas Doran [Sun, 16 Nov 2008 17:17:45 +0000]
Fix another reentrancy issue in Moose::Exporter by additional localising of + test case
Tomas Doran [Sun, 16 Nov 2008 17:14:56 +0000]
Fix 1 char POD bug
Dave Rolsky [Fri, 14 Nov 2008 20:03:58 +0000]
Depend on Task::Weaken so we know we have an XS Scalar::Util
Shawn M Moore [Sun, 9 Nov 2008 06:05:21 +0000]
typo fix
Shawn M Moore [Sun, 9 Nov 2008 03:47:34 +0000]
Factor out wrapper creation so users can give a prototype to the wrappers with a little less pain
Stevan Little [Sun, 9 Nov 2008 01:39:31 +0000]
fixed a method exclusion/aliasing bug
Dave Rolsky [Fri, 7 Nov 2008 21:22:21 +0000]
Update changes for 0.61
Dave Rolsky [Fri, 7 Nov 2008 21:20:45 +0000]
Tidy the code (and clean up rampant wacky whitespace for RT 40432)
Dave Rolsky [Fri, 7 Nov 2008 21:16:31 +0000]
Tidy the code, which also removes whitespace on otherwise empty lines,
which confuses POD parsers (RT 40432)
Dave Rolsky [Fri, 7 Nov 2008 20:33:43 +0000]
Add the version bits to all .pm files
Dave Rolsky [Sun, 2 Nov 2008 14:45:02 +0000]
Fix typo in my own name
Dave Rolsky [Sat, 1 Nov 2008 19:35:11 +0000]
used perl-reversion to bump version to 0.61
Dave Rolsky [Sat, 1 Nov 2008 19:32:34 +0000]
Small formatting fix
Dave Rolsky [Sat, 1 Nov 2008 19:31:52 +0000]
Add a few more tests for ->associated_metaclass on methods
Dave Rolsky [Sat, 1 Nov 2008 19:29:48 +0000]
Moose::Meta::Class->get_method_map was both broken and completely
unnecessary. At one point, it might've done something different from
CMOP::Class for roles, but that was no longer the case.
This fixes a bug where some method objects would not have
->associated_metaclass set when they were returned.
Dave Rolsky [Sat, 1 Nov 2008 16:31:27 +0000]
Remove a bunch of commented out code (all tests still pass with 5.10.0 & 5.8.8)
Yuval Kogman [Fri, 31 Oct 2008 06:05:14 +0000]
more create_child_type fixes (Role, Enum)
Yuval Kogman [Fri, 31 Oct 2008 06:03:59 +0000]
more create_child_type fixes (Role, Enum)
Chris Prather [Wed, 29 Oct 2008 19:50:22 +0000]
doc patch for lazy_build and clean up some other attribute docs
Dave Rolsky [Wed, 29 Oct 2008 19:39:04 +0000]
Fix lie in the docs (error_class does to have a default)