12 years agoalso update Role::Tiny to handle VSTRING and credit doy for pointing it out
Matt S Trout [Mon, 14 Nov 2011 23:44:58 +0000]
also update Role::Tiny to handle VSTRING and credit doy for pointing it out

12 years agofix bug where constants containing a reference weren't handled correctly
Matt S Trout [Sun, 6 Nov 2011 20:38:41 +0000]
fix bug where constants containing a reference weren't handled correctly

12 years agoRelease commit for 0.009011 v0.009011
Matt S Trout [Mon, 3 Oct 2011 05:42:28 +0000]
Release commit for 0.009011

12 years agobump version for release
Matt S Trout [Mon, 3 Oct 2011 05:41:21 +0000]
bump version for release

12 years agoupdate DESTROY documentation
Matt S Trout [Mon, 3 Oct 2011 05:38:31 +0000]
update DESTROY documentation

12 years agomove to early generation of DESTROY/DEMOLISHALL where possible and hope like hell...
Matt S Trout [Mon, 3 Oct 2011 05:30:18 +0000]
move to early generation of DESTROY/DEMOLISHALL where possible and hope like hell it does the right thing

12 years agocleanup require usage so we don't trample on $@ and tweak the DEMOLISH code slightly
Matt S Trout [Mon, 3 Oct 2011 05:14:42 +0000]
cleanup require usage so we don't trample on $@ and tweak the DEMOLISH code slightly

12 years agoTenative switch to a generated DEMOLISHALL - see rest of message for caveats
Matt S Trout [Thu, 25 Aug 2011 23:44:42 +0000]
Tenative switch to a generated DEMOLISHALL - see rest of message for caveats

I'm wondering if the reason that ajgb didn't do it this way is that it has
bad interactions with global destruction on some perls; it did, however, work
fine in the t/ cases. Rather than use the ugly "let's figure this out every
time" code that he wrote (which did, admittedly, work) I think that if the
generation doesn't work across perls then our best path forwards is to try
and accelerate DEMOLISHALL construction - perhaps even lifting it to new()
time so that classes without a DEMOLISH method don't get a DESTROY added (I
hate having to always have a DESTROY method).

But first, I want to see if this breaks so that I know how to test that
lifting to new() time fixes it.

12 years agoprovide DEMOLISH
Alex J. G. Burzyński [Fri, 5 Aug 2011 09:50:14 +0000]
provide DEMOLISH

12 years agouse Moo::_Utils::_get_linear_isa
Alex J. G. Burzyński [Fri, 5 Aug 2011 09:48:37 +0000]
use Moo::_Utils::_get_linear_isa

12 years agoadd _get_linear_isa and _in_global_destruction
Alex J. G. Burzyński [Fri, 5 Aug 2011 09:47:47 +0000]
add _get_linear_isa and _in_global_destruction

12 years agodecrease indent in method generator
Alex J. G. Burzyński [Fri, 26 Aug 2011 09:20:29 +0000]
decrease indent in method generator

12 years agodecrease indent on BUILD calls
Alex J. G. Burzyński [Fri, 26 Aug 2011 09:15:22 +0000]
decrease indent on BUILD calls

12 years agomore readable subconstructor handling for BUILDALL
Alex J. G. Burzyński [Fri, 26 Aug 2011 09:00:56 +0000]
more readable subconstructor handling for BUILDALL

12 years agofix BUILDALL constructor
Alex J. G. Burzyński [Thu, 18 Aug 2011 11:49:45 +0000]
fix BUILDALL constructor

12 years agoinline BUILDARGS
Alex J. G. Burzyński [Fri, 29 Jul 2011 16:20:36 +0000]
inline BUILDARGS

12 years agoadd newlines at die messages
Alex J. G. Burzyński [Fri, 29 Jul 2011 12:18:31 +0000]
add newlines at die messages

