Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 55658
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: nelo.onyiah [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.99
Fixed in: 1.00



Subject: Moose::Meta::Attribute::Native::Trait::Counter defaults not working
Hi all, According to the documentation here http://search.cpan.org/~flora/Moose-0.99/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm#DESCRIPTION, the attached example should work. However it does not seem to find an "inc_foo()" method. Am I missing something here?
Subject: counter.pl
#!/usr/bin/env perl use strict; use warnings FATAL => 'all'; use Test::Most; { package Foo; use Moose; has foo => ( traits => ['Counter'] ); no Moose; 1; } TODO: { local $TODO = 'defaults do not appear to work'; my $foo = Foo->new(); can_ok $foo, 'inc_foo'; } done_testing();
Subject: Re: [rt.cpan.org #55658] Moose::Meta::Attribute::Native::Trait::Counter defaults not working
Date: Wed, 17 Mar 2010 13:25:21 +0100
To: "http://j1n3l0.myopenid.com/ via RT" <bug-Moose [...] rt.cpan.org>
From: Florian Ragwitz <rafl [...] debian.org>
On Wed, Mar 17, 2010 at 08:11:22AM -0400, http://j1n3l0.myopenid.com/ via RT wrote: Show quoted text
> According to the documentation here > http://search.cpan.org/~flora/Moose-0.99/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm#DESCRIPTION, > the attached example should work. However it does not seem to find an > "inc_foo()" method. > > Am I missing something here?
The docs are wrong. Native trait delegations were never supposed to work without explicitly using provides. -- BOFH excuse #401: Sales staff sold a product we don't offer.
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

Hi, I see that this has been rectified in the docs on github: http://github.com/nothingmuch/moose/commit/aa276b312ba3349948f1dc065dd2d49205bd18eb Thank you. On Wed Mar 17 08:26:28 2010, FLORA wrote: Show quoted text
> On Wed, Mar 17, 2010 at 08:11:22AM -0400, http://j1n3l0.myopenid.com/ > via RT wrote:
> > According to the documentation here > > http://search.cpan.org/~flora/Moose-
> 0.99/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm#DESCRIPTION,
> > the attached example should work. However it does not seem to find
> an
> > "inc_foo()" method. > > > > Am I missing something here?
> > The docs are wrong. Native trait delegations were never supposed to > work > without explicitly using provides. > >