15 years agomuch faster impl. for constructor/accessor. this is a same behavior with Moose.
Tokuhiro Matsuno [Mon, 9 Mar 2009 16:07:30 +0000]
much faster impl. for constructor/accessor. this is a same behavior with Moose.

15 years agoUpdate error message to match Moose's
Shawn M Moore [Wed, 1 Apr 2009 03:42:44 +0000]
Update error message to match Moose's

15 years agoForbid undef passed to new for Moose compat
Shawn M Moore [Wed, 1 Apr 2009 03:33:15 +0000]
Forbid undef passed to new for Moose compat

15 years agoTODO package A;our @VERSION passing is_class_loaded
Shawn M Moore [Wed, 1 Apr 2009 03:28:54 +0000]
TODO package A;our @VERSION passing is_class_loaded

15 years agoNeed to actually be tests to be usefully todo'd
Shawn M Moore [Wed, 1 Apr 2009 03:21:52 +0000]
Need to actually be tests to be usefully todo'd

15 years agoTurn the throws_ok failures into TODO tests
Shawn M Moore [Wed, 1 Apr 2009 03:18:13 +0000]
Turn the throws_ok failures into TODO tests

15 years agoFix another keyword regex
Shawn M Moore [Wed, 1 Apr 2009 03:11:33 +0000]
Fix another keyword regex

15 years agoFix version check
Shawn M Moore [Wed, 1 Apr 2009 03:10:36 +0000]
Fix version check

15 years agoFix use of meta-attr in trigger
Shawn M Moore [Wed, 1 Apr 2009 03:09:19 +0000]
Fix use of meta-attr in trigger

15 years agoRemove third argument to trigger
Shawn M Moore [Wed, 1 Apr 2009 03:07:35 +0000]
Remove third argument to trigger