12 years agotest for odd number of arguments
Alex J. G. Burzyński [Fri, 29 Jul 2011 12:18:09 +0000]
test for odd number of arguments

12 years agocall BUILDARGS if defined
Alex J. G. Burzyński [Fri, 29 Jul 2011 11:22:28 +0000]
call BUILDARGS if defined

12 years agodie rather than warn on odd number of arguments
Alex J. G. Burzyński [Fri, 29 Jul 2011 11:20:24 +0000]
die rather than warn on odd number of arguments

12 years agoadded BUILDARGS support
Alex J. G. Burzyński [Fri, 29 Jul 2011 10:29:42 +0000]
added BUILDARGS support

12 years agodocument reader and writer
Arthur Axel 'fREW' Schmidt [Thu, 21 Jul 2011 21:48:38 +0000]
document reader and writer

12 years agoRelease commit for 0.009010 release_0.009010
Matt S Trout [Wed, 20 Jul 2011 04:48:11 +0000]
Release commit for 0.009010

12 years agomake note I cocked up a release again
Matt S Trout [Wed, 20 Jul 2011 04:46:46 +0000]
make note I cocked up a release again

12 years agobump version
Matt S Trout [Wed, 20 Jul 2011 04:46:13 +0000]
bump version

12 years agoRelease commit for 0.009009 release_0.009009
Matt S Trout [Wed, 20 Jul 2011 04:44:37 +0000]
Release commit for 0.009009

12 years agobump version
Matt S Trout [Wed, 20 Jul 2011 04:43:10 +0000]
bump version

12 years agouse Test::Fatal since we already need it
Matt S Trout [Wed, 20 Jul 2011 04:40:24 +0000]
use Test::Fatal since we already need it

12 years agoremove the big scary warning because we seem to be mostly working now
Matt S Trout [Wed, 20 Jul 2011 04:37:24 +0000]
remove the big scary warning because we seem to be mostly working now

12 years agohelps to get the package name right (Role::Tiny::With)
Matt S Trout [Wed, 20 Jul 2011 04:33:07 +0000]
helps to get the package name right (Role::Tiny::With)

12 years agomake ro accessor die
Matt S Trout [Wed, 20 Jul 2011 04:24:01 +0000]
make ro accessor die

12 years agoChanges entry for Role::Tiny::With and add chip to CONTRIBUTORS
Matt S Trout [Wed, 20 Jul 2011 02:57:29 +0000]
Changes entry for Role::Tiny::With and add chip to CONTRIBUTORS

12 years agoRole::Tiny::With try1
Chip Salzenberg [Tue, 12 Jul 2011 20:24:04 +0000]
Role::Tiny::With try1

12 years agogenerate constructors in subclasses on demand
Matt S Trout [Wed, 20 Jul 2011 02:28:46 +0000]
generate constructors in subclasses on demand

12 years agoauto-fetch Distar
Matt S Trout [Fri, 15 Jul 2011 15:46:35 +0000]
auto-fetch Distar

12 years agomove adding coercion to next release
Alex J. G. Burzyński [Mon, 11 Jul 2011 09:12:24 +0000]
move adding coercion to next release

12 years agodocument coerce handling
Alex J. G. Burzyński [Sat, 21 May 2011 21:21:29 +0000]
document coerce handling

12 years agocoerce value from eager defaults
Alex J. G. Burzyński [Sat, 21 May 2011 15:35:17 +0000]
coerce value from eager defaults

12 years agoadd tests for attributes with eager default
Alex J. G. Burzyński [Sat, 21 May 2011 15:09:16 +0000]
add tests for attributes with eager default

12 years agopass coerce tests
Alex J. G. Burzyński [Thu, 19 May 2011 22:28:03 +0000]
pass coerce tests

12 years agofix test
Alex J. G. Burzyński [Thu, 19 May 2011 22:27:00 +0000]
fix test

