14 years agoAdd tests for triggers on a native Hash trait attr
Dave Rolsky [Sat, 25 Sep 2010 23:23:40 +0000]
Add tests for triggers on a native Hash trait attr

14 years agoTests that various subtypes are enforced for hash types
Dave Rolsky [Sat, 25 Sep 2010 20:56:16 +0000]
Tests that various subtypes are enforced for hash types

14 years agoEven more code path testing (add an empty trigger for all traits)
Dave Rolsky [Sat, 25 Sep 2010 20:10:12 +0000]
Even more code path testing (add an empty trigger for all traits)

14 years agoMore tests for native traits to exercise all code paths
Dave Rolsky [Sat, 25 Sep 2010 20:08:26 +0000]
More tests for native traits to exercise all code paths

14 years agoRemove superfluous argument passing
Dave Rolsky [Sat, 25 Sep 2010 20:08:17 +0000]
Remove superfluous argument passing

14 years agoRename _inline_copy_value so we don't accidentally reuse the version for non-native...
Dave Rolsky [Sat, 25 Sep 2010 20:07:48 +0000]
Rename _inline_copy_value so we don't accidentally reuse the version for non-native traits

14 years agoMake sure potential value is a hash ref
Dave Rolsky [Sat, 25 Sep 2010 20:07:31 +0000]
Make sure potential value is a hash ref

14 years agoFix potential_value for string inc
Dave Rolsky [Sat, 25 Sep 2010 20:06:41 +0000]
Fix potential_value for string inc

14 years agoDon't turn hash into array when copying the old hash value
Dave Rolsky [Sat, 25 Sep 2010 20:00:15 +0000]
Don't turn hash into array when copying the old hash value

14 years agoMore tests for Hash trait to ensure we test all code gen paths
Dave Rolsky [Sat, 25 Sep 2010 19:53:38 +0000]
More tests for Hash trait to ensure we test all code gen paths

14 years agoUse _writer_core
Dave Rolsky [Sat, 25 Sep 2010 19:52:31 +0000]
Use _writer_core

Get _potential_value from set

14 years agoJust use _writer_core for accessor
Dave Rolsky [Sat, 25 Sep 2010 19:52:07 +0000]
Just use _writer_core for accessor

Get _potential_value from set class

14 years agoMore tests for array refs to make sure we test all code generation paths
Dave Rolsky [Sat, 25 Sep 2010 19:51:45 +0000]
More tests for array refs to make sure we test all code generation paths

14 years agoMake sure accessor's writer side does what the writer code does
Dave Rolsky [Sat, 25 Sep 2010 19:48:50 +0000]
Make sure accessor's writer side does what the writer code does

14 years agoFix potential value for set
Dave Rolsky [Sat, 25 Sep 2010 19:43:54 +0000]
Fix potential value for set

14 years agoRename so each trait is in alpha order and we have room for multiple files per trait
Dave Rolsky [Sat, 25 Sep 2010 19:37:16 +0000]
Rename so each trait is in alpha order and we have room for multiple files per trait

14 years agoImprove tests for Code trait
Dave Rolsky [Sat, 25 Sep 2010 19:09:13 +0000]
Improve tests for Code trait

14 years agoAdd tests for argument checking with Number trait
Dave Rolsky [Sat, 25 Sep 2010 19:00:10 +0000]
Add tests for argument checking with Number trait

14 years agoImprove Bool trait tests
Dave Rolsky [Sat, 25 Sep 2010 18:58:03 +0000]
Improve Bool trait tests

14 years agoTest lazy default for String trait
Dave Rolsky [Sat, 25 Sep 2010 18:54:25 +0000]
Test lazy default for String trait

14 years agoImprove Number trait tests
Dave Rolsky [Sat, 25 Sep 2010 18:53:20 +0000]
Improve Number trait tests

14 years agoMore tests for Hash trait
Dave Rolsky [Sat, 25 Sep 2010 18:32:39 +0000]
More tests for Hash trait

14 years agoSome tidying
Dave Rolsky [Sat, 25 Sep 2010 18:26:48 +0000]
Some tidying

14 years agoMore tests for Counter trait
Dave Rolsky [Sat, 25 Sep 2010 18:26:16 +0000]
More tests for Counter trait

14 years agos/page/foo/g
Dave Rolsky [Sat, 25 Sep 2010 18:17:41 +0000]
s/page/foo/g

14 years agoImprove tests for Counter trait
Dave Rolsky [Sat, 25 Sep 2010 18:17:10 +0000]
Improve tests for Counter trait

