Faker Danish Extension

57 views
Skip to first unread message

Jesper Rønn-Jensen

unread,
Nov 14, 2008, 12:49:56 AM11/14/08
to Ruby Faker
Hey, just a short msg to let you know I created a plugin for Danish
extensions to Faker.


http://github.com/jesperronn/faker_extension_da/tree/master



from the README:

FakerExtensionDa
================

Danish names and formats built on top of the Faker gem.
Currently with
* common Danish first and last names
* Social security numbers

Installation
============
sudo gem install faker
./script/plugin install


Example
=======

User.populate 100 do |person|
person.navn = Faker::Name.da_name
person.cpr = Faker::Ssn.da_cpr
end


TODO
====
Feel free to add further support for
* Danish addresses
* Danish phone numbers
* Danish cellphone numbers

Copyright (c) 2008 [Jesper Rønn-Jensen], released under the MIT
license


Jesper Rønn-Jensen

unread,
Nov 14, 2008, 3:01:31 AM11/14/08
to Ruby Faker
One important note:

I added and modified the time extension created by Karl (see
http://groups.google.com/group/ruby-faker/msg/e0bd028abb91b223 )

AND added methods to create random dates in a year interval . (these
are then used to create Danish social security numbers which are based
on birthdates)

I hope to see the time extensions put into Faker "core"

/Jesper
blog: www.justaddwater.dk
Reply all
Reply to author
Forward
0 new messages