12 years agoinitial test for coerce
Arthur Axel 'fREW' Schmidt [Sat, 13 Nov 2010 05:53:08 +0000]
initial test for coerce

12 years agoRelease commit for 0.009008 release_0.009008
Matt S Trout [Fri, 3 Jun 2011 17:08:50 +0000]
Release commit for 0.009008

12 years agoincrement version for 0.9.8
Matt S Trout [Fri, 3 Jun 2011 17:07:27 +0000]
increment version for 0.9.8

12 years agoadd distar lib line to maint Makefile.PL.include
Matt S Trout [Fri, 3 Jun 2011 17:07:01 +0000]
add distar lib line to maint Makefile.PL.include

12 years agotransfer changes to _load_module to Role::Tiny's inlined version and document that...
Matt S Trout [Fri, 3 Jun 2011 16:35:12 +0000]
transfer changes to _load_module to Role::Tiny's inlined version and document that it's a copy

13 years agoBring back 5.8.1 support
Peter Rabbitson [Fri, 22 Apr 2011 10:32:56 +0000]
Bring back 5.8.1 support

- 5.8.1 randomizes hash keys - need to sort when comparing
- < 5.8.3 can not weaken refs to r/o vars, die with more info
  (the extra code is compiled away on >= 5.8.3)
- Spurious warnings from indirect.pm (RT#67692) trip up strictures'
  dfatalized warnings

13 years agofix typo
Justin Hunter [Mon, 14 Mar 2011 17:11:36 +0000]
fix typo

13 years agoRelease commit for 0.009007 release_0.009007
Matt S Trout [Fri, 25 Feb 2011 17:03:54 +0000]
Release commit for 0.009007

13 years agobump to 0.9.7 for the 'mst is an idiot' release
Matt S Trout [Fri, 25 Feb 2011 17:03:24 +0000]
bump to 0.9.7 for the 'mst is an idiot' release

13 years agofix copyright
Matt S Trout [Fri, 25 Feb 2011 17:03:01 +0000]
fix copyright

13 years agoRelease commit for 0.009006 release_0.009006
Matt S Trout [Fri, 25 Feb 2011 16:55:33 +0000]
Release commit for 0.009006

13 years agobump version to 0.9.6 for point release
Matt S Trout [Fri, 25 Feb 2011 16:43:35 +0000]
bump version to 0.9.6 for point release

13 years agofixup contributors list
Matt S Trout [Fri, 25 Feb 2011 16:26:10 +0000]
fixup contributors list

Adding, while we're here, cpan ID as well to the data I've scavenged.

Alphabetical order by IRC nick, standard format.

13 years agofactor out eager default calculation
Matt S Trout [Fri, 25 Feb 2011 16:19:02 +0000]
factor out eager default calculation

Both constructor and accessor now need to test if an attribute has an
eager default for their parts in generating the population code, so
factor the logic out onto accessor to leave it pluggable for later.

13 years agohandle non-lazy default and builder when init_arg is undef
Matt S Trout [Fri, 25 Feb 2011 15:54:08 +0000]
handle non-lazy default and builder when init_arg is undef

We were skipping attributes entirely in new if there's no init_arg, but
this is not correct - given a non-lazy default or builder the attribute
should be initialized during new().

To handle this, I've re-ordered the checks slightly in Constructor.pm to
do the "is_simple" check first - an attribute with a default or builder
will fail that check, then we skip anyway if no init_arg and no default
or builder (yes, this is hardcoded-ish, but in that case we're definitely
not constructing anything so far as I can see). default and builder are
disregarded if lazy so as not to try and populate pure-lazy attributes.

Accessor also needed tweaking so it could handle the concept of a thing to
build without an init_arg to populate from. This only needs to happen in
one branch since the other branch is for "no default or builder" and thus
never reached.

13 years agoSwitch to Distar for author side tooling
Matt S Trout [Fri, 25 Feb 2011 15:43:34 +0000]
Switch to Distar for author side tooling

We're now using Distar, currently available at

git://git.shadowcat.co.uk/p5sagit/Distar.git

to simplify author-side work. If this breaks your head, touch META.yml.

13 years agoadd copyright statements
Matt S Trout [Fri, 25 Feb 2011 15:30:47 +0000]
add copyright statements

I've done the usual AUTHOR + CONTRIBUTORS - and referred from the other
modules.

Role::Tiny will need tweaking before it goes to its own dist but meh.

13 years agoadd weak ref checking to Sub::Quote
Matt S Trout [Wed, 12 Jan 2011 16:19:39 +0000]
add weak ref checking to Sub::Quote

13 years agoSwitch package name for class+role composed class to be valid
Matt S Trout [Wed, 12 Jan 2011 08:27:41 +0000]
Switch package name for class+role composed class to be valid

We used to join together the components with + so you got -

  Class+Role1+Role2+Role3

however this then screws with Sub::Quote's ability to generate a constructor
into the final class since

  sub Class+Role1+Role2+Role3::new {

isn't valid perl. Therefore, I've switched the code to generate

  Class__WITH__Role1__AND__Role3__AND__Role3

which is substantially uglier but works. Thanks to DGL for the test

13 years ago0.9.5 release commit release_0.9.5
Matt S Trout [Tue, 11 Jan 2011 21:58:07 +0000]
0.9.5 release commit

13 years agofix clobberage of runtime-installed wrappers by Sub::Defer
Matt S Trout [Sat, 8 Jan 2011 07:05:16 +0000]
fix clobberage of runtime-installed wrappers by Sub::Defer

13 years agofix constructor firing for nonMoo through multiple layers of Moo
Matt S Trout [Sat, 8 Jan 2011 06:14:54 +0000]
fix constructor firing for nonMoo through multiple layers of Moo

13 years agorewrite nonMoo detection
Matt S Trout [Sat, 8 Jan 2011 05:41:04 +0000]
rewrite nonMoo detection

13 years agoversion bump for 0.9.4 release_0.9.4
Matt S Trout [Mon, 13 Dec 2010 21:31:22 +0000]
version bump for 0.9.4

13 years agohandle non-Moo superclass constructors
Matt S Trout [Mon, 6 Dec 2010 21:36:30 +0000]
handle non-Moo superclass constructors

13 years agoupdate Changes for release release_0.9.3
matthewt [Sun, 5 Dec 2010 19:23:10 +0000]
update Changes for release

13 years agotest for load_module fixes
matthewt [Sun, 5 Dec 2010 19:22:58 +0000]
test for load_module fixes

13 years agobump version of strictures
matthewt [Sun, 5 Dec 2010 19:22:47 +0000]
bump version of strictures

13 years agoversion bump
matthewt [Sun, 5 Dec 2010 19:15:52 +0000]
version bump

13 years agofix _load_module to deal with subpackages correctly
matthewt [Sun, 5 Dec 2010 18:53:10 +0000]
fix _load_module to deal with subpackages correctly

13 years ago.gitignore
Peter Rabbitson [Sat, 20 Nov 2010 18:11:59 +0000]
.gitignore

13 years agodocs: is => 'ro' gives a get-only accessor, not a set-only one :)
Andrew Rodland [Wed, 17 Nov 2010 09:05:12 +0000]
docs: is => 'ro' gives a get-only accessor, not a set-only one :)

