15 years agoA bunch of style tweaks to try to get things more consistent. Also
Dave Rolsky [Wed, 3 Dec 2008 03:33:13 +0000]
A bunch of style tweaks to try to get things more consistent. Also
removed a bunch of do-nothing doubled parens and made them single
parens.

15 years agoThis is a tweaked version of Goro Fuji's XS implementation of
Dave Rolsky [Wed, 3 Dec 2008 03:27:51 +0000]
This is a tweaked version of Goro Fuji's XS implementation of
get_method_map. Tweaks were done for style, and some implementation
issues based on comments from rafl.

It seems to be about 3x faster when rebuilding the map, though if the
map doesn't need rebuilding, the speed difference is trivial.

15 years agoMention my perf tweaks in Changes
Dave Rolsky [Wed, 3 Dec 2008 03:14:14 +0000]
Mention my perf tweaks in Changes

15 years agoWhen we memoize methods, get their results lazily to remove some compile-time cost
Shawn M Moore [Wed, 3 Dec 2008 02:59:11 +0000]
When we memoize methods, get their results lazily to remove some compile-time cost

15 years agoAvoid calling $self->metaclass->meta again and again
Shawn M Moore [Wed, 3 Dec 2008 02:56:45 +0000]
Avoid calling $self->metaclass->meta again and again

15 years ago->wrap is documented as a constructor, so it should expect a class name as the first...
Dave Rolsky [Wed, 3 Dec 2008 00:23:30 +0000]
->wrap is documented as a constructor, so it should expect a class name as the first argument, not an object.

15 years agoAvoid calling get_method_map when possible. Instead, we check
Dave Rolsky [Tue, 2 Dec 2008 23:28:18 +0000]
Avoid calling get_method_map when possible. Instead, we check
$self->{methods} directly in several places.

15 years agoMade creating the immutable class lazy
Dave Rolsky [Tue, 2 Dec 2008 23:07:01 +0000]
Made creating the immutable class lazy

15 years agoGet class name into a local var earlier
Dave Rolsky [Tue, 2 Dec 2008 23:01:50 +0000]
Get class name into a local var earlier

15 years agoDoc using the new method->execute API
Shawn M Moore [Sat, 29 Nov 2008 01:37:57 +0000]
Doc using the new method->execute API

15 years agoClass::MOP::Method->execute
Shawn M Moore [Sat, 29 Nov 2008 01:28:48 +0000]
Class::MOP::Method->execute

16 years agoAdd release date 0.71
Dave Rolsky [Wed, 26 Nov 2008 19:37:34 +0000]
Add release date

16 years agobump _all_ the versions to 0.71
Dave Rolsky [Wed, 26 Nov 2008 18:16:54 +0000]
bump _all_ the versions to 0.71

16 years agoBump version number as Moose needs trunk MOP (r6678)
Tomas Doran [Wed, 26 Nov 2008 17:35:40 +0000]
Bump version number as Moose needs trunk MOP (r6678)

16 years agoUse the same _is_valid_class_name check in is_class_loaded
Shawn M Moore [Tue, 25 Nov 2008 07:36:15 +0000]
Use the same _is_valid_class_name check in is_class_loaded

16 years agoDocument the small refactor I did
Shawn M Moore [Tue, 25 Nov 2008 06:28:08 +0000]
Document the small refactor I did

16 years agoTypo fix
Shawn M Moore [Tue, 25 Nov 2008 05:48:17 +0000]
Typo fix

16 years agoMove the actual module/package creation from Class::MOP::Class to Class::MOP::Module
Shawn M Moore [Tue, 25 Nov 2008 05:14:15 +0000]
Move the actual module/package creation from Class::MOP::Class to Class::MOP::Module

16 years agoDoh, I'm retarded. 0.70_01
Dave Rolsky [Wed, 19 Nov 2008 14:49:43 +0000]
Doh, I'm retarded.

I already release 0.70, and then went and released 0.69_01.

Re-releasing with proper changes as 0.70_01 to get some testing

16 years agoupdate Changes and make version 0.69_01 0.69_01
Dave Rolsky [Tue, 18 Nov 2008 15:58:04 +0000]
update Changes and make version 0.69_01

