16 years agobump version to 0.56 and update changes for release 0.56
Dave Rolsky [Mon, 1 Sep 2008 16:33:59 +0000]
bump version to 0.56 and update changes for release

16 years agoRemove references to
Dave Rolsky [Mon, 1 Sep 2008 16:21:00 +0000]
Remove references to
Moose::Meta::Role::Application::ToMetaclassInstance which was
obsoleted by MU::MetaRole.

16 years agorequire stable MOP 0.65
Dave Rolsky [Mon, 1 Sep 2008 16:15:40 +0000]
require stable MOP 0.65

16 years agoupdate MANIFEST - seriously, why is this in source control? 0.55_04
Dave Rolsky [Sun, 31 Aug 2008 03:57:05 +0000]
update MANIFEST - seriously, why is this in source control?

16 years agobump version to 0.55_04
Dave Rolsky [Sun, 31 Aug 2008 03:56:34 +0000]
bump version to 0.55_04

16 years agomerge meta-role-helper branch and update changes
Dave Rolsky [Sun, 31 Aug 2008 03:55:14 +0000]
merge meta-role-helper branch and update changes

16 years agorecipe was missing a number
Dave Rolsky [Sun, 31 Aug 2008 03:44:24 +0000]
recipe was missing a number

16 years agomerge trunk to meta-role-helper branch
Dave Rolsky [Sun, 31 Aug 2008 03:43:05 +0000]
merge trunk to meta-role-helper branch

16 years agouse the mathematical definition of "natural number" for the TC example in the POD
Jonathan Rockway [Sat, 30 Aug 2008 20:23:55 +0000]
use the mathematical definition of "natural number" for the TC example in the POD

16 years agoDon't load in Data::Dumper (we don't even use it here!)
Shawn M Moore [Sat, 30 Aug 2008 03:08:33 +0000]
Don't load in Data::Dumper (we don't even use it here!)

16 years agoFix the MOP dep so it actually registers 0.55_03
Dave Rolsky [Sat, 30 Aug 2008 01:57:15 +0000]
Fix the MOP dep so it actually registers

16 years agobump the version to 0.55_03
Dave Rolsky [Sat, 30 Aug 2008 01:56:27 +0000]
bump the version to 0.55_03

16 years agoAdd changes for 0.55_03
Dave Rolsky [Sat, 30 Aug 2008 01:55:55 +0000]
Add changes for 0.55_03

16 years agobump the Class::MOP dep to 0.64_07
Dave Rolsky [Sat, 30 Aug 2008 01:55:23 +0000]
bump the Class::MOP dep to 0.64_07

16 years agomerge trunk to meta-role-helper branch
Dave Rolsky [Fri, 29 Aug 2008 18:46:23 +0000]
merge trunk to meta-role-helper branch

16 years agoWhen we reinitialize from the super meta class, we need to also reset
Dave Rolsky [Fri, 29 Aug 2008 18:44:17 +0000]
When we reinitialize from the super meta class, we need to also reset
constructor & destructor class from the super's meta.

16 years agorevert back to code as it was before my depths into madness
Dave Rolsky [Fri, 29 Aug 2008 18:43:22 +0000]
revert back to code as it was before my depths into madness

16 years agoremove some debugging junk
Dave Rolsky [Fri, 29 Aug 2008 18:40:45 +0000]
remove some debugging junk

16 years agoThis is about 50% of the way towards making
Dave Rolsky [Fri, 29 Aug 2008 18:40:27 +0000]
This is about 50% of the way towards making
_fix_metaclass_incompatibility smart enough to detect when two
metaclass classes differ only in the roles they do.

It works as far as it goes but to do it right it'd have to check and
reconcile the attribute, method, & instance metaclasses, plus the
constructor and destructor class.

All in all, it's a mess.

I'm checking this in to record it, and will rever in the next commit.

16 years agoFix some broken tests (testing the wrong class)
Dave Rolsky [Fri, 29 Aug 2008 18:09:09 +0000]
Fix some broken tests (testing the wrong class)