14 years agoRemove code that handled method providers now that all native traits use inlining
Dave Rolsky [Fri, 24 Sep 2010 16:19:37 +0000]
Remove code that handled method providers now that all native traits use inlining

14 years agoLoad accessor generator
Dave Rolsky [Fri, 24 Sep 2010 16:16:50 +0000]
Load accessor generator

14 years agoMake array accessor follow same pattern as hash accessor
Dave Rolsky [Fri, 24 Sep 2010 16:15:59 +0000]
Make array accessor follow same pattern as hash accessor

14 years agoMake hash accessor actually work
Dave Rolsky [Fri, 24 Sep 2010 16:15:26 +0000]
Make hash accessor actually work

14 years agoRemove all references to method providers
Dave Rolsky [Fri, 24 Sep 2010 16:09:00 +0000]
Remove all references to method providers

14 years agoAdd more test for Counter type
Dave Rolsky [Fri, 24 Sep 2010 16:06:18 +0000]
Add more test for Counter type

14 years agoDon't expect docs for all the Native::* accessor modules
Dave Rolsky [Thu, 23 Sep 2010 22:39:32 +0000]
Don't expect docs for all the Native::* accessor modules

14 years agomake sure all modules have the same version
Dave Rolsky [Thu, 23 Sep 2010 22:08:21 +0000]
make sure all modules have the same version

14 years agoGot inlining for hashes working.
Dave Rolsky [Thu, 23 Sep 2010 21:58:57 +0000]
Got inlining for hashes working.

Lots of refactoring to push code to a shared collection mini-trait used for
hashes & arrays, since the inlining code for the two is _really_ similar.

14 years agoFix potential value for clear
Dave Rolsky [Thu, 23 Sep 2010 17:18:17 +0000]
Fix potential value for clear

14 years agoAdd inlining methods for Number native trait
Dave Rolsky [Wed, 22 Sep 2010 22:21:29 +0000]
Add inlining methods for Number native trait

14 years agoCalculate _native_type from role name, rather than hardcoding it
Dave Rolsky [Wed, 22 Sep 2010 22:15:00 +0000]
Calculate _native_type from role name, rather than hardcoding it

14 years agoInline all Counter methods
Dave Rolsky [Wed, 22 Sep 2010 21:58:47 +0000]
Inline all Counter methods

14 years agoMoved even more code up to Native/Writer
Dave Rolsky [Wed, 22 Sep 2010 21:49:23 +0000]
Moved even more code up to Native/Writer

14 years agoMove even more code up to parent
Dave Rolsky [Tue, 21 Sep 2010 18:41:33 +0000]
Move even more code up to parent

14 years agoMove more code up to the Native/Writer class
Dave Rolsky [Tue, 21 Sep 2010 18:40:44 +0000]
Move more code up to the Native/Writer class

14 years agoNo need to duplicate code in parent class
Dave Rolsky [Tue, 21 Sep 2010 18:39:16 +0000]
No need to duplicate code in parent class

14 years agoAdd inling for native Code trait
Dave Rolsky [Tue, 21 Sep 2010 18:31:59 +0000]
Add inling for native Code trait

14 years agoWhitespace tweak
Dave Rolsky [Tue, 21 Sep 2010 18:28:19 +0000]
Whitespace tweak

14 years agoInlining for native Bool trait
Dave Rolsky [Tue, 21 Sep 2010 18:22:04 +0000]
Inlining for native Bool trait

14 years agoRemove another empty class in the native array inheritance hierarchy
Dave Rolsky [Tue, 21 Sep 2010 18:19:26 +0000]
Remove another empty class in the native array inheritance hierarchy

14 years agoMove some code to Native/Writer since it is the same for all native types
Dave Rolsky [Tue, 21 Sep 2010 18:13:46 +0000]
Move some code to Native/Writer since it is the same for all native types

14 years agoRemove some empty classes in the String hierarchy
Dave Rolsky [Tue, 21 Sep 2010 17:57:22 +0000]
Remove some empty classes in the String hierarchy

14 years agoRefactored native trait inlining some more - added an optimized path to avoid copying...
Dave Rolsky [Tue, 21 Sep 2010 05:00:31 +0000]
Refactored native trait inlining some more - added an optimized path to avoid copying data whenever possible

14 years agoAdd tests for coercion with native traits
Dave Rolsky [Mon, 20 Sep 2010 22:17:10 +0000]
Add tests for coercion with native traits

14 years agopushing onto undef should (and does) work
Dave Rolsky [Mon, 20 Sep 2010 21:41:19 +0000]
pushing onto undef should (and does) work

