From: John Napiorkowski Date: Mon, 3 Jan 2011 19:44:22 +0000 (-0500) Subject: reduced version for test-fatal X-Git-Tag: 0.27~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types-Structured.git;a=commitdiff_plain;h=fc5995b6cb005b8d8a792cb5581688ffc2379ade;hp=852f8d8d4b2f0cddd25fe0bc130174295763d21e reduced version for test-fatal --- diff --git a/Changes b/Changes index 0ea7aec..d958e58 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for MooseX-Types-Structured +0.26 02 January 2010 + - removed version from Test::Fatal as asked by the debian folks + - small documentation updates + 0.25 28 December 2010 - fixed bug where ->is_subtype_of dies meaninglessly when the type we are trying to check is not a type we can find. This makes our diff --git a/dist.ini b/dist.ini index 20d6f63..abf2204 100644 --- a/dist.ini +++ b/dist.ini @@ -1,5 +1,5 @@ name = MooseX-Types-Structured -version = 0.25 +version = 0.26 author = John Napiorkowski author = Florian Ragwitz author = Yuval Kogman @@ -21,5 +21,5 @@ Sub::Exporter = 0.982 [Prereqs / BuildRequires] Test::More = 0.94 -Test::Fatal = 0.003 +Test::Fatal = 0 diff --git a/lib/MooseX/Types/Structured/MessageStack.pm b/lib/MooseX/Types/Structured/MessageStack.pm index ec20df6..a5dbeef 100644 --- a/lib/MooseX/Types/Structured/MessageStack.pm +++ b/lib/MooseX/Types/Structured/MessageStack.pm @@ -1,6 +1,10 @@ package MooseX::Types::Structured::MessageStack; use Moose; +=attr level + +=cut + has 'level' => ( traits => ['Counter'], is => 'ro', @@ -13,6 +17,10 @@ has 'level' => ( }, ); +=attr messages + +=cut + has 'messages' => ( traits => ['Array'], is => 'ro', @@ -26,6 +34,10 @@ has 'messages' => ( }, ); +=method as_string + +=cut + sub as_string { my @messages = (shift)->all_messages; my @flattened_msgs = map {