randamu 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,520 @@
1
+ names:
2
+ male_name:
3
+ - João
4
+ - Paulo
5
+ - Miguel
6
+ - David
7
+ - José
8
+ - Roberto
9
+ - William
10
+ - Ricardo
11
+ - Carlos
12
+ - Antônio
13
+ - Tomás
14
+ - Cristiano
15
+ - Daniel
16
+ - Mateus
17
+ - Antônio
18
+ - Marcos
19
+ - Eduardo
20
+ - Estêvão
21
+ - Leonardo
22
+ - Bruno
23
+ - Lucas
24
+ - Renan
25
+ - Jeferson
26
+ - Gustavo
27
+ - Rafael
28
+ - Pedro
29
+ - Nicholas
30
+ - Erick
31
+ - Jonathan
32
+ - Alexandre
33
+ - Lúcio
34
+ - Samuel
35
+ - Francisco
36
+ - Bernardo
37
+ - Raimundo
38
+ - Gregório
39
+ - Benjamim
40
+ - Samuel
41
+ - Patrick
42
+ - Alexandre
43
+ - Thiago
44
+ - Denis
45
+ - Jair
46
+ - Tales
47
+ - Arão
48
+ - José
49
+ - Adão
50
+ - Natanael
51
+ - Henrique
52
+ - Douglas
53
+ - Zacarias
54
+ - Pedro
55
+ - Caio
56
+ - Valter
57
+ - Eduardo
58
+ - Jeremias
59
+ - Haroldo
60
+ - Cristiano
61
+ - Kauã
62
+ - Rogério
63
+ - Geraldo
64
+ - Jessé
65
+ - Alberto
66
+ - Artur
67
+ - Carlos
68
+ - Davi
69
+ - Bruno
70
+ - Bryan
71
+ - José
72
+ - Jordan
73
+ - Guilherme
74
+ - João
75
+ - Rafael
76
+ - Rui
77
+ - Noé
78
+ - Eugênio
79
+ - Ronaldo
80
+ - Vicente
81
+ - Roberto
82
+ - Elias
83
+ - Luís
84
+ - João
85
+ - Felipe
86
+ - Johnny
87
+ - Alan
88
+ - Juan
89
+ - Noan
90
+ - Enzo
91
+ - Gabriel
92
+ - Marlos
93
+ - Samuel
94
+ - Levi
95
+ - Leo
96
+ - André
97
+ - Antonio
98
+ - Leandro
99
+ - Felix
100
+ - Kayo
101
+ - Werllerson
102
+ - Denilson
103
+ - Ricardo
104
+ - Ronaldo
105
+ - Ulisses
106
+ - Júlio
107
+ - Colin
108
+ - Graham
109
+ - Jacó
110
+ - Israel
111
+ - Herbert
112
+ - Haroldo
113
+ - Marcos
114
+ - Vítor
115
+
116
+ female_name:
117
+ - Maria
118
+ - Joana
119
+ - Jennifer
120
+ - Linda
121
+ - Linda
122
+ - Elisabete
123
+ - Susana
124
+ - Margarida
125
+ - Jéssica
126
+ - Doroteia
127
+ - Sara
128
+ - Karen
129
+ - Nancy
130
+ - Elisa
131
+ - Sandra
132
+ - Michelle
133
+ - Aline
134
+ - Emily
135
+ - Laura
136
+ - Ana
137
+ - Helena
138
+ - Patrícia
139
+ - Melissa
140
+ - Kátia
141
+ - Ângela
142
+ - Mariana
143
+ - Anna
144
+ - Carol
145
+ - Ruth
146
+ - Rebeca
147
+ - Shirley
148
+ - Catarina
149
+ - Cristiane
150
+ - Bárbara
151
+ - Débora
152
+ - Jaqueline
153
+ - Olívia
154
+ - Érica
155
+ - Raquel
156
+ - Estefânia
157
+ - Janice
158
+ - Samanta
159
+ - Brenda
160
+ - Júlia
161
+ - Andréia
162
+ - Loren
163
+ - Diana
164
+ - Mônica
165
+ - Alice
166
+ - Érica
167
+ - Cátia
168
+ - Denise
169
+ - Cristal
170
+ - Rosa
171
+ - Ana
172
+ - Irene
173
+ - Gina
174
+ - Brooke
175
+ - Catarina
176
+ - Carol
177
+ - Vitória
178
+ - Ellen
179
+ - Valéria
180
+ - Janice
181
+ - Débora
182
+ - Cíntia
183
+ - Joan
184
+ - Bonnie
185
+ - Jean
186
+ - Beatriz
187
+ - Marilyn
188
+ - Franciele
189
+ - Melissa
190
+ - Amber
191
+ - Diane
192
+ - Clara
193
+ - Teresa
194
+ - Kelly
195
+ - Regina
196
+ - Laura
197
+ - Stacy
198
+ - Shannon
199
+ - Joana
200
+ - Emma
201
+ - Paula
202
+ - Glenda
203
+ - Bernadete
204
+ - Raquel
205
+ - Erin
206
+ - Brenda
207
+ - Edite
208
+ - Gina
209
+ - Betina
210
+ - Kelly
211
+ - Dorotéia
212
+ - Gladys
213
+ - Hazel
214
+ - Dona
215
+ - Gilda
216
+ - Wendy
217
+ - Cristiane
218
+ - Melânia
219
+ - Júlia
220
+ - Isabel
221
+ - Lorena
222
+ - Sara
223
+ - Marlene
224
+ - Vicki
225
+ - Felícia
226
+ - Paula
227
+ - Kay
228
+ - Janete
229
+ - Jordana
230
+ - Júlia
231
+ - Alice
232
+ - Mabel
233
+ - Robin
234
+ - Filomena
235
+ - Darlene
236
+ - Rute
237
+ - Francisca
238
+ - Sonia
239
+ - Abril
240
+ - Elen
241
+ - Cynthia
242
+ - Luísa
243
+ - Monique
244
+ - Vanessa
245
+ - Regina
246
+ - Ester
247
+ - Marisa
248
+ - Jéssica
249
+ - Abril
250
+ - Joana
251
+ - Beatriz
252
+ - Sílvia
253
+ - Íris
254
+ - Rosa
255
+ - Liliana
256
+ - Verônica
257
+ - Magda
258
+ - Madalena
259
+ - Dolores
260
+ - Olivia
261
+ - Cândida
262
+ - Leona
263
+ - Tereza
264
+ - Pitty
265
+ - Nélia
266
+ - Violeta
267
+ - Glória
268
+ - Lucília
269
+ - Vivian
270
+ - Joana
271
+ - Deanna
272
+ - Hanna
273
+ - Mira
274
+ - Joyce
275
+
276
+ last_name:
277
+ - Silva
278
+ - Santos
279
+ - Oliveira
280
+ - Pereira
281
+ - Souza
282
+ - Almeida
283
+ - Carvalho
284
+ - Lima
285
+ - Gomes
286
+ - Mendes
287
+ - Teixeira
288
+ - Martins
289
+ - Ferreira
290
+ - Costa
291
+ - Araujo
292
+ - Cardoso
293
+ - Barros
294
+ - Rodrigues
295
+ - Nascimento
296
+ - Vieira
297
+ - Farias
298
+ - Batista
299
+ - Dias
300
+ - Monteiro
301
+ - Barbosa
302
+ - Pinto
303
+ - Castro
304
+ - Andrade
305
+ - Moreira
306
+ - Ribeiro
307
+ - Menezes
308
+ - Correia
309
+ - Miranda
310
+ - Brito
311
+ - Melo
312
+ - Guimarães
313
+ - Braga
314
+ - Duarte
315
+ - Assis
316
+ - Cunha
317
+ - Macedo
318
+ - Fonseca
319
+ - Albuquerque
320
+ - Leite
321
+ - Bastos
322
+ - Tavares
323
+ - Machado
324
+ - Coelho
325
+ - Figueiredo
326
+ - Cruz
327
+ - Lima
328
+ - Duarte
329
+ - Silva
330
+ - Reis
331
+ - Mendes
332
+ - Souza
333
+ - Vieira
334
+ - Peixoto
335
+ - Neves
336
+ - Loureiro
337
+ - Santana
338
+ - Miranda
339
+ - Pacheco
340
+ - Campos
341
+ - Falcão
342
+ - Seixas
343
+ - Xavier
344
+ - Lemos
345
+ - Vasconcelos
346
+ - Azevedo
347
+ - Lacerda
348
+ - Furtado
349
+ - Portela
350
+ - Moura
351
+ - Matos
352
+ - Rocha
353
+ - Freitas
354
+ - Pontes
355
+ - Aragão
356
+ - Dantas
357
+ - Lobo
358
+ - Maia
359
+ - Passos
360
+ - Corrêa
361
+ - Sena
362
+ - Monteiro
363
+ - Goulart
364
+ - Silveira
365
+ - Veiga
366
+ - Sarmento
367
+ - Dorneles
368
+ - Meireles
369
+ - Teixeira
370
+ - Leitão
371
+ - Souza
372
+ - Sampaio
373
+ - Carneiro
374
+ - Monte
375
+ - Matias
376
+ - Pires
377
+ - Medeiros
378
+ - Paiva
379
+ - Almeida
380
+ - Teles
381
+ - Lins
382
+ - Coutinho
383
+ usernames:
384
+ default:
385
+ - Akinori
386
+ - Thor
387
+ - Maximus
388
+ - Exterminator
389
+ - Overtaker
390
+ - Naoki
391
+ - Sniper
392
+ - RockyBalboa
393
+ - Jaguar
394
+ - Torpedo
395
+ - Hazzard
396
+ - Satoshi
397
+ - Scorpion
398
+ - Cobra
399
+ - Falcão
400
+ - Prodigy
401
+ - Zombie
402
+ - Coyote
403
+ - Rocks
404
+ - Whiskey
405
+ - Leon
406
+ - Kitsune
407
+ - Massacry
408
+ - Goblete
409
+ - TurboSquat
410
+ - HangLoose
411
+ - Mainframe
412
+ - CyberMancer
413
+ - Flint
414
+ - Pehkonen
415
+ - Sir Mavros
416
+ - PointlessShot
417
+ - Salty BR
418
+ - PanzerLow
419
+ - TrapTok
420
+ - ScourgeWolf
421
+ - SkyLord
422
+ - Drakkoo
423
+ - Guacanarix
424
+ - Anaphylaxis
425
+ - Claverol
426
+ - Ronak
427
+ - Thunder Cloak
428
+ - Nygrum
429
+ - Alcatrax
430
+ - Black Lot
431
+ - Othalium
432
+ - Onyx Stryker
433
+ - Braquialys
434
+ - Crixos
435
+ - HydroSnake
436
+ - CTrlAltSNiper
437
+ - Crassus
438
+ - Baron Zemek
439
+ - HeatSyka
440
+ - Ariete Aereo
441
+ - BlackHearth
442
+ - Brock Blast
443
+ - Blood Vessel
444
+ - IceBerry
445
+ - Sakano
446
+ - TreeSensa
447
+ - TheRAM
448
+ - Pinkie
449
+ - Alpina Aster
450
+ - Magahis
451
+ - Gale
452
+ - Nacht
453
+ - Nebel
454
+ funny:
455
+ - CarimboMiguel
456
+ - gato_calvo
457
+ - 20Matar70fugir
458
+ - PalhaçoLoko
459
+ - PacoquinhaMaldita
460
+ - Conta no Orkut
461
+ - Nu Sertão
462
+ - SóXanaEAgua
463
+ - Dapra20comer
464
+ - NinguémJooga
465
+ - TatyComendo
466
+ - Tokagando
467
+ - Uhpapaichegou
468
+ - Intez Tino
469
+ - Cruizcredo
470
+ - Lord fralda
471
+ - SeuVagem
472
+ - Avestruz que te seduz
473
+ - Ouro que reluz
474
+ - Melado de óleo
475
+ - Tentei Comer quem leu
476
+ - Beijosmeliga
477
+ - Headshot grátis
478
+ - Sem Bala
479
+ - CertouMiseravi
480
+ - Naum Amola
481
+ - Cavalo amigável
482
+ - Morreu antes de ler
483
+ - 100Nome
484
+ - TudoSpam
485
+ - Kharne Greylhada
486
+ - Sniper Boleto
487
+ - Capa Nera
488
+ - BatataSozinha
489
+ - FeraSokeRuim
490
+ - Amortyzador
491
+ - After Eita
492
+ - Erro 504
493
+ - PuleiMorri
494
+ - iRuim 2.0
495
+ - LaggandoD+
496
+ - LixoDeQualidade
497
+ - Pirarucu Seboso
498
+ - MeusProbrema
499
+ - NickO Riginal
500
+ - ArsenalFunkeiro
501
+ - Rato Atomico
502
+ - Bispo Pelado
503
+ - Sou1abismo
504
+ - Adaptoide
505
+ - Vinho de Diezel
506
+ - Ze Morteiro
507
+ - MineirodeChernobil
508
+ - Rick Jaimes
509
+ - Urso Vago
510
+ - MonkeeFeice
511
+ - Major Morte
512
+ - Tone Yorke
513
+ - Fredo Mercurio
514
+ - Davyd Boyeae
515
+ - Ivete Comgalo
516
+ - Atom Jobine
517
+ - Abe Ração
518
+ - Euma Maria
519
+ - Al-Khabeid Kommer
520
+ - Sheik Volim Rabah
@@ -0,0 +1,29 @@
1
+ phone:
2
+ ddd:
3
+ AC: [68]
4
+ AL: [82]
5
+ AM: [92, 97]
6
+ AP: [96]
7
+ BA: [71, 73, 74, 75, 77]
8
+ CE: [85, 88]
9
+ DF: [61]
10
+ ES: [27, 28]
11
+ GO: [62, 64]
12
+ MA: [98, 99]
13
+ MG: [31, 32, 33, 34, 35, 37, 38]
14
+ MS: [67]
15
+ MT: [65, 66]
16
+ PA: [91, 93, 94]
17
+ PB: [83]
18
+ PE: [81, 87]
19
+ PI: [86, 89]
20
+ PR: [41, 42, 43, 44, 45, 46]
21
+ RJ: [21, 22, 24]
22
+ RN: [84]
23
+ RO: [69]
24
+ RR: [95]
25
+ RS: [51, 53, 54, 55]
26
+ SC: [47, 48, 49]
27
+ SE: [79]
28
+ SP: [11, 12, 13, 14, 15, 16, 17, 18, 19]
29
+ TO: [63]
@@ -1,4 +1,4 @@
1
- text:
1
+ texts:
2
2
  lorem:
