randamu 0.0.0 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data/academic.yml +101 -0
- data/lib/data/animals.yml +313 -0
- data/lib/data/business.yml +39 -0
- data/lib/data/doc.yml +196 -0
- data/lib/data/emails.yml +27 -0
- data/lib/data/map.yml +1832 -0
- data/lib/data/names.yml +520 -0
- data/lib/data/phone.yml +29 -0
- data/lib/{docs/text.yml → data/texts.yml} +1 -1
- data/lib/randamu/core/academic.rb +24 -0
- data/lib/randamu/core/account.rb +53 -0
- data/lib/randamu/core/animal.rb +21 -0
- data/lib/randamu/{boolean.rb → core/boolean.rb} +0 -1
- data/lib/randamu/core/business.rb +12 -0
- data/lib/randamu/core/date.rb +35 -0
- data/lib/randamu/core/doc.rb +7 -0
- data/lib/randamu/core/map.rb +37 -0
- data/lib/randamu/core/number.rb +10 -0
- data/lib/randamu/core/person.rb +20 -0
- data/lib/randamu/core/text.rb +34 -0
- data/lib/randamu/generators/document_generator.rb +95 -0
- data/lib/randamu/generators/name_generator.rb +44 -0
- data/lib/randamu/support/dictionary.rb +39 -0
- data/lib/randamu.rb +5 -2
- metadata +28 -12
- data/lib/docs/address.yml +0 -554
- data/lib/docs/name.yml +0 -521
- data/lib/randamu/address.rb +0 -25
- data/lib/randamu/name.rb +0 -37
- data/lib/randamu/text.rb +0 -21
data/lib/docs/name.yml
DELETED
@@ -1,521 +0,0 @@
|
|
1
|
-
name:
|
2
|
-
male_first_name:
|
3
|
-
- John
|
4
|
-
- Paul
|
5
|
-
- Michael
|
6
|
-
- David
|
7
|
-
- James
|
8
|
-
- Robert
|
9
|
-
- William
|
10
|
-
- Richard
|
11
|
-
- Charles
|
12
|
-
- Joseph
|
13
|
-
- Thomas
|
14
|
-
- Christopher
|
15
|
-
- Daniel
|
16
|
-
- Matthew
|
17
|
-
- Anthony
|
18
|
-
- Mark
|
19
|
-
- Donald
|
20
|
-
- Steven
|
21
|
-
- Edward
|
22
|
-
- Brian
|
23
|
-
- Kevin
|
24
|
-
- Ronald
|
25
|
-
- Jason
|
26
|
-
- Jeffrey
|
27
|
-
- Gary
|
28
|
-
- Ryan
|
29
|
-
- Nicholas
|
30
|
-
- Eric
|
31
|
-
- Jonathan
|
32
|
-
- Stephen
|
33
|
-
- Larry
|
34
|
-
- Scott
|
35
|
-
- Frank
|
36
|
-
- Brandon
|
37
|
-
- Raymond
|
38
|
-
- Gregory
|
39
|
-
- Benjamin
|
40
|
-
- Samuel
|
41
|
-
- Patrick
|
42
|
-
- Alexander
|
43
|
-
- Jack
|
44
|
-
- Dennis
|
45
|
-
- Jerry
|
46
|
-
- Tyler
|
47
|
-
- Aaron
|
48
|
-
- Jose
|
49
|
-
- Adam
|
50
|
-
- Nathan
|
51
|
-
- Henry
|
52
|
-
- Douglas
|
53
|
-
- Zachary
|
54
|
-
- Peter
|
55
|
-
- Kyle
|
56
|
-
- Walter
|
57
|
-
- Ethan
|
58
|
-
- Jeremy
|
59
|
-
- Harold
|
60
|
-
- Christian
|
61
|
-
- Keith
|
62
|
-
- Roger
|
63
|
-
- Gerald
|
64
|
-
- Jesse
|
65
|
-
- Albert
|
66
|
-
- Arthur
|
67
|
-
- Carl
|
68
|
-
- Dylan
|
69
|
-
- Bruce
|
70
|
-
- Bryan
|
71
|
-
- Joe
|
72
|
-
- Jordan
|
73
|
-
- Billy
|
74
|
-
- Sean
|
75
|
-
- Ralph
|
76
|
-
- Roy
|
77
|
-
- Noah
|
78
|
-
- Eugene
|
79
|
-
- Randy
|
80
|
-
- Vincent
|
81
|
-
- Russell
|
82
|
-
- Elijah
|
83
|
-
- Louis
|
84
|
-
- Bobby
|
85
|
-
- Philip
|
86
|
-
- Johnny
|
87
|
-
- Logan
|
88
|
-
- Wayne
|
89
|
-
- Alan
|
90
|
-
- Juan
|
91
|
-
- Austin
|
92
|
-
- Willie
|
93
|
-
- Gabriel
|
94
|
-
- Martin
|
95
|
-
- Stanley
|
96
|
-
- Travis
|
97
|
-
- Brad
|
98
|
-
- Bruce
|
99
|
-
- Alex
|
100
|
-
- Seth
|
101
|
-
- Calvin
|
102
|
-
- Marshall
|
103
|
-
- Glenn
|
104
|
-
- Levi
|
105
|
-
- Spencer
|
106
|
-
- Jake
|
107
|
-
- Curtis
|
108
|
-
- Hunter
|
109
|
-
- Joel
|
110
|
-
- Wesley
|
111
|
-
- Dean
|
112
|
-
- Cameron
|
113
|
-
- Mitchell
|
114
|
-
- Craig
|
115
|
-
- Tony
|
116
|
-
- Clifford
|
117
|
-
- Lance
|
118
|
-
- Neil
|
119
|
-
- Brett
|
120
|
-
- Warren
|
121
|
-
- Maurice
|
122
|
-
- Rodney
|
123
|
-
- Jerome
|
124
|
-
- Terry
|
125
|
-
- Derek
|
126
|
-
- Clarence
|
127
|
-
- Glen
|
128
|
-
- Blake
|
129
|
-
- Francis
|
130
|
-
- Bradley
|
131
|
-
- Phillip
|
132
|
-
- Lawrence
|
133
|
-
- Ivan
|
134
|
-
- Floyd
|
135
|
-
- Warren
|
136
|
-
- Lester
|
137
|
-
- Clyde
|
138
|
-
- Chad
|
139
|
-
- Wesley
|
140
|
-
- Nelson
|
141
|
-
- Dwight
|
142
|
-
- Curtis
|
143
|
-
- Dean
|
144
|
-
- Earl
|
145
|
-
- Gilbert
|
146
|
-
- Barry
|
147
|
-
- Tom
|
148
|
-
- Steve
|
149
|
-
- Travis
|
150
|
-
- Harold
|
151
|
-
- Glenn
|
152
|
-
- Howard
|
153
|
-
- Jared
|
154
|
-
- Kent
|
155
|
-
- Max
|
156
|
-
- Dwight
|
157
|
-
- Norman
|
158
|
-
- Allan
|
159
|
-
- Oscar
|
160
|
-
- Darrell
|
161
|
-
- Eugene
|
162
|
-
- Leo
|
163
|
-
- Freddie
|
164
|
-
- Max
|
165
|
-
- Stuart
|
166
|
-
- Rodney
|
167
|
-
- Brad
|
168
|
-
- Felix
|
169
|
-
- Kirk
|
170
|
-
- Andy
|
171
|
-
- Darren
|
172
|
-
- Ross
|
173
|
-
- Ronald
|
174
|
-
- Clifford
|
175
|
-
- Julius
|
176
|
-
- Clifford
|
177
|
-
- Colin
|
178
|
-
- Graham
|
179
|
-
- Jacob
|
180
|
-
- Wyatt
|
181
|
-
- Herbert
|
182
|
-
- Harold
|
183
|
-
- Melvin
|
184
|
-
- Victor
|
185
|
-
|
186
|
-
female_first_name:
|
187
|
-
- Mary
|
188
|
-
- Jane
|
189
|
-
- Jennifer
|
190
|
-
- Linda
|
191
|
-
- Elizabeth
|
192
|
-
- Susan
|
193
|
-
- Margaret
|
194
|
-
- Jessica
|
195
|
-
- Dorothy
|
196
|
-
- Sarah
|
197
|
-
- Karen
|
198
|
-
- Nancy
|
199
|
-
- Lisa
|
200
|
-
- Sandra
|
201
|
-
- Michelle
|
202
|
-
- Ashley
|
203
|
-
- Emily
|
204
|
-
- Laura
|
205
|
-
- Amy
|
206
|
-
- Helen
|
207
|
-
- Patricia
|
208
|
-
- Melissa
|
209
|
-
- Kimberly
|
210
|
-
- Angela
|
211
|
-
- Maria
|
212
|
-
- Anna
|
213
|
-
- Carol
|
214
|
-
- Ruth
|
215
|
-
- Rebecca
|
216
|
-
- Shirley
|
217
|
-
- Catherine
|
218
|
-
- Christine
|
219
|
-
- Barbara
|
220
|
-
- Debra
|
221
|
-
- Jacqueline
|
222
|
-
- Olivia
|
223
|
-
- Erica
|
224
|
-
- Rachel
|
225
|
-
- Stephanie
|
226
|
-
- Janice
|
227
|
-
- Samantha
|
228
|
-
- Brenda
|
229
|
-
- Julia
|
230
|
-
- Andrea
|
231
|
-
- Lauren
|
232
|
-
- Diana
|
233
|
-
- Megan
|
234
|
-
- Alice
|
235
|
-
- Heather
|
236
|
-
- Kathryn
|
237
|
-
- Denise
|
238
|
-
- Crystal
|
239
|
-
- Rose
|
240
|
-
- Ann
|
241
|
-
- Irene
|
242
|
-
- Gina
|
243
|
-
- Brooke
|
244
|
-
- Katherine
|
245
|
-
- Carol
|
246
|
-
- Victoria
|
247
|
-
- Ellen
|
248
|
-
- Valerie
|
249
|
-
- Janice
|
250
|
-
- Debbie
|
251
|
-
- Cheryl
|
252
|
-
- Joan
|
253
|
-
- Bonnie
|
254
|
-
- Jean
|
255
|
-
- Beverly
|
256
|
-
- Marilyn
|
257
|
-
- Frances
|
258
|
-
- Holly
|
259
|
-
- Melissa
|
260
|
-
- Amber
|
261
|
-
- Diane
|
262
|
-
- Clara
|
263
|
-
- Teresa
|
264
|
-
- Kelly
|
265
|
-
- Regina
|
266
|
-
- Laurie
|
267
|
-
- Stacy
|
268
|
-
- Shannon
|
269
|
-
- Joanne
|
270
|
-
- Emma
|
271
|
-
- Pauline
|
272
|
-
- Glenda
|
273
|
-
- Maureen
|
274
|
-
- Bernice
|
275
|
-
- Rachel
|
276
|
-
- Erin
|
277
|
-
- Brenda
|
278
|
-
- Edith
|
279
|
-
- Gina
|
280
|
-
- Betty
|
281
|
-
- Kelly
|
282
|
-
- Dorothy
|
283
|
-
- Gladys
|
284
|
-
- Hazel
|
285
|
-
- Donna
|
286
|
-
- Gail
|
287
|
-
- Wendy
|
288
|
-
- Kristy
|
289
|
-
- Melanie
|
290
|
-
- Joy
|
291
|
-
- Beth
|
292
|
-
- Lori
|
293
|
-
- Peggy
|
294
|
-
- Sara
|
295
|
-
- Marilyn
|
296
|
-
- Vicki
|
297
|
-
- Felicia
|
298
|
-
- Allison
|
299
|
-
- Debbie
|
300
|
-
- Paula
|
301
|
-
- Kay
|
302
|
-
- Jeanette
|
303
|
-
- Jodi
|
304
|
-
- Julia
|
305
|
-
- Katie
|
306
|
-
- Alice
|
307
|
-
- Mabel
|
308
|
-
- Rhonda
|
309
|
-
- Robin
|
310
|
-
- Phyllis
|
311
|
-
- Darlene
|
312
|
-
- Ruth
|
313
|
-
- Frances
|
314
|
-
- Sonia
|
315
|
-
- April
|
316
|
-
- Ella
|
317
|
-
- Cynthia
|
318
|
-
- Casey
|
319
|
-
- Louise
|
320
|
-
- Monique
|
321
|
-
- Vanessa
|
322
|
-
- Regina
|
323
|
-
- Esther
|
324
|
-
- Marsha
|
325
|
-
- Jessie
|
326
|
-
- April
|
327
|
-
- Joanne
|
328
|
-
- Beatrice
|
329
|
-
- Sylvia
|
330
|
-
- Iris
|
331
|
-
- Faith
|
332
|
-
- Lillian
|
333
|
-
- Veronica
|
334
|
-
- Maggie
|
335
|
-
- Madeline
|
336
|
-
- Delores
|
337
|
-
- Olivia
|
338
|
-
- Candace
|
339
|
-
- Leona
|
340
|
-
- Tammy
|
341
|
-
- Penny
|
342
|
-
- Harriet
|
343
|
-
- Nellie
|
344
|
-
- Viola
|
345
|
-
- Gloria
|
346
|
-
- Lucille
|
347
|
-
- Vivian
|
348
|
-
- Joann
|
349
|
-
- Deanna
|
350
|
-
- Hannah
|
351
|
-
- Myra
|
352
|
-
- Edith
|
353
|
-
- Joyce
|
354
|
-
|
355
|
-
last_name:
|
356
|
-
- Doe
|
357
|
-
- Smith
|
358
|
-
- Johnson
|
359
|
-
- Williams
|
360
|
-
- Brown
|
361
|
-
- Jones
|
362
|
-
- Miller
|
363
|
-
- Davis
|
364
|
-
- Wilson
|
365
|
-
- Moore
|
366
|
-
- Taylor
|
367
|
-
- Anderson
|
368
|
-
- Thomas
|
369
|
-
- Jackson
|
370
|
-
- White
|
371
|
-
- Harris
|
372
|
-
- Martin
|
373
|
-
- Thompson
|
374
|
-
- Garcia
|
375
|
-
- Martinez
|
376
|
-
- Robinson
|
377
|
-
- Clark
|
378
|
-
- Rodriguez
|
379
|
-
- Lewis
|
380
|
-
- Lee
|
381
|
-
- Walker
|
382
|
-
- Hall
|
383
|
-
- Allen
|
384
|
-
- Young
|
385
|
-
- Hernandez
|
386
|
-
- King
|
387
|
-
- Wright
|
388
|
-
- Lopez
|
389
|
-
- Hill
|
390
|
-
- Scott
|
391
|
-
- Green
|
392
|
-
- Adams
|
393
|
-
- Baker
|
394
|
-
- Gonzalez
|
395
|
-
- Nelson
|
396
|
-
- Carter
|
397
|
-
- Mitchell
|
398
|
-
- Perez
|
399
|
-
- Roberts
|
400
|
-
- Turner
|
401
|
-
- Phillips
|
402
|
-
- Campbell
|
403
|
-
- Parker
|
404
|
-
- Evans
|
405
|
-
- Edwards
|
406
|
-
- Collins
|
407
|
-
- Stewart
|
408
|
-
- Sanchez
|
409
|
-
- Morris
|
410
|
-
- Rogers
|
411
|
-
- Reed
|
412
|
-
- Cook
|
413
|
-
- Morgan
|
414
|
-
- Bell
|
415
|
-
- Murphy
|
416
|
-
- Bailey
|
417
|
-
- Rivera
|
418
|
-
- Cooper
|
419
|
-
- Richardson
|
420
|
-
- Cox
|
421
|
-
- Howard
|
422
|
-
- Ward
|
423
|
-
- Torres
|
424
|
-
- Peterson
|
425
|
-
- Gray
|
426
|
-
- Ramirez
|
427
|
-
- James
|
428
|
-
- Watson
|
429
|
-
- Brooks
|
430
|
-
- Kelly
|
431
|
-
- Sanders
|
432
|
-
- Price
|
433
|
-
- Bennett
|
434
|
-
- Wood
|
435
|
-
- Barnes
|
436
|
-
- Ross
|
437
|
-
- Henderson
|
438
|
-
- Coleman
|
439
|
-
- Jenkins
|
440
|
-
- Perry
|
441
|
-
- Powell
|
442
|
-
- Long
|
443
|
-
- Patterson
|
444
|
-
- Hughes
|
445
|
-
- Flores
|
446
|
-
- Washington
|
447
|
-
- Butler
|
448
|
-
- Simmons
|
449
|
-
- Foster
|
450
|
-
- Gonzales
|
451
|
-
- Bryant
|
452
|
-
- Alexander
|
453
|
-
- Russell
|
454
|
-
- Griffin
|
455
|
-
- Diaz
|
456
|
-
- Hayes
|
457
|
-
- Myers
|
458
|
-
- Ford
|
459
|
-
- Hamilton
|
460
|
-
- Graham
|
461
|
-
- Sullivan
|
462
|
-
- Wallace
|
463
|
-
- Woods
|
464
|
-
- Cole
|
465
|
-
- West
|
466
|
-
- Jordan
|
467
|
-
- Owens
|
468
|
-
- Reynolds
|
469
|
-
- Fisher
|
470
|
-
- Ellis
|
471
|
-
- Harrison
|
472
|
-
- Gibson
|
473
|
-
- McDonald
|
474
|
-
- Cruz
|
475
|
-
- Marshall
|
476
|
-
- Ortiz
|
477
|
-
- Gomez
|
478
|
-
- Murray
|
479
|
-
- Freeman
|
480
|
-
- Wells
|
481
|
-
- Webb
|
482
|
-
- Simpson
|
483
|
-
- Stevens
|
484
|
-
- Tucker
|
485
|
-
- Porter
|
486
|
-
- Hunter
|
487
|
-
- Hicks
|
488
|
-
- Crawford
|
489
|
-
- Henry
|
490
|
-
- Boyd
|
491
|
-
- Mason
|
492
|
-
- Morales
|
493
|
-
- Kennedy
|
494
|
-
- Warren
|
495
|
-
- Dixon
|
496
|
-
- Ramos
|
497
|
-
- Fisher
|
498
|
-
- Burns
|
499
|
-
- Shaw
|
500
|
-
- Holmes
|
501
|
-
- Rice
|
502
|
-
- Robertson
|
503
|
-
- Hunt
|
504
|
-
- Black
|
505
|
-
- Daniels
|
506
|
-
- Palmer
|
507
|
-
- Mills
|
508
|
-
- Nichols
|
509
|
-
- Grant
|
510
|
-
- Knight
|
511
|
-
- Ferguson
|
512
|
-
- Rose
|
513
|
-
- Stone
|
514
|
-
- Hawkins
|
515
|
-
- Dunn
|
516
|
-
- Perkins
|
517
|
-
- Hudson
|
518
|
-
- Spencer
|
519
|
-
- Gardner
|
520
|
-
- Stephens
|
521
|
-
- Payne
|
data/lib/randamu/address.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
module Randamu
|
2
|
-
class Address < Base
|
3
|
-
class << self
|
4
|
-
def city
|
5
|
-
load_data('address.city').sample
|
6
|
-
end
|
7
|
-
|
8
|
-
def state
|
9
|
-
load_data('address.state').sample
|
10
|
-
end
|
11
|
-
|
12
|
-
def street
|
13
|
-
load_data('address.street').sample
|
14
|
-
end
|
15
|
-
|
16
|
-
def zip_code
|
17
|
-
load_data('address.zip_code').sample
|
18
|
-
end
|
19
|
-
|
20
|
-
def full_address
|
21
|
-
"#{street}, #{city}, #{state}, #{zip_code}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
data/lib/randamu/name.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
module Randamu
|
2
|
-
class Name < Base
|
3
|
-
class << self
|
4
|
-
def first_name
|
5
|
-
male_first_names = load_data('name.male_first_name')
|
6
|
-
female_first_names = load_data('name.female_first_name')
|
7
|
-
(male_first_names + female_first_names).sample
|
8
|
-
end
|
9
|
-
|
10
|
-
def last_name
|
11
|
-
load_data('name.last_name').sample
|
12
|
-
end
|
13
|
-
|
14
|
-
def full_name
|
15
|
-
"#{first_name} #{last_name}"
|
16
|
-
end
|
17
|
-
|
18
|
-
def custom_name(length = 2)
|
19
|
-
custom_name = first_name
|
20
|
-
|
21
|
-
(length - 1).times do
|
22
|
-
custom_name += " #{last_name}"
|
23
|
-
end
|
24
|
-
|
25
|
-
custom_name
|
26
|
-
end
|
27
|
-
|
28
|
-
def male_name
|
29
|
-
load_data('name.male_first_name').sample
|
30
|
-
end
|
31
|
-
|
32
|
-
def female_name
|
33
|
-
load_data('name.female_first_name').sample
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
data/lib/randamu/text.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
module Randamu
|
2
|
-
class Text < Base
|
3
|
-
class << self
|
4
|
-
def word
|
5
|
-
load_data('text.lorem').sample
|
6
|
-
end
|
7
|
-
|
8
|
-
def sentence(word_count = 4)
|
9
|
-
word_count.times.map { word }.join(' ').capitalize
|
10
|
-
end
|
11
|
-
|
12
|
-
def paragraph(sentence_count = 8)
|
13
|
-
sentence_count.times.map { sentence }.join('. ') + '.'
|
14
|
-
end
|
15
|
-
|
16
|
-
def big_text(paragraph_count = 4)
|
17
|
-
paragraph_count.times.map { paragraph }.join("\n\n")
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|