16 years agorequire the latest MOP 0.55_02
Dave Rolsky [Fri, 29 Aug 2008 17:47:17 +0000]
require the latest MOP

16 years agowhy do we keep this in source control?
Dave Rolsky [Fri, 29 Aug 2008 17:47:07 +0000]
why do we keep this in source control?

16 years agoDon't ship .shipit
Dave Rolsky [Fri, 29 Aug 2008 17:44:37 +0000]
Don't ship .shipit

16 years agobump version to 0.55_02
Dave Rolsky [Fri, 29 Aug 2008 17:44:11 +0000]
bump version to 0.55_02

16 years agoAdd a .shipit file
Dave Rolsky [Fri, 29 Aug 2008 17:43:00 +0000]
Add a .shipit file

16 years agoUpdate changes for next release
Dave Rolsky [Fri, 29 Aug 2008 17:42:27 +0000]
Update changes for next release

16 years agoMore tweaking of t0m's doc changes
Dave Rolsky [Fri, 29 Aug 2008 17:40:43 +0000]
More tweaking of t0m's doc changes

16 years agoa little tweaking of t0m's doc changes
Dave Rolsky [Fri, 29 Aug 2008 17:38:05 +0000]
a little tweaking of t0m's doc changes

16 years agoMerge trunk to meta-role-helper branch
Dave Rolsky [Fri, 29 Aug 2008 15:59:16 +0000]
Merge trunk to meta-role-helper branch

16 years agoRemove comment about updating the package cache flag, that's a red
Dave Rolsky [Fri, 29 Aug 2008 15:28:55 +0000]
Remove comment about updating the package cache flag, that's a red
herring (this whole method map thing is a big of a mess).

16 years agoUpdate comment for this test, so it is more accurate.
Dave Rolsky [Fri, 29 Aug 2008 03:45:00 +0000]
Update comment for this test, so it is more accurate.

16 years agoAdding a role changes the method map, but it will not change the
Dave Rolsky [Fri, 29 Aug 2008 03:43:56 +0000]
Adding a role changes the method map, but it will not change the
package cache flag, so we need to reset that flag when adding a role.

This fixes the bug tokuhirom found, which is tested in
t/030_roles/031_roles_applied_in_create.t

16 years agoThis test had a bug, and what it's testing is already tested elsewhere.
Dave Rolsky [Fri, 29 Aug 2008 03:20:56 +0000]
This test had a bug, and what it's testing is already tested elsewhere.

16 years agooops. i forgot to commit this method
Tokuhiro Matsuno [Fri, 29 Aug 2008 03:20:49 +0000]
oops. i forgot to commit this method

16 years agoredo these tests using is_deeply
Dave Rolsky [Fri, 29 Aug 2008 03:19:40 +0000]
redo these tests using is_deeply

16 years agoadded new test: t/030_roles/032_roles_alias_methods.t
Tokuhiro Matsuno [Fri, 29 Aug 2008 03:16:00 +0000]
added new test: t/030_roles/032_roles_alias_methods.t
this test failes on only perl 5.10(maybe)

16 years agoadd a comment about package cache flags
Dave Rolsky [Thu, 28 Aug 2008 16:56:09 +0000]
add a comment about package cache flags

16 years agoExpand the comment for this test
Dave Rolsky [Thu, 28 Aug 2008 15:40:55 +0000]
Expand the comment for this test

