Grokbase
x

Moose

 Topics | People | Info

feedback on MooseX::Worm

By Ricardo SIGNES at Feb 16, 2010, 04:15 am UTC

I am likely to release this code tomorrow: http://github.com/rjbs/moosex-worm It seems pretty reasonable to me, but if I'm doing something totally wrong, I'd love to find out now rather than later. More...

Maybe[Foo] type coercions

By Karen Etheridge at Feb 16, 2010, 12:25 am UTC

I'm having difficulty getting a type coercion to work that involves Maybes. I've looked at the "deep coercion" section of Moose::Manual::Types, and I'm not sure what I'm missing to get this to work? e.g. I'm running perl -MData::Dumper -MObject -MDateTime -I. -wle'my... More...

$anon_class->new_object: BUILDALL is not called

By Komarov Oleg at Feb 14, 2010, 11:17 pm UTC

I've tried to dig around and to figure it out myself, but it isn't clear for me yet (whether this is a bug or a design decision): when we create an anonymous class and later create an object of this class, shouldn't new_object method call BUILDALL? It turns out that such an object isa... More...

Documenting MooseX::Getopt edge cases

By "Ævar Arnfjörð Bjarmason" at Feb 13, 2010, 8:40 pm UTC

I got my Moose commit bit today. I added some docs on how to use MooseX::Getopt. I'd like to add more but first I have to ask if the things I want to document are sane, and there are some things I don't know how to do yet. Here are some things I've wanted to do which I haven't found in the... More...

Moose-0.97 caused a DBIx::Class test failure

By Koichi Nakatani at Feb 10, 2010, 10:31 pm UTC

Before installing Moose-0.97: $ prove -l t/storage/replication.t t/storage/replication.t .. 1/? # Using Moose version 0.96 and MooseX::Types version 0.21 t/storage/replication.t .. ok All tests successful. Files=1, Tests=132, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.64 cusr 0.10 csys = 0.78 CPU)... More...

Non-Moose metaclasses

By Jesse Luehrs at Feb 8, 2010, 10:19 pm UTC

So, after a discussion with mst in #moose, he pointed out that initializing a non-Moose class with a Moose metaclass is a bug, and we really shouldn't be doing it. This occurs quite a bit in code within CMOP and Moose, which does things like: for my $class ($self->linearized_isa) { my $meta =... More...

Hackathon hacks?

By Dave Rolsky at Feb 5, 2010, 6:48 pm UTC

There's a hackathon here at Frozen Perl this Sunday, and I know there'll be a few folks interested in working Moose. Any thoughts on projects people could pursue? Dave Rolsky Compassionate Action for Animals - http://www.exploreveg.org/ VegGuide.Org - http://www.vegguide.org/ More...

Attribute initializers - incorrect documentation

By Karen Etheridge at Feb 5, 2010, 12:28 am UTC

As mentioned on #moose yesterday, I have found an inconsistency in the documentation (I don't think this is a "bug", as the actual behaviour looks reasonable and correct to me): The documentation for Class::MOP::Attribute 0.98 says: This option can be either a method name or a subroutine reference.... More...

Currying an attribute

By Buddy Burden at Jan 29, 2010, 01:14 am UTC

Guys, Not sure this is possible with the currying syntax, but imagine something similar to the following: use MooseX::Declare; class Property method get_model () { return Model->new; } class Model method foo (Property :$property) {} class PropertyModel has 'property' => ( isa => 'Property', is =>... More...

RFC: MooseX::XPathBuilder?

By Ian Sillitoe at Jan 27, 2010, 4:15 pm UTC

Hello, I have a role lying around in my code that requires an XML source and provides a trait that allows an attribute's value to default to a specified XPath. I've found it useful as a quick way of extracting snippets of XML data into an object. I now need to refactor this out to somewhere else in... More...

Method metadata (from code attributes)

By Zbigniew Lukasiak at Jan 26, 2010, 4:11 pm UTC

Hi there, I would like to add stuff to method metadata from the code attributes of their definitions (think Catalyst actions with code attributes like Local etc) - what would be the best way to do that? I tried to find the place where the Moose::Meta::Class methods hash gets initialized but with no... More...

Moose::Util::MetaRole parameters passed from Moose::Exporter

By Karen Etheridge at Jan 23, 2010, 01:05 am UTC

I'm having difficulty getting some Moose::Util::MetaRole arguments passed from Moose::Exporter (specifically, I want to apply a role to a metaclass directly from an existing Moose::Exporter call). Since from the documentation this appears to be a simple task, I must have missed something, so I'm... More...

MooseX::Role::Strict + MooseX::Role::Parameterized

By Karen Etheridge at Jan 22, 2010, 10:54 am UTC

What would it take to gain the properties of MooseX::Role::Strict in MooseX::Role::Parameterized? I've been using strict roles everywhere and love them -- they've caught a few bugs that I'm sure would have been dreadful to track down otherwise; now I'm parameterizing a few of my roles and I'm... More...

Moose Leaking?

By Ovid at Jan 21, 2010, 1:15 pm UTC

While writing some code to track down a memory leak, I came up with the fol= lowing program using Moose 0.93. It appears to show a few leaks:=0A=0A #= !/usr/bin/env perl=0A=0A use Modern::Perl;=0A use Devel::LeakGuard::O= bject qw( GLOBAL_bless );=0A use Devel::LeakGuard::Object::State;=0A=0A = my... More...

TypeConstraints message

By Dermot at Jan 19, 2010, 4:59 pm UTC

Hi, I'm using the enum() constraints for a attribute. It works fine like this: has 'index_type' => ( is => 'ro', isa => enum($_, qw(for bar baz)), required => 1, But I'd like to provide a friendlier message then "Attribute of croak" definition. It looks like I have to create a subtype but I can't... More...

Extracting the metaclass from a parameterized role

By Karen Etheridge at Jan 16, 2010, 01:12 am UTC

have been experiencing issues with my msmtp configs.) tl;dr version: no questions here, just some discoveries that I wanted to spread a little farther and get google-indexed :) A while back I posted on Stack Overflow about extracting the metaclass from inside a role definition:... More...

MooseX::NaturalKey: stable, safe?

By Karen Etheridge at Jan 15, 2010, 01:24 am UTC

Does anyone have any opinions on MooseX::NaturalKey? Is anyone else using it? Is it stable? I'm considering using it in a production environment in combination with MooseX::Role::Parameterized; all opinions/feedback/alternative suggestions are welcome. More...

custom trait

By Dmitry Karasik at Jan 14, 2010, 1:58 pm UTC

Hi, I'd like to ask some help with my problem with Moose. I need to create a trait, or even better an overloaded type that does special stuff with "around" accessor. Normally, one writes has x => ( is => 'rw' ); around x => \&my_accessor; I'd like to shorten that into has x => ( is => 'rw', traits... More...

[GitHub] pdonelan sent you a message

By GitHub at Jan 6, 2010, 07:50 am UTC

pdonelan wants you to pull from pdonelan/moose at master Body: Fixed some typos in Moose POD (mainly in Moose::Manual). You may want to skip a163994c0 which updates the example in Moose::Manual::Concepts to be the same as Moose::Manual::Roles. View repository:... More...

Another branch to review

By autarch at Dec 30, 2009, 9:25 pm UTC

So in working on adding real attributes to roles, I've come across another thing I think needs fixing in Moose. Basically, the way MetaRole currently works is sort of broken in regards to roles, but mostly works merely by chance. Specifically, when you use MetaRole to apply roles to a metaclass,... More...

spacer
 Topics | People | Info
Home > Groups > perl.org > Moose