16 years agoDon't declare return values for PPCODE.
Florian Ragwitz [Sat, 15 Nov 2008 15:00:44 +0000]
Don't declare return values for PPCODE.

This silences some more compiler warnings.

16 years agoSilence some compiler warnings.
Florian Ragwitz [Sat, 15 Nov 2008 15:00:35 +0000]
Silence some compiler warnings.

16 years agoDon't try to get a CV from globs that are references, but not SvROK.
Florian Ragwitz [Sat, 15 Nov 2008 09:03:22 +0000]
Don't try to get a CV from globs that are references, but not SvROK.

This might happen on newer perls where SVt_RV has been merged into SVt_IV.
Fixes RT#39149.

16 years agoupdate manifest 0.70
Dave Rolsky [Fri, 14 Nov 2008 22:21:21 +0000]
update manifest

16 years agos/bus error/segfault/
Dave Rolsky [Fri, 14 Nov 2008 22:11:13 +0000]
s/bus error/segfault/

16 years agobump version # and update changes
Dave Rolsky [Fri, 14 Nov 2008 21:35:58 +0000]
bump version # and update changes

16 years agogot rid of all the use_ok junk except for 000_load.t
Dave Rolsky [Fri, 14 Nov 2008 21:35:18 +0000]
got rid of all the use_ok junk except for 000_load.t

16 years agonone of this use_ok nonsense
Dave Rolsky [Fri, 14 Nov 2008 21:14:27 +0000]
none of this use_ok nonsense

16 years agoDon't mortalize the CVs behind inlined constants in the xs version of get_all_package...
Florian Ragwitz [Fri, 14 Nov 2008 21:04:53 +0000]
Don't mortalize the CVs behind inlined constants in the xs version of get_all_package_symbols.

16 years agoAdd a failing testcase for get_all_package_symbols and inlined constants.
Florian Ragwitz [Fri, 14 Nov 2008 21:04:42 +0000]
Add a failing testcase for get_all_package_symbols and inlined constants.

16 years agoDepend on Task::Weaken so we know we have an XS Scalar::Util
Dave Rolsky [Fri, 14 Nov 2008 20:03:33 +0000]
Depend on Task::Weaken so we know we have an XS Scalar::Util

16 years agobump version and update changes for release 0.69
Dave Rolsky [Fri, 7 Nov 2008 20:27:26 +0000]
bump version and update changes for release

16 years agoClass::MOP::Class->add_method does not accept any params besides
Dave Rolsky [Fri, 7 Nov 2008 20:03:31 +0000]
Class::MOP::Class->add_method does not accept any params besides
method name and the method itself.

16 years agoAdded introspection methods for method modifiers, along with tests.
Dave Rolsky [Fri, 7 Nov 2008 19:59:57 +0000]
Added introspection methods for method modifiers, along with tests.

16 years agoTidy this bizarrely indented code before adding more tests.
Dave Rolsky [Fri, 7 Nov 2008 19:42:51 +0000]
Tidy this bizarrely indented code before adding more tests.

16 years agoRemove use_ok tests
Dave Rolsky [Fri, 7 Nov 2008 19:42:20 +0000]
Remove use_ok tests

16 years agoFix some bizarro code left behind by a much earlier change.
Dave Rolsky [Tue, 4 Nov 2008 17:30:08 +0000]
Fix some bizarro code left behind by a much earlier change.

16 years agoOops, wrong date
Dave Rolsky [Fri, 24 Oct 2008 21:56:43 +0000]
Oops, wrong date

16 years agoAdd release date. 0.68
Dave Rolsky [Fri, 24 Oct 2008 15:36:54 +0000]
Add release date.

16 years agoBump all versions to 0.68
Dave Rolsky [Thu, 23 Oct 2008 16:30:15 +0000]
Bump all versions to 0.68

16 years agoOops, accidenttaly bumped version in a change log entry.
Dave Rolsky [Thu, 23 Oct 2008 16:29:49 +0000]
Oops, accidenttaly bumped version in a change log entry.

