Skip Menu |

This queue is for tickets about the MooseX-ChainedAccessors CPAN distribution.

Report information
The Basics
Id: 55087
Status: resolved
Priority: 0/
Queue: MooseX-ChainedAccessors

People
Owner: Nobody in particular
Requestors: onken [...] netcubed.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: 0.01



Subject: Simplify the accessor trait for future compatibility
Hi, I tried to simplify the accessor trait to compatible with future changes to the inline code. All tests pass. package MooseX::ChainedAccessors::Accessor; use strict; use warnings; use base 'Moose::Meta::Method::Accessor'; our $VERSION = '0.01'; sub _inline_post_body { return 'return $_[0] if (scalar(@_) >= 2);' . "\n"; } 1;
RT-Send-CC: modules [...] perl.org
On Mon Mar 01 03:12:06 2010, PERLER wrote: Show quoted text
> Hi, > > I tried to simplify the accessor trait to compatible with future changes > to the inline code. > > All tests pass. > > > package MooseX::ChainedAccessors::Accessor; > use strict; > use warnings; > > use base 'Moose::Meta::Method::Accessor'; > > our $VERSION = '0.01'; > > sub _inline_post_body { > return 'return $_[0] if (scalar(@_) >= 2);' . "\n"; > } > > 1;
Thanks for that patch-like change. Thanks to mst on IRC I've understood that it fixes my newer ticket for this bug (about breaking with recent Moose), and I've implemented a fix for it in the github clone: http://github.com/shlomif/MooseX-ChainedAccessors I'd like to wait a few weeks for the author's response and if not would like to receive co-maint for this module, so I can upload an up-to-date version to CPAN. Regards, -- Shlomi Fish
RT-Send-CC: david [...] dmclaughlin.com, modules [...] perl.org
On Tue Nov 02 13:44:00 2010, SHLOMIF wrote: Show quoted text
> On Mon Mar 01 03:12:06 2010, PERLER wrote:
> > Hi, > > > > I tried to simplify the accessor trait to compatible with future changes > > to the inline code. > > > > All tests pass. > > > > > > package MooseX::ChainedAccessors::Accessor; > > use strict; > > use warnings; > > > > use base 'Moose::Meta::Method::Accessor'; > > > > our $VERSION = '0.01'; > > > > sub _inline_post_body { > > return 'return $_[0] if (scalar(@_) >= 2);' . "\n"; > > } > > > > 1;
> > Thanks for that patch-like change. Thanks to mst on IRC I've understood > that it fixes my newer ticket for this bug (about breaking with recent > Moose), and I've implemented a fix for it in the github clone: > > http://github.com/shlomif/MooseX-ChainedAccessors > > I'd like to wait a few weeks for the author's response and if not would > like to receive co-maint for this module, so I can upload an up-to-date > version to CPAN. > > Regards, > > -- Shlomi Fish
David, care to comment? You seem to be alive judging by your Twitter. Regards, -- Shlomi Fish
Fixed in 0.02