randomperson 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/randomperson/Names/GermanFemaleFirst.rb +21 -0
- data/lib/randomperson/Names/GermanLast.rb +23 -0
- data/lib/randomperson/Names/GermanMaleFirst.rb +21 -0
- data/randomperson.gemspec +4 -1
- metadata +7 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class GermanFemaleFirst < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand },
|
9
|
+
}
|
10
|
+
|
11
|
+
@formats_ratiod = [ (0..99) ]
|
12
|
+
setupnames
|
13
|
+
end
|
14
|
+
|
15
|
+
def setupnames
|
16
|
+
@names = %w{ Andrea Angelika Anja Anke Anna Annett Antje Barbara Birgit Brigitte Christin Christina Claudia Daniela Diana Doreen Franziska Gabriele Heike Ines Jana Janina Jennifer Jessica Julia Juliane Karin Karolin Katharina Kathrin Katja Kerstin Klaudia Kristin Laura Lea Lena Lisa Mandy Manuela Maria Marie Marina Martina Melanie Monika Nadine Nicole Petra Sabine Sabrina Sandra Sara Silke Simone Sophia Stefanie Susanne Tanja Ulrike Ursula Uta Vanessa Yvonne }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class GermanLast < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand }
|
9
|
+
}
|
10
|
+
|
11
|
+
@formats_ratiod = [ (0..99) ]
|
12
|
+
setupnames
|
13
|
+
end
|
14
|
+
|
15
|
+
def setupnames
|
16
|
+
@names = %w(Müller Schmidt Schneider Fischer Weber Meyer Wagner Becker Schulz Hoffmann Schäfer Koch Bauer Richter Klein Wolf Schröder Neumann Schwarz Zimmermann Braun Krüger Hofmann Hartmann Lange Schmitt Werner Schmitz Krause Meier Lehmann Schmid Schulze Maier Köhler Herrmann König Walter Mayer Huber Kaiser Fuchs Peters Lang Scholz Möller Weiß Jung Hahn Schubert Vogel Friedrich Keller Günther Frank Berger Winkler Roth Beck Lorenz Baumann Franke Albrecht Schuster Simon Ludwig Böhm Winter Kraus Martin Schumacher Krämer Vogt Stein Jäger Otto Sommer Groß Seidel Heinrich Brandt Haas Schreiber Graf Schulte Dietrich Ziegler Kuhn Kühn Pohl Engel Horn Busch Bergmann Thomas Voigt Sauer Arnold Wolff Pfeiffer )
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class GermanMaleFirst < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand },
|
9
|
+
}
|
10
|
+
|
11
|
+
@formats_ratiod = [ (0..99) ]
|
12
|
+
setupnames
|
13
|
+
end
|
14
|
+
|
15
|
+
def setupnames
|
16
|
+
@names = %w{ Alexander Andreas Benjamin Bernd Christian Daniel David Dennis Dieter Dirk Dominik Eric Felix Florian Frank Jan Jens Jonas Jörg Jürgen Kevin Klaus Kristian Leon Lukas Marcel Marco Mario Markus Martin Mathias Max Maximilian Michael Mike Niklas Patrick Paul Peter Philipp Ralf René Robert Sebastian Stefan Steffen Sven Thomas Thorsten Tim Tobias Tom Ulrich Uwe Wolfgang }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
data/randomperson.gemspec
CHANGED
@@ -6,7 +6,10 @@ $:.unshift lib unless $:.include?(lib)
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "randomperson"
|
8
8
|
s.summary = "A gem for generating random persons :)"
|
9
|
-
s.
|
9
|
+
s.description = <<-EOF
|
10
|
+
RandomPerson is a port to Ruby of Perl's Data::RandomPerson. Use it to generate random persons given various parameters, such as country, age and gender ratio.
|
11
|
+
EOF
|
12
|
+
s.version = "0.0.11"
|
10
13
|
s.platform = Gem::Platform::RUBY
|
11
14
|
s.require_paths << 'ext'
|
12
15
|
s.required_ruby_version = ">= 1.9.1"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 11
|
9
|
+
version: 0.0.11
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Iain Barnett
|
@@ -35,11 +35,11 @@ cert_chain:
|
|
35
35
|
YK13fiGcldY=
|
36
36
|
-----END CERTIFICATE-----
|
37
37
|
|
38
|
-
date: 2010-
|
38
|
+
date: 2010-10-02 00:00:00 +01:00
|
39
39
|
default_executable:
|
40
40
|
dependencies: []
|
41
41
|
|
42
|
-
description:
|
42
|
+
description: " RandomPerson is a port to Ruby of Perl's Data::RandomPerson. Use it to generate random persons given various parameters, such as country, age and gender ratio.\n"
|
43
43
|
email: iainspeed @nospam@ gmail.com
|
44
44
|
executables: []
|
45
45
|
|
@@ -78,6 +78,9 @@ files:
|
|
78
78
|
- lib/randomperson/Names/FrenchFemaleFirst.rb
|
79
79
|
- lib/randomperson/Names/FrenchLast.rb
|
80
80
|
- lib/randomperson/Names/FrenchMaleFirst.rb
|
81
|
+
- lib/randomperson/Names/GermanFemaleFirst.rb
|
82
|
+
- lib/randomperson/Names/GermanLast.rb
|
83
|
+
- lib/randomperson/Names/GermanMaleFirst.rb
|
81
84
|
- lib/randomperson/Names/ScottishFemaleFirst.rb
|
82
85
|
- lib/randomperson/Names/ScottishLast.rb
|
83
86
|
- lib/randomperson/Names/ScottishMaleFirst.rb
|
metadata.gz.sig
CHANGED
Binary file
|