Skip Menu |

This queue is for tickets about the Data-Faker CPAN distribution.

Report information
The Basics
Id: 50707
Status: resolved
Priority: 0/
Queue: Data-Faker

People
Owner: WSHELDAHL [...] cpan.org
Requestors: ted [...] mielczarek.org
Cc:
AdminCc:

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



Subject: bug in Data::Faker::Internet 0.07 - 'email' provider is broken
Date: Wed, 21 Oct 2009 09:26:40 -0400
To: bug-Data-Faker [...] rt.cpan.org
From: Ted Mielczarek <ted [...] mielczarek.org>
Data::Faker::Internet registers an 'email' provider, which is nice. It also registers a 'hostname' provider, but it registers it as 'email'. This causes unexpected behavior, in that asking for a fake email sometimes gives an email, and sometimes a hostname. The simple fix is to change: __PACKAGE__->register_plugin( 'email' => [qw($domain_word.$domain_name)], ); to: __PACKAGE__->register_plugin( 'hostname' => [qw($domain_word.$domain_name)], );
On Wed Oct 21 09:27:05 2009, ted@mielczarek.org wrote: Show quoted text
> Data::Faker::Internet registers an 'email' provider, which is nice. It
also Show quoted text
> registers a 'hostname' provider, but it registers it as 'email'. This
causes Show quoted text
> unexpected behavior, in that asking for a fake email sometimes gives an > email, and sometimes a hostname.
Just got bit by this in a unit test (thankfully it didn't pop up during regression testing :^). It's unfortunate, the bug can cause big headaches and the fix is trivial.
This is resolved in Data::Faker::Internet 0.09 using the fix you suggested. Thanks for reporting this.