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

16 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

16 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

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

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

16 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

16 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

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

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

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

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

16 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

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

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

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

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

16 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?!)

16 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

16 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

16 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

16 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

16 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

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

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

16 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

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

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

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

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

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

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

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

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

16 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

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

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

16 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

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

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

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

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

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

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

16 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

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

More code tidying

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

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

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

16 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

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

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

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

16 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

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

16 years agoRequire the latest namespace::clean
Dave Rolsky [Wed, 6 Aug 2008 18:56:07 +0000]
Require the latest namespace::clean

16 years agoRemoved __CURRY_EXPORTS_FOR_CLASS__
Dave Rolsky [Wed, 6 Aug 2008 18:55:40 +0000]
Removed __CURRY_EXPORTS_FOR_CLASS__

Renamed init_meta to _init_meta and have it automatically called from
Moose::Exporter's generated import. Left in Moose::init_meta for
backwards compat.

Use namespace::clean to remove exported sugar functions, per hack from
mst.

16 years agoMissed a few use_ok calls that started warning now that Moose::Role
Dave Rolsky [Wed, 6 Aug 2008 18:39:05 +0000]
Missed a few use_ok calls that started warning now that Moose::Role
warns when loaded into main.

16 years agoAdd a test for loading Moose::Role into main (which now also warns)
Dave Rolsky [Wed, 6 Aug 2008 18:37:16 +0000]
Add a test for loading Moose::Role into main (which now also warns)

16 years agoStep 2: eliminate the need for import and unimport in users of
Dave Rolsky [Wed, 6 Aug 2008 17:15:05 +0000]
Step 2: eliminate the need for import and unimport in users of
Moose::Exporter, just build it all on the fly

16 years agoMove init_meta() to the end to match Moose.pm
Dave Rolsky [Wed, 6 Aug 2008 16:44:05 +0000]
Move init_meta() to the end to match Moose.pm

16 years agoStep 1: Moose::Exporter lets Moose & Moose::Role have the same
Dave Rolsky [Wed, 6 Aug 2008 16:43:13 +0000]
Step 1: Moose::Exporter lets Moose & Moose::Role have the same
functionality as they did before.

Next up, making Moose::Exporter work as a _re-exporter_ so MooseX::Foo
can export all of Moose and its own functions too.

16 years agoa branch for experimenting with my notional Moose::Exporter
Dave Rolsky [Wed, 6 Aug 2008 03:52:09 +0000]
a branch for experimenting with my notional Moose::Exporter

16 years agoRevised Basics Recipe 1 a fair bit ...
Dave Rolsky [Tue, 5 Aug 2008 17:19:41 +0000]
Revised Basics Recipe 1 a fair bit ...

Got rid of direct hashref access, since that is just confusing to see
in a first example (it's an example of what _not_ to do).

A lot of stylistic changes to make the text shorter and more
consistent (use first person plural everywhere).

16 years agoFix the inlined code generated for immutable constructor when a value is retruned...
Tomas Doran [Tue, 5 Aug 2008 15:21:43 +0000]
Fix the inlined code generated for immutable constructor when a value is retruned by default/builder so that it gets correctly coerced. Add tests for this

16 years agoHide remove_keywords a bit, rename it to _remove_keywords. Warn about it maybe being...
Shawn M Moore [Tue, 5 Aug 2008 03:50:26 +0000]
Hide remove_keywords a bit, rename it to _remove_keywords. Warn about it maybe being deprecated. Sub::Exporter anyone? :)

