randomperson 0.0.17 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +16 -0
  2. data/CHANGELOG +35 -0
  3. data/Manifest +72 -0
  4. data/README +324 -0
  5. data/gem-public_cert.pem +20 -0
  6. data/lib/randomperson/Names/AnyLast.rb +1 -1
  7. data/lib/randomperson/Names/BasqueFemaleFirst.rb +1 -1
  8. data/lib/randomperson/Names/BasqueLast.rb +1 -1
  9. data/lib/randomperson/Names/BasqueMaleFirst.rb +1 -1
  10. data/lib/randomperson/Names/BritishPrefix.rb +1 -1
  11. data/lib/randomperson/Names/EnglishFemaleFirst.rb +1 -1
  12. data/lib/randomperson/Names/EnglishLast.rb +1 -1
  13. data/lib/randomperson/Names/EnglishMaleFirst.rb +1 -1
  14. data/lib/randomperson/Names/FinnishFemaleFirst.rb +1 -1
  15. data/lib/randomperson/Names/FinnishLast.rb +1 -1
  16. data/lib/randomperson/Names/FinnishMaleFirst.rb +1 -1
  17. data/lib/randomperson/Names/FinnishPrefix.rb +1 -1
  18. data/lib/randomperson/Names/FrenchFemaleFirst.rb +1 -1
  19. data/lib/randomperson/Names/FrenchLast.rb +1 -1
  20. data/lib/randomperson/Names/FrenchMaleFirst.rb +1 -1
  21. data/lib/randomperson/Names/GermanFemaleFirst.rb +1 -1
  22. data/lib/randomperson/Names/GermanLast.rb +1 -1
  23. data/lib/randomperson/Names/GermanMaleFirst.rb +1 -1
  24. data/lib/randomperson/Names/ScottishFemaleFirst.rb +1 -1
  25. data/lib/randomperson/Names/ScottishLast.rb +1 -1
  26. data/lib/randomperson/Names/ScottishMaleFirst.rb +1 -1
  27. data/lib/randomperson/Names/ScottishPrefix.rb +1 -1
  28. data/lib/randomperson/Names/SpanishFemaleFirst.rb +1 -1
  29. data/lib/randomperson/Names/SpanishLast.rb +1 -1
  30. data/lib/randomperson/Names/SpanishMaleFirst.rb +1 -1
  31. data/lib/randomperson/Names/SpanishPrefix.rb +1 -1
  32. data/lib/randomperson/Names/SwedishFemaleFirst.rb +1 -1
  33. data/lib/randomperson/Names/SwedishLast.rb +1 -1
  34. data/lib/randomperson/Names/SwedishMaleFirst.rb +1 -1
  35. data/lib/randomperson/Names/ThaiFemaleFirst.rb +1 -1
  36. data/lib/randomperson/Names/ThaiFirst.rb +1 -1
  37. data/lib/randomperson/Names/ThaiLast.rb +1 -1
  38. data/lib/randomperson/Names/ThaiMaleFirst.rb +1 -1
  39. data/lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb +1 -1
  40. data/lib/randomperson/Names/ThaiRomanisedLast.rb +1 -1
  41. data/lib/randomperson/Names/ThaiRomanisedMaleFirst.rb +1 -1
  42. data/lib/randomperson/Names/WelshFemaleFirst.rb +1 -1
  43. data/lib/randomperson/Names/WelshLast.rb +1 -1
  44. data/lib/randomperson/Names/WelshMaleFirst.rb +1 -1
  45. data/lib/randomperson/Names/WelshPrefix.rb +1 -1
  46. data/lib/randomperson/{Choice.rb → choice.rb} +5 -1
  47. data/lib/randomperson/{Generator.rb → generator.rb} +20 -2
  48. data/lib/randomperson/{Name.rb → name.rb} +0 -0
  49. data/lib/randomperson/person.rb +27 -0
  50. data/lib/randomperson/{Ratio.rb → ratio.rb} +0 -0
  51. data/lib/randomperson/version.rb +3 -0
  52. data/lib/randomperson.rb +21 -15
  53. data/randomperson.gemspec +6 -6
  54. data/spec/choice_spec.rb +13 -0
  55. data/spec/generator_spec.rb +13 -0
  56. data/spec/name_spec.rb +13 -0
  57. data/test/test_Choice.rb +140 -0
  58. data/test/test_Generator.rb +111 -0
  59. data.tar.gz.sig +0 -0
  60. metadata +74 -56
  61. metadata.gz.sig +0 -0
  62. 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
- prerelease: false
5
- segments:
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
- -----BEGIN CERTIFICATE-----
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
- date: 2010-11-13 00:00:00 +00:00
39
- default_executable:
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
- 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"
59
+ '
43
60
  email: iainspeed @nospam@ gmail.com
44
61
  executables: []
45
-
46
62
  extensions: []
47
-
48
63
  extra_rdoc_files: []
49
-
50
- files:
64
+ files:
65
+ - .gitignore
66
+ - CHANGELOG
67
+ - Manifest
68
+ - README
51
69
  - Rakefile
52
- - randomperson.gemspec
53
- - lib/randomperson/Choice.rb
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/Person.rb
113
- - lib/randomperson/Ratio.rb
114
- - lib/randomperson.rb
115
- has_rdoc: true
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
- - ext
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
- segments:
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.3.7
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
@@ -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