From: Ricardo Signes Date: Tue, 20 Mar 2012 22:18:12 +0000 (-0400) Subject: use parent, not base X-Git-Tag: 0.12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f3e571b2501fe4fe535dc31fb4dfd89ff0111ba6;p=gitmo%2FMoose-Autobox.git use parent, not base --- diff --git a/Changes b/Changes index ac2e8fd..b8fecaa 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Moose::Autobox +0.12 Tue. Mar 20, 2012 + - replace "use base" with "use parent" + 0.11 Fri. Mar 23, 2010 - add each_n_values to Indexed (rafl and rjbs) - add first and last to Scalar and Array (t0m) diff --git a/Makefile.PL b/Makefile.PL index f536ced..4f491c7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,6 +8,7 @@ name('Moose-Autobox'); all_from('lib/Moose/Autobox.pm'); requires 'autobox' => '2.23'; +requires 'parent' => 0; requires 'Moose' => '0.42'; requires 'Perl6::Junction' => '1.40000'; diff --git a/lib/Moose/Autobox.pm b/lib/Moose/Autobox.pm index 3815419..1555c25 100644 --- a/lib/Moose/Autobox.pm +++ b/lib/Moose/Autobox.pm @@ -8,9 +8,9 @@ use Carp qw(confess); use Scalar::Util (); use Moose::Util (); -our $VERSION = '0.11'; +our $VERSION = '0.12'; -use base 'autobox'; +use parent 'autobox'; use Moose::Autobox::Undef; diff --git a/lib/Moose/Autobox/Array.pm b/lib/Moose/Autobox/Array.pm index 40e36a0..bf994be 100644 --- a/lib/Moose/Autobox/Array.pm +++ b/lib/Moose/Autobox/Array.pm @@ -3,7 +3,7 @@ use Moose::Role 'with'; use Perl6::Junction; use Moose::Autobox; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Ref', 'Moose::Autobox::List', diff --git a/lib/Moose/Autobox/Code.pm b/lib/Moose/Autobox/Code.pm index df7f1f0..96cb765 100644 --- a/lib/Moose/Autobox/Code.pm +++ b/lib/Moose/Autobox/Code.pm @@ -2,7 +2,7 @@ package Moose::Autobox::Code; use Moose::Role 'with'; use Moose::Autobox; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Ref'; diff --git a/lib/Moose/Autobox/Defined.pm b/lib/Moose/Autobox/Defined.pm index 75ce024..e832e57 100644 --- a/lib/Moose/Autobox/Defined.pm +++ b/lib/Moose/Autobox/Defined.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Defined; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Item'; diff --git a/lib/Moose/Autobox/Hash.pm b/lib/Moose/Autobox/Hash.pm index f1b5dc4..9ff1b24 100644 --- a/lib/Moose/Autobox/Hash.pm +++ b/lib/Moose/Autobox/Hash.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Hash; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Ref', 'Moose::Autobox::Indexed'; diff --git a/lib/Moose/Autobox/Indexed.pm b/lib/Moose/Autobox/Indexed.pm index 1dbe55a..f172914 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.11'; +our $VERSION = '0.12'; requires 'at'; requires 'put'; diff --git a/lib/Moose/Autobox/Item.pm b/lib/Moose/Autobox/Item.pm index 046d3aa..36724d4 100644 --- a/lib/Moose/Autobox/Item.pm +++ b/lib/Moose/Autobox/Item.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Item; use Moose::Role 'requires'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; requires 'defined'; diff --git a/lib/Moose/Autobox/List.pm b/lib/Moose/Autobox/List.pm index 06ea187..406f506 100644 --- a/lib/Moose/Autobox/List.pm +++ b/lib/Moose/Autobox/List.pm @@ -3,7 +3,7 @@ package Moose::Autobox::List; use Moose::Role 'with', 'requires'; use Moose::Autobox; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Value'; diff --git a/lib/Moose/Autobox/Number.pm b/lib/Moose/Autobox/Number.pm index e367dd2..5c6e5ee 100644 --- a/lib/Moose/Autobox/Number.pm +++ b/lib/Moose/Autobox/Number.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Number; use Moose::Role; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Value'; diff --git a/lib/Moose/Autobox/Ref.pm b/lib/Moose/Autobox/Ref.pm index 0e4f78c..d98310d 100644 --- a/lib/Moose/Autobox/Ref.pm +++ b/lib/Moose/Autobox/Ref.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Ref; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Defined'; diff --git a/lib/Moose/Autobox/Scalar.pm b/lib/Moose/Autobox/Scalar.pm index e7bd1c6..ff2379a 100644 --- a/lib/Moose/Autobox/Scalar.pm +++ b/lib/Moose/Autobox/Scalar.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Scalar; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::String', 'Moose::Autobox::Number'; diff --git a/lib/Moose/Autobox/String.pm b/lib/Moose/Autobox/String.pm index d814c03..25781db 100644 --- a/lib/Moose/Autobox/String.pm +++ b/lib/Moose/Autobox/String.pm @@ -1,7 +1,7 @@ package Moose::Autobox::String; use Moose::Role; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Value'; diff --git a/lib/Moose/Autobox/Undef.pm b/lib/Moose/Autobox/Undef.pm index 281a5a2..adcf474 100644 --- a/lib/Moose/Autobox/Undef.pm +++ b/lib/Moose/Autobox/Undef.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Undef; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Item'; diff --git a/lib/Moose/Autobox/Value.pm b/lib/Moose/Autobox/Value.pm index e0160cc..9a3119d 100644 --- a/lib/Moose/Autobox/Value.pm +++ b/lib/Moose/Autobox/Value.pm @@ -1,7 +1,7 @@ package Moose::Autobox::Value; use Moose::Role 'with'; -our $VERSION = '0.11'; +our $VERSION = '0.12'; with 'Moose::Autobox::Defined';