14 years agobetter tests
Jesse Luehrs [Sun, 26 Sep 2010 09:56:10 +0000]
better tests

14 years agobasic implementation of preserving attrs/methods across reinitialization
Jesse Luehrs [Sun, 26 Sep 2010 09:04:53 +0000]
basic implementation of preserving attrs/methods across reinitialization

14 years agoAdd inline_rebless_instance to metaclass
Dave Rolsky [Sun, 26 Sep 2010 15:51:46 +0000]
Add inline_rebless_instance to metaclass

14 years agoWhen inlining constructor, don't access meta instance directly, use metaclass to...
Dave Rolsky [Sun, 26 Sep 2010 05:16:27 +0000]
When inlining constructor, don't access meta instance directly, use metaclass to do inlining

14 years agoImplement inlining code in CMOP::Attribute
Dave Rolsky [Sun, 26 Sep 2010 05:09:03 +0000]
Implement inlining code in CMOP::Attribute

This can mostly be reused in Moose, and ensures all attributes have a consistent API

14 years agoUse AuthorRequires to force authors to run all tests
Shawn M Moore [Sun, 26 Sep 2010 03:19:13 +0000]
Use AuthorRequires to force authors to run all tests

14 years agoAdd CMOP::MiniTrait
Dave Rolsky [Thu, 23 Sep 2010 17:14:43 +0000]
Add CMOP::MiniTrait

This just takes the logic that we use when applying the immutability trait and
puts it into a separate package for reuse by other core classes.

14 years agocorrect link to Perl6-ObjectSpace
Ricardo Signes [Thu, 23 Sep 2010 15:11:06 +0000]
correct link to Perl6-ObjectSpace

14 years agoalso allow suppressing the meta method during CMOP::Class->create
Jesse Luehrs [Thu, 23 Sep 2010 04:59:40 +0000]
also allow suppressing the meta method during CMOP::Class->create

14 years agodocs and changelog
Jesse Luehrs [Thu, 23 Sep 2010 04:50:38 +0000]
docs and changelog

14 years agomake lack of a meta method testable
Jesse Luehrs [Thu, 23 Sep 2010 01:26:07 +0000]
make lack of a meta method testable

14 years agodon't both "use metaclass" and then "use base 'Class::MOP::Class'"
Jesse Luehrs [Thu, 23 Sep 2010 00:50:24 +0000]
don't both "use metaclass" and then "use base 'Class::MOP::Class'"

this breaks several assumptions, including metaclass compatibility (use
base can't recheck that) and the existence of a 'meta' method (if
no_meta => 1 is passed to use metaclass). neither of these are an issue
here specifically, but better to not open up the issue (and it's not
necessary anyway).

14 years agoallow not importing a meta method
Jesse Luehrs [Tue, 6 Jul 2010 05:50:15 +0000]
allow not importing a meta method

14 years agouse get_or_add_package_symbol where appropriate
Jesse Luehrs [Wed, 22 Sep 2010 18:17:28 +0000]
use get_or_add_package_symbol where appropriate

14 years ago_get_method_map was renamed to _method_map a while ago
Jesse Luehrs [Wed, 22 Sep 2010 16:43:25 +0000]
_get_method_map was renamed to _method_map a while ago

14 years agoDepend on a known good version of Package::Stash
Florian Ragwitz [Mon, 20 Sep 2010 18:47:34 +0000]
Depend on a known good version of Package::Stash

14 years agoremove debugging warn
Dave Rolsky [Fri, 17 Sep 2010 20:19:54 +0000]
remove debugging warn

14 years agoRemove pointless concatenation
Dave Rolsky [Thu, 16 Sep 2010 16:37:26 +0000]
Remove pointless concatenation

14 years agoUse Perl::Tidy to tidy dump of generate source code if we can.
Dave Rolsky [Wed, 15 Sep 2010 02:04:56 +0000]
Use Perl::Tidy to tidy dump of generate source code if we can.

