randomperson 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +16 -0
- data/CHANGELOG +35 -0
- data/Manifest +72 -0
- data/README +324 -0
- data/gem-public_cert.pem +20 -0
- data/lib/randomperson/Names/AnyLast.rb +1 -1
- data/lib/randomperson/Names/BasqueFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/BasqueLast.rb +1 -1
- data/lib/randomperson/Names/BasqueMaleFirst.rb +1 -1
- data/lib/randomperson/Names/BritishPrefix.rb +1 -1
- data/lib/randomperson/Names/EnglishFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/EnglishLast.rb +1 -1
- data/lib/randomperson/Names/EnglishMaleFirst.rb +1 -1
- data/lib/randomperson/Names/FinnishFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/FinnishLast.rb +1 -1
- data/lib/randomperson/Names/FinnishMaleFirst.rb +1 -1
- data/lib/randomperson/Names/FinnishPrefix.rb +1 -1
- data/lib/randomperson/Names/FrenchFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/FrenchLast.rb +1 -1
- data/lib/randomperson/Names/FrenchMaleFirst.rb +1 -1
- data/lib/randomperson/Names/GermanFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/GermanLast.rb +1 -1
- data/lib/randomperson/Names/GermanMaleFirst.rb +1 -1
- data/lib/randomperson/Names/ScottishFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/ScottishLast.rb +1 -1
- data/lib/randomperson/Names/ScottishMaleFirst.rb +1 -1
- data/lib/randomperson/Names/ScottishPrefix.rb +1 -1
- data/lib/randomperson/Names/SpanishFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/SpanishLast.rb +1 -1
- data/lib/randomperson/Names/SpanishMaleFirst.rb +1 -1
- data/lib/randomperson/Names/SpanishPrefix.rb +1 -1
- data/lib/randomperson/Names/SwedishFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/SwedishLast.rb +1 -1
- data/lib/randomperson/Names/SwedishMaleFirst.rb +1 -1
- data/lib/randomperson/Names/ThaiFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/ThaiFirst.rb +1 -1
- data/lib/randomperson/Names/ThaiLast.rb +1 -1
- data/lib/randomperson/Names/ThaiMaleFirst.rb +1 -1
- data/lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/ThaiRomanisedLast.rb +1 -1
- data/lib/randomperson/Names/ThaiRomanisedMaleFirst.rb +1 -1
- data/lib/randomperson/Names/WelshFemaleFirst.rb +1 -1
- data/lib/randomperson/Names/WelshLast.rb +1 -1
- data/lib/randomperson/Names/WelshMaleFirst.rb +1 -1
- data/lib/randomperson/Names/WelshPrefix.rb +1 -1
- data/lib/randomperson/{Choice.rb → choice.rb} +5 -1
- data/lib/randomperson/{Generator.rb → generator.rb} +20 -2
- data/lib/randomperson/{Name.rb → name.rb} +0 -0
- data/lib/randomperson/person.rb +27 -0
- data/lib/randomperson/{Ratio.rb → ratio.rb} +0 -0
- data/lib/randomperson/version.rb +3 -0
- data/lib/randomperson.rb +21 -15
- data/randomperson.gemspec +6 -6
- data/spec/choice_spec.rb +13 -0
- data/spec/generator_spec.rb +13 -0
- data/spec/name_spec.rb +13 -0
- data/test/test_Choice.rb +140 -0
- data/test/test_Generator.rb +111 -0
- data.tar.gz.sig +0 -0
- metadata +74 -56
- metadata.gz.sig +0 -0
- data/lib/randomperson/Person.rb +0 -17
metadata
CHANGED
@@ -1,64 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: randomperson
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 17
|
9
|
-
version: 0.0.17
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.19
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Iain Barnett
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
|
-
cert_chain:
|
16
|
-
-
|
17
|
-
|
11
|
+
cert_chain:
|
12
|
+
- ! '-----BEGIN CERTIFICATE-----
|
13
|
+
|
18
14
|
MIIDNDCCAhygAwIBAgIBADANBgkqhkiG9w0BAQUFADBAMRIwEAYDVQQDDAlpYWlu
|
15
|
+
|
19
16
|
c3BlZWQxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
|
20
18
|
bTAeFw0xMDA4MTkyMTQwMDlaFw0xMTA4MTkyMTQwMDlaMEAxEjAQBgNVBAMMCWlh
|
19
|
+
|
21
20
|
aW5zcGVlZDEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
|
21
|
+
|
22
22
|
Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApraebFPxvJVrayuZ
|
23
|
+
|
23
24
|
xJkFZLAId7j0G3QG4oyJcRaJVhaJ36zcCUeg6/6f9LC78nZSmL2zA2ZG9H3Lzda0
|
25
|
+
|
24
26
|
0j+McpynbK/eSq0XpruQbuuhcOBow1KgDfjdhz3qXylHJ/iIzBosQzoEIk5eVY84
|
27
|
+
|
25
28
|
R0qD+vNHwZQoDE+k4PB8LWIfbJPi+dmnL16C0qireO3nZASwTSGm1JdUtgESP0Hn
|
29
|
+
|
26
30
|
f1KAe/ox00S8cSQNGUZ/fAsrnhAOApL9V38TwxiL0eMVcY+TbUspI26MB8oNwsgV
|
31
|
+
|
27
32
|
zkBNt2lI45/SguV5wWMOWbWZ2v//w3PrBCUenkk+vwZmpOQUlk/8Ebrk+UeoAN1F
|
33
|
+
|
28
34
|
NqE2DQIDAQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBTMWVuCrozPKTpMRYkm
|
35
|
+
|
29
36
|
RUAqQFsGdDALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBAFqZW23axU5A
|
37
|
+
|
30
38
|
Hf/p5iBfRlJLIZqFmVbGb1A+mxaPFUkhERH7FfY4ay4p2Ci1DNhSYQLy5dsB1ik0
|
39
|
+
|
31
40
|
J0tlNaXxkJ0uq6up65yoj4/XBJArm9oiO7PcwrzC52bmiEv4Ir67/AGRyfmgIU0A
|
41
|
+
|
32
42
|
5jv3cSFcnbrwCvClZOoVhNkvaxer3/DgLecpjgXfSwY++JHU0L/5HplidHzjE3PZ
|
43
|
+
|
33
44
|
1YGYQYJGIy5Hap8Lpn1x9/Q2C8pMX33JRItrIVie6UIsrGXVtGS5lZS/pri9Budd
|
45
|
+
|
34
46
|
+ikjZ+dLa/HjsXQ5HcI6WdySxyKElXr2Ecs8ipmnxCk6+KH9/2OnXrpBzeIXJoMS
|
47
|
+
|
35
48
|
YK13fiGcldY=
|
49
|
+
|
36
50
|
-----END CERTIFICATE-----
|
37
51
|
|
38
|
-
|
39
|
-
|
52
|
+
'
|
53
|
+
date: 2011-06-21 00:00:00.000000000Z
|
40
54
|
dependencies: []
|
55
|
+
description: ! ' RandomPerson is a port to Ruby of Perl''s Data::RandomPerson.
|
56
|
+
Use it to generate random persons given various parameters, such as country, age
|
57
|
+
and gender ratio.
|
41
58
|
|
42
|
-
|
59
|
+
'
|
43
60
|
email: iainspeed @nospam@ gmail.com
|
44
61
|
executables: []
|
45
|
-
|
46
62
|
extensions: []
|
47
|
-
|
48
63
|
extra_rdoc_files: []
|
49
|
-
|
50
|
-
|
64
|
+
files:
|
65
|
+
- .gitignore
|
66
|
+
- CHANGELOG
|
67
|
+
- Manifest
|
68
|
+
- README
|
51
69
|
- Rakefile
|
52
|
-
-
|
53
|
-
- lib/randomperson
|
54
|
-
- lib/randomperson/ext/Array.rb
|
55
|
-
- lib/randomperson/ext/Date.rb
|
56
|
-
- lib/randomperson/ext/Enumerable.rb
|
57
|
-
- lib/randomperson/ext/Hash.rb
|
58
|
-
- lib/randomperson/ext/Kernel.rb
|
59
|
-
- lib/randomperson/ext/Set.rb
|
60
|
-
- lib/randomperson/Generator.rb
|
61
|
-
- lib/randomperson/Name.rb
|
70
|
+
- gem-public_cert.pem
|
71
|
+
- lib/randomperson.rb
|
62
72
|
- lib/randomperson/Names/AmericanFemaleFirst.rb
|
63
73
|
- lib/randomperson/Names/AmericanLast.rb
|
64
74
|
- lib/randomperson/Names/AmericanMaleFirst.rb
|
@@ -109,43 +119,51 @@ files:
|
|
109
119
|
- lib/randomperson/Names/WelshLast.rb
|
110
120
|
- lib/randomperson/Names/WelshMaleFirst.rb
|
111
121
|
- lib/randomperson/Names/WelshPrefix.rb
|
112
|
-
- lib/randomperson/
|
113
|
-
- lib/randomperson/
|
114
|
-
- lib/randomperson.rb
|
115
|
-
|
122
|
+
- lib/randomperson/choice.rb
|
123
|
+
- lib/randomperson/ext/Array.rb
|
124
|
+
- lib/randomperson/ext/Date.rb
|
125
|
+
- lib/randomperson/ext/Enumerable.rb
|
126
|
+
- lib/randomperson/ext/Hash.rb
|
127
|
+
- lib/randomperson/ext/Kernel.rb
|
128
|
+
- lib/randomperson/ext/Set.rb
|
129
|
+
- lib/randomperson/generator.rb
|
130
|
+
- lib/randomperson/name.rb
|
131
|
+
- lib/randomperson/person.rb
|
132
|
+
- lib/randomperson/ratio.rb
|
133
|
+
- lib/randomperson/version.rb
|
134
|
+
- randomperson.gemspec
|
135
|
+
- spec/choice_spec.rb
|
136
|
+
- spec/generator_spec.rb
|
137
|
+
- spec/name_spec.rb
|
138
|
+
- test/test_Choice.rb
|
139
|
+
- test/test_Generator.rb
|
116
140
|
homepage: http://github.com/yb66/RandomPerson
|
117
141
|
licenses: []
|
118
|
-
|
119
142
|
post_install_message:
|
120
143
|
rdoc_options: []
|
121
|
-
|
122
|
-
require_paths:
|
144
|
+
require_paths:
|
123
145
|
- lib
|
124
|
-
|
125
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
147
|
none: false
|
127
|
-
requirements:
|
128
|
-
- -
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
segments:
|
131
|
-
- 1
|
132
|
-
- 9
|
133
|
-
- 1
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
134
151
|
version: 1.9.1
|
135
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
153
|
none: false
|
137
|
-
requirements:
|
138
|
-
- -
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
|
141
|
-
- 0
|
142
|
-
version: "0"
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
143
158
|
requirements: []
|
144
|
-
|
145
159
|
rubyforge_project:
|
146
|
-
rubygems_version: 1.
|
160
|
+
rubygems_version: 1.8.5
|
147
161
|
signing_key:
|
148
162
|
specification_version: 3
|
149
163
|
summary: A gem for generating random persons :)
|
150
|
-
test_files:
|
151
|
-
|
164
|
+
test_files:
|
165
|
+
- spec/choice_spec.rb
|
166
|
+
- spec/generator_spec.rb
|
167
|
+
- spec/name_spec.rb
|
168
|
+
- test/test_Choice.rb
|
169
|
+
- test/test_Generator.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/randomperson/Person.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
module RandomPerson
|
2
|
-
class Person
|
3
|
-
|
4
|
-
attr_accessor :gender, :age, :dob, :first, :last, :prefix, :suffix
|
5
|
-
|
6
|
-
def initialize( h={} )
|
7
|
-
@gender = h[:gender] || nil
|
8
|
-
@age = h[:age] || nil
|
9
|
-
@dob = h[:dob] || nil
|
10
|
-
@first = h[:first] || nil
|
11
|
-
@last = h[:last] || nil
|
12
|
-
@prefix = h[:prefix] || nil
|
13
|
-
@suffix = h[:suffix] || nil
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|