[Moose-commits] r7159 - in Mouse/trunk: . lib/Mouse/Util
t/800_shikabased
sartak at code2.0beta.co.uk
sartak at code2.0beta.co.uk
Mon Dec 22 03:52:26 GMT 2008
Author: sartak
Date: 2008-12-21 19:52:26 -0800 (Sun, 21 Dec 2008)
New Revision: 7159
Modified:
Mouse/trunk/
Mouse/trunk/Changes
Mouse/trunk/lib/Mouse/Util/TypeConstraints.pm
Mouse/trunk/t/800_shikabased/005-class_type.t
Log:
r77765 at onn: sartak | 2008-12-21 22:51:55 -0500
class_type shouldn't load the class (Moose compat; no easy fix :/)
Property changes on: Mouse/trunk
___________________________________________________________________
Name: svk:merge
- 08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse:77763
08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse-trunk:61565
3efe9002-19ed-0310-8735-a98156148065:/Mouse/branches/shika-based:6997
+ 08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse:77765
08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse-trunk:61565
3efe9002-19ed-0310-8735-a98156148065:/Mouse/branches/shika-based:6997
Modified: Mouse/trunk/Changes
===================================================================
--- Mouse/trunk/Changes 2008-12-22 03:43:49 UTC (rev 7158)
+++ Mouse/trunk/Changes 2008-12-22 03:52:26 UTC (rev 7159)
@@ -9,6 +9,8 @@
* Keep track of the source package of each type
+ * class_type shouldn't load the class (Moose compat; no easy fix :/)
+
0.14 Sat Dec 20 16:53:05 2008
* POD fix
Modified: Mouse/trunk/lib/Mouse/Util/TypeConstraints.pm
===================================================================
--- Mouse/trunk/lib/Mouse/Util/TypeConstraints.pm 2008-12-22 03:43:49 UTC (rev 7158)
+++ Mouse/trunk/lib/Mouse/Util/TypeConstraints.pm 2008-12-22 03:52:26 UTC (rev 7159)
@@ -143,7 +143,6 @@
my $pkg = caller(0);
my($name, $conf) = @_;
my $class = $conf->{class};
- Mouse::load_class($class);
_subtype(
$name => where => sub { $_->isa($class) }
);
Modified: Mouse/trunk/t/800_shikabased/005-class_type.t
===================================================================
--- Mouse/trunk/t/800_shikabased/005-class_type.t 2008-12-22 03:43:49 UTC (rev 7158)
+++ Mouse/trunk/t/800_shikabased/005-class_type.t 2008-12-22 03:52:26 UTC (rev 7159)
@@ -6,6 +6,8 @@
use Mouse;
use Mouse::Util::TypeConstraints;
+ require t::lib::ClassType_Foo;
+
class_type Headers => { class => 't::lib::ClassType_Foo' };
coerce 'Headers' =>
from 'HashRef' => via {
More information about the Moose-commits
mailing list