16 years agoSome of the test code was formatted very weirdly (tabs, wrong spacing,
Dave Rolsky [Tue, 5 Aug 2008 03:06:53 +0000]
Some of the test code was formatted very weirdly (tabs, wrong spacing,
etc), mostly the code copied verbatim from recipes.

16 years agoMoose now warns when you try to load it from the main package. Added a
Dave Rolsky [Tue, 5 Aug 2008 03:04:22 +0000]
Moose now warns when you try to load it from the main package. Added a
test for this (which requires Test::Output to run).

The tests had many "use_ok('Moose')" lines that started warning. The
use_ok tests weren't really testing anything, since the tests need the
modules they were trying to load in order to run. You actually get a
better error message by just using the module normally (if said module
fails to compile).

16 years agoPerltidy this code a bit.
Dave Rolsky [Mon, 4 Aug 2008 04:05:41 +0000]
Perltidy this code a bit.

16 years agoMoose->unimport has to be caled as a method for the into_level stuff to work
Dave Rolsky [Mon, 4 Aug 2008 04:04:51 +0000]
Moose->unimport has to be caled as a method for the into_level stuff to work

16 years agoAdd a remove_keywords function so if you extend Moose you don't have to cargo cult...
Shawn M Moore [Mon, 4 Aug 2008 01:34:26 +0000]
Add a remove_keywords function so if you extend Moose you don't have to cargo cult Moose's unimport

16 years agoBump to 0.56
Shawn M Moore [Mon, 4 Aug 2008 00:49:16 +0000]
Bump to 0.56

16 years agoUpdate MANIFEST 0_55
Shawn M Moore [Mon, 4 Aug 2008 00:44:15 +0000]
Update MANIFEST

16 years agoUpdate version number in README
Shawn M Moore [Mon, 4 Aug 2008 00:44:10 +0000]
Update version number in README

16 years agoUpdate Changes
Shawn M Moore [Mon, 4 Aug 2008 00:33:26 +0000]
Update Changes

16 years agoAdd a reference to Extending recipe 1 here, since this one is a
Dave Rolsky [Sun, 3 Aug 2008 17:55:26 +0000]
Add a reference to Extending recipe 1 here, since this one is a
continuation of said recipe.

16 years agoAdd another TODO recipe, for hooking into the immutabilization
Dave Rolsky [Sun, 3 Aug 2008 17:53:31 +0000]
Add another TODO recipe, for hooking into the immutabilization
system. This should come before meta-instance (which will at least
reference immutabilization)

16 years agoWrote Extending recipe 1, on using an alternate object base class.
Dave Rolsky [Sun, 3 Aug 2008 17:47:29 +0000]
Wrote Extending recipe 1, on using an alternate object base class.

16 years agoAdd link to extending recipe 2
Dave Rolsky [Sat, 2 Aug 2008 22:25:25 +0000]
Add link to extending recipe 2

16 years agoBetter abstract for extending recipe 2
Dave Rolsky [Sat, 2 Aug 2008 19:49:16 +0000]
Better abstract for extending recipe 2

16 years agoFix some POD errors.
Dave Rolsky [Sat, 2 Aug 2008 03:49:04 +0000]
Fix some POD errors.

16 years agoHaving init_meta() in the same scope as $CALLER always makes me look
Dave Rolsky [Sat, 2 Aug 2008 03:48:01 +0000]
Having init_meta() in the same scope as $CALLER always makes me look
for how init_meta() uses $CALLER, but it _doesn't_, so I'm moving it.

16 years agoDocument cookbook stuff in Changes
Dave Rolsky [Sat, 2 Aug 2008 03:41:47 +0000]
Document cookbook stuff in Changes

16 years agoAdd an abstract for meta recipe 1
Dave Rolsky [Sat, 2 Aug 2008 03:38:30 +0000]
Add an abstract for meta recipe 1

16 years agoGive each section its own abstract.
Dave Rolsky [Sat, 2 Aug 2008 03:37:47 +0000]
Give each section its own abstract.

16 years agomake_immutable is no longer a keyword
Dave Rolsky [Sat, 2 Aug 2008 03:33:35 +0000]
make_immutable is no longer a keyword

16 years agoLink to the keywords snack
Dave Rolsky [Sat, 2 Aug 2008 03:32:42 +0000]
Link to the keywords snack

16 years agoSmall wording tweak
Dave Rolsky [Sat, 2 Aug 2008 03:31:38 +0000]
Small wording tweak

16 years agoAdded a new cookbook section, extending Moose.
Dave Rolsky [Sat, 2 Aug 2008 03:30:26 +0000]
Added a new cookbook section, extending Moose.

Added extending recipe 2, on how to write something that looks like
Moose.pm. This is some nasty shit, but since there's a bunch of CPAN
modules doing it already, it might as well be documented ;)

16 years agoWrote meta recipe 4, a very simple metaclss example.
Dave Rolsky [Sat, 2 Aug 2008 02:54:52 +0000]
Wrote meta recipe 4, a very simple metaclss example.

I also planned out several more meta recipes. Recipe 5 is pending on
merging the metaclass traits branch. Recipe 6 is coming soon. Recipe 7
will come at some point, but needs to come after metaclasses and
sugar/importing, since a new meta-instance probably both a new
metaclass and a Moose.pm-like interface.

16 years agoFix references to previous recipe
Dave Rolsky [Sat, 2 Aug 2008 02:52:02 +0000]
Fix references to previous recipe

16 years agoFix a little bit of grammar
Dave Rolsky [Sat, 2 Aug 2008 02:24:28 +0000]
Fix a little bit of grammar

16 years agoTweak the abstracts for the two existing meta recipes
Dave Rolsky [Sat, 2 Aug 2008 02:05:39 +0000]
Tweak the abstracts for the two existing meta recipes

16 years agoFix all references to cookbook recipes
Dave Rolsky [Wed, 30 Jul 2008 16:24:49 +0000]
Fix all references to cookbook recipes

16 years agofix coerce to accept anon types like subtype can
Matt S Trout [Wed, 30 Jul 2008 14:25:21 +0000]
fix coerce to accept anon types like subtype can

16 years agoSubtypes is one word
Dave Rolsky [Tue, 29 Jul 2008 18:11:17 +0000]
Subtypes is one word

16 years agoImprove the English for the recipe 10 summary
Dave Rolsky [Tue, 29 Jul 2008 18:11:01 +0000]
Improve the English for the recipe 10 summary

16 years agoAdd new Meta::Recipe1 to changes
Dave Rolsky [Tue, 29 Jul 2008 18:06:33 +0000]
Add new Meta::Recipe1 to changes

16 years agoadd the welcome to the meta-world "recipe" - more of an intro than a recipe
Dave Rolsky [Tue, 29 Jul 2008 18:05:03 +0000]
add the welcome to the meta-world "recipe" - more of an intro than a recipe