16 years agoI'm about to do a Moose change which requires trunk here, so bump the version so...
Tomas Doran [Wed, 22 Oct 2008 19:54:01 +0000]
I'm about to do a Moose change which requires trunk here, so bump the version so I can bump the dependency in Moose's Makefile.PL

16 years agoChange load_first_existing_class to return the name of the loaded class, rather than...
Tomas Doran [Wed, 22 Oct 2008 14:51:14 +0000]
Change load_first_existing_class to return the name of the loaded class, rather than it's metaclass instance.

16 years agoFix test description and some tidying
Dave Rolsky [Wed, 22 Oct 2008 02:55:12 +0000]
Fix test description and some tidying

16 years agoFix error message. Loads of tests in the Moose test suite rely on the extra space
Tomas Doran [Tue, 21 Oct 2008 22:27:18 +0000]
Fix error message. Loads of tests in the Moose test suite rely on the extra space

16 years agoMore code cleanup for load_first_existing_class()
Dave Rolsky [Tue, 21 Oct 2008 19:40:22 +0000]
More code cleanup for load_first_existing_class()

If we didn't find a class, an exception was thrown.

16 years agoSmall formatting tweak for load class error messages
Dave Rolsky [Tue, 21 Oct 2008 19:37:52 +0000]
Small formatting tweak for load class error messages

16 years agoRename load_first_class_of to load_first_existing_class and so some
Dave Rolsky [Tue, 21 Oct 2008 19:36:47 +0000]
Rename load_first_class_of to load_first_existing_class and so some
cleanup on the code.

16 years agoAddition of load_one_class_of, to allow does method in Moose to be made quicker.
Tomas Doran [Tue, 21 Oct 2008 18:30:05 +0000]
Addition of load_one_class_of, to allow does method in Moose to be made quicker.

16 years agoAdd myself to the list of contributors.
Florian Ragwitz [Fri, 17 Oct 2008 04:03:46 +0000]
Add myself to the list of contributors.

16 years agoChangelogging.
Florian Ragwitz [Fri, 17 Oct 2008 04:03:36 +0000]
Changelogging.

16 years agoInstead of requiring by module name, generate the path and require() that.
Florian Ragwitz [Fri, 17 Oct 2008 03:18:34 +0000]
Instead of requiring by module name, generate the path and require() that.

This doesn't generate confusing errors when loading '__PACKAGE__'.

16 years agoAdd a failing testcase for a sane Class::MOP::load_class('__PACKAGE__') error message.
Florian Ragwitz [Fri, 17 Oct 2008 03:18:25 +0000]
Add a failing testcase for a sane Class::MOP::load_class('__PACKAGE__') error message.

16 years agoupdate manifest 0.67
Dave Rolsky [Tue, 14 Oct 2008 13:37:47 +0000]
update manifest

16 years agoAdd a release date
Dave Rolsky [Tue, 14 Oct 2008 13:29:38 +0000]
Add a release date

16 years agoBump all the modules to 0.67
Dave Rolsky [Mon, 6 Oct 2008 23:05:00 +0000]
Bump all the modules to 0.67

16 years agoClass::MOP::Class::create()
Todd Hepler [Tue, 30 Sep 2008 15:32:31 +0000]
Class::MOP::Class::create()
 - pass unused options to initialize()

16 years agoFix my grammar (missing "a")
Dave Rolsky [Mon, 29 Sep 2008 03:49:06 +0000]
Fix my grammar (missing "a")

16 years agoTest that extending oneself actually throws an error
Shawn M Moore [Mon, 29 Sep 2008 02:32:35 +0000]
Test that extending oneself actually throws an error

16 years agoResolve #39001: Call a method on the class after setting the superclass list so that...
Shawn M Moore [Mon, 29 Sep 2008 02:25:57 +0000]
Resolve #39001: Call a method on the class after setting the superclass list so that we can get Perl to detect cycles before MRO::Compat spirals into an infinite loop

16 years agoAdd CheckVersionsMatch step
Dave Rolsky [Thu, 25 Sep 2008 03:10:30 +0000]
Add CheckVersionsMatch step

16 years agoupdate manifest 0.66
Dave Rolsky [Sat, 20 Sep 2008 14:27:05 +0000]
update manifest