3
3
  - ipsum
4
4
  - dolor
@@ -0,0 +1,24 @@
1
+ module Randamu
2
+ class Academic < Base
3
+ class << self
4
+ def education_level
5
+ ['Educação infantil', 'Fundamental', 'Médio',
6
+ 'Superior', 'Pós-graduação', 'Mestrado', 'Doutorado'].sample
7
+ end
8
+
9
+ def course
10
+ load_data('academic.courses').sample
11
+ end
12
+
13
+ def school
14
+ load_data('academic.schools').sample
15
+ end
16
+
17
+ def university
18
+ load_data('academic.universities').sample
19
+ end
20
+
21
+ alias :college :university
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,53 @@
1
+ module Randamu
2
+ class Account < Base
3
+ extend NameGenerator
4
+
5
+ ALPHABET = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
6
+ NUMERIC = '0123456789'
7
+ SPEACIAL = '!@#$%&*()_+'
8
+
9
+ class << self
10
+ def username(type: :default)
11
+ load_data("names.usernames.#{type}").sample
12
+ end
13
+
14
+ def password(length: 8, special: true, numeric: true, alphabet: true)
15
+ generate_password(length, special, numeric, alphabet)
16
+ end
17
+
18
+ def email
19
+ "#{normalize(first_name.downcase)}#{generate_connection_symbol}#{normalize(last_name.downcase)}@#{load_data('emails.domains').sample}"
20
+ end
21
+
22
+ def phone(state: Dictionary::STATES.keys.sample, country_code: false)
23
+ base_phone_number = "(#{load_data("phone.ddd.#{state}").sample}) " + phone_number
24
+ country_code ? "+55 #{base_phone_number}" : base_phone_number
25
+ end
26
+
27
+ def phone_only_numbers(state: Dictionary::STATES.keys.sample, country_code: false)
28
+ base_phone_number = load_data("phone.ddd.#{state}").sample.to_s + phone_number
29
+ country_code ? "55#{base_phone_number}" : base_phone_number
30
+ end
31
+
32
+ private
33
+ def generate_password(length, special, numeric, alphabet)
34
+ password = ''
35
+ password += ALPHABET if alphabet
36
+ password += SPEACIAL if special
37
+ password += NUMERIC if numeric
38
+ password.split('').shuffle[1..length].join
39
+ end
40
+
41
+ def generate_connection_symbol
42
+ ['-', '_', '.'].sample
43
+ end
44
+
45
+ def phone_number
46
+ '9' + rand(10000000..99999999).to_s
47
+ end
48
+ end
49
+
50
+ # private methods from NameGenerator
51
+ private_class_method :first_name, :last_name, :full_name, :custom_name
52
+ end
53
+ end
@@ -0,0 +1,21 @@
1
+ module Randamu
2
+ class Animal < Base
3
+ class << self
4
+ ANIMAL_TYPES = %w(mammal bird fish amphibian reptile insect).freeze
5
+
6
+ def animal(type: nil)
7
+ animal_type(type).sample
8
+ end
9
+
10
+ private
11
+ def animal_type(type)
12
+ return all_animals unless ANIMAL_TYPES.include?(type.to_s)
13
+ load_data("animals.#{type}s")
14
+ end
15
+
16
+ def all_animals
17
+ ANIMAL_TYPES.map { |type| load_data("animals.#{type}s") }.flatten
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,6 +1,5 @@
1
1
  module Randamu