This works (under strict/warnings with no warning output)

 my $x;
 push @{$x}, 1;

14 years agoImplemented inlning for all string methods.
Dave Rolsky [Mon, 20 Sep 2010 17:31:56 +0000]
Implemented inlning for all string methods.

Lots of refactoring to existing native trait inlining code to share more between different types.

14 years agoAdd some whitespace
Dave Rolsky [Mon, 20 Sep 2010 00:09:01 +0000]
Add some whitespace

14 years agoJust use Test::Moose
Dave Rolsky [Sun, 19 Sep 2010 01:29:43 +0000]
Just use Test::Moose

14 years agoLots of refactoring to move native trait reader/writer code into base classes shareab...
Dave Rolsky [Sat, 18 Sep 2010 16:40:21 +0000]
Lots of refactoring to move native trait reader/writer code into base classes shareable by all native types

14 years agoMove some code from Array to Native since it will be shared by many native accessors
Dave Rolsky [Sat, 18 Sep 2010 16:18:38 +0000]
Move some code from Array to Native since it will be shared by many native accessors

14 years agoAdd some tests for trigger on array changes
Dave Rolsky [Sat, 18 Sep 2010 16:11:24 +0000]
Add some tests for trigger on array changes

14 years agoRemove useless load test and renumber other tests so this dir looks like other test...
Dave Rolsky [Sat, 18 Sep 2010 16:06:52 +0000]
Remove useless load test and renumber other tests so this dir looks like other test dirs

14 years agoTidy all code
Dave Rolsky [Sat, 18 Sep 2010 04:02:10 +0000]
Tidy all code

14 years agoMore TC handling fixes
Dave Rolsky [Sat, 18 Sep 2010 04:02:03 +0000]
More TC handling fixes

14 years agoFix undef warning
Dave Rolsky [Sat, 18 Sep 2010 04:01:18 +0000]
Fix undef warning

14 years agoCopy the potential value if needed so we don't have to regenerate it over and over.
Dave Rolsky [Sat, 18 Sep 2010 01:43:46 +0000]
Copy the potential value if needed so we don't have to regenerate it over and over.

Fix checking the overall constraint so it actually works.

14 years agoGet these tests all passing (no more TODO)
Dave Rolsky [Sat, 18 Sep 2010 01:42:35 +0000]
Get these tests all passing (no more TODO)

14 years agoAdd some "bridge code" to keep old and new native traits all working
Dave Rolsky [Fri, 17 Sep 2010 23:19:50 +0000]
Add some "bridge code" to keep old and new native traits all working

Doing this so I can profile just the arrayref changes.

14 years agoIf the parent type is ArrayRef and the type itself is also parameterizable, we need...
Dave Rolsky [Fri, 17 Sep 2010 23:19:43 +0000]
If the parent type is ArrayRef and the type itself is also parameterizable, we need to check the whole type, not just members.

14 years agoNever use die in generate code when throwing an error.
Dave Rolsky [Fri, 17 Sep 2010 20:55:36 +0000]
Never use die in generate code when throwing an error.

The meta error throwing makes a more verbose message, but the stack trace is
much more useful than "at generated method x"

Improve error messages from generated methods.

14 years agoFix warnings
Dave Rolsky [Fri, 17 Sep 2010 20:42:52 +0000]
Fix warnings

14 years agoAdd tests for natatime_curried
Dave Rolsky [Fri, 17 Sep 2010 20:41:15 +0000]
Add tests for natatime_curried

14 years agoAll native array methods are being inlined.
Dave Rolsky [Fri, 17 Sep 2010 20:39:36 +0000]
All native array methods are being inlined.

All native methods are tested

14 years agoAll of the non-mutating array helpers are now inlined.
Dave Rolsky [Wed, 15 Sep 2010 20:01:34 +0000]
All of the non-mutating array helpers are now inlined.

Made sure we had tests for all of them, including tests for failure cases.

14 years agoActually unshift curried args into @_
Dave Rolsky [Wed, 15 Sep 2010 17:03:36 +0000]
Actually unshift curried args into @_

14 years agoPut curried args into closed-over environment.
Dave Rolsky [Wed, 15 Sep 2010 17:02:26 +0000]
Put curried args into closed-over environment.

Fix first to do what it's supposed to.

Just push curried args onto the front of @_ for simplicity.

14 years agoMove all array helper tests into one .t file
Dave Rolsky [Wed, 15 Sep 2010 17:02:01 +0000]
Move all array helper tests into one .t file

