12 years agoUse Moose::Meta::Class->initialize instead of Moose->init_meta in test attic/deprecate-direct-init_meta
Dave Rolsky [Tue, 30 Aug 2011 05:36:24 +0000]
Use Moose::Meta::Class->initialize instead of Moose->init_meta in test

12 years agoDeprecating calling Moose->init_meta directly
Dave Rolsky [Tue, 30 Aug 2011 05:34:27 +0000]
Deprecating calling Moose->init_meta directly

The hack is kind of gross but I think it can safely go away once it finds all
the culprits doing this.

12 years agoclean up duck type a bunch
Jesse Luehrs [Mon, 29 Aug 2011 17:33:35 +0000]
clean up duck type a bunch

12 years agoMerge changes for stable branch
Dave Rolsky [Mon, 29 Aug 2011 16:29:18 +0000]
Merge changes for stable branch

12 years agoCredit sartak for meta_lookup feature
Dave Rolsky [Mon, 29 Aug 2011 16:28:27 +0000]
Credit sartak for meta_lookup feature

12 years agoChanges for parameterized traits bug fix
Dave Rolsky [Mon, 29 Aug 2011 16:27:52 +0000]
Changes for parameterized traits bug fix

12 years agoFix typo in test description
Dave Rolsky [Mon, 29 Aug 2011 16:24:51 +0000]
Fix typo in test description

