Skip Menu |

This queue is for tickets about the Media-Type-Simple CPAN distribution.

Report information
The Basics
Id: 66513
Status: open
Priority: 0/
Queue: Media-Type-Simple

People
Owner: Nobody in particular
Requestors: john [...] plainsmedia.com
Cc:
AdminCc:

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



Subject: bug-Media-Type-Simple
Date: Thu, 10 Mar 2011 01:53:49 -0600
To: bug-Media-Type-Simple [...] rt.cpan.org
From: John Bussjaeger <john [...] plainsmedia.com>
Version 0.02 is_type() dies from undefined if a / is not included in the type string. is_ext() handles empty strings gracefully; docs fail to specify is_type() requires a valid MIME string; it should return false on any invalid input string. failed test: require Media::Type::Simple; my $obj= Media::Type::Simple->new(); my $test= $obj->is_type('hello'); print $test? "ok" : "not ok";
On Thu Mar 10 02:54:01 2011, john@plainsmedia.com wrote: Show quoted text
> Version 0.02 > > is_type() dies from undefined if a / is not included in the type string. > is_ext() handles empty strings gracefully; docs fail to specify > is_type() requires a valid MIME string; it should return false on any > invalid input string. > > failed test: > require Media::Type::Simple; > my $obj= Media::Type::Simple->new(); > my $test= $obj->is_type('hello'); > print $test? "ok" : "not ok"; >
I need to think about this for a bit. New git repo is at https://github.com/robrwo/Media-Types-Simple