15 years agoBe more damning of Mouse, more Squirrel deprecation 0.20
Shawn M Moore [Fri, 10 Apr 2009 00:14:57 +0000]
Be more damning of Mouse, more Squirrel deprecation

15 years agoDeprecate Squirrel
Shawn M Moore [Fri, 10 Apr 2009 00:08:09 +0000]
Deprecate Squirrel

15 years agoAdd wu-lee to authors
Shawn M Moore [Fri, 10 Apr 2009 00:06:59 +0000]
Add wu-lee to authors

15 years agoMore 0.20 changes
Shawn M Moore [Fri, 10 Apr 2009 00:02:42 +0000]
More 0.20 changes

15 years agoMove 0.20 changes into the right section
Shawn M Moore [Thu, 9 Apr 2009 23:55:38 +0000]
Move 0.20 changes into the right section

15 years agothrows_ok -> todo
Shawn M Moore [Wed, 1 Apr 2009 03:44:01 +0000]
throws_ok -> todo

15 years agoget_all_attributes
Yuval Kogman [Thu, 9 Apr 2009 11:10:44 +0000]
get_all_attributes

15 years agofixed test count
Tokuhiro Matsuno [Tue, 7 Apr 2009 02:47:18 +0000]
fixed test count

15 years agoAdded Changes note about metaclass accessors.
wu-lee [Mon, 6 Apr 2009 17:10:16 +0000]
Added Changes note about metaclass accessors.

15 years agoAdded metaclass cache accessor methods (straight from Class::MOP).
wu-lee [Mon, 6 Apr 2009 17:08:11 +0000]
Added metaclass cache accessor methods (straight from Class::MOP).
Mainly convenient to me for finding classes to ->make_immutable.

15 years agoWhoops. This should have been included in the previous commit.
wu-lee [Mon, 6 Apr 2009 14:32:37 +0000]
Whoops. This should have been included in the previous commit.

15 years agoAdded latest bugfix to Changes.
wu-lee [Mon, 6 Apr 2009 14:29:40 +0000]
Added latest bugfix to Changes.

15 years agoFixed bug in the immutable constructor. It now redispatches to
wu-lee [Mon, 6 Apr 2009 14:28:18 +0000]
Fixed bug in the immutable constructor.  It now redispatches to
Mouse::Object->new if the invoking class is not the one it was
contructed for, as Moose's implementation does.  Test case included.

15 years agoChanges to date added for wu-lee.
wu-lee [Mon, 6 Apr 2009 10:32:16 +0000]
Changes to date added for wu-lee.

15 years agoadded benchmark script for C::A::Fast
Tokuhiro Matsuno [Mon, 6 Apr 2009 02:30:46 +0000]
added benchmark script for C::A::Fast

15 years agodo not create a copy of argument, if not needed
Tokuhiro Matsuno [Sat, 4 Apr 2009 16:12:58 +0000]
do not create a copy of argument, if not needed

15 years agoAdded test for the correct application order when multiple coercions
wu-lee [Fri, 3 Apr 2009 17:21:15 +0000]
Added test for the correct application order when multiple coercions
exist for a single attribute, which was fixed in an earlier commit.

15 years agoAdded test for the correct BUILD order after immutable-ising a class.
wu-lee [Fri, 3 Apr 2009 16:30:37 +0000]
Added test for the correct BUILD order after immutable-ising a class.

15 years agoFixed a bug in the compiled constructor - it was invoking BUILD
wu-lee [Fri, 3 Apr 2009 12:38:03 +0000]
Fixed a bug in the compiled constructor - it was invoking BUILD
methods in the reverse order.

15 years agoType coercions should be added to the front of the list in
wu-lee [Thu, 2 Apr 2009 14:13:46 +0000]
Type coercions should be added to the front of the list in
$COERCE_KEYS{$name}, not the back. This ensures they are checked in
the correct order (as supplied in the declaration).

15 years agoAdjusted default 'isa' typeconstraint construction to check if the
wu-lee [Wed, 1 Apr 2009 17:23:30 +0000]
Adjusted default 'isa' typeconstraint construction to check if the
specified type name is a known role, and constrain with 'does' instead
of 'isa' if it is.  This brings Mouse in line with how Moose behaves
for this case.  Testcase added to t/025-more-isa.t.

15 years agoCorrect error message to include 'Maybe' as implemented parametric type.
wu-lee [Wed, 1 Apr 2009 15:11:38 +0000]
Correct error message to include 'Maybe' as implemented parametric type.

15 years agoscope makes slower!mouse's constructer is faster than moose with this commit :)
Tokuhiro Matsuno [Fri, 3 Apr 2009 03:12:35 +0000]
scope makes slower!mouse's constructer is faster than moose with this commit :)

