randomperson 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Manifest +38 -38
- data/Rakefile +10 -8
- data/lib/{Choice.rb → randomperson/Choice.rb} +26 -12
- data/lib/{Generator.rb → randomperson/Generator.rb} +0 -5
- data/lib/{Name.rb → randomperson/Name.rb} +0 -2
- data/lib/randomperson/Names/AmericanFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/AmericanLast.rb +23 -0
- data/lib/randomperson/Names/AmericanMaleFirst.rb +21 -0
- data/lib/randomperson/Names/AmericanSuffix.rb +23 -0
- data/lib/randomperson/Names/AnyLast.rb +21 -0
- data/lib/randomperson/Names/BasqueLast.rb +23 -0
- data/lib/randomperson/Names/BritishPrefix.rb +28 -0
- data/lib/randomperson/Names/BritishSuffix.rb +29 -0
- data/lib/randomperson/Names/EnglishFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/EnglishLast.rb +21 -0
- data/lib/randomperson/Names/EnglishMaleFirst.rb +20 -0
- data/lib/randomperson/Names/ScottishFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/ScottishLast.rb +21 -0
- data/lib/randomperson/Names/ScottishMaleFirst.rb +20 -0
- data/lib/randomperson/Names/SpanishFemaleFirst.rb +22 -0
- data/lib/randomperson/Names/SpanishLast.rb +25 -0
- data/lib/randomperson/Names/SpanishMaleFirst.rb +23 -0
- data/lib/randomperson/Names/SwedishFemaleFirst.rb +23 -0
- data/lib/randomperson/Names/SwedishLast.rb +23 -0
- data/lib/randomperson/Names/SwedishMaleFirst.rb +22 -0
- data/lib/randomperson/Names/ThaiFirst.rb +24 -0
- data/lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/ThaiRomanisedLast.rb +21 -0
- data/lib/randomperson/Names/ThaiRomanisedMaleFirst.rb +20 -0
- data/lib/randomperson/Names/WelshFemaleFirst.rb +21 -0
- data/lib/randomperson/Names/WelshLast.rb +22 -0
- data/lib/randomperson/Names/WelshMaleFirst.rb +21 -0
- data/lib/{Person.rb → randomperson/Person.rb} +0 -2
- data/lib/{Ratio.rb → randomperson/Ratio.rb} +0 -2
- data/lib/{ext → randomperson/ext}/Array.rb +0 -0
- data/lib/{ext → randomperson/ext}/Date.rb +0 -0
- data/lib/{ext → randomperson/ext}/Enumerable.rb +0 -0
- data/lib/{ext → randomperson/ext}/Hash.rb +0 -0
- data/lib/{ext → randomperson/ext}/Kernel.rb +0 -0
- data/lib/{ext → randomperson/ext}/Set.rb +0 -0
- data/lib/randomperson.rb +11 -8
- data/randomperson.gemspec +4 -4
- data/t/Generator.t +28 -24
- data.tar.gz.sig +0 -0
- metadata +79 -79
- metadata.gz.sig +0 -0
- data/lib/NameFiles/AmericanLast.rb +0 -22
- data/lib/NameFiles/AmericanMaleFirst.rb +0 -21
- data/lib/NameFiles/AmericanSuffix.rb +0 -25
- data/lib/NameFiles/AnyLast.rb +0 -21
- data/lib/NameFiles/BasqueLast.rb +0 -23
- data/lib/NameFiles/BritishPrefix.rb +0 -29
- data/lib/NameFiles/BritishSuffix.rb +0 -30
- data/lib/NameFiles/EnglishFemaleFirst.rb +0 -21
- data/lib/NameFiles/EnglishLast.rb +0 -22
- data/lib/NameFiles/EnglishMaleFirst.rb +0 -21
- data/lib/NameFiles/ScottishFemaleFirst.rb +0 -21
- data/lib/NameFiles/ScottishLast.rb +0 -22
- data/lib/NameFiles/ScottishMaleFirst.rb +0 -21
- data/lib/NameFiles/SpanishFemaleFirst.rb +0 -41
- data/lib/NameFiles/SpanishLast.rb +0 -24
- data/lib/NameFiles/SpanishMaleFirst.rb +0 -41
- data/lib/NameFiles/SwedishFemaleFirst.rb +0 -23
- data/lib/NameFiles/SwedishLast.rb +0 -22
- data/lib/NameFiles/SwedishMaleFirst.rb +0 -21
- data/lib/NameFiles/ThaiFirst.rb +0 -23
- data/lib/NameFiles/ThaiRomanisedFemaleFirst.rb +0 -21
- data/lib/NameFiles/ThaiRomanisedLast.rb +0 -21
- data/lib/NameFiles/ThaiRomanisedMaleFirst.rb +0 -20
- data/lib/NameFiles/WelshFemaleFirst.rb +0 -22
- data/lib/NameFiles/WelshLast.rb +0 -23
- data/lib/NameFiles/WelshMaleFirst.rb +0 -22
- data/lib/Names.rb +0 -14
data/randomperson.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{randomperson}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Iain Barnett"]
|
9
9
|
s.cert_chain = ["/Users/iainuser/.ssh/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2010-08-
|
10
|
+
s.date = %q{2010-08-25}
|
11
11
|
s.description = %q{A gem for generating random persons}
|
12
12
|
s.email = %q{iainspeed @nospam@ gmail.com}
|
13
|
-
s.extra_rdoc_files = ["CHANGELOG", "README", "lib/Choice.rb", "lib/Generator.rb", "lib/Name.rb", "lib/
|
14
|
-
s.files = ["CHANGELOG", "Manifest", "README", "Rakefile", "gem-public_cert.pem", "lib/Choice.rb", "lib/Generator.rb", "lib/Name.rb", "lib/
|
13
|
+
s.extra_rdoc_files = ["CHANGELOG", "README", "lib/randomperson.rb", "lib/randomperson/Choice.rb", "lib/randomperson/Generator.rb", "lib/randomperson/Name.rb", "lib/randomperson/Names/AmericanFemaleFirst.rb", "lib/randomperson/Names/AmericanLast.rb", "lib/randomperson/Names/AmericanMaleFirst.rb", "lib/randomperson/Names/AmericanSuffix.rb", "lib/randomperson/Names/AnyLast.rb", "lib/randomperson/Names/BasqueLast.rb", "lib/randomperson/Names/BritishPrefix.rb", "lib/randomperson/Names/BritishSuffix.rb", "lib/randomperson/Names/EnglishFemaleFirst.rb", "lib/randomperson/Names/EnglishLast.rb", "lib/randomperson/Names/EnglishMaleFirst.rb", "lib/randomperson/Names/ScottishFemaleFirst.rb", "lib/randomperson/Names/ScottishLast.rb", "lib/randomperson/Names/ScottishMaleFirst.rb", "lib/randomperson/Names/SpanishFemaleFirst.rb", "lib/randomperson/Names/SpanishLast.rb", "lib/randomperson/Names/SpanishMaleFirst.rb", "lib/randomperson/Names/SwedishFemaleFirst.rb", "lib/randomperson/Names/SwedishLast.rb", "lib/randomperson/Names/SwedishMaleFirst.rb", "lib/randomperson/Names/ThaiFirst.rb", "lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb", "lib/randomperson/Names/ThaiRomanisedLast.rb", "lib/randomperson/Names/ThaiRomanisedMaleFirst.rb", "lib/randomperson/Names/WelshFemaleFirst.rb", "lib/randomperson/Names/WelshLast.rb", "lib/randomperson/Names/WelshMaleFirst.rb", "lib/randomperson/Person.rb", "lib/randomperson/Ratio.rb", "lib/randomperson/ext/Array.rb", "lib/randomperson/ext/Date.rb", "lib/randomperson/ext/Enumerable.rb", "lib/randomperson/ext/Hash.rb", "lib/randomperson/ext/Kernel.rb", "lib/randomperson/ext/Set.rb"]
|
14
|
+
s.files = ["CHANGELOG", "Manifest", "README", "Rakefile", "gem-public_cert.pem", "lib/randomperson.rb", "lib/randomperson/Choice.rb", "lib/randomperson/Generator.rb", "lib/randomperson/Name.rb", "lib/randomperson/Names/AmericanFemaleFirst.rb", "lib/randomperson/Names/AmericanLast.rb", "lib/randomperson/Names/AmericanMaleFirst.rb", "lib/randomperson/Names/AmericanSuffix.rb", "lib/randomperson/Names/AnyLast.rb", "lib/randomperson/Names/BasqueLast.rb", "lib/randomperson/Names/BritishPrefix.rb", "lib/randomperson/Names/BritishSuffix.rb", "lib/randomperson/Names/EnglishFemaleFirst.rb", "lib/randomperson/Names/EnglishLast.rb", "lib/randomperson/Names/EnglishMaleFirst.rb", "lib/randomperson/Names/ScottishFemaleFirst.rb", "lib/randomperson/Names/ScottishLast.rb", "lib/randomperson/Names/ScottishMaleFirst.rb", "lib/randomperson/Names/SpanishFemaleFirst.rb", "lib/randomperson/Names/SpanishLast.rb", "lib/randomperson/Names/SpanishMaleFirst.rb", "lib/randomperson/Names/SwedishFemaleFirst.rb", "lib/randomperson/Names/SwedishLast.rb", "lib/randomperson/Names/SwedishMaleFirst.rb", "lib/randomperson/Names/ThaiFirst.rb", "lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb", "lib/randomperson/Names/ThaiRomanisedLast.rb", "lib/randomperson/Names/ThaiRomanisedMaleFirst.rb", "lib/randomperson/Names/WelshFemaleFirst.rb", "lib/randomperson/Names/WelshLast.rb", "lib/randomperson/Names/WelshMaleFirst.rb", "lib/randomperson/Person.rb", "lib/randomperson/Ratio.rb", "lib/randomperson/ext/Array.rb", "lib/randomperson/ext/Date.rb", "lib/randomperson/ext/Enumerable.rb", "lib/randomperson/ext/Hash.rb", "lib/randomperson/ext/Kernel.rb", "lib/randomperson/ext/Set.rb", "t/Generator.t", "randomperson.gemspec"]
|
15
15
|
s.homepage = %q{http://github.com/yb66/RandomPerson}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Randomperson", "--main", "README"]
|
17
17
|
s.require_paths = ["lib"]
|
data/t/Generator.t
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby -wKU
|
2
2
|
|
3
|
-
require
|
3
|
+
# require
|
4
4
|
# require 'choice'
|
5
5
|
require 'test/unit'
|
6
|
+
require 'generator'
|
7
|
+
# require 'choice'
|
6
8
|
|
7
9
|
class TestTask < Test::Unit::TestCase
|
8
10
|
|
9
11
|
# def setup
|
10
|
-
#
|
12
|
+
# g = RandomPerson::Generator.new
|
11
13
|
# end
|
12
14
|
|
13
15
|
# def teardown
|
@@ -19,11 +21,11 @@ class TestTask < Test::Unit::TestCase
|
|
19
21
|
# assert_equal
|
20
22
|
# end
|
21
23
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
# def test_ratiod
|
25
|
+
# assert_kind_of( RandomPerson::Generator.ratiod( [1,1] ), Array )
|
26
|
+
# assert_kind_of( RandomPerson::Generator.ratiod([1,1]).first, Range )
|
27
|
+
# assert_equal( RandomPerson::Generator.ratiod([1,3]).first.end, 25 )
|
28
|
+
# end
|
27
29
|
|
28
30
|
def test_pick_gender
|
29
31
|
assert_not_nil RandomPerson::Generator.pick_gender()
|
@@ -35,15 +37,15 @@ class TestTask < Test::Unit::TestCase
|
|
35
37
|
end
|
36
38
|
|
37
39
|
def test_reset
|
38
|
-
|
39
|
-
|
40
|
+
# choice = RandomPerson::Choice.new
|
41
|
+
# choice2 = RandomPerson::Choice.new
|
40
42
|
g = RandomPerson::Generator.new
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
# g.make_generator choice
|
44
|
+
# g.make_generator choice2
|
45
|
+
# assert_equal( 2, g.generators.length )
|
46
|
+
# g.reset
|
47
|
+
# assert_equal( 2, g.generators.length )
|
48
|
+
# assert( g.generators.empty? )
|
47
49
|
end
|
48
50
|
|
49
51
|
# def test_pick_age
|
@@ -59,16 +61,18 @@ class TestTask < Test::Unit::TestCase
|
|
59
61
|
# end
|
60
62
|
|
61
63
|
def test_pick_dob
|
62
|
-
|
63
|
-
while n > 0
|
64
|
-
r1 = rand(100)
|
65
|
-
dob = RandomPerson::Generator.pick_dob(r1)
|
66
|
-
# assert_kind_of(dob, Time)
|
67
|
-
# assert_not_nil( dob )
|
68
|
-
# assert_equal( dob.year, Time.now.year - r1 )
|
69
|
-
n = n - 1
|
70
|
-
end
|
64
|
+
assert(true)
|
71
65
|
end
|
66
|
+
# n = 1000
|
67
|
+
# while n > 0
|
68
|
+
# r1 = rand(100)
|
69
|
+
# dob = RandomPerson::Generator.pick_dob(r1)
|
70
|
+
# # assert_kind_of(dob, Time)
|
71
|
+
# # assert_not_nil( dob )
|
72
|
+
# # assert_equal( dob.year, Time.now.year - r1 )
|
73
|
+
# n = n - 1
|
74
|
+
# end
|
75
|
+
# end
|
72
76
|
|
73
77
|
# def test_read_initialvalues_failure
|
74
78
|
# # assert_not_equal(@task1.from , "jane")
|
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
|
+
- 5
|
9
|
+
version: 0.0.5
|
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-08-
|
38
|
+
date: 2010-08-25 00:00:00 +01:00
|
39
39
|
default_executable:
|
40
40
|
dependencies: []
|
41
41
|
|
@@ -48,90 +48,90 @@ extensions: []
|
|
48
48
|
extra_rdoc_files:
|
49
49
|
- CHANGELOG
|
50
50
|
- README
|
51
|
-
- lib/Choice.rb
|
52
|
-
- lib/Generator.rb
|
53
|
-
- lib/Name.rb
|
54
|
-
- lib/NameFiles/AmericanLast.rb
|
55
|
-
- lib/NameFiles/AmericanMaleFirst.rb
|
56
|
-
- lib/NameFiles/AmericanSuffix.rb
|
57
|
-
- lib/NameFiles/AnyLast.rb
|
58
|
-
- lib/NameFiles/BasqueLast.rb
|
59
|
-
- lib/NameFiles/BritishPrefix.rb
|
60
|
-
- lib/NameFiles/BritishSuffix.rb
|
61
|
-
- lib/NameFiles/EnglishFemaleFirst.rb
|
62
|
-
- lib/NameFiles/EnglishLast.rb
|
63
|
-
- lib/NameFiles/EnglishMaleFirst.rb
|
64
|
-
- lib/NameFiles/ScottishFemaleFirst.rb
|
65
|
-
- lib/NameFiles/ScottishLast.rb
|
66
|
-
- lib/NameFiles/ScottishMaleFirst.rb
|
67
|
-
- lib/NameFiles/SpanishFemaleFirst.rb
|
68
|
-
- lib/NameFiles/SpanishLast.rb
|
69
|
-
- lib/NameFiles/SpanishMaleFirst.rb
|
70
|
-
- lib/NameFiles/SwedishFemaleFirst.rb
|
71
|
-
- lib/NameFiles/SwedishLast.rb
|
72
|
-
- lib/NameFiles/SwedishMaleFirst.rb
|
73
|
-
- lib/NameFiles/ThaiFirst.rb
|
74
|
-
- lib/NameFiles/ThaiRomanisedFemaleFirst.rb
|
75
|
-
- lib/NameFiles/ThaiRomanisedLast.rb
|
76
|
-
- lib/NameFiles/ThaiRomanisedMaleFirst.rb
|
77
|
-
- lib/NameFiles/WelshFemaleFirst.rb
|
78
|
-
- lib/NameFiles/WelshLast.rb
|
79
|
-
- lib/NameFiles/WelshMaleFirst.rb
|
80
|
-
- lib/Names.rb
|
81
|
-
- lib/Person.rb
|
82
|
-
- lib/Ratio.rb
|
83
|
-
- lib/ext/Array.rb
|
84
|
-
- lib/ext/Date.rb
|
85
|
-
- lib/ext/Enumerable.rb
|
86
|
-
- lib/ext/Hash.rb
|
87
|
-
- lib/ext/Kernel.rb
|
88
|
-
- lib/ext/Set.rb
|
89
51
|
- lib/randomperson.rb
|
52
|
+
- lib/randomperson/Choice.rb
|
53
|
+
- lib/randomperson/Generator.rb
|
54
|
+
- lib/randomperson/Name.rb
|
55
|
+
- lib/randomperson/Names/AmericanFemaleFirst.rb
|
56
|
+
- lib/randomperson/Names/AmericanLast.rb
|
57
|
+
- lib/randomperson/Names/AmericanMaleFirst.rb
|
58
|
+
- lib/randomperson/Names/AmericanSuffix.rb
|
59
|
+
- lib/randomperson/Names/AnyLast.rb
|
60
|
+
- lib/randomperson/Names/BasqueLast.rb
|
61
|
+
- lib/randomperson/Names/BritishPrefix.rb
|
62
|
+
- lib/randomperson/Names/BritishSuffix.rb
|
63
|
+
- lib/randomperson/Names/EnglishFemaleFirst.rb
|
64
|
+
- lib/randomperson/Names/EnglishLast.rb
|
65
|
+
- lib/randomperson/Names/EnglishMaleFirst.rb
|
66
|
+
- lib/randomperson/Names/ScottishFemaleFirst.rb
|
67
|
+
- lib/randomperson/Names/ScottishLast.rb
|
68
|
+
- lib/randomperson/Names/ScottishMaleFirst.rb
|
69
|
+
- lib/randomperson/Names/SpanishFemaleFirst.rb
|
70
|
+
- lib/randomperson/Names/SpanishLast.rb
|
71
|
+
- lib/randomperson/Names/SpanishMaleFirst.rb
|
72
|
+
- lib/randomperson/Names/SwedishFemaleFirst.rb
|
73
|
+
- lib/randomperson/Names/SwedishLast.rb
|
74
|
+
- lib/randomperson/Names/SwedishMaleFirst.rb
|
75
|
+
- lib/randomperson/Names/ThaiFirst.rb
|
76
|
+
- lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb
|
77
|
+
- lib/randomperson/Names/ThaiRomanisedLast.rb
|
78
|
+
- lib/randomperson/Names/ThaiRomanisedMaleFirst.rb
|
79
|
+
- lib/randomperson/Names/WelshFemaleFirst.rb
|
80
|
+
- lib/randomperson/Names/WelshLast.rb
|
81
|
+
- lib/randomperson/Names/WelshMaleFirst.rb
|
82
|
+
- lib/randomperson/Person.rb
|
83
|
+
- lib/randomperson/Ratio.rb
|
84
|
+
- lib/randomperson/ext/Array.rb
|
85
|
+
- lib/randomperson/ext/Date.rb
|
86
|
+
- lib/randomperson/ext/Enumerable.rb
|
87
|
+
- lib/randomperson/ext/Hash.rb
|
88
|
+
- lib/randomperson/ext/Kernel.rb
|
89
|
+
- lib/randomperson/ext/Set.rb
|
90
90
|
files:
|
91
91
|
- CHANGELOG
|
92
92
|
- Manifest
|
93
93
|
- README
|
94
94
|
- Rakefile
|
95
95
|
- gem-public_cert.pem
|
96
|
-
- lib/Choice.rb
|
97
|
-
- lib/Generator.rb
|
98
|
-
- lib/Name.rb
|
99
|
-
- lib/NameFiles/AmericanLast.rb
|
100
|
-
- lib/NameFiles/AmericanMaleFirst.rb
|
101
|
-
- lib/NameFiles/AmericanSuffix.rb
|
102
|
-
- lib/NameFiles/AnyLast.rb
|
103
|
-
- lib/NameFiles/BasqueLast.rb
|
104
|
-
- lib/NameFiles/BritishPrefix.rb
|
105
|
-
- lib/NameFiles/BritishSuffix.rb
|
106
|
-
- lib/NameFiles/EnglishFemaleFirst.rb
|
107
|
-
- lib/NameFiles/EnglishLast.rb
|
108
|
-
- lib/NameFiles/EnglishMaleFirst.rb
|
109
|
-
- lib/NameFiles/ScottishFemaleFirst.rb
|
110
|
-
- lib/NameFiles/ScottishLast.rb
|
111
|
-
- lib/NameFiles/ScottishMaleFirst.rb
|
112
|
-
- lib/NameFiles/SpanishFemaleFirst.rb
|
113
|
-
- lib/NameFiles/SpanishLast.rb
|
114
|
-
- lib/NameFiles/SpanishMaleFirst.rb
|
115
|
-
- lib/NameFiles/SwedishFemaleFirst.rb
|
116
|
-
- lib/NameFiles/SwedishLast.rb
|
117
|
-
- lib/NameFiles/SwedishMaleFirst.rb
|
118
|
-
- lib/NameFiles/ThaiFirst.rb
|
119
|
-
- lib/NameFiles/ThaiRomanisedFemaleFirst.rb
|
120
|
-
- lib/NameFiles/ThaiRomanisedLast.rb
|
121
|
-
- lib/NameFiles/ThaiRomanisedMaleFirst.rb
|
122
|
-
- lib/NameFiles/WelshFemaleFirst.rb
|
123
|
-
- lib/NameFiles/WelshLast.rb
|
124
|
-
- lib/NameFiles/WelshMaleFirst.rb
|
125
|
-
- lib/Names.rb
|
126
|
-
- lib/Person.rb
|
127
|
-
- lib/Ratio.rb
|
128
|
-
- lib/ext/Array.rb
|
129
|
-
- lib/ext/Date.rb
|
130
|
-
- lib/ext/Enumerable.rb
|
131
|
-
- lib/ext/Hash.rb
|
132
|
-
- lib/ext/Kernel.rb
|
133
|
-
- lib/ext/Set.rb
|
134
96
|
- lib/randomperson.rb
|
97
|
+
- lib/randomperson/Choice.rb
|
98
|
+
- lib/randomperson/Generator.rb
|
99
|
+
- lib/randomperson/Name.rb
|
100
|
+
- lib/randomperson/Names/AmericanFemaleFirst.rb
|
101
|
+
- lib/randomperson/Names/AmericanLast.rb
|
102
|
+
- lib/randomperson/Names/AmericanMaleFirst.rb
|
103
|
+
- lib/randomperson/Names/AmericanSuffix.rb
|
104
|
+
- lib/randomperson/Names/AnyLast.rb
|
105
|
+
- lib/randomperson/Names/BasqueLast.rb
|
106
|
+
- lib/randomperson/Names/BritishPrefix.rb
|
107
|
+
- lib/randomperson/Names/BritishSuffix.rb
|
108
|
+
- lib/randomperson/Names/EnglishFemaleFirst.rb
|
109
|
+
- lib/randomperson/Names/EnglishLast.rb
|
110
|
+
- lib/randomperson/Names/EnglishMaleFirst.rb
|
111
|
+
- lib/randomperson/Names/ScottishFemaleFirst.rb
|
112
|
+
- lib/randomperson/Names/ScottishLast.rb
|
113
|
+
- lib/randomperson/Names/ScottishMaleFirst.rb
|
114
|
+
- lib/randomperson/Names/SpanishFemaleFirst.rb
|
115
|
+
- lib/randomperson/Names/SpanishLast.rb
|
116
|
+
- lib/randomperson/Names/SpanishMaleFirst.rb
|
117
|
+
- lib/randomperson/Names/SwedishFemaleFirst.rb
|
118
|
+
- lib/randomperson/Names/SwedishLast.rb
|
119
|
+
- lib/randomperson/Names/SwedishMaleFirst.rb
|
120
|
+
- lib/randomperson/Names/ThaiFirst.rb
|
121
|
+
- lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb
|
122
|
+
- lib/randomperson/Names/ThaiRomanisedLast.rb
|
123
|
+
- lib/randomperson/Names/ThaiRomanisedMaleFirst.rb
|
124
|
+
- lib/randomperson/Names/WelshFemaleFirst.rb
|
125
|
+
- lib/randomperson/Names/WelshLast.rb
|
126
|
+
- lib/randomperson/Names/WelshMaleFirst.rb
|
127
|
+
- lib/randomperson/Person.rb
|
128
|
+
- lib/randomperson/Ratio.rb
|
129
|
+
- lib/randomperson/ext/Array.rb
|
130
|
+
- lib/randomperson/ext/Date.rb
|
131
|
+
- lib/randomperson/ext/Enumerable.rb
|
132
|
+
- lib/randomperson/ext/Hash.rb
|
133
|
+
- lib/randomperson/ext/Kernel.rb
|
134
|
+
- lib/randomperson/ext/Set.rb
|
135
135
|
- t/Generator.t
|
136
136
|
- randomperson.gemspec
|
137
137
|
has_rdoc: true
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,22 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby -wKU
|
2
|
-
|
3
|
-
module RandomPerson
|
4
|
-
|
5
|
-
class AmericanLast < Name
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
@formats = {
|
9
|
-
:single => ->(n) { n.rand },
|
10
|
-
:double_barrelled => ->(n) { n.rand + ' ' + n.rand },
|
11
|
-
:double_barrelled_hyphenated=> ->(n) { n.rand + '-' + n.rand },
|
12
|
-
}
|
13
|
-
|
14
|
-
@formats_ratiod = [ (0..95), (96..97), (98..99) ]
|
15
|
-
setupnames
|
16
|
-
end
|
17
|
-
|
18
|
-
def setupnames
|
19
|
-
@names = %w(Adams Adamson Adler Akers Akin Aleman Alexander Allen Allison Allwood Anderson Andreou Anthony Appelbaum Applegate Arbore Arenson Armold Arntzen Askew Athanas Atkinson Ausman Austin Averitt Avila Badders Baer Baggerly Bailliet Baird Baker Ball Ballentine Ballew Banks Baptist Barbee Barber Barchas Barcio Bardsley Barkauskas Barnes Barnett Barnwell Barrera Barreto Barroso Barrow Bart Barton Bass Bates Bavinger Baxter Bazaldua Becker Beeghly Belforte Bellamy Bellavance Beltran Belusar Bennett Benoit Bensley Berger Berggren Bergman Berry Bertelson Bess Beusse Bickford Bierner Bird Birdwell Bixby Blackmon Blackwell Blair Blankinship Blanton Block Blomkalns Bloomfield Blume Boeckenhauer Bolding Bolt Bolton Book Boucher Boudreau Bowman Boyd Boyes Boyles Braby Braden Bradley Brady Bragg Brandow Brantley Brauner Braunhardt Bray Bredenberg Bremer Breyer Bricout Briggs Brittain Brockman Brockmoller Broman Brooks Brown Brubaker Bruce Brumfield Brumley Bruning Buck Budd Buhler Buhr Burleson Burns Burton Bush Butterfield Byers Byon Byrd Bzostek Cabrera Caesar Caffey Caffrey Calhoun Call Callahan Campbell Cano Capri Carey Carlisle Carlson Carmichael Carnes Carr Carreira Carroll Carson Carswell Carter Cartwright Cason Cates Catlett Caudle Cavallaro Cave Cazamias Chabot Chance Chapman Characklis Cheatham Chen Chern Cheville Chong Christensen Church Claibourn Clark Clasen Claude Close Coakley Coffey Cohen Cole Collier Conant Connell Conte Conway Cooley Cooper Copeland Coram Corbett Cort Cortes Cousins Cowsar Cox Coyne Crain Crankshaw Craven Crawford Cressman Crestani Crier Crocker Cromwell Crouse Crowder Crowe Culpepper Cummings Cunningham Currie Cusey Cutcher Cyprus D'ascenzo Dabak Dakoulas Daly Dana Danburg Danenhauer Darley Darrouzet Dartt Daugherty Davila Davis Dawkins Day Dehart Demoss Demuth Devincentis Deaton Dees Degenhardt Deggeller Deigaard Delabroy Delaney Demir Denison Denney Derr Dettweiler Deuel Devitt Diamond Dickinson Dietrich Dilbeck Dobson Dodds Dodson Doherty Dooley Dorsey Dortch Doughty Dove Dowd Dowling Drescher Drucker Dryer Dryver Duckworth Dunbar Dunham Dunn Duston Dyson Eason Eaton Ebert Eckhoff Edelman Edmonds Eichhorn Eisbach Elders Elias Elijah Elizabeth Elliott Elliston Elms Emerson Engelberg Engle Eplett Epp Erickson Estades Etezadi Evans Ewing Fair Farfan Fargason Farhat Farry Fawcett Faye Federle Felcher Feldman Ferguson Fergusson Fernandez Ferrer Fine Fineman Fisher Flanagan Flathmann Fleming Fletcher Folk Fortune Fossati Foster Foulston Fowler Fox Francis Frantom Franz Frazer Fredericks Frey Freymann Fuentes Fuller Fundling Furlong Gainer Galang Galeazzi Gamse Gannaway Garcia Gardner Garneau Gartler Garverick Garza Gatt Gattis Gayman Geiger Gelder George Gerbino Gerbode Gibson Gifford Gillespie Gillingham Gilpin Gilyot Girgis Gjertsen Glantz Glaze Glenn Glotzbach Gobble Gockenbach Goff Goffin Golden Goldwyn Gomez Gonzalez Good Graham Gramm Granlund Grant Gray Grayson Greene Greenslade Greenwood Greer Griffin Grinstein Grisham Gross Grove Guthrie Guyton Haas Hackney Haddock Hagelstein Hagen Haggard Haines Hale Haley Hall Halladay Hamill Hamilton Hammer Hancock Hane Hansen Harding Harless Harms Harper Harrigan Harris Harrison Hart Harton Hartz Harvey Hastings Hauenstein Haushalter Haven Hawes Hawkins Hawley Haygood Haylock Hazard Heath Heidel Heins Hellums Hendricks Henry Henson Herbert Herman Hernandez Herrera Hertzmann Hewitt Hightower Hildebrand Hill Hindman Hirasaki Hirsh Hochman Hocker Hoffman Hoffmann Holder Holland Holloman Holstein Holt Holzer Honeyman Hood Hooks Hopper Horne House Houston Howard Howell Howley Huang Hudgings Huffman Hughes Humphrey Hunt Hunter Hurley Huston Hutchinson Hyatt Irving Jacobs Jaramillo Jaranson Jarboe Jarrell Jenkins Johnson Johnston Jones Joy Juette Julicher Jumper Kabir Kamberova Kamen Kamine Kampe Kane Kang Kapetanovic Kargatis Karlin Karlsson Kasbekar Kasper Kastensmidt Katz Kauffman Kavanagh Kaydos Kearsley Keleher Kelly Kelty Kendrick Key Kicinski Kiefer Kielt Kim Kimmel Kincaid King Kinney Kipp Kirby Kirk Kirkland Kirkpatrick Klamczynski Klein Kopnicky Kotsonis Koutras Kramer Kremer Krohn Kuhlken Kunitz Lalonde Lavalle Laware Lacy Lam Lamb Lampkin Lane Langston Lanier Larsen Lassiter Latchford Lawera Leblanc Legrand Leatherbury Lebron Ledman Lee Leinenbach Leslie Levy Lewis Lichtenstein Lisowski Liston Litvak Llano Lloyd Lock Lodge Logan Lomonaco Long Lopez Lopez Loren Loughridge Love Ludtke Luers Lukes Luxemburg Macallister Macleod Mackey Maddox Magee Mallinson Mann Manning Manthos Marie Marrow Marshall Martin Martinez Martisek Massey Mathis Matt Maxwell Mayer Mazurek Mcadams Mcafee Mcalexander Mcbride Mccarthy Mcclure Mccord Mccoy Mccrary Mccrossin Mcdonald Mcelfresh Mcfarland Mcgarr Mcghee Mcgoldrick Mcgrath Mcguire Mckinley Mcmahan Mcmahon Mcmath Mcnally Mcdonald Meade Meador Mebane Medrano Melton Merchant Merwin Millam Millard Miller Mills Milstead Minard Miner Minkoff Minnotte Minyard Mirza Mitchell Money Monk Montgomery Monton Moore Moren Moreno Morris Morse Moss Moyer Mueller Mull Mullet Mullins Munn Murdock Murphey Murphy Murray Murry Mutchler Myers Myrick Nassar Nathan Nazzal Neal Nederveld Nelson Nguyen Nichols Nielsen Nockton Nolan Noonan Norbury Nordlander Norris Norvell Noyes Nugent Nunn O'brien O'connell O'neill O'steen Ober Odegard Oliver Ollmann Olson Ongley Ordway Ortiz Ouellette Overcash Overfelt Overley Owens Page Paige Pardue Parham Parker Parks Patterson Patton Paul Payne Peck Penisson Percer Perez Perlioni Perrino Peterman Peters Pfeiffer Phelps Philip Philippe Phillips Pickett Pippenger Pistole Platzek Player Poddar Poirier Poklepovic Polk Polking Pond Popish Porter Pound Pounds Powell Powers Prado Preston Price Prichep Priour Prischmann Pryor Puckett Raglin Ralston Rampersad Ratner Rawles Ray Read Reddy Reed Reese Reeves Reichenbach Reifel Rein Reiten Reiter Reitmeier Reynolds Rhinehart Richardson Rider Ritchie Rittenbach Roberts Robinson Rodriguez Rogers Roper Rosemblun Rosen Rosenberg Rosenblatt Ross Roth Rowatt Roy Royston Rozendal Rubble Ruhlin Rupert Russell Ruthruff Ryan Rye Sabry Sachitano Sachs Sammartino Sands Saunders Savely Scales Schaefer Schafer Scheer Schild Schlitt Schmitz Schneider Schoenberger Schoppe Scott Seay Segura Selesnick Self Seligmann Sewall Shami Shampine Sharp Shaw Shefelbine Sheldon Sherrill Shidle Shifley Shillingsburg Shisler Shopbell Shupack Sievert Simpson Sims Sissman Smayling Smith Snyder Solomon Solon Soltero Sommers Sonneborn Sorensen Southworth Spear Speight Spencer Spruell Spudich Stacy Staebel Steele Steinhour Steinke Stepp Stevens Stewart Stickel Stine Stivers Stobb Stone Stratmann Stubbers Stuckey Stugart Sullivan Sultan Sumrall Sunley Sunshine Sutton Swaim Swales Sweed Swick Swift Swindell Swint Symonds Syzdek Szafranski Takimoto Talbott Talwar Tanner Taslimi Tate Tatum Taylor Tchainikov Terk Thacker Thomas Thompson Thomson Thornton Thurman Thurow Tilley Tolle Towns Trafton Tran Trevas Trevino Triggs Truchard Tunison Turner Twedell Tyler Tyree Unger Van Vanderzanden Vanlandingham Varanasi Varela Varman Venier Verspoor Vick Visinsky Voltz Wagner Wake Walcott Waldron Walker Wallace Walters Walton Ward Wardle Warnes Warren Washington Watson Watters Webber Weidenfeller Weien Weimer Weiner Weinger Weinheimer Weirich Welch Wells Wendt West Westmoreland Wex Whitaker White Whitley Wiediger Wilburn Williams Williamson Willman Wilson Winger Wise Wisur Witt Wong Woodbury Wooten Workman Wright Wyatt Yates Yeamans Yen York Yotov Younan Young Zeldin Zettner Ziegler Zitterkopf Zucker)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby -wKU
|
2
|
-
|
3
|
-
module RandomPerson
|
4
|
-
|
5
|
-
class AmericanMaleFirst < Name
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
@formats = {
|
9
|
-
:single => ->(n) { n.rand },
|
10
|
-
}
|
11
|
-
|
12
|
-
@formats_ratiod = [ (0..99) ]
|
13
|
-
setupnames
|
14
|
-
end
|
15
|
-
|
16
|
-
def setupnames
|
17
|
-
@names = %w{ Aaron Adam Adrian Alan Alejandro Alex Allen Andrew Andy Anthony Art Arthur Barry Bart Ben Benjamin Bill Bobby Brad Bradley Brendan Brett Brian Bruce Bryan Carlos Chad Charles Chris Christopher Chuck Clay Corey Craig Dan Daniel Darren Dave David Dean Dennis Denny Derek Don Doug Duane Edward Eric Eugene Evan Frank Fred Gary Gene George Gordon Greg Harry Henry Hunter Ivan Jack James Jamie Jason Jay Jeff Jeffrey Jeremy Jim Joe Joel John Jonathan Joseph Justin Keith Ken Kevin Larry Logan Marc Mark Matt Matthew Michael Mike Nat Nathan Patrick Paul Perry Peter Philip Phillip Randy Raymond Ricardo Richard Rick Rob Robert Rod Roger Ross Ruben Russell Ryan Sam Scot Scott Sean Shaun Stephen Steve Steven Stewart Stuart Ted Thomas Tim Toby Todd Tom Troy Victor Wade Walter Wayne William }
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby -wKU
|
2
|
-
|
3
|
-
module RandomPerson
|
4
|
-
require 'Names'
|
5
|
-
class AmericanSuffix
|
6
|
-
include Names
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
@names = [ 'Jr.', ''] + %w( I II III IV V Sr. )
|
10
|
-
@formats_ratiod = [ 0, 1..93, 94, 95, 96, 97, 98, 99]
|
11
|
-
end
|
12
|
-
|
13
|
-
def execute( person)
|
14
|
-
|
15
|
-
r = rand(99)
|
16
|
-
if person.age > 17
|
17
|
-
r += 1 #Jr can't happen
|
18
|
-
end
|
19
|
-
|
20
|
-
i = @formats_ratiod.index_in_range( r )
|
21
|
-
return @names[i]
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|