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

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

15 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

15 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

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

15 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.

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

15 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.

15 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

15 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

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

15 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.

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

15 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

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

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

15 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

15 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

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

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

15 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.

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

15 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)

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

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

15 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.

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

15 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

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

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

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

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

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

15 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

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

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

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

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

15 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

15 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.

15 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

15 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

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

15 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

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

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

15 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

15 years agoalso accept hash refs to new_object and friends
Yuval Kogman [Wed, 13 Aug 2008 21:55:40 +0000]
also accept hash refs to new_object and friends

15 years agoMoose::Exporter fixes + rename build_import_methods to setup_import_methods
Yuval Kogman [Wed, 13 Aug 2008 21:31:39 +0000]
Moose::Exporter fixes + rename build_import_methods to setup_import_methods

15 years agoFix spelling of "recommended"
Dave Rolsky [Wed, 13 Aug 2008 02:48:57 +0000]
Fix spelling of "recommended"

15 years agoTweak wording of "New to Moose" section.
Dave Rolsky [Tue, 12 Aug 2008 23:00:22 +0000]
Tweak wording of "New to Moose" section.

15 years agoAdd a reference to the cookbook very early in the Moose.pm docs
Dave Rolsky [Tue, 12 Aug 2008 22:59:19 +0000]
Add a reference to the cookbook very early in the Moose.pm docs

15 years agoadd meta recipe5 to changes and manifest
Dave Rolsky [Tue, 12 Aug 2008 19:33:29 +0000]
add meta recipe5 to changes and manifest

15 years agoWrote meta recipe 5 - metaclass traits
Dave Rolsky [Tue, 12 Aug 2008 19:32:42 +0000]
Wrote meta recipe 5 - metaclass traits

15 years agoSay that Moose::init_meta is deprecated.
Dave Rolsky [Tue, 12 Aug 2008 17:05:19 +0000]
Say that Moose::init_meta is deprecated.

15 years agoMention metaclass traits in Changes
Dave Rolsky [Tue, 12 Aug 2008 16:38:06 +0000]
Mention metaclass traits in Changes

15 years agoDocumented metaclass traits, and moved trait name resolution to a
Dave Rolsky [Tue, 12 Aug 2008 16:36:29 +0000]
Documented metaclass traits, and moved trait name resolution to a
separate section in the docs so that it can describe the mechanism for
both attribute & class traits.

15 years agoClarify handling of traits for class without init_meta
Dave Rolsky [Tue, 12 Aug 2008 16:27:29 +0000]
Clarify handling of traits for class without init_meta

15 years agoIf traits are provided but the exporting class does not call
Dave Rolsky [Tue, 12 Aug 2008 16:26:49 +0000]
If traits are provided but the exporting class does not call
init_meta, we throw an error, instead of just ignoring it.

15 years agoReimplemented metaclass traits with Moose::Exporter. This
Dave Rolsky [Tue, 12 Aug 2008 16:02:09 +0000]
Reimplemented metaclass traits with Moose::Exporter. This
implementation also allows for traits on the role metaclass, but that
will not be documented yet.

15 years agoRename a method so it's clearer what it's doing.
Dave Rolsky [Mon, 11 Aug 2008 21:32:29 +0000]
Rename a method so it's clearer what it's doing.

15 years agoYay, merging the moose-exporter branch into trunk. All tests pass.
Dave Rolsky [Mon, 11 Aug 2008 21:19:41 +0000]
Yay, merging the moose-exporter branch into trunk. All tests pass.

15 years agoUpdate manifest (why is this in source control?!)
Dave Rolsky [Mon, 11 Aug 2008 20:19:45 +0000]
Update manifest (why is this in source control?!)

15 years agoMerge from trunk to moose-exporter branch
Dave Rolsky [Mon, 11 Aug 2008 20:18:03 +0000]
Merge from trunk to moose-exporter branch

