cpan Moose 2.1806

latest releases: 2.2207, 2.2206, 2.2205...
7 years ago

[BUG FIXES]

  • A role generated on the fly (as opposed to one in a file on disk) could
    not be used as a trait. Fixed by Aaron Cohen. (RT#92089, PR#47).

[ENHANCEMENTS]

  • When a required attribute's init_arg differs from the attribute's name, we
    now include both the attribute name and init_arg in the exception thrown
    when that attribute is not provided. (RT#116814, Gordon Fisher)

  • The unimport sub generated by Moose::Exporter can now be called with
    parameters like { into => 'Package' } or { into_level => 1 }, just like
    the import sub it generates. Requested by Dmytro Zagashev. (RT #93666).

  • Moose::Meta::Attribute objects created from role attributes keep a
    reference to the Moose::Meta::Role::Attribute which created
    them. Moose::Meta::Attribute now has ->role_attribute and
    ->has_role_attribute methods. RT #84563 and #117586. (Dave Rolsky)

[DOCUMENTATION]

  • Updated Moose::Manual::Roles with more detail on role consumption and how
    to deal with various corner cases involving required methods, multiple
    roles, etc.

Don't miss a new Moose release

NewReleases is sending notifications on new releases.