16 years agoload metaclasses more liberally
Yuval Kogman [Tue, 16 Sep 2008 17:52:40 +0000]
load metaclasses more liberally

16 years agoSmall wording change in changes
Dave Rolsky [Mon, 15 Sep 2008 15:28:28 +0000]
Small wording change in changes

16 years agoMerged my deprecate-alias_method branch to trunk
Dave Rolsky [Mon, 15 Sep 2008 15:27:52 +0000]
Merged my deprecate-alias_method branch to trunk

16 years agoOnly skip destroying if the cached metaclas object is not the same as
Dave Rolsky [Sun, 14 Sep 2008 21:15:27 +0000]
Only skip destroying if the cached metaclas object is not the same as
the one going out of scope.

16 years agoDon't destroy a metaclass that has an existing entry in the MOP cache
Dave Rolsky [Sun, 14 Sep 2008 21:09:14 +0000]
Don't destroy a metaclass that has an existing entry in the MOP cache

16 years agoFix some wonky indentation in here
Dave Rolsky [Sun, 14 Sep 2008 01:39:07 +0000]
Fix some wonky indentation in here

16 years agoupdate changes and MANIFEST
Dave Rolsky [Sat, 13 Sep 2008 03:24:02 +0000]
update changes and MANIFEST

16 years agoI kept wondering why I "mistyped" this method name. Oh, it's spelled
Dave Rolsky [Sat, 13 Sep 2008 03:23:03 +0000]
I kept wondering why I "mistyped" this method name. Oh, it's spelled
wrong. Sigh.

16 years agoOops, left some junk in here.
Dave Rolsky [Sat, 13 Sep 2008 03:21:22 +0000]
Oops, left some junk in here.

16 years agoMake it clear that this release has a backwards incompatibility
Dave Rolsky [Fri, 12 Sep 2008 02:55:22 +0000]
Make it clear that this release has a backwards incompatibility

16 years agoClarify the chain-following properties of the various original_* accessors
Dave Rolsky [Thu, 11 Sep 2008 16:36:35 +0000]
Clarify the chain-following properties of the various original_* accessors

16 years agoTest cloning a clone, and make sure original_* accessors follow a
Dave Rolsky [Thu, 11 Sep 2008 16:33:28 +0000]
Test cloning a clone, and make sure original_* accessors follow a
chain of clones to its end point.

16 years agoSimplify wrap_method_body now that Method->wrap takes named args.
Dave Rolsky [Thu, 11 Sep 2008 16:30:04 +0000]
Simplify wrap_method_body now that Method->wrap takes named args.

16 years agoDocument that passing a method object to add_method may cause it be
Dave Rolsky [Thu, 11 Sep 2008 16:28:39 +0000]
Document that passing a method object to add_method may cause it be
cloned.

16 years agoActually implement and test having add_method clone methods. It will
Dave Rolsky [Thu, 11 Sep 2008 16:24:44 +0000]
Actually implement and test having add_method clone methods. It will
now clone the method if just the package name of the object differs
from the class.

16 years agoPart 1 of the great clone plan.
Dave Rolsky [Thu, 11 Sep 2008 16:13:55 +0000]
Part 1 of the great clone plan.

When add_method is called with a method object, it calls clone on that method.

To facilitate tracking the source of a method, we save the original
method (the clone source) in the newly cloned method.

I also added a bunch of convenience methods for getting various
original names out of said original method. Eventually this will be
used in Moose to determine whether a method originally came from a
role.

16 years agoApply changes to deprecate alias_method previously applied on trunk
Dave Rolsky [Thu, 11 Sep 2008 15:49:59 +0000]
Apply changes to deprecate alias_method previously applied on trunk

16 years agoa branch for deprecating alias method and working on new method semantics to preserve...
Dave Rolsky [Thu, 11 Sep 2008 15:31:46 +0000]
a branch for deprecating alias method and working on new method semantics to preserve original methods on clone (take 2)

16 years agoRevert the last few commits related to deprecating alias_method, which
Dave Rolsky [Thu, 11 Sep 2008 15:30:13 +0000]
Revert the last few commits related to deprecating alias_method, which
will now be done on a branch first.

