randomperson 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/randomperson/Names/FinnishFemaleFirst.rb +22 -0
- data/lib/randomperson/Names/FinnishLast.rb +23 -0
- data/lib/randomperson/Names/FinnishMaleFirst.rb +24 -0
- data/randomperson.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -3
- metadata.gz.sig +0 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class FinnishFemaleFirst < 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{ Aino Anna Anneli Annikki Hannele Helena Johanna Kaarina Liisa Maria Marjatta Selma Tuuli }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class FinnishLast < 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( Heikkinen Hämäläinen Järvinen Korhonen Koskinen Laine Mäkelä Mäkinen Nieminen Virtanen )
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class FinnishMaleFirst < 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{ Antero Ilmari Johannes Juhani Kalevi Matti Mikael Olavi Tapani Tapio }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
data/randomperson.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = <<-EOF
|
10
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
11
|
EOF
|
12
|
-
s.version = "0.0.
|
12
|
+
s.version = "0.0.12"
|
13
13
|
s.platform = Gem::Platform::RUBY
|
14
14
|
s.require_paths << 'ext'
|
15
15
|
s.required_ruby_version = ">= 1.9.1"
|
data.tar.gz.sig
CHANGED
Binary file
|
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
|
+
- 12
|
9
|
+
version: 0.0.12
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Iain Barnett
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
YK13fiGcldY=
|
36
36
|
-----END CERTIFICATE-----
|
37
37
|
|
38
|
-
date: 2010-10-
|
38
|
+
date: 2010-10-25 00:00:00 +01:00
|
39
39
|
default_executable:
|
40
40
|
dependencies: []
|
41
41
|
|
@@ -75,6 +75,9 @@ files:
|
|
75
75
|
- lib/randomperson/Names/EnglishFemaleFirst.rb
|
76
76
|
- lib/randomperson/Names/EnglishLast.rb
|
77
77
|
- lib/randomperson/Names/EnglishMaleFirst.rb
|
78
|
+
- lib/randomperson/Names/FinnishFemaleFirst.rb
|
79
|
+
- lib/randomperson/Names/FinnishLast.rb
|
80
|
+
- lib/randomperson/Names/FinnishMaleFirst.rb
|
78
81
|
- lib/randomperson/Names/FrenchFemaleFirst.rb
|
79
82
|
- lib/randomperson/Names/FrenchLast.rb
|
80
83
|
- lib/randomperson/Names/FrenchMaleFirst.rb
|
metadata.gz.sig
CHANGED
Binary file
|