15 years agodon't use compute_all_applicable_methods anymore
Yuval Kogman [Sun, 10 Aug 2008 20:25:04 +0000]
don't use compute_all_applicable_methods anymore

15 years agorecalculating the method map updates the cache flag
Yuval Kogman [Sun, 10 Aug 2008 19:08:15 +0000]
recalculating the method map updates the cache flag

15 years agomerge from trunk to moose-exporter branch
Dave Rolsky [Sun, 10 Aug 2008 14:24:57 +0000]
merge from trunk to moose-exporter branch

15 years agouse package cache flag in Moose::Meta::Role
Yuval Kogman [Sun, 10 Aug 2008 13:40:42 +0000]
use package cache flag in Moose::Meta::Role

15 years agoremove Perl 6 attribute naming style
Yuval Kogman [Fri, 8 Aug 2008 22:13:45 +0000]
remove Perl 6 attribute naming style

15 years agono auto install
Yuval Kogman [Fri, 8 Aug 2008 20:31:38 +0000]
no auto install

15 years agoFix a typo in the class name
Dave Rolsky [Fri, 8 Aug 2008 16:54:01 +0000]
Fix a typo in the class name

15 years agoDocument the init_meta method.
Dave Rolsky [Fri, 8 Aug 2008 16:53:47 +0000]
Document the init_meta method.

15 years agoSmall doc tweak (better wording)
Dave Rolsky [Fri, 8 Aug 2008 16:53:19 +0000]
Small doc tweak (better wording)

15 years agoMake Moose::Util::TypeConstraints use Moose::Exporter too.
Dave Rolsky [Fri, 8 Aug 2008 16:51:38 +0000]
Make Moose::Util::TypeConstraints use Moose::Exporter too.

Added an undocument _export_to_main param to Moose::Exporter's API,
for the benefit of M::U::TC, which _does_ export to main, unlike Moose
& Moose::Role.

15 years agoUpdated changes for latest recipe tweaks
Dave Rolsky [Fri, 8 Aug 2008 16:44:57 +0000]
Updated changes for latest recipe tweaks

15 years agoTook a mostly editorial (as opposed to content) pass through basics recipe 2.
Dave Rolsky [Fri, 8 Aug 2008 16:39:19 +0000]
Took a mostly editorial (as opposed to content) pass through basics recipe 2.

15 years agoFix order of changes
Dave Rolsky [Fri, 8 Aug 2008 16:18:07 +0000]
Fix order of changes

15 years agoUpdate changes for Moose::Exporter branch
Dave Rolsky [Fri, 8 Aug 2008 16:17:51 +0000]
Update changes for Moose::Exporter branch

15 years agomerge trunk to moose-exporter branch
Dave Rolsky [Fri, 8 Aug 2008 16:15:58 +0000]
merge trunk to moose-exporter branch

15 years agoNo need for 0.57 when 0.56 isn't yet released
Dave Rolsky [Fri, 8 Aug 2008 16:13:52 +0000]
No need for 0.57 when 0.56 isn't yet released

15 years agoDocument also parameter and how init_meta is called.
Dave Rolsky [Thu, 7 Aug 2008 20:46:33 +0000]
Document also parameter and how init_meta is called.

15 years agoUpdated the extending recipes to use Moose::Exporter.
Dave Rolsky [Thu, 7 Aug 2008 20:32:43 +0000]
Updated the extending recipes to use Moose::Exporter.

15 years agoFix spelling of init_meta in error
Dave Rolsky [Thu, 7 Aug 2008 17:17:59 +0000]
Fix spelling of init_meta in error

15 years agoMore tests for unimport to make sure it _really_ acts like it used
Dave Rolsky [Thu, 7 Aug 2008 16:48:21 +0000]
More tests for unimport to make sure it _really_ acts like it used
to. This particular problem was turned up by the MX::Singleton test
suite.

