Skip Menu |

This queue is for tickets about the MooseX-Types-Common CPAN distribution.

Report information
The Basics
Id: 74346
Status: resolved
Priority: 0/
Queue: MooseX-Types-Common

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.001005



Subject: NumericCode type
Date: Tue, 24 Jan 2012 16:52:55 -0600
To: bugs-moosex-types-common [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
a numeric code should be a String based type (probably SimpleStr even) that only allows [0-9]+ I have many cases of things that are simply numeric codes. including phone numbers zip codes, pin codes, etc want/need a patch? -- Caleb Cushing http://xenoterracide.com
A patch is the quickest/easiest way to get something added. On Tue Jan 24 17:53:04 2012, XENO wrote: Show quoted text
> a numeric code should be a String based type (probably SimpleStr even) > that only allows [0-9]+ I have many cases of things that are simply > numeric codes. including phone numbers zip codes, pin codes, etc > > want/need a patch?
On Thu Jan 26 06:52:01 2012, arcanez wrote: Show quoted text
> A patch is the quickest/easiest way to get something added. > > On Tue Jan 24 17:53:04 2012, XENO wrote:
> > a numeric code should be a String based type (probably SimpleStr even) > > that only allows [0-9]+ I have many cases of things that are simply > > numeric codes. including phone numbers zip codes, pin codes, etc > > > > want/need a patch?
> >
Would this be the same as NonNegativeInt? subtype NonNegativeInt, as Int, where { $_ >= 0 }, message { "$_ is not a non-negative integer" }; not to be confused with subtype PositiveInt, as Int, where { $_ > 0 }, message { "$_ is not a positive integer" }; Inlined versions left as an exercise for the reader (or until I get access to $work code on Monday).
Subject: Re: [rt.cpan.org #74346] NumericCode type
Date: Sat, 18 Feb 2012 00:14:11 -0600
To: bug-MooseX-Types-Common [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
On Fri, Feb 17, 2012 at 10:16 PM, Karen Etheridge via RT <bug-MooseX-Types-Common@rt.cpan.org> wrote: Show quoted text
> Would this be the same as NonNegativeInt?
no because 043 is not an int, but it is a numeric code, sorry haven't found the tuits to patch yet. -- Caleb Cushing http://xenoterracide.com
Subject: Re: [rt.cpan.org #74346] NumericCode type
Date: Sat, 18 Feb 2012 16:41:08 -0600
To: bug-MooseX-Types-Common [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
Here's a patch -- Caleb Cushing http://xenoterracide.com

Message body is not shown because sender requested not to inline it.

applied and released as 0.001005 On Sat Feb 18 17:41:18 2012, XENO wrote: Show quoted text
> Here's a patch