friedo/perl-namespace-sweep — pull request #5 by tobyink (2012-10-14 20:27:35+00:00)
Title: Use Class::MOP::class_of() or Mouse::Util::class_of() as appropriate - fixes RT#78816

This patch uses `Class::MOP::class_of` to retrieve the metaclass for the cleanee, rather than calling `$cleanee->meta` (and does similar for Mouse). This is actually what is recommended for Class::MOP, because the `meta` method can be renamed to something else (even if nobody does).

This fixes the issue of namespace::sweep causing Moo-based classes to inflate themselves to Moose. (RT#78816.)