13 years agobump version, set Changes for release 0.009002
Matt S Trout [Wed, 17 Nov 2010 08:08:32 +0000]
bump version, set Changes for release

13 years agoadd rationale section
Matt S Trout [Wed, 17 Nov 2010 08:06:33 +0000]
add rationale section

13 years agofixes for 5.10.0
Matt S Trout [Tue, 16 Nov 2010 21:43:54 +0000]
fixes for 5.10.0

13 years agoMake perl -Moo DTRT
Matt S Trout [Tue, 16 Nov 2010 03:25:50 +0000]
Make perl -Moo DTRT

13 years agoMakefile.PL and maint code 0.009001
Matt S Trout [Tue, 16 Nov 2010 02:33:13 +0000]
Makefile.PL and maint code

13 years agoChanges file
Matt S Trout [Tue, 16 Nov 2010 02:24:03 +0000]
Changes file

13 years agoapparently working MYMETA generation
Matt S Trout [Tue, 16 Nov 2010 01:54:34 +0000]
apparently working MYMETA generation

13 years agoFix wording on global unquote
Peter Rabbitson [Tue, 16 Nov 2010 01:08:28 +0000]
Fix wording on global unquote

13 years agofix up tests to new calling convention
Matt S Trout [Tue, 16 Nov 2010 00:56:47 +0000]
fix up tests to new calling convention