16 years agoa branch for deprecating alias method and working on new method semantics to preserve...
Dave Rolsky [Thu, 11 Sep 2008 15:28:21 +0000]
a branch for deprecating alias method and working on new method semantics to preserve original methods on clone

16 years agos/$code/$self/g for consistency
Dave Rolsky [Thu, 11 Sep 2008 15:17:16 +0000]
s/$code/$self/g for consistency

16 years agoBump the version (so I can install it and start testing these changes
Dave Rolsky [Thu, 11 Sep 2008 14:55:38 +0000]
Bump the version (so I can install it and start testing these changes
with Moose)

16 years agoMake alias_method simply call add_method.
Dave Rolsky [Thu, 11 Sep 2008 14:52:50 +0000]
Make alias_method simply call add_method.

Update docs, tests, and Changes as needed to reflect this.

16 years agoAdd changes for test doubling
Dave Rolsky [Wed, 3 Sep 2008 17:11:29 +0000]
Add changes for test doubling

16 years agoRun all the tests twice if we have XS, once with XS & once without.
Dave Rolsky [Wed, 3 Sep 2008 17:09:56 +0000]
Run all the tests twice if we have XS, once with XS & once without.

This should help us maintainers make less buggy releases, I hope.

16 years agoNeed parens on this sub now.
Dave Rolsky [Wed, 3 Sep 2008 17:09:22 +0000]
Need parens on this sub now.

16 years agoTie together loading our XS plus our XS deps, so we only have _two_
Dave Rolsky [Wed, 3 Sep 2008 17:01:26 +0000]
Tie together loading our XS plus our XS deps, so we only have _two_
effective versions of MOP, as opposed to, uh, a bunch more (math is
hard).

16 years agoChange the docs so that _most_ functions are marked as not for others' use.
Dave Rolsky [Wed, 3 Sep 2008 15:10:21 +0000]
Change the docs so that _most_ functions are marked as not for others' use.

16 years agoClarify public-ness of Class::MOP functions
Dave Rolsky [Tue, 2 Sep 2008 16:17:27 +0000]
Clarify public-ness of Class::MOP functions

16 years agoClarify that utility functions are really functions
Dave Rolsky [Tue, 2 Sep 2008 16:16:16 +0000]
Clarify that utility functions are really functions

16 years agoClass::MOP::load_class no longer creates a metaclass for non Moose/MOP classes
Yuval Kogman [Tue, 2 Sep 2008 15:25:11 +0000]
Class::MOP::load_class no longer creates a metaclass for non Moose/MOP classes

16 years agobump version to 0.65 and update changes for stable release 0.65
Dave Rolsky [Mon, 1 Sep 2008 16:12:51 +0000]
bump version to 0.65 and update changes for stable release

16 years agoExplicitly die if get_all_package_symbols is called as a class method
Dave Rolsky [Mon, 1 Sep 2008 15:05:01 +0000]
Explicitly die if get_all_package_symbols is called as a class method

16 years agoMake sure all the XS methods die when called as a class method, and test for this
Dave Rolsky [Mon, 1 Sep 2008 15:03:42 +0000]
Make sure all the XS methods die when called as a class method, and test for this

16 years agoFix XS so that Class::MOP::Method accessors blow up if called as class methods.
Dave Rolsky [Mon, 1 Sep 2008 14:57:08 +0000]
Fix XS so that Class::MOP::Method accessors blow up if called as class methods.

Restore name() XS accessor and make pure Perl version do the same thing.

Add a package_name() XS accessor and make pure Perl version do the same thing.

16 years agoSpell can't correctly
Dave Rolsky [Mon, 1 Sep 2008 14:51:49 +0000]
Spell can't correctly

16 years agoMake test descriptions clearer
Dave Rolsky [Mon, 1 Sep 2008 14:51:13 +0000]
Make test descriptions clearer

16 years agoUpdate changes for 0.64_07 0.64_07
Dave Rolsky [Fri, 29 Aug 2008 21:58:18 +0000]
Update changes for 0.64_07