fix spelling, whitespace, unused vars release test failures
Karen Etheridge [Sat, 14 Sep 2013 20:46:53 +0000 (13:46 -0700)]
lib/MooseX/Types/Common.pm
lib/MooseX/Types/Common/Numeric.pm
lib/MooseX/Types/Common/String.pm

index 92f894d..91ef68c 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use Carp qw/cluck/;
 
 sub import {
-    my $package = shift;
+    my $self = shift;
     return unless @_;
     cluck("Tried to import the symbols " . join(', ', @_)
         . " from MooseX::Types::Common.\nDid you mean "
index ae3e57e..5336fed 100644 (file)
@@ -144,23 +144,23 @@ default.
 
 =over
 
-=item * PositiveNum
+=item * C<PositiveNum>
 
-=item * PositiveOrZeroNum
+=item * C<PositiveOrZeroNum>
 
-=item * PositiveInt
+=item * C<PositiveInt>
 
-=item * PositiveOrZeroInt
+=item * C<PositiveOrZeroInt>
 
-=item * NegativeNum
+=item * C<NegativeNum>
 
-=item * NegativeOrZeroNum
+=item * C<NegativeOrZeroNum>
 
-=item * NegativeInt
+=item * C<NegativeInt>
 
-=item * NegativeOrZeroInt
+=item * C<NegativeOrZeroInt>
 
-=item * SingleDigit
+=item * C<SingleDigit>
 
 =back
 
index 6d34354..ac1f37a 100644 (file)
@@ -134,7 +134,7 @@ subtype LowerCaseSimpleStr,
         }
         : ()
     );
-  
+
 coerce LowerCaseSimpleStr,
   from NonEmptySimpleStr,
   via { lc };
@@ -176,46 +176,46 @@ default.
 
 =over
 
-=item * SimpleStr
+=item * C<SimpleStr>
 
-A Str with no new-line characters.
+A C<Str> with no new-line characters.
 
-=item * NonEmptySimpleStr
+=item * C<NonEmptySimpleStr>
 
-A Str with no new-line characters and length > 0
+A C<Str> with no new-line characters and length > 0
 
-=item * LowerCaseSimpleStr
+=item * C<LowerCaseSimpleStr>
 
-A Str with no new-line characters, length > 0 and no uppercase characters
-A coercion exists via C<lc> from NonEmptySimpleStr
+A C<Str> with no new-line characters, length > 0 and no uppercase characters
+A coercion exists via C<lc> from C<NonEmptySimpleStr>
 
-=item * UpperCaseSimpleStr
+=item * C<UpperCaseSimpleStr>
 
-A Str with no new-line characters, length > 0 and no lowercase characters
-A coercion exists via C<uc> from NonEmptySimpleStr
+A C<Str> with no new-line characters, length > 0 and no lowercase characters
+A coercion exists via C<uc> from C<NonEmptySimpleStr>
 
-=item * Password
+=item * C<Password>
 
-=item * StrongPassword
+=item * C<StrongPassword>
 
-=item * NonEmptyStr
+=item * C<NonEmptyStr>
 
-A Str with length > 0
+A C<Str> with length > 0
 
-=item * LowerCaseStr
+=item * C<LowerCaseStr>
 
-A Str with length > 0 and no uppercase characters.
-A coercion exists via C<lc> from NonEmptyStr
+A C<Str> with length > 0 and no uppercase characters.
+A coercion exists via C<lc> from C<NonEmptyStr>
 
-=item * UpperCaseStr
+=item * C<UpperCaseStr>
 
-A Str with length > 0 and no lowercase characters.
-A coercion exists via C<uc> from NonEmptyStr
+A C<Str> with length > 0 and no lowercase characters.
+A coercion exists via C<uc> from C<NonEmptyStr>
 
-=item * NumericCode
+=item * C<NumericCode>
 
-A Str with no new-line characters that consists of only Numeric characters.
-Examples include, Social Security Numbers, PINs, Postal Codes, HTTP Status
+A C<Str> with no new-line characters that consists of only Numeric characters.
+Examples include, Social Security Numbers, Personal Identification Numbers, Postal Codes, HTTP Status
 Codes, etc. Supports attempting to coerce from a string that has punctuation
 in it ( e.g credit card number 4111-1111-1111-1111 ).