13 years agocleanup and warning notice
Matt S Trout [Tue, 16 Nov 2010 00:51:33 +0000]
cleanup and warning notice

13 years agoclean up and add NAME sections
Matt S Trout [Tue, 16 Nov 2010 00:26:51 +0000]
clean up and add NAME sections

13 years agomake role application interface consistent
Matt S Trout [Tue, 16 Nov 2010 00:17:04 +0000]
make role application interface consistent

13 years agoclean up, expand, undocument 'not yet' features
Matt S Trout [Tue, 16 Nov 2010 00:03:59 +0000]
clean up, expand, undocument 'not yet' features

13 years agoMoo - Miminalist Object Orientation
Matt S Trout [Sun, 14 Nov 2010 19:47:36 +0000]
Moo - Miminalist Object Orientation

13 years agocorrect Sub::Quote docs
Matt S Trout [Sun, 14 Nov 2010 19:41:49 +0000]
correct Sub::Quote docs

13 years agoclean up does_role docs
Matt S Trout [Sun, 14 Nov 2010 19:28:24 +0000]
clean up does_role docs

13 years agoDocumentation for Moo::Role
Arthur Axel 'fREW' Schmidt [Wed, 10 Nov 2010 04:07:25 +0000]
Documentation for Moo::Role

13 years agoDocumentation for Role::Tiny
Arthur Axel 'fREW' Schmidt [Tue, 9 Nov 2010 04:26:51 +0000]
Documentation for Role::Tiny

13 years agoDocumentation for Moo
Arthur Axel 'fREW' Schmidt [Tue, 9 Nov 2010 03:05:49 +0000]
Documentation for Moo

13 years agoDocumentation for Sub::Quote
Arthur Axel 'fREW' Schmidt [Sun, 7 Nov 2010 16:11:46 +0000]
Documentation for Sub::Quote

13 years agoDocumentation for Sub::Defer
Arthur Axel 'fREW' Schmidt [Sun, 7 Nov 2010 04:27:21 +0000]
Documentation for Sub::Defer

13 years agoguard against double import
Matt S Trout [Tue, 16 Nov 2010 00:46:08 +0000]
guard against double import

13 years agomake does_role work on objects
Matt S Trout [Mon, 15 Nov 2010 02:55:00 +0000]
make does_role work on objects

13 years agomove _getglob def above strict for elegance
Matt S Trout [Sun, 14 Nov 2010 19:50:52 +0000]
move _getglob def above strict for elegance

13 years agooo!
Matt S Trout [Sun, 14 Nov 2010 03:02:19 +0000]
oo!

13 years agomst: jnap: now you write me a test
John Napiorkowski [Sat, 13 Nov 2010 23:45:58 +0000]
mst: jnap: now you write me a test
mst: jnap: t/role-tiny.t - add an extra class and an intermediate role

13 years agodon't try and apply modifiers during role composition
Matt S Trout [Sat, 13 Nov 2010 22:24:17 +0000]
don't try and apply modifiers during role composition