From: Stevan Little Date: Mon, 28 Apr 2008 16:10:28 +0000 (+0000) Subject: 0.07 X-Git-Tag: 0_08~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf86a67cef80d4a0a8a81d7b3eea213ec8a90092;p=gitmo%2FMoose-Autobox.git 0.07 --- diff --git a/Changes b/Changes index 2187d54..9ee1cb6 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for Perl extension Moose::Autobox -0.07 +0.07 Mon. April 28, 2008 * Moose::Autobox - added documentation about how to extend the autoboxed types (RT #34315) diff --git a/lib/Moose/Autobox/Hash.pm b/lib/Moose/Autobox/Hash.pm index 2f58a33..62b8946 100644 --- a/lib/Moose/Autobox/Hash.pm +++ b/lib/Moose/Autobox/Hash.pm @@ -1,8 +1,6 @@ package Moose::Autobox::Hash; use Moose::Role 'with'; -use Carp qw(croak); - our $VERSION = '0.03'; with 'Moose::Autobox::Ref', @@ -15,7 +13,7 @@ sub delete { sub merge { my ($left, $right) = @_; - croak "You must pass a hashref as argument to merge" + Carp::confess "You must pass a hashref as argument to merge" unless ref $right eq 'HASH'; return { %$left, %$right }; } diff --git a/lib/Moose/Autobox/Indexed.pm b/lib/Moose/Autobox/Indexed.pm index feb0174..5efd461 100644 --- a/lib/Moose/Autobox/Indexed.pm +++ b/lib/Moose/Autobox/Indexed.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Indexed; use Moose::Role 'requires'; -our $VERSION = '0.01'; +our $VERSION = '0.02'; requires 'at'; requires 'put';