[libmoosex-lazyrequire-perl] 01/02: Use modern MetaRole API to avoid warnings from next Moose
Intrigeri
intrigeri at moszumanska.debian.org
Wed Aug 27 21:25:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to annotated tag 0.06
in repository libmoosex-lazyrequire-perl.
commit eedd634d28d4a4e9ab7984cea5dab3755e1db259
Author: Dave Rolsky <autarch at urth.org>
Date: Wed Jul 14 15:30:33 2010 -0500
Use modern MetaRole API to avoid warnings from next Moose
---
Changes | 3 +++
lib/MooseX/LazyRequire.pm | 15 ++++++---------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Changes b/Changes
index 749d4af..af5179c 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+0.06
+ * Updated to avoid warnings from Moose 1.09 (Dave Rolsky).
+
0.05 Fri, 07 May 2010 19:40:10 +0200
* Improve distribution metadata.
diff --git a/lib/MooseX/LazyRequire.pm b/lib/MooseX/LazyRequire.pm
index 3775935..57551b1 100644
--- a/lib/MooseX/LazyRequire.pm
+++ b/lib/MooseX/LazyRequire.pm
@@ -1,6 +1,7 @@
package MooseX::LazyRequire;
# ABSTRACT: Required attributes which fail only when trying to use them
+use Moose 0.94 ();
use Moose::Exporter;
use aliased 0.30 'MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire';
use namespace::autoclean;
@@ -52,15 +53,11 @@ yourself:
=cut
-Moose::Exporter->setup_import_methods;
-
-sub init_meta {
- my ($class, %options) = @_;
- return Moose::Util::MetaRole::apply_metaclass_roles(
- for_class => $options{for_class},
- attribute_metaclass_roles => [LazyRequire],
- );
-}
+Moose::Exporter->setup_import_methods(
+ class_metaroles => {
+ attribute => [LazyRequire],
+ },
+);
1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-lazyrequire-perl.git
More information about the Pkg-perl-cvs-commits
mailing list