16 years agoAdd an explanation about Roles/Traits and the difference between them (or lack thereo...
Tomas Doran [Thu, 28 Aug 2008 14:56:38 +0000]
Add an explanation about Roles/Traits and the difference between them (or lack thereof). Also drive-by speeling fixation

16 years agoClean the test up a little to use Test::Exception
Dave Rolsky [Thu, 28 Aug 2008 14:43:53 +0000]
Clean the test up a little to use Test::Exception

16 years agoadded new test case: t/030_roles/031_roles_applied_in_create.t
Tokuhiro Matsuno [Thu, 28 Aug 2008 14:05:29 +0000]
added new test case: t/030_roles/031_roles_applied_in_create.t
nothingmuch: this tests failed with perl5.10

16 years agoMore tests that won't pass until _fix_metaclass_incompatibility is much smarter.
Dave Rolsky [Wed, 27 Aug 2008 23:41:57 +0000]
More tests that won't pass until _fix_metaclass_incompatibility is much smarter.

16 years agoAdd a long comment detailing what's not quite right with
Dave Rolsky [Wed, 27 Aug 2008 18:52:47 +0000]
Add a long comment detailing what's not quite right with
_fix_metaclass_incompatibility and describing how it can be fixed.

16 years agodocument subclass problem with metaclass roles
Dave Rolsky [Wed, 27 Aug 2008 17:56:27 +0000]
document subclass problem with metaclass roles

16 years agoAdd more tests, including some that won't pass until we can make
Dave Rolsky [Wed, 27 Aug 2008 17:50:25 +0000]
Add more tests, including some that won't pass until we can make
_fix_metaclass_incompatibility much smarter.

16 years agoRename $meta to $super_meta in _fix_metaclass_incompatibility to make
Dave Rolsky [Wed, 27 Aug 2008 16:42:39 +0000]
Rename $meta to $super_meta in _fix_metaclass_incompatibility to make
it clear whose $meta it is.

16 years agoRemove another level of indentation for even more short-circuiting of
Dave Rolsky [Wed, 27 Aug 2008 16:40:33 +0000]
Remove another level of indentation for even more short-circuiting of
our loop.

16 years agoRemove some comments that are bogus now that we check is_pristine and
Dave Rolsky [Wed, 27 Aug 2008 16:37:55 +0000]
Remove some comments that are bogus now that we check is_pristine and
blow up if that is not true.

16 years agoRefactored/reformatted _fix_metaclass_incompatibility in order to make
Dave Rolsky [Wed, 27 Aug 2008 16:37:08 +0000]
Refactored/reformatted _fix_metaclass_incompatibility in order to make
it a little simpler to read, and remove a level of indentation.

16 years agoNo need to remove the metaclass when we're calling reinitialize
Dave Rolsky [Wed, 27 Aug 2008 16:29:02 +0000]
No need to remove the metaclass when we're calling reinitialize

16 years agowrote extending recipe2 (role for object base class)
Dave Rolsky [Wed, 27 Aug 2008 15:19:22 +0000]
wrote extending recipe2 (role for object base class)

16 years agoFix copyright year
Dave Rolsky [Wed, 27 Aug 2008 15:09:07 +0000]
Fix copyright year

16 years agoAdd caveat about metarole experimental-ness
Dave Rolsky [Wed, 27 Aug 2008 15:08:52 +0000]
Add caveat about metarole experimental-ness

16 years agoAdd a load of docs to some of the under documented bits of type constraints. I don...
Tomas Doran [Tue, 26 Aug 2008 21:09:30 +0000]
Add a load of docs to some of the under documented bits of type constraints. I don't write great docs, but it's better than it was. Also fix exception in Moose::Meta::TypeConstraint predicate methods, add an exception to Moose::Meta::TypeConstraint::Registry::add_type_constraint if you don't supply something which looks like a type constraint. Couple of other little fixes: warnings, general cleanup and doc additions in the type constraint code.

16 years agoMark extending recipe 2 as TODO
Dave Rolsky [Tue, 26 Aug 2008 18:02:41 +0000]
Mark extending recipe 2 as TODO

16 years agoAdded an overview "recipe" for Moose extensions
Dave Rolsky [Tue, 26 Aug 2008 18:01:08 +0000]
Added an overview "recipe" for Moose extensions

16 years agorenamed some recipes in prep for adding extension intro
Dave Rolsky [Tue, 26 Aug 2008 17:56:46 +0000]
renamed some recipes in prep for adding extension intro

16 years agoAdd a test count.
Dave Rolsky [Tue, 26 Aug 2008 17:00:49 +0000]
Add a test count.

16 years agoAdd tests for applying several roles in succession, to make sure we
Dave Rolsky [Tue, 26 Aug 2008 17:00:33 +0000]
Add tests for applying several roles in succession, to make sure we
preserve previously applied roles. Also added a test count.

16 years agoUpdate changes some more
Dave Rolsky [Tue, 26 Aug 2008 16:23:59 +0000]
Update changes some more

16 years agoRe-implemented metaclass traits using Moose::Util::MetaRole. This
Dave Rolsky [Tue, 26 Aug 2008 16:21:41 +0000]
Re-implemented metaclass traits using Moose::Util::MetaRole. This
means removing some new bits I added in Moose::Util and the
Moose::Meta::Role::Application::ToMetaclassInstance class.

16 years agoAdd warning to this MetaRole docs that it might go away
Dave Rolsky [Mon, 25 Aug 2008 15:47:00 +0000]
Add warning to this MetaRole docs that it might go away

16 years agoMerge trunk to meta-role-helper branch
Dave Rolsky [Mon, 25 Aug 2008 15:45:48 +0000]
Merge trunk to meta-role-helper branch

16 years agoAdd docs for Moose::Util::MetaRole
Dave Rolsky [Mon, 25 Aug 2008 15:45:15 +0000]
Add docs for Moose::Util::MetaRole

16 years agoImplemented Moose::Util::MetaRole, which lets you apply roles to any
Dave Rolsky [Mon, 25 Aug 2008 15:27:43 +0000]
Implemented Moose::Util::MetaRole, which lets you apply roles to any
meta class, as well as the constructor & destructor classes and the
object base class.

To make this work properly, I had to make constructor & destructor
class attributes of Moose::Meta::Class, rather than just hardcoding
them.

16 years agoDoh, the SYNOPSIS was totally wrong.
Dave Rolsky [Sun, 24 Aug 2008 14:11:12 +0000]
Doh, the SYNOPSIS was totally wrong.

16 years agoa branch to work on a helper for applying roles to many meta classes at once
Dave Rolsky [Thu, 21 Aug 2008 15:12:45 +0000]
a branch to work on a helper for applying roles to many meta classes at once

16 years agoAdd date for last release
Dave Rolsky [Thu, 21 Aug 2008 15:04:29 +0000]
Add date for last release

16 years agoMention explicit 5.8.x requirement
Dave Rolsky [Thu, 21 Aug 2008 03:04:21 +0000]
Mention explicit 5.8.x requirement

16 years agomake Perl 5.8+ requirement explicit in both Makefile.PL and Moose.pm
Dave Rolsky [Thu, 21 Aug 2008 02:58:21 +0000]
make Perl 5.8+ requirement explicit in both Makefile.PL and Moose.pm

16 years agoadd t0m's test to the MANIFEST
Dave Rolsky [Wed, 20 Aug 2008 19:11:46 +0000]
add t0m's test to the MANIFEST

16 years agoFix version # in README 0_55_01
Dave Rolsky [Wed, 20 Aug 2008 18:51:21 +0000]
Fix version # in README

16 years agoRequire MOP 0.64_01
Dave Rolsky [Wed, 20 Aug 2008 18:49:55 +0000]
Require MOP 0.64_01

16 years agoImplement the "eval $VERSION" trick from perlmodstyle so CPAN doesn't
Dave Rolsky [Wed, 20 Aug 2008 18:49:21 +0000]
Implement the "eval $VERSION" trick from perlmodstyle so CPAN doesn't
spit out many warnings on dev versions.

16 years agochangelog
Yuval Kogman [Wed, 20 Aug 2008 17:24:08 +0000]
changelog

16 years agoChanges for next release (which will be a dev release)
Dave Rolsky [Wed, 20 Aug 2008 17:09:36 +0000]
Changes for next release (which will be a dev release)

16 years agoVarious style changes and de-messification
Dave Rolsky [Wed, 20 Aug 2008 14:11:06 +0000]
Various style changes and de-messification

16 years agoFix t0m's spelling
Dave Rolsky [Wed, 20 Aug 2008 14:08:01 +0000]
Fix t0m's spelling

16 years agoFix type coersion of lazy values accessed using the get_value method. I've RFC'd...
Tomas Doran [Wed, 20 Aug 2008 14:02:18 +0000]
Fix type coersion of lazy values accessed using the get_value method. I've RFC'd this patch 3-4 times on IRC, but got no feedback. Therefore I'm committing it as it passes all the pre-existing tests, and fixes the bug I found.

16 years agowrap_method
Yuval Kogman [Sat, 16 Aug 2008 03:57:03 +0000]
wrap_method

16 years agoremove %METAS lexical from Moose::Role, Class::MOP handles registry now
Yuval Kogman [Sat, 16 Aug 2008 03:38:58 +0000]
remove %METAS lexical from Moose::Role, Class::MOP handles registry now

16 years agometaclass option for Role::init_meta
Yuval Kogman [Sat, 16 Aug 2008 03:38:44 +0000]
metaclass option for Role::init_meta

16 years agopackage cache flag methods for Role
Yuval Kogman [Sat, 16 Aug 2008 03:38:32 +0000]
package cache flag methods for Role

16 years agoRole::add_method
Yuval Kogman [Sat, 16 Aug 2008 02:46:08 +0000]
Role::add_method

16 years agolocalize %seen instead of resetting it
Yuval Kogman [Sat, 16 Aug 2008 02:15:04 +0000]
localize %seen instead of resetting it

16 years agometaclass compatibility checking/fixing corrections
Yuval Kogman [Fri, 15 Aug 2008 19:04:12 +0000]
metaclass compatibility checking/fixing corrections

16 years agoget_all_methods in immutable memoization list
Yuval Kogman [Fri, 15 Aug 2008 19:03:51 +0000]
get_all_methods in immutable memoization list

16 years agopass in @_ % 2 == 1 for compat
Yuval Kogman [Fri, 15 Aug 2008 15:38:49 +0000]
pass in @_ % 2 == 1 for compat

16 years agoimprove error message for existing &meta
Yuval Kogman [Fri, 15 Aug 2008 15:38:32 +0000]
improve error message for existing &meta

16 years agoRemove ->meta from Moose::Meta::Role
Yuval Kogman [Thu, 14 Aug 2008 18:24:46 +0000]
Remove ->meta from Moose::Meta::Role

16 years agoremove ->meta from _fix_metaclass_compatibility
Yuval Kogman [Thu, 14 Aug 2008 18:24:29 +0000]
remove ->meta from _fix_metaclass_compatibility

16 years agoNo need for arrayref with single argument to also
Dave Rolsky [Thu, 14 Aug 2008 14:31:23 +0000]
No need for arrayref with single argument to also

16 years agoMore tests & fixes for the goto &Moose::import case.
Dave Rolsky [Thu, 14 Aug 2008 14:26:16 +0000]
More tests & fixes for the goto &Moose::import case.

When this happens, the first argument to Moose::import is the original
package (Squirrel, etc). Arguably, this means that doing this goto
stuff is wrong, but it's easy enough to ignore this, since we know
what the real package is when we construct the import & unimport subs.

16 years agoWhoops, the synopsis still had an old API
Dave Rolsky [Thu, 14 Aug 2008 14:10:01 +0000]
Whoops, the synopsis still had an old API

16 years agoAdd some tests for goto &Moose::import
Dave Rolsky [Thu, 14 Aug 2008 13:59:48 +0000]
Add some tests for goto &Moose::import

16 years agopass hashrefs to _new
Yuval Kogman [Thu, 14 Aug 2008 09:00:08 +0000]
pass hashrefs to _new

16 years agoMinor doc fix and a formatting tweak
Dave Rolsky [Thu, 14 Aug 2008 00:35:09 +0000]
Minor doc fix and a formatting tweak

16 years agoalso immutablize Parametrizable
Yuval Kogman [Wed, 13 Aug 2008 22:37:16 +0000]
also immutablize Parametrizable

16 years agomake more things immutable
Yuval Kogman [Wed, 13 Aug 2008 22:21:17 +0000]
make more things immutable

16 years agouse hash ref in Moose::Object::new
Yuval Kogman [Wed, 13 Aug 2008 22:20:38 +0000]
use hash ref in Moose::Object::new