15 years agoAdded a new test, essentially the code posted in RT bug #42992. It
Nick Woolley [Tue, 31 Mar 2009 19:10:25 +0000]
Added a new test, essentially the code posted in RT bug #42992.  It
still fails pending the bug in Class::Method::Modifiers (RT #43167)
being fixed, so marked as "TODO".

15 years agoModified glob asignment to be coderef assignment. As suggested by
Nick Woolley [Mon, 30 Mar 2009 10:40:59 +0000]
Modified glob asignment to be coderef assignment.  As suggested by
GFUGI in a comment attached to RT #42992. Indeed, we probably don't
want to clobber package variables the role may have defined with the
same name as a method.

15 years agoImplemented Mouse::Role->does; modified Mouse::Meta::Class->initialise
Nick Woolley [Fri, 27 Mar 2009 20:50:08 +0000]
Implemented Mouse::Role->does; modified Mouse::Meta::Class->initialise
to allow use as an instance method to make this work.

Implemented Mouse::Role::override and ::super. To do this, added
Mouse::Meta::Class->add_override_method_modifier,

Implemented throwing stubs for Mouse::Role::augment and ::inner, as in
Moose::Role.

Added 020_roles/ tests from latest respoitory version of Moose.
Modified some tests to pass; the rest have been moved to
020_roles/failing for later examination.

Implemented Mouse::Role->does_role, from Moose.  This does not yet
quite seem to pass all the tests it should, not sure why.

Fixed bug in Mouse::Meta::Role->apply and ->combine_apply, so that
030_roles/002_role.t tests pass.

Implemented ->version, ->authority and ->identifier in Mouse/Utils.pm,
imported for use as methods by Mouse::Meta::Role and
Mouse::Meta::Class.

Tweaked .gitignore.

"make test" passes all tests, including the new ones.

15 years agoImplemented Moose::Object::does, borrowing from Moose::Object.
Nick Woolley [Fri, 27 Mar 2009 14:42:22 +0000]
Implemented Moose::Object::does, borrowing from Moose::Object.

15 years agoBump to 0.20
Shawn M Moore [Sun, 8 Mar 2009 08:39:22 +0000]
Bump to 0.20

15 years ago0.19 0.19
Shawn M Moore [Sun, 8 Mar 2009 08:38:14 +0000]
0.19

15 years ago0.19 changes
Shawn M Moore [Sun, 8 Mar 2009 08:37:26 +0000]
0.19 changes

15 years agoAvoid depending on method modifiers again
Shawn M Moore [Sun, 8 Mar 2009 08:36:16 +0000]
Avoid depending on method modifiers again

15 years agoDon't use a method modifier in a test, since they may not be available
Shawn M Moore [Sun, 8 Mar 2009 07:16:47 +0000]
Don't use a method modifier in a test, since they may not be available

15 years agooops, that used confess
Daisuke Maki [Sat, 7 Mar 2009 09:44:01 +0000]
oops, that used confess

15 years agoMake coercion work for parameterized types
Daisuke Maki [Sat, 7 Mar 2009 09:07:25 +0000]
Make coercion work for parameterized types

15 years agoproperly commit the newly created parameterized type to the registry (cache!)
Daisuke Maki [Sat, 7 Mar 2009 09:06:57 +0000]
properly commit the newly created parameterized type to the registry (cache!)

15 years agoI want parameterized types... I want it!
Daisuke Maki [Sat, 7 Mar 2009 08:40:26 +0000]
I want parameterized types... I want it!

15 years agooops. we want to use 'metaclass' in role, too :(
Tokuhiro Matsuno [Sat, 7 Mar 2009 01:32:11 +0000]
oops. we want to use 'metaclass' in role, too :(

15 years agoBump to 0.19
Shawn M Moore [Sat, 7 Mar 2009 00:14:59 +0000]
Bump to 0.19

15 years agoNo reason to do a string eval here
Shawn M Moore [Sat, 7 Mar 2009 00:14:22 +0000]
No reason to do a string eval here

15 years ago0.18 changes
Shawn M Moore [Sat, 7 Mar 2009 00:14:18 +0000]
0.18 changes

15 years agoNo real reason for MOUSE_DEBUG these days
Shawn M Moore [Sat, 7 Mar 2009 00:06:14 +0000]
No real reason for MOUSE_DEBUG these days

15 years agoNo need to skip these tests, since tokuhirom++ implemented role-role
Shawn M Moore [Sat, 7 Mar 2009 00:05:32 +0000]
No need to skip these tests, since tokuhirom++ implemented role-role
composition

15 years agoMore gitignore files
Shawn M Moore [Sat, 7 Mar 2009 00:03:41 +0000]
More gitignore files

15 years agoJust always depend on Scalar::Util 1.14
Shawn M Moore [Sat, 7 Mar 2009 00:02:07 +0000]
Just always depend on Scalar::Util 1.14

15 years agoadded YourClass->meta->add_attribute(foo => (is => 'ro', isa => 'Str')); support.
Tokuhiro Matsuno [Wed, 4 Mar 2009 23:49:51 +0000]
added YourClass->meta->add_attribute(foo => (is => 'ro', isa => 'Str')); support.

15 years agosupport Mouse->import({into_level => 1}).
Tokuhiro Matsuno [Wed, 4 Mar 2009 22:26:34 +0000]
support Mouse->import({into_level => 1}).
This feature is needed by any::moose based hacky classes(e.g. http::engine::middleware)

15 years agoadded .gitignore file for git-svn users
Tokuhiro Matsuno [Wed, 4 Mar 2009 22:26:21 +0000]
added .gitignore file for git-svn users

15 years agoreverting change: the correct answer is,
Daisuke Maki [Wed, 4 Mar 2009 01:43:49 +0000]
reverting change: the correct answer is,
    - when an attribute contains a trigger which may run upon
      initialization, you need to make sure that the associated
      trigger doesn't use another attribute, OR
    - that attribute that gets used is declared with a "lazy"
      attribute, so that the accessor generates an inlined
      initialization code

15 years agocheck for has_default too
Daisuke Maki [Tue, 3 Mar 2009 16:31:20 +0000]
check for has_default too

15 years agodepend to Scalar::Util 1.14.
Tokuhiro Matsuno [Mon, 2 Mar 2009 08:02:05 +0000]
depend to Scalar::Util 1.14.
because Scalar::Util < 1.14 has a bug.

reported by bingos++, cosmicnet++, tomyhero++

15 years agomicro optimization for method modifiers.
Tokuhiro Matsuno [Mon, 2 Mar 2009 01:36:44 +0000]
micro optimization for method modifiers.
do not eval everytime!

benchmark result is here:
           Rate    orig fastest
orig     4950/s      --    -92%
fastest 62500/s   1162%      --

15 years agoadded attribute metaclass support.
Tokuhiro Matsuno [Sun, 1 Mar 2009 14:41:54 +0000]
added attribute metaclass support.
This feature is required by MouseX::*

15 years agoThrow a more useful error when users try to use a parameterized type,
Shawn M Moore [Mon, 23 Feb 2009 02:46:41 +0000]
Throw a more useful error when users try to use a parameterized type,
with a meager todo test

15 years agoBump to 0.18
Shawn M Moore [Wed, 18 Feb 2009 01:19:18 +0000]
Bump to 0.18

15 years agoChanges, bump to 0.17 for release
Shawn M Moore [Wed, 18 Feb 2009 01:11:51 +0000]
Changes, bump to 0.17 for release

15 years agoAdd dump method from Moose::Object into Mouse::Object
Chris Prather [Sat, 14 Feb 2009 04:59:03 +0000]
Add dump method from Moose::Object into Mouse::Object

15 years agoadded Mouse::Util::apply_all_roles to @EXPORT_OK for Moose compatibility
Tokuhiro Matsuno [Thu, 12 Feb 2009 06:02:10 +0000]
added Mouse::Util::apply_all_roles to @EXPORT_OK for Moose compatibility

15 years agoLoad mro directly if Perl is recent enough (Nicholas Clark)
Shawn M Moore [Tue, 10 Feb 2009 18:45:53 +0000]
Load mro directly if Perl is recent enough (Nicholas Clark)

15 years agoUpdate Changes
Shawn M Moore [Tue, 10 Feb 2009 01:58:41 +0000]
Update Changes

15 years agoInclude CMMF in t/000-load
Shawn M Moore [Tue, 10 Feb 2009 01:55:47 +0000]
Include CMMF in t/000-load

15 years agoSkip these tests if you have an old Moose
Shawn M Moore [Tue, 10 Feb 2009 01:31:06 +0000]
Skip these tests if you have an old Moose

15 years agoDescribe which versions of Moose we need when we skip these tests
Shawn M Moore [Tue, 10 Feb 2009 01:29:04 +0000]
Describe which versions of Moose we need when we skip these tests

15 years agoThrow a better error message when using a method modifier without CMM
Shawn M Moore [Tue, 10 Feb 2009 01:23:39 +0000]
Throw a better error message when using a method modifier without CMM

15 years agoName for Mouse::Role
Shawn M Moore [Tue, 10 Feb 2009 01:23:33 +0000]
Name for Mouse::Role

15 years agoSupport for anonymous enums: enum [elements]
Shawn M Moore [Mon, 9 Feb 2009 20:03:31 +0000]
Support for anonymous enums: enum [elements]

15 years agoMoose's make_immutable returns true allowing calling code to skip
Jesse Vincent [Thu, 5 Feb 2009 22:21:42 +0000]
Moose's make_immutable returns true allowing calling code to skip
setting an explicit true value at the end of a source file.

15 years agoUpgrading Moose fixed test failures in these files for somebody, so
Shawn M Moore [Thu, 5 Feb 2009 21:25:52 +0000]
Upgrading Moose fixed test failures in these files for somebody, so
depend on later versions (not sure what changed; maybe CMOP fix?)

15 years agoImplement get_all_method_names
Shawn M Moore [Thu, 5 Feb 2009 21:22:11 +0000]
Implement get_all_method_names

15 years agoFactor out some bits of get_method_list so I can write
Shawn M Moore [Thu, 5 Feb 2009 21:19:39 +0000]
Factor out some bits of get_method_list so I can write
get_all_method_names

15 years agoBump to 0.16
Shawn M Moore [Thu, 5 Feb 2009 17:11:56 +0000]
Bump to 0.16

15 years agoWe backed this baby out
Shawn M Moore [Thu, 5 Feb 2009 17:00:16 +0000]
We backed this baby out

15 years agoDon't need to filter out MouseX any more
Shawn M Moore [Thu, 5 Feb 2009 16:53:28 +0000]
Don't need to filter out MouseX any more

15 years agoWe no longer have shebangs in pm files, so stop removing package lines
Shawn M Moore [Thu, 5 Feb 2009 16:53:24 +0000]
We no longer have shebangs in pm files, so stop removing package lines

15 years agoDon't put ouse.pm into Mouse::Tiny
Shawn M Moore [Thu, 5 Feb 2009 16:53:21 +0000]
Don't put ouse.pm into Mouse::Tiny

15 years agoChanges time
Shawn M Moore [Thu, 5 Feb 2009 16:44:42 +0000]
Changes time

15 years agoUse Any::Moose instead!
Shawn M Moore [Thu, 5 Feb 2009 16:43:59 +0000]
Use Any::Moose instead!

15 years agoDoc adjustments
Shawn M Moore [Thu, 5 Feb 2009 16:43:55 +0000]
Doc adjustments

15 years agoAvoid the warning about exporting sugar into main
Shawn M Moore [Thu, 5 Feb 2009 16:39:03 +0000]
Avoid the warning about exporting sugar into main

15 years agoMouseX::Types is now in its own dist
Shawn M Moore [Thu, 5 Feb 2009 16:36:28 +0000]
MouseX::Types is now in its own dist

15 years agoNeed to ignore override and super in the method list
Shawn M Moore [Thu, 5 Feb 2009 16:33:25 +0000]
Need to ignore override and super in the method list

15 years agoBack out the exists($_[1]) change since exists($array[$element]) doesn't
Shawn M Moore [Thu, 5 Feb 2009 16:31:39 +0000]
Back out the exists($_[1]) change since exists($array[$element]) doesn't
work so well for undef in @_

15 years agoNote enum and override/super implementations in Changes
Shawn M Moore [Thu, 5 Feb 2009 03:48:33 +0000]
Note enum and override/super implementations in Changes

15 years agoImplement override/super
Shawn M Moore [Thu, 5 Feb 2009 03:47:44 +0000]
Implement override/super

15 years agoImplement basic usage of "enum" type constraints
Shawn M Moore [Thu, 5 Feb 2009 02:23:53 +0000]
Implement basic usage of "enum" type constraints

15 years agoDon't require there to be a BUILDARGS method; fix undef warning
Shawn M Moore [Thu, 5 Feb 2009 02:07:30 +0000]
Don't require there to be a BUILDARGS method; fix undef warning

15 years agoSettle for respecting inline_constructor for now
Shawn M Moore [Thu, 5 Feb 2009 02:00:36 +0000]
Settle for respecting inline_constructor for now

15 years agoWe can't support this yet, so TODO and make sure we won't introduce bugs
Shawn M Moore [Thu, 5 Feb 2009 02:00:29 +0000]
We can't support this yet, so TODO and make sure we won't introduce bugs
later

15 years agoEnsure that we're not blowing away an inherited constructor
Shawn M Moore [Thu, 5 Feb 2009 01:53:31 +0000]
Ensure that we're not blowing away an inherited constructor

15 years agoExtra ;
Shawn M Moore [Thu, 5 Feb 2009 01:53:24 +0000]
Extra ;

15 years agoAdd a shim Mouse::TypeRegistry that warns and sends you over to
Shawn M Moore [Thu, 5 Feb 2009 00:51:11 +0000]
Add a shim Mouse::TypeRegistry that warns and sends you over to
Mouse::Util::TypeConstraints

15 years agoMore changes
Shawn M Moore [Thu, 5 Feb 2009 00:46:42 +0000]
More changes

15 years agoDocument more changes
Shawn M Moore [Thu, 5 Feb 2009 00:46:39 +0000]
Document more changes

15 years agoTODOify it for now
Shawn M Moore [Thu, 5 Feb 2009 00:46:35 +0000]
TODOify it for now

15 years agoFix prototype on message {...}
Shawn M Moore [Thu, 5 Feb 2009 00:46:30 +0000]
Fix prototype on message {...}

15 years agoFailing test for using a custom message in a subtype
Shawn M Moore [Thu, 5 Feb 2009 00:46:24 +0000]
Failing test for using a custom message in a subtype

15 years agoBenchmarking indicates that exists($_[1]) is faster than scalar(@_) >= 2
Shawn M Moore [Tue, 3 Feb 2009 21:52:02 +0000]
Benchmarking indicates that exists($_[1]) is faster than scalar(@_) >= 2

15 years agoMouseX::Types can now use MUTc->export_to_level
Shawn M Moore [Tue, 3 Feb 2009 21:14:24 +0000]
MouseX::Types can now use MUTc->export_to_level

15 years agoUse Exporter for Mouse::Util::TypeConstraints
Shawn M Moore [Tue, 3 Feb 2009 21:14:19 +0000]
Use Exporter for Mouse::Util::TypeConstraints

15 years agorefactored out fast method modifier as Class::Method::Modifiers::Fast and used Class...
Dann [Sun, 18 Jan 2009 15:22:57 +0000]
refactored out fast method modifier as Class::Method::Modifiers::Fast and used Class::Method::Modifiers::Fast

15 years agouse Data::Util to make modifier fast if Data::Util is installed
Dann [Tue, 13 Jan 2009 17:40:23 +0000]
use Data::Util to make modifier fast if Data::Util is installed

15 years agosuppress warnings when we use around and has "+..."
Dann [Sat, 10 Jan 2009 17:36:05 +0000]
suppress warnings when we use around and has "+..."

15 years agoMouseX::Stop::it!
Shawn M Moore [Tue, 6 Jan 2009 15:16:37 +0000]
MouseX::Stop::it!

15 years agoTypo fix
Shawn M Moore [Mon, 22 Dec 2008 04:57:05 +0000]
Typo fix

15 years agoBetter test here; check the error message
Shawn M Moore [Mon, 22 Dec 2008 04:26:31 +0000]
Better test here; check the error message

15 years agoRename this class to avoid a type collision
Shawn M Moore [Mon, 22 Dec 2008 04:26:23 +0000]
Rename this class to avoid a type collision

15 years agoWrite the anon-class test such that we can run it against Moose, and if we create...
Shawn M Moore [Mon, 22 Dec 2008 04:18:09 +0000]
Write the anon-class test such that we can run it against Moose, and if we create anonymous classes during Mouse load it'll be okay

15 years agoWe do need to copy %options so we can use $options{superclasses} later
Shawn M Moore [Mon, 22 Dec 2008 04:15:00 +0000]
We do need to copy %options so we can use $options{superclasses} later

15 years agoBegin stealing more Moose meta API
Shawn M Moore [Mon, 22 Dec 2008 04:10:07 +0000]
Begin stealing more Moose meta API

15 years agoSame API as Moose for Mouse::Meta::Attribute->new
Shawn M Moore [Mon, 22 Dec 2008 04:06:32 +0000]
Same API as Moose for Mouse::Meta::Attribute->new

15 years agoNeed to specify package names
Shawn M Moore [Mon, 22 Dec 2008 04:00:38 +0000]
Need to specify package names

15 years agoDon't try to import Mouse's sugar into main here
Shawn M Moore [Mon, 22 Dec 2008 03:55:23 +0000]
Don't try to import Mouse's sugar into main here

15 years agoDon't do the use_ok test
Shawn M Moore [Mon, 22 Dec 2008 03:53:58 +0000]
Don't do the use_ok test

15 years agoclass_type shouldn't load the class (Moose compat; no easy fix :/)
Shawn M Moore [Mon, 22 Dec 2008 03:52:26 +0000]
class_type shouldn't load the class (Moose compat; no easy fix :/)