From: Jesse Luehrs Date: Tue, 17 May 2011 21:04:54 +0000 (-0500) Subject: fix up a few spelling and pod issues X-Git-Tag: 2.0100~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=297899d15cdf00745649d439545a1e7daeac28b8;p=gitmo%2FMoose.git fix up a few spelling and pod issues --- diff --git a/dist.ini b/dist.ini index c7c1415..7efbf67 100644 --- a/dist.ini +++ b/dist.ini @@ -59,6 +59,7 @@ namespace = Moose::Meta::Method::Accessor::Native namespace = Moose::Meta::Mixin package = Moose::Meta::Object::Trait package = Moose::Util::TypeConstraints::OptimizedConstraints +package = Moose::Util::TypeConstraints::Builtins directory = benchmarks [SurgicalPodWeaver] diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 7947bfd..7f43ece 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -1055,7 +1055,7 @@ L object. It will receive a single parameter, the name of the variable to check, typically something like C<"$_"> or C<"$_[0]">. The subroutine should return a code string suitable for inlining. You can -assume that the check will be wrapped in parenthese when it is inlined. +assume that the check will be wrapped in parentheses when it is inlined. The inlined code should include any checks that your type's parent type's do. For example, the C type's inlining sub looks like this: diff --git a/lib/Moose/Util/TypeConstraints/Builtins.pm b/lib/Moose/Util/TypeConstraints/Builtins.pm index e558755..4bccd36 100644 --- a/lib/Moose/Util/TypeConstraints/Builtins.pm +++ b/lib/Moose/Util/TypeConstraints/Builtins.pm @@ -266,3 +266,12 @@ sub define_builtins { } 1; + +__END__ + +=pod + +=for pod_coverage_needs_some_pod + +=cut + diff --git a/xt/release/pod-coverage.t b/xt/release/pod-coverage.t index 7e37ada..4222060 100644 --- a/xt/release/pod-coverage.t +++ b/xt/release/pod-coverage.t @@ -188,11 +188,17 @@ my %trustme = ( 'Moose::Meta::TypeConstraint::Parameterizable' => ['.+'], 'Moose::Meta::TypeConstraint::Parameterized' => ['.+'], 'Moose::Meta::TypeConstraint::Role' => [qw( equals is_a_type_of )], - 'Moose::Meta::TypeConstraint::Union' => - [qw( compile_type_constraint coercion has_coercion)], + 'Moose::Meta::TypeConstraint::Union' => [ + qw( compile_type_constraint + coercion + has_coercion + can_be_inlined + inline_environment ) + ], 'Moose::Util' => ['add_method_modifier'], 'Moose::Util::MetaRole' => ['apply_metaclass_roles'], 'Moose::Util::TypeConstraints' => ['find_or_create_type_constraint'], + 'Moose::Util::TypeConstraints::Builtins' => ['.+'], ); for my $module ( sort @modules ) { diff --git a/xt/release/pod-spell.t b/xt/release/pod-spell.t index 4378e18..1c250a4 100644 --- a/xt/release/pod-spell.t +++ b/xt/release/pod-spell.t @@ -196,6 +196,7 @@ immutabilize immutabilized immutabilizes incrementing +inlinable inline inlines installable