cpan Moose 0.45

latest releases: 2.2207, 2.2206, 2.2205...
15 years ago
  • Moose

    • Because of work in Class::MOP 0.57, all
      XS based functionality is now optional
      and a Pure Perl version is supplied
    • the CLASS_MOP_NO_XS environment variable
      can now be used to force non-XS versions
      to always be used
    • several of the packages have been tweaked
      to take care of this, mostly we added
      support for the package_name and name
      variables in all the Method metaclasses
    • before/around/after method modifiers now
      support regexp matching of names
      (thanks to Takatoshi Kitano)
    • tests added for this
    • NOTE: this only works for classes, it
      is currently not supported in roles,
      but, ... patches welcome
    • All usage of Carp::confess have been replaced
      by Carp::croak in the "keyword" functions since
      the stack trace is usually not helpful
  • Moose::Role

    • All usage of Carp::confess have been replaced
      by Carp::croak in the "keyword" functions since
      the stack trace is usually not helpful
    • The 'has' keyword for roles now accepts the
      same array ref form that Moose.pm does
      (has [qw/foo bar/] => (is => 'rw', ...))
    • added test for this
  • Moose::Meta::Attribute

    • trigger on a ro-attribute is no longer an
      error, as it's useful to trigger off of the
      constructor
  • Moose::Meta::Class

    • added same 'add_package_symbol' fix as in
      Class::MOP 0.57
  • Moose::Util

    • does_role now handles non-Moose classes
      more gracefully
    • added tests for this
    • added the 'add_method_modifier' function
      (thanks to Takatoshi Kitano)
  • Moose::Util::TypeConstraints

    • subtypes of parameterizable types now are
      themselves parameterizable types
  • Moose::Meta::Method::Constructor

    • fixed bug where trigger was not being
      called by the inlined immutable
      constructors
    • added test for this (thanks to Caelum)
  • Moose::Meta::Role::Application::ToInstance

    • now uses the metaclass of the instance
      (if possible) to create the anon-class
      (thanks Jonathan Rockway)
  • Moose::Cookbook::Recipe22

    • added the meta-attribute trait recipe
      (thanks to Sartak)
  • t/

    • fixed hash-ordering test bug that was
      causing occasional cpantester failures
    • renamed the t/000_recipe/*.t tests to be
      more descriptive (thanks to Sartak)

Don't miss a new Moose release

NewReleases is sending notifications on new releases.