Also check source dumping env var each time we generate a sub. This makes it
possible to turn it on selectively, at the cost of a small speed hit (which I
really doubt matters next to the cost of eval'ing a block of code!)

14 years agoBump version to 1.08 1.08
Dave Rolsky [Mon, 13 Sep 2010 15:54:04 +0000]
Bump version to 1.08

14 years agoRelease date for 1.08
Dave Rolsky [Mon, 13 Sep 2010 15:53:57 +0000]
Release date for 1.08

14 years agoadd conflict for earlier namespace::autoclean, which uses deprecated method_map calls
Karen Etheridge [Sat, 11 Sep 2010 17:49:32 +0000]
add conflict for earlier namespace::autoclean, which uses deprecated method_map calls

14 years agoDoc changes from gfx
Dave Rolsky [Mon, 6 Sep 2010 15:00:40 +0000]
Doc changes from gfx

14 years agoClarify comment for new code
Dave Rolsky [Mon, 6 Sep 2010 14:59:45 +0000]
Clarify comment for new code

14 years agoTidy code
Dave Rolsky [Mon, 6 Sep 2010 14:59:24 +0000]
Tidy code

14 years agoFix a bug that get_method_list() thrown the error for subroutine stubs
gfx [Mon, 6 Sep 2010 04:56:35 +0000]
Fix a bug that get_method_list() thrown the error for subroutine stubs

14 years agouse Test::Requires in tests
Karen Etheridge [Tue, 24 Aug 2010 20:34:47 +0000]
use Test::Requires in tests

14 years agoMake M::I::ExtraTests fail more obvious
Florian Ragwitz [Tue, 24 Aug 2010 19:26:16 +0000]
Make M::I::ExtraTests fail more obvious

14 years agoSmall changes wording tweaks 1.07
Dave Rolsky [Tue, 24 Aug 2010 14:38:07 +0000]
Small changes wording tweaks

14 years agobump version to 1.07
Dave Rolsky [Tue, 24 Aug 2010 14:37:46 +0000]
bump version to 1.07

14 years agoChanges for 1.07
Dave Rolsky [Tue, 24 Aug 2010 14:37:25 +0000]
Changes for 1.07

14 years agoFix a mysterious failure reported by Piers Cawley
Dave Rolsky [Tue, 24 Aug 2010 14:36:32 +0000]
Fix a mysterious failure reported by Piers Cawley

Unfortunately, neither of us could think of a simple test for this, but Piers
confirmed that the patch fixes the failure he saw in production. May be
related to the use of MX::Declare and/or TryCatch.

14 years agoRestore the call to check_conflicts 1.06
Dave Rolsky [Mon, 23 Aug 2010 13:34:57 +0000]
Restore the call to check_conflicts

14 years agoRevert "Use check_conflicts from Module::Install"
Dave Rolsky [Mon, 23 Aug 2010 13:34:04 +0000]
Revert "Use check_conflicts from Module::Install"

This reverts commit 3f3e009e602ec89c1f724e3fabef114ddf68e6d3.

Using this seems to break make disttest and I don't have time to figure this
out.

14 years agoRemove extra use of check_conflicts
Dave Rolsky [Mon, 23 Aug 2010 13:20:38 +0000]
Remove extra use of check_conflicts

14 years agobump version to 1.06
Dave Rolsky [Mon, 23 Aug 2010 13:18:47 +0000]
bump version to 1.06

14 years agoChanges for 1.06
Dave Rolsky [Mon, 23 Aug 2010 13:13:29 +0000]
Changes for 1.06

14 years agoAdd a test for a constant with an undef value
Dave Rolsky [Mon, 23 Aug 2010 13:13:17 +0000]
Add a test for a constant with an undef value

14 years agoConstants _should_ be reported as methods.
Dave Rolsky [Mon, 23 Aug 2010 13:08:21 +0000]
Constants _should_ be reported as methods.

This makes no fucking sense, but we used to do this, so changing it now may
break existing (boneheaded) code.

14 years agoUse check_conflicts from Module::Install
Dave Rolsky [Sun, 22 Aug 2010 16:31:57 +0000]
Use check_conflicts from Module::Install

14 years agoRelease date for 1.05 1.05
Dave Rolsky [Sun, 22 Aug 2010 15:31:14 +0000]
Release date for 1.05

14 years agoChanges for 1.05
Dave Rolsky [Sun, 22 Aug 2010 15:31:02 +0000]
Changes for 1.05

14 years agoBump version to 1.05
Dave Rolsky [Fri, 20 Aug 2010 12:10:46 +0000]
Bump version to 1.05

I want to do this now, since the latest Moose requires the latest CMOP, and I want to install them locally for various bits of testing.

14 years agoOnly get ISA once in superclasses method
Dave Rolsky [Thu, 19 Aug 2010 14:02:06 +0000]
Only get ISA once in superclasses method

14 years agoDon't make a method object for calls to has_method, just for get_method
Dave Rolsky [Thu, 19 Aug 2010 04:29:08 +0000]
Don't make a method object for calls to has_method, just for get_method

This speeds things up a bit more, since we can check for the existence of a
method without actually inflating a code ref into a method object.

14 years agoMake sure that get_method_list and _get_local_methods handle constants in the namespa...
Dave Rolsky [Sun, 15 Aug 2010 09:17:57 +0000]
Make sure that get_method_list and _get_local_methods handle constants in the namespace safely

14 years agoAdd _get_local_methods method that returns method objects directly.
Dave Rolsky [Sat, 14 Aug 2010 17:28:33 +0000]
Add _get_local_methods method that returns method objects directly.

Using this in various places can make our code much more efficient, since we
avoid calling get_method twice.

14 years agoBig optimization for get_method_list
Dave Rolsky [Sat, 14 Aug 2010 16:54:30 +0000]
Big optimization for get_method_list

By checking for a CODE slot in the glob, we can avoid a lot of calls to
->has_method, which is quite expensive.

This seems to provide a speedup of approximately 10% when compiling
Markdent::Simple::Document (and all the classes it loads in turn).

14 years agoSimplify code a bit by returning immediately from _check_metaclass_compatibility...
Dave Rolsky [Sat, 14 Aug 2010 16:35:32 +0000]
Simplify code a bit by returning immediately from _check_metaclass_compatibility when possible

14 years agoClarify comment after refactoring
Dave Rolsky [Sat, 14 Aug 2010 16:29:30 +0000]
Clarify comment after refactoring

14 years agodocpatch to Class::MOP::Class to make it more clear that get_attribute_list does...
Robert Buels [Tue, 10 Aug 2010 22:50:32 +0000]
docpatch to Class::MOP::Class to make it more clear that get_attribute_list does not traverse the inheritance hierarchy

14 years agoSome small optimizations to avoid repeated accessor calls when inlining a constructor
Dave Rolsky [Sun, 8 Aug 2010 09:14:02 +0000]
Some small optimizations to avoid repeated accessor calls when inlining a constructor

14 years agoTidy oddly formatted chunk of code
Dave Rolsky [Sun, 8 Aug 2010 09:10:49 +0000]
Tidy oddly formatted chunk of code

14 years agoGet the package name once as a small optimization
Dave Rolsky [Sun, 8 Aug 2010 09:02:08 +0000]
Get the package name once as a small optimization

14 years agoInline the clone method in CMOP::Method as an optimization
Dave Rolsky [Sun, 8 Aug 2010 08:58:32 +0000]
Inline the clone method in CMOP::Method as an optimization

14 years agoA small optimization to CMOP::Mixin::HasMethods::get_method (from profiling)
Dave Rolsky [Thu, 5 Aug 2010 23:05:32 +0000]
A small optimization to CMOP::Mixin::HasMethods::get_method (from profiling)

14 years agoAdd Changes for doy's better_default_generation branch
Dave Rolsky [Mon, 26 Jul 2010 17:51:00 +0000]
Add Changes for doy's better_default_generation branch

14 years agoSquashed commit of the following:
Dave Rolsky [Mon, 26 Jul 2010 17:49:03 +0000]
Squashed commit of the following:

commit 255fa25a0a956ccac7b8a3c0434321bef3b67942
Author: Jesse Luehrs <doy@tozt.net>
Date:   Mon Jul 5 19:26:30 2010 -0500

    just close over the default value, stop fiddling with reparsing

commit e78f18dd84e155eccae4986de1de2d8adf0e4373
Author: Jesse Luehrs <doy@tozt.net>
Date:   Mon Jul 5 17:32:45 2010 -0500

    support default => undef better

commit 7be1d004a96a44cc93b0a85bdfb26e6be647e77d
Author: Jesse Luehrs <doy@tozt.net>
Date:   Mon Jul 5 17:24:49 2010 -0500

    refactor out default generation into something moose can use

14 years agoRequire latest Package::DeprecationManager 1.04
Dave Rolsky [Sun, 25 Jul 2010 15:25:32 +0000]
Require latest Package::DeprecationManager

14 years agobump version to 1.04
Dave Rolsky [Sun, 25 Jul 2010 15:24:03 +0000]
bump version to 1.04

14 years agoAdd date for 1.04
Dave Rolsky [Sun, 25 Jul 2010 15:23:36 +0000]
Add date for 1.04

14 years agoImprove docs for CMOP::Deprecated
Dave Rolsky [Wed, 14 Jul 2010 16:42:16 +0000]
Improve docs for CMOP::Deprecated

14 years agoUse Package::DeprecationManager to manage deprecations
Dave Rolsky [Mon, 12 Jul 2010 20:12:46 +0000]
Use Package::DeprecationManager to manage deprecations

14 years agoRemove irrelevant comment
Dave Rolsky [Mon, 12 Jul 2010 16:22:26 +0000]
Remove irrelevant comment

14 years agoAdd authority metadata
Florian Ragwitz [Sat, 5 Jun 2010 21:01:44 +0000]
Add authority metadata

14 years agoVersion 1.03 1.03
Florian Ragwitz [Sat, 5 Jun 2010 20:58:44 +0000]
Version 1.03

14 years agoAdd release day for 1.02
Florian Ragwitz [Sat, 5 Jun 2010 20:58:17 +0000]
Add release day for 1.02

14 years agoChangelog Package::Stash
Florian Ragwitz [Sat, 5 Jun 2010 20:55:13 +0000]
Changelog Package::Stash

14 years agomake CMOP::Package a thin wrapper around Package::Stash
Jesse Luehrs [Tue, 11 May 2010 04:20:29 +0000]
make CMOP::Package a thin wrapper around Package::Stash

14 years agoVersion 1.02 1.02
Florian Ragwitz [Thu, 20 May 2010 19:44:04 +0000]
Version 1.02

14 years agoAdd conflict against old Moose versions
Florian Ragwitz [Thu, 20 May 2010 19:52:14 +0000]
Add conflict against old Moose versions

14 years agoFix 0.01 release date
Florian Ragwitz [Thu, 20 May 2010 19:43:25 +0000]
Fix 0.01 release date

14 years agoFix changelog nit
Florian Ragwitz [Thu, 20 May 2010 19:42:23 +0000]
Fix changelog nit

14 years agoneed to dep on List::MoreUtils now
Jesse Luehrs [Mon, 10 May 2010 22:56:02 +0000]
need to dep on List::MoreUtils now

14 years agomove some metaclass compat docs from moose to here
Jesse Luehrs [Mon, 10 May 2010 21:47:16 +0000]
move some metaclass compat docs from moose to here

14 years agohandle undef metaclasses where they are defined in superclass
Jesse Luehrs [Mon, 10 May 2010 17:58:53 +0000]
handle undef metaclasses where they are defined in superclass

14 years agosimplify
Jesse Luehrs [Mon, 10 May 2010 16:55:40 +0000]
simplify

14 years agoClarify what $TODO is about
Dave Rolsky [Mon, 26 Apr 2010 17:51:42 +0000]
Clarify what $TODO is about

14 years agoSigh, and one more place to use _real_ref_name
Dave Rolsky [Mon, 26 Apr 2010 17:32:55 +0000]
Sigh, and one more place to use _real_ref_name

14 years agoFix one more spot to use ->_real_ref_name
Dave Rolsky [Mon, 26 Apr 2010 17:32:10 +0000]
Fix one more spot to use ->_real_ref_name

14 years agoRefactor code to get a metaclass object's real class name into a method.
Dave Rolsky [Mon, 26 Apr 2010 17:24:44 +0000]
Refactor code to get a metaclass object's real class name into a method.

This eliminates a nasty little bit of duplicated code scattered throughout the code base.

Also need to get Moose to use this.

14 years agodon't whine about unsafe fixing unless we're actually fixing something
Jesse Luehrs [Mon, 19 Apr 2010 01:36:37 +0000]
don't whine about unsafe fixing unless we're actually fixing something

14 years agofix up some immutability stuff
Jesse Luehrs [Fri, 16 Apr 2010 05:39:27 +0000]
fix up some immutability stuff

14 years agomore complicated metaclass initialization tests
Jesse Luehrs [Sat, 3 Apr 2010 00:56:15 +0000]
more complicated metaclass initialization tests

14 years agomore tests
Jesse Luehrs [Fri, 2 Apr 2010 23:34:09 +0000]
more tests

14 years agodon't call $self->initialize, call CMOP::Class->initialize
Jesse Luehrs [Fri, 2 Apr 2010 20:47:33 +0000]
don't call $self->initialize, call CMOP::Class->initialize

now that metaclass compat fixing works, let that take care of picking
the correct metaclass

14 years agodon't try to fix compatible metaclasses
Jesse Luehrs [Fri, 2 Apr 2010 17:52:05 +0000]
don't try to fix compatible metaclasses

14 years agomore correct metaclass compat checking and fixing
Jesse Luehrs [Thu, 17 Sep 2009 23:58:17 +0000]
more correct metaclass compat checking and fixing

14 years agomove methods back into CMOP::Class, now that they're a separate mixin
Jesse Luehrs [Tue, 11 May 2010 02:13:19 +0000]
move methods back into CMOP::Class, now that they're a separate mixin

14 years agoAdd the repository URL to the Makefile.PL/META.yml
Shlomi Fish [Mon, 19 Apr 2010 21:33:55 +0000]
Add the repository URL to the Makefile.PL/META.yml

14 years agoVersion 1.01. 1.01
Florian Ragwitz [Thu, 6 May 2010 00:06:29 +0000]
Version 1.01.

14 years agoAllow requiring a version with is_class_loaded, load_class and load_first_existing_class.
Florian Ragwitz [Sat, 1 May 2010 22:15:19 +0000]
Allow requiring a version with is_class_loaded, load_class and load_first_existing_class.

14 years agodon't allow incorrectly-blessed __INSTANCE__ parameters
Jesse Luehrs [Mon, 3 May 2010 16:43:35 +0000]
don't allow incorrectly-blessed __INSTANCE__ parameters

14 years agoSpell "fucking" properly
Dave Rolsky [Thu, 25 Mar 2010 20:37:18 +0000]
Spell "fucking" properly

14 years agoVersion 1.00. 1.00
Florian Ragwitz [Thu, 25 Mar 2010 18:15:33 +0000]
Version 1.00.

14 years agoVersion 0.99. 0.99
Florian Ragwitz [Thu, 25 Mar 2010 17:59:19 +0000]
Version 0.99.

14 years agoUpdate Changes.
Florian Ragwitz [Thu, 25 Mar 2010 17:57:37 +0000]
Update Changes.

14 years agoChangelog indenting.
Florian Ragwitz [Tue, 2 Feb 2010 23:47:11 +0000]
Changelog indenting.

14 years agoPOD typo corrected
franck cuny [Thu, 21 Jan 2010 14:21:58 +0000]
POD typo corrected

14 years agoAdd release date 0.98
Dave Rolsky [Mon, 18 Jan 2010 17:52:29 +0000]
Add release date