Faker Fun

Faker Gem from my buddy Ben now has a new update. It’s at version 0.2.1 now and according to Ben, here is the list of changes:

* 1 major enhancement:
  * Dropped facets to avoid conflict with ActiveSupport
* 2 minor enhancements:
  * Changed the output of user_name to randomly separate with a . or _
  * Added a few tests

Here’s something I did just for fun. I wanted to see what names come out of this gem. Try this for yourself by starting IRB do the following.

?> require 'faker'
=> true
>> a = Faker::Name
=> Faker::Name
>> puts a.name
Reed Walker II
=> nil
>> puts a.name
Emmalee Muller
=> nil
>> puts a.name
Mr. Emily Metz
=> nil
>> puts a.name
Ryley McDermott MD
=> nil
>> puts a.name
Howard Schimmel
=> nil
>> puts a.name
Taurean Wintheiser MD
=> nil
>> puts a.name
Palma Wisozk
=> nil

By keeping entering puts a.name, it will give you different random names each time. My little exercise gave me two doctors in just short repetition. I would like to see what others are getting. Please post yours in the comment section.

Comments

Leave a Reply

You must be logged in to post a comment.