It would be nice if these modules would stabilise soon. Anyway,
attached find diffs for Class::MOP to 0.81 and Moose to 0.74. Tested on
i386, and pass regress.
Changes for Class::MOP
0.81 Tue, April 7, 2009
* Class::MOP
* Class::MOP::Class
* Class::MOP::Instance
* Class::MOP::Attribute
* Class::MOP::Method::Accessor
* Class::MOP::Method::Constructor
- Include stack traces in the deprecation warnings introduced in
0.80_01. (Florian Ragwitz)
* MOP.xs
- Avoid c compiler warnings by declaring some unused function
arguments. (Florian Ragwitz)
0.80_01 Sun, April 5, 2009
* Makefile.PL
- Make sure to preserve any compiler flags already defined in
Config.pm. Patch by Vincent Pit. RT #44739.
* Many methods have been renamed with a leading underscore, and a
few have been deprecated entirely. The methods with a leading
underscore are consider "internals only". People writing
subclasses or extensions to Class::MOP should feel free to
override them, but they are not for "public" use.
- Class::MOP::Class
- construct_class_instance => _construct_class_instance (use new_object)
- construct_instance => _construct_instance (use new_object)
- check_metaclass_compatibility => _check_metaclass_compatibility
- create_meta_instance => _create_meta_instance (use get_meta_instance)
- clone_instance => _clone_instance (use clone_object)
- compute_all_applicable_methods is deprecated, use get_all_methods
- compute_all_applicable_attributes is deprecated, use get_all_attributes
- Class::MOP::Instance
- bless_instance_structure is deprecated and will be removed
in a future release
- Class::MOP::Module
- create has been renamed to _instantiate_module. This method
does not construct an object, it evals some code that
creates the relevant package in Perl's symbol table.
- Class::MOP::Method::Accessor
- initialize_body => _initialize_body (this is always called
when an object is constructed)
- /(generate_.*_method(?:_inline)?)/ => '_' . $1
- Class::MOP::Method::Constructor
- initialize_body => _initialize_body (this is always called
when an object is constructed)
- /(generate_constructor_method(?:_inline)?)/ => '_' . $1
- attributes => _attributes
- meta_instance => _meta_instance
Changes for Moose 0.74:
0.74 Tue, April 7, 2009
* Moose::Meta::Role
* Moose::Meta::Method::Destructor
- Include stack traces in the deprecation warnings.
(Florian Ragwitz)
* Moose::Meta::Class
- Removed the long-deprecated _apply_all_roles method.
* Moose::Meta::TypeContsraint
- Removed the long-deprecated union method.
0.73_02 Mon, April 6, 2009
* More deprecations and renamings
- Moose::Meta::Method::Constructor
- initialize_body => _initialize_body (this is always called
when an object is constructed)
* Moose::Object
- The DEMOLISHALL method could throw an exception during global
destruction, meaning that your class's DEMOLISH methods would
not be properly called. Reported by t0m.
* Moose::Meta::Method::Destructor
- Destructor inlining was totally broken by the change to the
is_needed method in 0.72_01. Now there is a test for this
feature, and it works again.
0.73_01 Sun, April 5, 2009
* Moose::*
- Call user_class->meta in fewer places, with the eventual goal
of allowing the user to rename or exclude ->meta
altogether. Instead uses Class::MOP::class_of. (Sartak)
* Moose::Meta::Method::Accessor
- If an attribute had a lazy default, and that value did not
pass the attribute's type constraint, it did not get the
message from the type constraint, instead using a generic
message. Test provided by perigrin.
* Moose::Util::TypeConstraints
- Add duck_type keyword. It's sugar over making sure an object
can() a list of methods. This is easier than jrockway's
suggestion to fork all of CPAN. (perigrin)
- add tests and documentation (perigrin)
* Moose
- Document the fact that init_meta() returns the target class's
metaclass object. (hdp)
* Moose::Cookbook::Extending::Recipe1
* Moose::Cookbook::Extending::Recipe2
* Moose::Cookbook::Extending::Recipe3
* Moose::Cookbook::Extending::Recipe4
- Make init_meta() examples explicitly return the metaclass and
point out this fact. (hdp)
* Moose::Cookbook::Meta::Recipe6
- A new recipe, creating a custom meta-method class.
* Moose::Meta::Class
* Moose::Meta::Method::Constructor
- Attribute triggers no longer receive the meta-attribute object
as an argument in any circumstance. Previously, triggers
called during instance construction were passed the
meta-attribute, but triggers called by normal accessors were
not. Fixes RT#44429, reported by Mark Swayne. (hdp)
* Moose::Manual::Attributes
- Remove references to triggers receving the meta-attribute object as an
argument. (hdp)
* Moose::Cookbook::FAQ
- Remove recommendation for deprecated Moose::Policy and
Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
instead. (hdp)
* Many methods have been renamed with a leading underscore, and a
few have been deprecated entirely. The methods with a leading
underscore are consider "internals only". People writing
subclasses or extensions to Moose should feel free to override
them, but they are not for "public" use.
- Moose::Meta::Class
- check_metaclass_compatibility => _check_metaclass_compatibility
- Moose::Meta::Method::Accessor
- initialize_body => _initialize_body (this is always called
when an object is constructed)
- /(generate_.*_method(?:_inline)?)/ => '_' . $1
- Moose::Meta::Method::Constructor
- initialize_body => _initialize_body (this is always called
when an object is constructed)
- /(generate_constructor_method(?:_inline)?)/ => '_' . $1
- attributes => _attributes (now inherited from parent)
- meta_instance => _meta_instance (now inherited from parent)
- Moose::Meta::Role
- alias_method is deprecated. Use add_method
I'll spare the list more updates to these nodules until 1.0 or
something, updates can be found at
http://www.bsdhosting.co.za/~jamesw/ports/ from now on (as well as new
ports and updates to other ports, such as much of Gtk2::*, MooseX::* and
AnyEvent::*).
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/p5-Class-MOP/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 9 Feb 2009 12:08:25 -0000 1.6
+++ Makefile 7 Apr 2009 21:40:00 -0000
@@ -5,7 +5,7 @@
COMMENT= meta object protocol for perl 5
MODULES= cpan
-DISTNAME= Class-MOP-0.76
+DISTNAME= Class-MOP-0.81
CATEGORIES= devel
# perl
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/p5-Class-MOP/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo 9 Feb 2009 12:08:25 -0000 1.5
+++ distinfo 7 Apr 2009 21:40:00 -0000
@@ -1,5 +1,5 @@
-MD5 (Class-MOP-0.76.tar.gz) = eeP02o+snSyWAXd753J5yg==
-RMD160 (Class-MOP-0.76.tar.gz) = NVexK519YQNfpOxd1dlIXCseq3o=
-SHA1 (Class-MOP-0.76.tar.gz) = wbR8kc2fbEFOigSfccOSgwIMSSY=
-SHA256 (Class-MOP-0.76.tar.gz) = 3sfN7d7EQ/x+74IgUZiX7+sHnlZWURrcLqYB9D08ykM=
-SIZE (Class-MOP-0.76.tar.gz) = 154409
+MD5 (Class-MOP-0.81.tar.gz) = uV2kG4eIG43zJeVpPno/qA==
+RMD160 (Class-MOP-0.81.tar.gz) = UWgCLTUZewbC0REAF8eKT7Naw/8=
+SHA1 (Class-MOP-0.81.tar.gz) = 0rNqoJzyQ6Fm1jeZLLoXahqqNkY=
+SHA256 (Class-MOP-0.81.tar.gz) = c0gEcWesOhgXkWSUEq9nraIOoAQ2tfXjoojPdPyGmNM=
+SIZE (Class-MOP-0.81.tar.gz) = 170994
Index: patches/patch-Makefile_PL
===================================================================
RCS file: patches/patch-Makefile_PL
diff -N patches/patch-Makefile_PL
--- patches/patch-Makefile_PL 9 Feb 2009 12:08:25 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,46 +0,0 @@
-$OpenBSD: patch-Makefile_PL,v 1.1 2009/02/09 12:08:25 simon Exp $
-
-Avoid GNU make inference rules extension, from NetBSD (applied uptream
-already).
-
---- Makefile.PL.orig Thu Jan 22 23:20:41 2009
-+++ Makefile.PL Mon Feb 9 11:54:12 2009
-@@ -130,9 +130,7 @@ sub is_maintainer {
- sub get_pp_tests {
- opendir my $dh, 't' or die "Cannot read t: $!";
-
-- return map {
-- File::Spec->catfile('t', "pp_${_}")
-- } grep { $_ !~ /^99/ } grep {/^\d.+\.t$/} readdir $dh;
-+ return grep { $_ !~ /^99/ } grep {/^\d.+\.t$/} readdir $dh;
- }
-
- # This is EUMM voodoo
-@@ -149,9 +147,17 @@ sub init {
- package MY;
-
- sub postamble {
-- my $pp_tests = join q{ }, ::get_pp_tests();
-+ my @test_files = ::get_pp_tests();
-+ my $pp_tests = join q{ }, map { File::Spec->catfile('t', "pp_${_}") }
@test_files;
-+ my @pp_test_targets = join qq{\n}, map {
-+ my $source = File::Spec->catfile('t', ${_});
-+ File::Spec->catfile('t', "pp_${_}") . q{: }
-+ . qq{$source t/header_pp.inc\n\t}
-+ . q{$(NOECHO) $(ABSPERLRUN) "-MExtUtils::Command" -e cat
t/header_pp.inc }
-+ . $source . q{ > $...@} . qq{\n}
-+ } @test_files;
- my $test_dep = $::has_compiler && ::is_maintainer()
-- ? 'pure_all :: pp_tests'
-+ ? qq{pure_all :: pp_tests\n} . join qq{\n}, @pp_test_targets
- : '';
-
- return <<"EOM"
-@@ -159,7 +165,5 @@ pp_tests: ${pp_tests}
-
- ${test_dep}
-
--t/pp_%: t/% t/header_pp.inc
--\t\$(NOECHO) \$(ABSPERLRUN) "-MExtUtils::Command" -e cat t/header_pp.inc \$<
> \$@
- EOM
- }
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/p5-Moose/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 10 Feb 2009 10:31:32 -0000 1.6
+++ Makefile 7 Apr 2009 21:49:38 -0000
@@ -3,7 +3,7 @@
COMMENT= complete modern object system for perl 5
MODULES= cpan
-DISTNAME= Moose-0.68
+DISTNAME= Moose-0.74
CATEGORIES= devel
# perl
@@ -14,17 +14,22 @@
CPAN_AUTHOR= DROLSKY
-BUILD_DEPENDS= ${RUN_DEPENDS}
-RUN_DEPENDS= :p5-Class-MOP->=0.76:devel/p5-Class-MOP \
+BUILD_DEPENDS= ${RUN_DEPENDS} \
+ ::devel/p5-Task-Weaken
+RUN_DEPENDS= :p5-Class-MOP->=0.79:devel/p5-Class-MOP \
::devel/p5-List-MoreUtils \
- ::devel/p5-Sub-Exporter
+ ::devel/p5-Sub-Exporter \
+ ::devel/p5-Data-OptList
REGRESS_DEPENDS=:p5-Test-Warn->=0.10:devel/p5-Test-Warn \
::devel/p5-Test-LongString \
::devel/p5-Test-Exception \
::devel/p5-Test-Output \
+ ::devel/p5-Test-Deep \
::textproc/p5-Regexp-Common \
+ ::devel/p5-Module-Refresh \
::devel/p5-Locale-US \
+ ::devel/p5-IO-String \
::www/p5-libwww \
::www/p5-URI
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/p5-Moose/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo 10 Feb 2009 10:31:33 -0000 1.5
+++ distinfo 7 Apr 2009 21:49:38 -0000
@@ -1,5 +1,5 @@
-MD5 (Moose-0.68.tar.gz) = hxDjUBKST41JsPW6mU4yjA==
-RMD160 (Moose-0.68.tar.gz) = Ri9TrNbBBJrrrOKWlKmqJu4RoGE=
-SHA1 (Moose-0.68.tar.gz) = VkeLtLnG85qg1Fzrssp7yTG/VPI=
-SHA256 (Moose-0.68.tar.gz) = ISsymrY5YLyfDUUZ+6ct+r5BqdSDJASCnfRsDzZSl1k=
-SIZE (Moose-0.68.tar.gz) = 285870
+MD5 (Moose-0.74.tar.gz) = enRxJSybERwSHUZpyiER6Q==
+RMD160 (Moose-0.74.tar.gz) = lxAFMuH7+L6TPGJgRX6Fi79iJCI=
+SHA1 (Moose-0.74.tar.gz) = VQVtWZpkL6O7tchN+Oe70P1A1Tw=
+SHA256 (Moose-0.74.tar.gz) = P1nZH0SgIgDOq1qv4Eo33x0Lv579yiCOMIa4MZa4ugM=
+SIZE (Moose-0.74.tar.gz) = 314495
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/p5-Moose/pkg/PLIST,v
retrieving revision 1.4
diff -u -r1.4 PLIST
--- pkg/PLIST 10 Feb 2009 10:31:33 -0000 1.4
+++ pkg/PLIST 7 Apr 2009 21:49:38 -0000
@@ -6,6 +6,8 @@
${P5SITE}/Moose/Cookbook/Basics/
${P5SITE}/Moose/Cookbook/Basics/Recipe1.pod
${P5SITE}/Moose/Cookbook/Basics/Recipe10.pod
+${P5SITE}/Moose/Cookbook/Basics/Recipe11.pod
+${P5SITE}/Moose/Cookbook/Basics/Recipe12.pod
${P5SITE}/Moose/Cookbook/Basics/Recipe2.pod
${P5SITE}/Moose/Cookbook/Basics/Recipe3.pod
${P5SITE}/Moose/Cookbook/Basics/Recipe4.pod
@@ -25,9 +27,12 @@
${P5SITE}/Moose/Cookbook/Meta/Recipe3.pod
${P5SITE}/Moose/Cookbook/Meta/Recipe4.pod
${P5SITE}/Moose/Cookbook/Meta/Recipe5.pod
+${P5SITE}/Moose/Cookbook/Meta/Recipe6.pod
+${P5SITE}/Moose/Cookbook/Meta/Recipe7.pod
${P5SITE}/Moose/Cookbook/Roles/
${P5SITE}/Moose/Cookbook/Roles/Recipe1.pod
${P5SITE}/Moose/Cookbook/Roles/Recipe2.pod
+${P5SITE}/Moose/Cookbook/Roles/Recipe3.pod
${P5SITE}/Moose/Cookbook/Snack/
${P5SITE}/Moose/Cookbook/Snack/Keywords.pod
${P5SITE}/Moose/Cookbook/Snack/Types.pod
@@ -46,7 +51,9 @@
${P5SITE}/Moose/Manual/Classes.pod
${P5SITE}/Moose/Manual/Concepts.pod
${P5SITE}/Moose/Manual/Construction.pod
+${P5SITE}/Moose/Manual/Contributing.pod
${P5SITE}/Moose/Manual/Delegation.pod
+${P5SITE}/Moose/Manual/Delta.pod
${P5SITE}/Moose/Manual/MOP.pod
${P5SITE}/Moose/Manual/MethodModifiers.pod
${P5SITE}/Moose/Manual/MooseX.pod
@@ -105,6 +112,8 @@
@man man/man3p/Moose::Cookbook.3p
@man man/man3p/Moose::Cookbook::Basics::Recipe1.3p
@man man/man3p/Moose::Cookbook::Basics::Recipe10.3p
+...@man man/man3p/Moose::Cookbook::Basics::Recipe11.3p
+...@man man/man3p/Moose::Cookbook::Basics::Recipe12.3p
@man man/man3p/Moose::Cookbook::Basics::Recipe2.3p
@man man/man3p/Moose::Cookbook::Basics::Recipe3.3p
@man man/man3p/Moose::Cookbook::Basics::Recipe4.3p
@@ -122,8 +131,11 @@
@man man/man3p/Moose::Cookbook::Meta::Recipe3.3p
@man man/man3p/Moose::Cookbook::Meta::Recipe4.3p
@man man/man3p/Moose::Cookbook::Meta::Recipe5.3p
+...@man man/man3p/Moose::Cookbook::Meta::Recipe6.3p
+...@man man/man3p/Moose::Cookbook::Meta::Recipe7.3p
@man man/man3p/Moose::Cookbook::Roles::Recipe1.3p
@man man/man3p/Moose::Cookbook::Roles::Recipe2.3p
+...@man man/man3p/Moose::Cookbook::Roles::Recipe3.3p
@man man/man3p/Moose::Cookbook::Snack::Keywords.3p
@man man/man3p/Moose::Cookbook::Snack::Types.3p
@man man/man3p/Moose::Cookbook::Style.3p
@@ -139,7 +151,9 @@
@man man/man3p/Moose::Manual::Classes.3p
@man man/man3p/Moose::Manual::Concepts.3p
@man man/man3p/Moose::Manual::Construction.3p
+...@man man/man3p/Moose::Manual::Contributing.3p
@man man/man3p/Moose::Manual::Delegation.3p
+...@man man/man3p/Moose::Manual::Delta.3p
@man man/man3p/Moose::Manual::MOP.3p
@man man/man3p/Moose::Manual::MethodModifiers.3p
@man man/man3p/Moose::Manual::MooseX.3p