[Prereqs / RuntimeRecommends]
; this needs to be installed *after*, since it deps on Moose
; remove this if this is an issue
-Devel::PartialDump = 0
+Devel::PartialDump = 0.14
[Conflicts]
-script = bin/moose-outdated
}
else {
# have to load it late like this, since it uses Moose itself
- if (try { Class::MOP::load_class('Devel::PartialDump'); 1 }) {
+ my $can_partialdump = try {
+ # versions prior to 0.14 had a potential infinite loop bug
+ Class::MOP::load_class('Devel::PartialDump', { -version => 0.14 });
+ 1;
+ };
+ if ($can_partialdump) {
$value = Devel::PartialDump->new->dump($value);
}
else {