0.0
No commit activity in last 3 years
No release in over 3 years
A library for creating fictitious German address data. The addresses look real, though they are of pure random and fictitious origin.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.9.2
>= 2.9
>= 4.7.0
 Project Readme

PeterMueller¶ ↑

<img src=“https://secure.travis-ci.org/tvw/peter-mueller.png?branch=master” alt=“Build Status” />

PeterMueller is a library for creating fictitious German address data. Though pure fictitious, the address data look very real. The data is based on the most used firstnames, lastnames, towns, streets etc. in Germany.

It can be used eg. to populate a database with fictitios data.

Usage¶ ↑

Installing the Gem¶ ↑

gem install peter-mueller

Examples ¶ ↑

Creating a new Person:

require 'peter-mueller'
include PeterMueller

person = Person.new

puts person

may result to:

Heinz-Werner Hagemann

Breslauer Str. 65
24768 Rendsburg

Telefon: 04331-687536
E-Mail: heinzwerner7259@gmx.net

Creating a new Company:

company = Company.new
puts company

may result to:

Rauch GmbH

Einsteinstr. 120
60439 Frankfurt

Telefon: 069-80095510-0
E-Mail: info@rauch-gmbh.de
WWW: www.rauch-gmbh.de

Now lets create 2 employees for the same company:

company.employees(2).each do |e|
  puts "-" * 20
  puts e
end

which results to:

--------------------
Hanna Fürst

Luisenstr. 95
91126 Schwabach

Telefon: 09122-507532
Mobil: 01577-87047253
E-Mail: hanna2178@hotmail.com

Geschäftlich
Telefon: 069-80095510-100
E-Mail: hanna_fuerst@rauch-gmbh.de
--------------------
Claus-Dieter Wetzel

Eschstr. 28
25980 Sylt

Telefon: 04651-9177484
Mobil: 0170-99988691

Geschäftlich
Telefon: 069-80095510-101
E-Mail: clausdieter9865@rauch-gmbh.de

Why PeterMueller?¶ ↑

The generated addresses should not result in real addresses. Peter is probably the most used German firstname and Müller the probably most popular lastname. So PeterMueller stands for anybody and nobody. Something like that ;-)

Author¶ ↑

Thomas Volkmar Worm <tvw@s4r.de>

License¶ ↑

Copyright © 2012 Thomas Volkmar Worm <tvw@s4r.de>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.