15 years agoIt turns out namespace::clean's different semantics break some code
Dave Rolsky [Thu, 7 Aug 2008 16:27:33 +0000]
It turns out namespace::clean's different semantics break some code
(like MX::Singleton::Meta::Class) which expect "no Moose" to remove
the keywords _right now_, as opposed to at the end of file scope.

I adjusted the tests to account for this, and reverted back to the old
manual method of removing keywords.

15 years agoAdd test count
Dave Rolsky [Thu, 7 Aug 2008 16:10:43 +0000]
Add test count

15 years agoMoose::Exporter now ensures that _every_ init_meta() method is called,
Dave Rolsky [Thu, 7 Aug 2008 16:10:21 +0000]
Moose::Exporter now ensures that _every_ init_meta() method is called,
both for the "original" class and anything it re-exports.

This means you can re-export Moose.pm without implementing an
init_meta.

15 years agoMade init_meta a public API again and got rid of init_meta_args in
Dave Rolsky [Thu, 7 Aug 2008 16:04:16 +0000]
Made init_meta a public API again and got rid of init_meta_args in
Moose::Exporter.

The theory is that if you want to override the base class or metaclass
in your MX extension, you provide your own init_meta which does the
right thing.

15 years agoAdded the "also" param to Moose::Exporter, which allows you to say you
Dave Rolsky [Thu, 7 Aug 2008 15:50:55 +0000]
Added the "also" param to Moose::Exporter, which allows you to say you
want to export what some other package(s) are exporting.

Wrote a bunch of tests for this.

Renamed the old extending & embedding test to indicate that it's just
for back compat now.

15 years agoAdd Moose::_get_caller for more backwards compat
Dave Rolsky [Thu, 7 Aug 2008 14:17:40 +0000]
Add Moose::_get_caller for more backwards compat

15 years agoNarrow scope for $CALLER.
Dave Rolsky [Thu, 7 Aug 2008 14:14:12 +0000]
Narrow scope for $CALLER.

More code tidying

15 years agoMerged tests for export currying from trunk.
Dave Rolsky [Thu, 7 Aug 2008 02:30:01 +0000]
Merged tests for export currying from trunk.

Finally got Moose::Exporter passing all tests, including the export
currying tests.

15 years agoFix caller determination to work the same way as it did in old school
Dave Rolsky [Wed, 6 Aug 2008 20:26:30 +0000]
Fix caller determination to work the same way as it did in old school
Moose.pm.

15 years agoRevert the change to get rid of caller()-currying for Moose.pm
Dave Rolsky [Wed, 6 Aug 2008 20:18:05 +0000]
Revert the change to get rid of caller()-currying for Moose.pm
exports. Sigh.

15 years agotest calling has() from outside of package
Matt S Trout [Wed, 6 Aug 2008 19:54:56 +0000]
test calling has() from outside of package

15 years agoI realized that all the "with caller" wrapper stuff is pointless. We
Dave Rolsky [Wed, 6 Aug 2008 19:42:11 +0000]
I realized that all the "with caller" wrapper stuff is pointless. We
can get the caller via caller().

This greatly simplifies lots of things.

15 years agoRefactored the code so we have methods for making import &
Dave Rolsky [Wed, 6 Aug 2008 19:09:52 +0000]
Refactored the code so we have methods for making import &
unimport. Also tidied everything some more.

15 years agoTidy this method
Dave Rolsky [Wed, 6 Aug 2008 19:06:22 +0000]
Tidy this method

15 years agoRedo this so we can have a per-module list of methods/subs that we
Dave Rolsky [Wed, 6 Aug 2008 19:03:48 +0000]
Redo this so we can have a per-module list of methods/subs that we
don't expect to be doc'd

15 years agoMight as well be explicit about requiring namespace::clean 0.08 since
Dave Rolsky [Wed, 6 Aug 2008 18:56:51 +0000]
Might as well be explicit about requiring namespace::clean 0.08 since
we really don't want the source filter version.