2
2
  class Boolean < Base
3
- # TODO: Implemment number of boolean values to return
4
3
  class << self
5
4
  def boolean
6
5
  [true, false].sample
@@ -0,0 +1,12 @@
1
+ module Randamu
2
+ class Business < Base
3
+ class << self
4
+ def company_name
5
+ "#{load_data('names.last_name').sample} #{load_data('business.company_name.activity_area').sample} #{load_data('business.company_name.suffix').sample}"
6
+ end
7
+ def subscription
8
+ %w(Mensal Semestral Anual).sample
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,35 @@
1
+ module Randamu
2
+ class Date
3
+ DATE_FORMAT = '%d/%m/%Y'.freeze
4
+ START_DATE = '01/01/1950'.freeze
5
+ PRESENT_DATE = ::Date.today.strftime(DATE_FORMAT).freeze
6
+ FUTURE_DATE = (::Date.today + (365 * rand(1..100))).strftime(DATE_FORMAT).freeze
7
+
8
+ class << self
9
+ def date(start_date: START_DATE, end_date: PRESENT_DATE, as_string: false)
10
+ generate_date(start_date, end_date, as_string)
11
+ end
12
+
13
+ def future_date(start_date: PRESENT_DATE, end_date: FUTURE_DATE, as_string: false)
14
+ generate_date(start_date, end_date, as_string)
15
+ end
16
+
17
+ private
18
+ def generate_date(start_date, end_date, as_string)
19
+ start_date = string_to_date(start_date)
20
+ end_date = string_to_date(end_date)
21
+ random_date = rand(start_date..end_date)
22
+
23
+ return date_to_string(random_date) if as_string
24
+ random_date
25
+ end
26
+ def string_to_date(string)
27
+ ::Date.strptime(string, DATE_FORMAT)
28
+ end
29
+
30
+ def date_to_string(date)
31
+ date.strftime(DATE_FORMAT)
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,7 @@
1
+ module Randamu
2
+ class Doc < Base
3
+ extend DocumentGenerator
4
+ class << self
5
+ end
6
+ end
7
+ end