15 years agouse compiled_constraints directly. performance enhancement.
Tokuhiro Matsuno [Fri, 3 Apr 2009 03:06:59 +0000]
use compiled_constraints directly. performance enhancement.

15 years agorefactoring the duplicated vars
Tokuhiro Matsuno [Fri, 3 Apr 2009 02:47:44 +0000]
refactoring the duplicated vars

15 years agosplit accessor generator from the Meta::Attribute.
Tokuhiro Matsuno [Fri, 3 Apr 2009 02:36:37 +0000]
split accessor generator from the Meta::Attribute.
because, this code is complex enough to merit its own file!

15 years agouse compiled type constraints. this change makes faster :)
Tokuhiro Matsuno [Thu, 2 Apr 2009 09:40:57 +0000]
use compiled type constraints. this change makes faster :)

15 years agoMeta::Class->does_role searches isa for Moose compatibility
NAKAGAWA Masaki [Mon, 16 Mar 2009 09:41:06 +0000]
Meta::Class->does_role searches isa for Moose compatibility

15 years agoadded benchmark case for setter, getter
Tokuhiro Matsuno [Thu, 2 Apr 2009 04:04:29 +0000]
added benchmark case for setter, getter

15 years agoless deps in Makefile.PL
Tokuhiro Matsuno [Thu, 2 Apr 2009 03:49:29 +0000]
less deps in Makefile.PL

15 years agogenerate moose compatibility test automatically
Tokuhiro Matsuno [Thu, 2 Apr 2009 03:13:17 +0000]
generate moose compatibility test automatically

15 years agoignore *.old file
Tokuhiro Matsuno [Thu, 2 Apr 2009 02:54:18 +0000]
ignore *.old file

15 years agot/900_bug/001_immutable_types.t: oops. 'package B' means B.pm, reserved namespace...
Tokuhiro Matsuno [Thu, 12 Mar 2009 06:25:20 +0000]
t/900_bug/001_immutable_types.t: oops. 'package B' means B.pm, reserved namespace. and, fixed invalid usage of subtype.

15 years agooops. i forgot to change make_immutable code.
Tokuhiro Matsuno [Wed, 11 Mar 2009 09:00:26 +0000]
oops. i forgot to change make_immutable code.

15 years agorebirth the find_type_constraint for backward compatibility
Tokuhiro Matsuno [Wed, 11 Mar 2009 08:04:25 +0000]
rebirth the find_type_constraint for backward compatibility

15 years agoadded Mouse::Meta::TypeConstraint and use it. Mouse::Meta::Attribute->type_constraint...
Tokuhiro Matsuno [Wed, 11 Mar 2009 07:57:06 +0000]
added Mouse::Meta::TypeConstraint and use it. Mouse::Meta::Attribute->type_constraint returns an object. and, find_type_constraint was deprecated.

15 years agoadded Meta::Class->add_attribute_list for Moose compatibility
Tokuhiro Matsuno [Tue, 10 Mar 2009 23:28:23 +0000]
added Meta::Class->add_attribute_list for Moose compatibility

15 years agomore strict argument check. Mouse does not support Application::ToInstance yet
Tokuhiro Matsuno [Thu, 2 Apr 2009 02:45:11 +0000]
more strict argument check. Mouse does not support Application::ToInstance yet

15 years agoadded Meta::Class->has_method($name)
Tokuhiro Matsuno [Tue, 10 Mar 2009 17:54:43 +0000]
added Meta::Class->has_method($name)

15 years agoadded comment
Tokuhiro Matsuno [Tue, 10 Mar 2009 17:06:03 +0000]
added comment

15 years agomake a subtype for each Mouse class This behavior is same as Moose.
Tokuhiro Matsuno [Tue, 10 Mar 2009 17:05:41 +0000]
make a subtype for each Mouse class This behavior is same as Moose.

15 years agolook under %TYPE first
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 10:16:49 +0000]
look under %TYPE first

15 years agoExport find_type_constraint
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 10:06:22 +0000]
Export find_type_constraint

15 years agoAdd a dummy TypeConstraint namespace so you can treat them as objects
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 10:05:52 +0000]
Add a dummy TypeConstraint namespace so you can treat them as objects

15 years agomove stuff from Meta::Attribute to Util::TypeConstraints, work with $_ and such
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 09:59:18 +0000]
move stuff from Meta::Attribute to Util::TypeConstraints, work with $_ and such

15 years agofix portability between Moose/Mouse's class_type
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 05:37:04 +0000]
fix portability between Moose/Mouse's class_type

15 years agoimplement Maybe
Daisuke Maki (lestrrat) [Tue, 10 Mar 2009 05:36:34 +0000]
implement Maybe

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.