Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blead fix #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Version history for MooseX::Method::Signatures

0.37 Mon, 12 Sep 2011 10:35:29 +0100
* Don't look in the stash for traits or types that contain :: (Jesse Luehrs).

0.36 Tue, 31 Aug 2010 23:36:19 +0200
* Avoid deprecation warnings from new Moose version by depending on
MooseX::LazyRequire 0.06 (Jeremy Carman).
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = MooseX-Method-Signatures
version = 0.36
version = 0.37
author = Florian Ragwitz <[email protected]>
author = Ash Berlin <[email protected]>
author = Cory Watson <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions lib/MooseX/Method/Signatures.pm
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ sub strip_traits {

# Let's check to make sure these traits aren't aliased locally
for my $t (@traits) {
next if $t->[0] =~ /::/;
my $class = $ctx->get_curstash_name;
my $meta = Class::MOP::class_of($class) || Moose::Meta::Class->initialize($class);
my $func = $meta->get_package_symbol('&' . $t->[0]);
Expand Down
2 changes: 1 addition & 1 deletion lib/MooseX/Method/Signatures/Meta/Method.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package MooseX::Method::Signatures::Meta::Method;
use Moose;
use Carp qw/cluck/;
use Context::Preserve;
use Parse::Method::Signatures 1.003011;
use Parse::Method::Signatures 1.003014;
use Parse::Method::Signatures::TypeConstraint;
use Scalar::Util qw/weaken/;
use Moose::Util qw/does_role/;
Expand Down
2 changes: 1 addition & 1 deletion t/errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ like($@,

eval "use Redefined;";
is($@, '', "No error");
like($warnings, qr/^Method meth1 redefined on package main at .*?\bRedefined.pm line 9$/,
like($warnings, qr/^Method meth1 redefined on package main at .*?\bRedefined.pm line 9\b/,
"Redefined method warning");
}

Expand Down