12 years agoForeign options forbid caching of interpolated attribute metaobjects
Shawn M Moore [Mon, 22 Aug 2011 17:58:36 +0000]
Foreign options forbid caching of interpolated attribute metaobjects

    Fixes [rt.cpan.org #70419]

12 years agoAdd a test exposing [rt.cpan.org #70419]
Shawn M Moore [Mon, 22 Aug 2011 17:56:20 +0000]
Add a test exposing [rt.cpan.org #70419]

12 years agoAdd changes docs for meta_lookup feature
Dave Rolsky [Mon, 29 Aug 2011 16:10:51 +0000]
Add changes docs for meta_lookup feature

12 years agoBasic test for meta_lookup
Shawn M Moore [Mon, 22 Aug 2011 20:19:52 +0000]
Basic test for meta_lookup

12 years agoFlesh out meta_lookup doc a little more
Shawn M Moore [Mon, 22 Aug 2011 20:07:37 +0000]
Flesh out meta_lookup doc a little more

12 years agometa_lookup doc
Shawn M Moore [Mon, 22 Aug 2011 20:06:05 +0000]
meta_lookup doc

12 years agoRename meta_generator to meta_lookup
Shawn M Moore [Mon, 22 Aug 2011 20:02:21 +0000]
Rename meta_generator to meta_lookup

12 years agoFirst pass at a meta_generator option for Moose::Exporter
Shawn M Moore [Mon, 22 Aug 2011 18:39:20 +0000]
First pass at a meta_generator option for Moose::Exporter

    This vastly simplifies and perfects code in the
    MooseX::Role::Parameterized package. meta_generator lets MXRP
    future-proof against changes in Moose::Role, and gives *current*
    error messages from Moose::Role instead of continuing to produce
    the 0.60 era messages.

12 years agoTweak doc changes for role_type & class_type
Dave Rolsky [Mon, 29 Aug 2011 16:07:37 +0000]
Tweak doc changes for role_type & class_type

12 years agoImprove documentation on Moose::Util::TypConstraints "role_type" and "class_type"
Kent Fredric [Tue, 16 Aug 2011 16:03:09 +0000]
Improve documentation on Moose::Util::TypConstraints "role_type" and "class_type"

The documentation for mapping custom type-library names to class names
is a bit lacking, to the point people actually do this:

subtype 'Foo', as 'Ref', where { $_->meta->does('Class::Foo') }

instead of the simple alternative

  role_type 'Foo', { role => 'Class::Foo' }

I bump into this problem reasonably often, and each time I bump into it
I forget exactly what the right syntax is, and usually end up writing
something like

  role_type 'Foo', { does => 'Class::Foo' }

Which silently fails to do what I meant, and then doesn't work as
intended.

I then often spend time perusing much documentation and wasting much
time tracking down where exactly its documented, and finding "it isn't",
and then proceed to reading the source to find what I'm doing
wrong.

( Oddly, I manage to get better at finding the right place in the
  source to look because somehow I can remember where I looked when I
  saw it last, but I can't remember exactly what the right syntax was ).

So, this simple patch aims to improve that and hopefully at least save
many minutes of my time, and perhaps the time of dozens more people.

( its not documented in MX::Types either, if anything, if you want to
  use MX::Types, the easiest thing to do is read MUTC's documentation
  instead )

12 years agoTest duck_type under the debugger
Florian Ragwitz [Thu, 25 Aug 2011 13:35:03 +0000]
Test duck_type under the debugger

It used to only work without the debugger.

12 years agoMake the duck type constraint closure check for blessing
Florian Ragwitz [Thu, 25 Aug 2011 13:24:33 +0000]
Make the duck type constraint closure check for blessing

It's what the inlined variant already does. Synchronise with it.

12 years agoFix duck_type constraint generators
Florian Ragwitz [Thu, 25 Aug 2011 13:19:12 +0000]
Fix duck_type constraint generators

Both the regular constraint closure and its inlined variant called
Scalar::Util::all assuming that $_[0] would point to the value to be validated
within the all {} block, which of course it doesn't.

I don't know how this ever worked.

12 years agoWe work just fine with older EU::ParseXS versions
Florian Ragwitz [Wed, 24 Aug 2011 20:06:02 +0000]
We work just fine with older EU::ParseXS versions

mop.h has the right compatibility glue.

12 years agoanother todo
Jesse Luehrs [Mon, 22 Aug 2011 17:23:37 +0000]
another todo

12 years agoFix is_class_loaded on blead
Florian Ragwitz [Mon, 22 Aug 2011 00:02:17 +0000]
Fix is_class_loaded on blead

SvOK is only valid on scalars. It's pointless to call it on the result of
de-referencing an arbitrary scalar.

Blead recently made calling ->VERSION upgrade the scalar of the VERSION glob to
a version object. This broke us as SvOK(version_object) doesn't mean what we
thought it would.

Just dropping the entire SvROK branch and checking for any valid scalar in the
VERSION glob is the right thing to do here.

12 years agodon't rely on Carp::confess existing when compiling generated code
Jesse Luehrs [Sun, 21 Aug 2011 23:07:06 +0000]
don't rely on Carp::confess existing when compiling generated code

12 years agoIgnore MYMETA.json
Florian Ragwitz [Sun, 21 Aug 2011 23:06:35 +0000]
Ignore MYMETA.json

12 years agoXS() was changed to imply static linkage - adapt
Florian Ragwitz [Sun, 21 Aug 2011 23:00:21 +0000]
XS() was changed to imply static linkage - adapt

There's a new XS_EXTERNAL to provide the old XS() semantics. ExtUtils::ParseXS
3.03_02 provides XS_EXTERNAL for compatibility with older perls.

12 years agoAdd applied_attribute as a possible role metarole
Dave Rolsky [Sun, 7 Aug 2011 03:29:30 +0000]
Add applied_attribute as a possible role metarole

12 years agomore todo
Jesse Luehrs [Sat, 30 Jul 2011 23:02:50 +0000]
more todo

12 years agoadd a few more rt tickets
Jesse Luehrs [Sat, 30 Jul 2011 22:44:24 +0000]
add a few more rt tickets

12 years agoAdd a little bit on handling of broken behavior that cannot be deprecated.
Dave Rolsky [Sat, 30 Jul 2011 22:46:27 +0000]
Add a little bit on handling of broken behavior that cannot be deprecated.

12 years agoAdded a todo item for 2.04
Dave Rolsky [Sat, 30 Jul 2011 22:25:55 +0000]
Added a todo item for 2.04

12 years agochangelog
Jesse Luehrs [Tue, 26 Jul 2011 06:38:25 +0000]
changelog

12 years agoconflict on MooseX::Types::Parameterizable 0.05
Jesse Luehrs [Mon, 25 Jul 2011 17:10:16 +0000]
conflict on MooseX::Types::Parameterizable 0.05

12 years agoFix up weird indentation in code example (3-space indent?)
Dave Rolsky [Mon, 25 Jul 2011 18:16:45 +0000]
Fix up weird indentation in code example (3-space indent?)

12 years agochangelog
Jesse Luehrs [Mon, 25 Jul 2011 16:26:04 +0000]
changelog

12 years agoclean up the moose::exporter doc additions a bit
Jesse Luehrs [Mon, 25 Jul 2011 16:24:01 +0000]
clean up the moose::exporter doc additions a bit

12 years agobe a bit stricter and more consistent with tc messages
Jesse Luehrs [Mon, 25 Jul 2011 16:12:20 +0000]
be a bit stricter and more consistent with tc messages

12 years agoMention that the import method can take a into argument in
Paweł Murias [Sat, 23 Jul 2011 21:58:45 +0000]
Mention that the import method can take a into argument in
the Moose::Export documentation.

12 years agochangelog
Jesse Luehrs [Fri, 22 Jul 2011 14:31:12 +0000]
changelog

12 years agoUpdate delta for deprecation warning
Dave Rolsky [Wed, 20 Jul 2011 17:25:43 +0000]
Update delta for deprecation warning

12 years agoFix delta - we will warn for optimize_as in 2.0300, not 2.0200
Dave Rolsky [Wed, 20 Jul 2011 18:32:03 +0000]
Fix delta - we will warn for optimize_as in 2.0300, not 2.0200

12 years agodeprecate optimize_as
Dave Rolsky [Wed, 20 Jul 2011 15:12:58 +0000]
deprecate optimize_as

12 years agoinitialize the metaclass when calling ->does
Jesse Luehrs [Wed, 20 Jul 2011 15:12:41 +0000]
initialize the metaclass when calling ->does

12 years agoactually, don't just call random ->does methods we don't control
Jesse Luehrs [Wed, 20 Jul 2011 14:49:25 +0000]
actually, don't just call random ->does methods we don't control

12 years agochangelog
Jesse Luehrs [Mon, 18 Jul 2011 18:58:45 +0000]
changelog

12 years agochangelog 2.0200
Jesse Luehrs [Mon, 18 Jul 2011 18:53:13 +0000]
changelog

12 years agoversion bump
Jesse Luehrs [Mon, 18 Jul 2011 18:52:29 +0000]
version bump

12 years agoSpelling fix
Dave Rolsky [Mon, 18 Jul 2011 18:10:11 +0000]
Spelling fix

12 years agoMI issues exist with all method modifiers
Karen Etheridge [Mon, 18 Jul 2011 17:29:07 +0000]
MI issues exist with all method modifiers

12 years agodocument shortcomings with inner/augment and MI.
Karen Etheridge [Mon, 18 Jul 2011 17:27:03 +0000]
document shortcomings with inner/augment and MI.

12 years agotodo += a bunch
Jesse Luehrs [Wed, 6 Jul 2011 18:35:27 +0000]
todo += a bunch

12 years agoclarification of wording
Karen Etheridge [Wed, 6 Jul 2011 17:54:16 +0000]
clarification of wording

12 years agoRemove a done item, and update todo for 2.04
Dave Rolsky [Wed, 6 Jul 2011 16:47:27 +0000]
Remove a done item, and update todo for 2.04

12 years agoFix small typo in Delta
Dave Rolsky [Tue, 5 Jul 2011 17:14:34 +0000]
Fix small typo in Delta

12 years agochangelog
Jesse Luehrs [Mon, 27 Jun 2011 18:11:59 +0000]
changelog

12 years agoversion bump 2.0105
Jesse Luehrs [Mon, 27 Jun 2011 15:11:46 +0000]
version bump

12 years agomake Moose::Util::does_role respect overridden ->does methods
Jesse Luehrs [Sat, 25 Jun 2011 18:05:52 +0000]
make Moose::Util::does_role respect overridden ->does methods

12 years agoRemove empty packages
Dave Rolsky [Mon, 20 Jun 2011 21:55:19 +0000]
Remove empty packages

12 years agoadd some more conflicts
Jesse Luehrs [Mon, 20 Jun 2011 18:04:39 +0000]
add some more conflicts

12 years agothese have had deprecation warnings forever, and are now broken
Jesse Luehrs [Mon, 20 Jun 2011 18:02:10 +0000]
these have had deprecation warnings forever, and are now broken

12 years agochangelog
Jesse Luehrs [Mon, 20 Jun 2011 13:42:08 +0000]
changelog

12 years agoversion bump 2.0104
Jesse Luehrs [Mon, 20 Jun 2011 13:37:40 +0000]
version bump

12 years agochangelog
Jesse Luehrs [Mon, 20 Jun 2011 13:37:18 +0000]
changelog

12 years agochangelog
Jesse Luehrs [Mon, 20 Jun 2011 13:26:15 +0000]
changelog

12 years agodon't load_class if a metaclass already exists
Jesse Luehrs [Mon, 20 Jun 2011 13:19:45 +0000]
don't load_class if a metaclass already exists

otherwise this breaks things like:

package Foo;
use MooseX::Thing;
...

when MooseX::Thing both applies roles and re-exports Moose::Role stuff,
because at the time that MooseX::Thing::init_meta is called, the package
is empty (it won't get anything in it until Moose::Role::init_meta is
called).

12 years agoindicate TRIAL status in changelog
Jesse Luehrs [Mon, 20 Jun 2011 06:12:29 +0000]
indicate TRIAL status in changelog

12 years agochangelog
Jesse Luehrs [Mon, 20 Jun 2011 06:11:09 +0000]
changelog

12 years agopod coverage 2.0103
Jesse Luehrs [Mon, 20 Jun 2011 06:03:33 +0000]
pod coverage

12 years agoversion bump
Jesse Luehrs [Mon, 20 Jun 2011 05:59:35 +0000]
version bump

12 years agoimprove method-modifier docs to highlight issues with regex selection of methods...
joel [Sun, 19 Jun 2011 10:28:07 +0000]
improve method-modifier docs to highlight issues with regex selection of methods to override

12 years agochangelog
Jesse Luehrs [Sun, 19 Jun 2011 08:33:42 +0000]
changelog

12 years agoChanges for rebless_triggers branch
Dave Rolsky [Thu, 16 Jun 2011 15:26:24 +0000]
Changes for rebless_triggers branch

12 years agocode tidying
Dave Rolsky [Thu, 16 Jun 2011 15:24:59 +0000]
code tidying

12 years agoTidy new code
Dave Rolsky [Thu, 16 Jun 2011 15:21:05 +0000]
Tidy new code

12 years agocall all triggers in rebless_instance - tests now pass.
Karen Etheridge [Wed, 1 Jun 2011 00:40:09 +0000]
call all triggers in rebless_instance - tests now pass.

refactored common code out into a sub. As it happens, this is sufficient even for the immutable path, because $meta->rebless_instance is not inlined, even though there is a sub in CMOP for generating inlineable code!

12 years agoreturn ASAP if the class is already immutable
Karen Etheridge [Wed, 1 Jun 2011 00:36:27 +0000]
return ASAP if the class is already immutable

12 years agonew tests for initializers and triggers on rebless_instance
Karen Etheridge [Tue, 31 May 2011 23:42:18 +0000]
new tests for initializers and triggers on rebless_instance

initializers work, as this comes from CMOP, but Moose::Meta::Class needs an override - so this test is marked TODO for now.

12 years agodo these tests twice, with with_immutable()
Karen Etheridge [Tue, 31 May 2011 21:44:58 +0000]
do these tests twice, with with_immutable()

12 years agochangelog
Jesse Luehrs [Sun, 19 Jun 2011 07:29:27 +0000]
changelog

12 years agoremove some code duplication
Jesse Luehrs [Sun, 19 Jun 2011 07:26:42 +0000]
remove some code duplication

12 years agoImprove the docs for this feature, extend the tests
Kent Fredric [Sun, 19 Jun 2011 01:07:48 +0000]
Improve the docs for this feature, extend the tests

12 years agoHack it this way in order to permit us to set the name ( which is forbidden to do...
Kent Fredric [Sun, 19 Jun 2011 00:42:38 +0000]
Hack it this way in order to permit us to set the name ( which is forbidden to do after construction ) without the risk of breaking existing union code

12 years agoAdded union constructor tests
Kent Fredric [Sun, 19 Jun 2011 00:24:28 +0000]
Added union constructor tests

12 years agoAdd a union type constraint constructor sugar to
Kent Fredric [Sun, 19 Jun 2011 00:11:45 +0000]
Add a union type constraint constructor sugar to
Moose::Util::TypeConstraints

12 years agoFix FAQ on require+attributes
Mark A. Stratman [Fri, 11 Mar 2011 19:38:09 +0000]
Fix FAQ on require+attributes

12 years agoAdd FAQ on requires and attribute-generated methods
Mark A. Stratman [Fri, 11 Mar 2011 19:31:17 +0000]
Add FAQ on requires and attribute-generated methods

12 years agotests and changelog
Jesse Luehrs [Sun, 19 Jun 2011 06:52:07 +0000]
tests and changelog

12 years agoalso add this error for roles
Jesse Luehrs [Sun, 19 Jun 2011 06:51:53 +0000]
also add this error for roles

12 years agocheck if the metaclass is loaded
Jason May [Sat, 7 Aug 2010 17:59:14 +0000]
check if the metaclass is loaded

12 years agochangelog
Jesse Luehrs [Sun, 19 Jun 2011 06:33:18 +0000]
changelog

12 years agomake sure the applicant is loaded first
Jesse Luehrs [Sun, 19 Jun 2011 06:27:03 +0000]
make sure the applicant is loaded first

12 years agoinitialize a metaclass when trying to apply all roles
Chris Prather [Sat, 21 Aug 2010 07:09:07 +0000]
initialize a metaclass when trying to apply all roles

Applying a role to a non-Moose class currently requires manually
initializing the metaclass before calling
Moose::Util::apply_all_roles(). This commit changes that by swapping
find_meta for initialize() when setting up $applicant.

12 years agoFix error reporting in duck_type
Tomas Doran [Thu, 23 Dec 2010 15:47:00 +0000]
Fix error reporting in duck_type

12 years agofix tests for the deprecation stuff
Jesse Luehrs [Sun, 19 Jun 2011 06:14:30 +0000]
fix tests for the deprecation stuff

12 years agoremove a bit more deprecation code
Jesse Luehrs [Sun, 19 Jun 2011 05:49:57 +0000]
remove a bit more deprecation code

12 years agooops, need a package::deprecationmanager fix
Jesse Luehrs [Sun, 19 Jun 2011 05:48:05 +0000]
oops, need a package::deprecationmanager fix

12 years agochangelog
Jesse Luehrs [Sun, 19 Jun 2011 05:41:23 +0000]
changelog

12 years agoremove old deprecated code
Jesse Luehrs [Sun, 19 Jun 2011 04:59:59 +0000]
remove old deprecated code

12 years agothese are unnecessary, since we know the parent is Item
Jesse Luehrs [Sun, 19 Jun 2011 04:26:49 +0000]
these are unnecessary, since we know the parent is Item

12 years agochangelog
Jesse Luehrs [Sat, 18 Jun 2011 17:49:57 +0000]
changelog