[libhttp-throwable-perl] 01/11: Class::MOP::load_class is deprecated in Moose 2.1100
Jonas Smedegaard
js at alioth.debian.org
Mon Sep 30 08:15:46 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libhttp-throwable-perl.
commit 0898444d21c78e03ebc1840b41dbd3c0f3d3dd8e
Author: Karen Etheridge <ether at cpan.org>
Date: Sun Sep 15 14:02:01 2013 -0700
Class::MOP::load_class is deprecated in Moose 2.1100
---
Changes | 1 +
lib/HTTP/Throwable/Factory.pm | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Changes b/Changes
index 70fec73..9ad0206 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
Revision history for Perl extension HTTP::Throwable
{{$NEXT}}
+ - removed use of deprecated Class::MOP::load_class
0.016 2011-06-17 20:39:10 America/New_York
- fix a test regex to work with DOS-style paths
diff --git a/lib/HTTP/Throwable/Factory.pm b/lib/HTTP/Throwable/Factory.pm
index 1aa8efd..0e2cef5 100644
--- a/lib/HTTP/Throwable/Factory.pm
+++ b/lib/HTTP/Throwable/Factory.pm
@@ -8,6 +8,7 @@ use Sub::Exporter -setup => {
http_exception => Sub::Exporter::Util::curry_method('new_exception'),
],
};
+use Module::Runtime qw(use_module);
sub throw {
my $factory = shift;
@@ -64,7 +65,7 @@ sub class_for {
@roles = $self->roles_for_no_ident;
}
- Class::MOP::load_class($_) for @roles;
+ use_module($_) for @roles;
my $class = Moose::Meta::Class->create_anon_class(
superclasses => [ $self->base_class ],
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhttp-throwable-perl.git
More information about the Pkg-perl-cvs-commits
mailing list