14 years agoWork in progress on inlining native traits methods.
Dave Rolsky [Wed, 15 Sep 2010 01:34:18 +0000]
Work in progress on inlining native traits methods.

So far, so good, but we need to have much better tests, and tests need some
serious cleanup too.

14 years agoSome small code cleanups before I start changing everything
Dave Rolsky [Tue, 14 Sep 2010 20:44:06 +0000]
Some small code cleanups before I start changing everything

14 years agoRemove some debugging cruft I left in
Dave Rolsky [Fri, 24 Sep 2010 03:44:16 +0000]
Remove some debugging cruft I left in

14 years agobump version to 1.14 1.14
Dave Rolsky [Tue, 21 Sep 2010 05:01:53 +0000]
bump version to 1.14

14 years agoAdd release date
Dave Rolsky [Tue, 21 Sep 2010 05:01:27 +0000]
Add release date

14 years agoDon't rely on qw() providing PAREN tokens
Florian Ragwitz [Sun, 19 Sep 2010 17:31:07 +0000]
Don't rely on qw() providing PAREN tokens

14 years agoTiny POD clarification. 'pairs' too ambiguous.
Jay Hannah [Wed, 15 Sep 2010 19:23:58 +0000]
Tiny POD clarification. 'pairs' too ambiguous.

14 years agoBug fixes for next
Dave Rolsky [Tue, 14 Sep 2010 16:19:10 +0000]
Bug fixes for next

14 years agoFix weird bug that is probably a bug in List::MoreUtils
Dave Rolsky [Tue, 14 Sep 2010 16:18:09 +0000]
Fix weird bug that is probably a bug in List::MoreUtils

14 years agobump version to 1.13 1.13
Dave Rolsky [Mon, 13 Sep 2010 22:18:29 +0000]
bump version to 1.13

14 years agoDate for 1.13
Dave Rolsky [Mon, 13 Sep 2010 22:18:18 +0000]
Date for 1.13

14 years agocorrected tense in docs
Karen Etheridge [Mon, 13 Sep 2010 17:37:48 +0000]
corrected tense in docs

14 years agoClarify that coerce requires a TC with a coercion
Dave Rolsky [Mon, 13 Sep 2010 15:28:24 +0000]
Clarify that coerce requires a TC with a coercion

14 years agoClarify that coerce requires a type constraint with a coercion
Dave Rolsky [Mon, 13 Sep 2010 15:27:55 +0000]
Clarify that coerce requires a type constraint with a coercion

14 years agoIgnore test-mydeps-* files
Dave Rolsky [Fri, 10 Sep 2010 16:38:39 +0000]
Ignore test-mydeps-* files

14 years agoUse Test::Requires in recipe tests
Dave Rolsky [Fri, 10 Sep 2010 16:38:04 +0000]
Use Test::Requires in recipe tests

14 years agoAdd all our optional test deps as author_requires
Dave Rolsky [Fri, 10 Sep 2010 16:37:14 +0000]
Add all our optional test deps as author_requires

14 years agoChanges for this branch
Dave Rolsky [Fri, 10 Sep 2010 02:16:25 +0000]
Changes for this branch

14 years agoJust cache does_role for immutabilized classes - no need for an inlined method
Dave Rolsky [Fri, 10 Sep 2010 02:14:59 +0000]
Just cache does_role for immutabilized classes - no need for an inlined method

14 years agoAdd replace_does option
Dave Rolsky [Fri, 10 Sep 2010 02:00:46 +0000]
Add replace_does option

Doc inline_does and replace_does options to make_immutable

14 years agoDocs for MMM::Does
Dave Rolsky [Fri, 10 Sep 2010 01:58:53 +0000]
Docs for MMM::Does

14 years agoFix doc typo-let
Dave Rolsky [Fri, 10 Sep 2010 01:58:17 +0000]
Fix doc typo-let

14 years agoInline calculate_all_roles_with_inheritance when making class immutable
Dave Rolsky [Fri, 10 Sep 2010 01:56:41 +0000]
Inline calculate_all_roles_with_inheritance when making class immutable

14 years agoInclude inherited roles in inlined does
Dave Rolsky [Fri, 10 Sep 2010 01:54:38 +0000]
Include inherited roles in inlined does

14 years agoActually test immutable child classes
Dave Rolsky [Fri, 10 Sep 2010 01:51:36 +0000]
Actually test immutable child classes

14 years agoFix name of thing in test descriptions
Dave Rolsky [Fri, 10 Sep 2010 01:51:01 +0000]
Fix name of thing in test descriptions