faker 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +8 -0
- data/README.md +73 -2
- data/lib/faker.rb +19 -0
- data/lib/faker/beer.rb +39 -0
- data/lib/faker/boolean.rb +9 -0
- data/lib/faker/cat.rb +19 -0
- data/lib/faker/color.rb +4 -0
- data/lib/faker/commerce.rb +1 -1
- data/lib/faker/date.rb +8 -0
- data/lib/faker/internet.rb +4 -4
- data/lib/faker/star_wars.rb +67 -0
- data/lib/faker/superhero.rb +25 -0
- data/lib/faker/version.rb +1 -1
- data/lib/locales/ca-CAT.yml +24 -0
- data/lib/locales/ca.yml +25 -0
- data/lib/locales/da-DK.yml +69 -0
- data/lib/locales/en.yml +28 -3
- data/lib/locales/fi-FI.yml +29 -0
- data/lib/locales/pt.yml +58 -0
- data/test/test_ca_cat_locale.rb +35 -0
- data/test/test_ca_locale.rb +22 -0
- data/test/test_da_dk_locale.rb +32 -0
- data/test/test_faker_beer.rb +41 -0
- data/test/test_faker_boolean.rb +23 -0
- data/test/test_faker_cat.rb +20 -0
- data/test/test_faker_color.rb +4 -0
- data/test/test_faker_date.rb +11 -0
- data/test/test_faker_internet.rb +16 -0
- data/test/test_faker_number.rb +3 -3
- data/test/test_faker_star_wars.rb +74 -0
- data/test/test_faker_superhero.rb +16 -0
- data/test/test_fi_locale.rb +33 -0
- data/test/test_locale.rb +2 -0
- data/test/test_pt_locale.rb +27 -0
- metadata +33 -3
data/lib/locales/ca.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
ca:
|
3
|
+
faker:
|
4
|
+
name:
|
5
|
+
female_first_name: [Abellera, Abril, Ada, Adaleda, Adaleis, Àgata, Agnès, Aida, Aidé, Ailo, Aina, Alamanda, Alba, Aledis, Alfreda, Alícia, Alix, Almodis, Aloma, Anaïs, Anastàsia, Àneu, Àngela, Àngels, Anna, Antiga, Antònia, Arcàngela, Ardoina, Ariadna, Arlet, Arsenda, Arsendis, Assumpció, Aura, Àurea, Aurembiaix, Aurora, Bàrbara, Bartomeva, Beatriu, Benvinguda, Betlem, Bibianna, Blanca, Blau, Bondia, Bruguers, Brugués, Bruna, Brunisenda, Candela, Carla, Carlota, Carme, Carolina, Casilda, Caterina, Cèlia, Chaymae, Cinta, Cior, Cira, Cixilona, Clotilde, Constança, Cristina, Dalila, Dolça, Dolors, Duna, Elena, Èlia, Elionor, Elisabet, Elisenda, Elvira, Emma, Enriqueta, Escarlata, Esclarmunda, Estel, Estel·la, Ester, Eugènia, Eulàlia, Fe, Ferrera, Foix, Gal·la, Gemma, Georgina, Glòria, Gotlana, Gotruda, Gueralda, Guillelma, Guillema, Guisla, Helena, Ia, Immaculada, Inda, Iolanda, Irene, Isaura, Isona, Ivet, Jacina, Jara, Joana, Jordina, Judit, Judith, Júlia, Laia, Laura, Lerenna, Letgarda, Letícia, Lia, Lídia, Llúcia, Lluïsa, Llura, Mafalda, Mar, Margalida, Maria, Mariona, Marta, Martina, Mercè, Meritxell, Mireia, Mònica, Montserrat, Natàlia, Nati, Neus, Nit, Noa, Noemí, Norma, Nura, Núria, Olga, Oliva, Pagesa, Patrícia, Paula, Peregrina, Peronella, Pilar, Ponça, Queralt, Quima, Ramona, Raquel, Remei, Riquilda, Rita, Romea, Rosa, Rosalia, Roser, Rosó, Rovella, Rut, Sança, Sancia, Sancina, Saurina, Selma, Senda, Siara, Sibil·la, Sibilia, Silvana, Sílvia, Sira, Sònia, Suavas, Suevis, Tamar, Teia, Timburguera, Tresa, Tuixén, Tura, Urgell, Úrsula, Valèria, Vanessa, Verònica, Victòria, Vinyet, Violant, Violeta, Virgínia, Xènia, Zenaida, Zoa]
|
6
|
+
female_prefix: [Sra.]
|
7
|
+
male_first_name: [Aaró, Aaron, Abacuc, Abba, Abel, Abelard, Abraham, Acfred, Adam, Adrià, Albà, Albert, Aleix, Aleu, Àlex, Álex, Alexandre, Alfons, Alfred, Àlvar, Amadeu, Amador, Amalric, Amand, Anastasi, Andreu, Àngel, Aniol, Antoni, Apel·les, Arcadi, Armand, Armengol, Arnau, Artal, Artur, August, Àxel, Bartolí, Bartolomeu, Benet, Bert, Biel, Blai, Blanc, Boi, Bonaventura, Borja, Borràs, Borrell, Bru, Carbó, Carles, Castelló, Cèsar, Cesc, Constantí, Cristià, Cugat, Damià, Daniel, David, Dídac, Domènec, Donat, Drac, Eduard, Egidi, Elm, Eloi, Enric, Èric, Ermengol, Ernest, Estanislau, Eudald, Feliu, Fèlix, Ferriol, Fortià, Garbí, Gastó, Gaufred, Gausbert, Gausfred, Gelabert, Genís, Gerai, Gerald, Gerard, Germà, Gonçal, Grau, Gregori, Guerau, Guifré, Guim, Guiu, Gustau, Habacuc, Hèctor, Hug, Ignasi, Iol, Isaac, Isma, Iu, Ivan, Izan, Joan, Joel, Jofre, Jonàs, Jordi, Josefí, Josep, Julià, Kilian, Laureà, Llàtzer, Lledó, Lleó, Lluc, Llucià, Lluis, Llull, Llum, Luard, Magí, Manel, Marc, Marçal, Margarit, Maricel, Marimon, Martí, Mateu, Maurici, Milos, Miquel, Miró, Mirt, Modest, Natan, Nèstor, Nil, Olaf, Olau, Oleguer, Oliver, Oriol, Oscar, Òscar, Ot, Ota, Otger, Palau, Pau, Peris, Pol, Quel, Quer, Quim, Quintí, Quirze, Quixot, Radulf, Rafael, Rafaela, Raimon, Ramir, Raül, Rauric, Renat, Rispau, Robert, Roc, Roderic, Roger, Rosseyó, Rubén, Rutger, Samuel, Sanç, Santiago, Saoni, Serafí, Sergi, Sever, Severí, Sibil, Silvà, Siset, Sunyer, Telm, Uguet, Uriel, Valentí, Valeri, Vicenç, Víctor, Vidal, Xavier, Zacaries, Zenon, Zotan]
|
8
|
+
male_prefix: [Sr.]
|
9
|
+
last_name: [Adell, Albert, Aubert, Alemany, Armengol, Armengou, Amengual, Mengual, Balasch, Bonastre, Bosch, Batallé, Cabot, Calafell, Camprubí, Cardona, Casajuana, Casajoana, Canudas, Codina, Codines, Codinas, Comas, Comes, Coma, Danés, Danès, Estruch, Fabré, Febrer, Ferrer, Ferré, Farré, Ferrés, Farrés, Fortuny, Gasull, Gassull, Grau, Garau, Gual, Gol, Guasch, Gasch, Guarch, Guasp, Jordà, Llach, Llobet, Magrans, Maymó, Maimó, Mas, Massot, Masot, Melis, Miquel, Molas, Moragues, Moragas, Nàcher, Nadal, de Nadal, Oriol, Pitarch, Pitart, Pons, Prat, Raga, Reixach, Rexach, Riera, Reixachs, Rexachs, Ricart, Robert, Rubert, Roig, Roma, Ros, Sabater, Sabaté, Sabatés, Sabaters, Sala, Salom, Santacana, Sentmartí, Serra, Soler, Solé, Sulé, Taberner, Taberné, Taverner, Taverné, Tió, Thió, Vidal, Vives]
|
10
|
+
first_name:
|
11
|
+
- "#{female_first_name}"
|
12
|
+
- "#{male_first_name}"
|
13
|
+
name:
|
14
|
+
- "#{female_prefix} #{female_first_name} #{last_name} #{last_name}"
|
15
|
+
- "#{female_first_name} #{last_name} i #{last_name}"
|
16
|
+
- "#{female_first_name} #{last_name} #{last_name}"
|
17
|
+
- "#{female_first_name} #{last_name} #{last_name}"
|
18
|
+
- "#{female_first_name} #{last_name} #{last_name}"
|
19
|
+
- "#{male_prefix} #{male_first_name} #{last_name} #{last_name}"
|
20
|
+
- "#{male_first_name} #{last_name} i #{last_name}"
|
21
|
+
- "#{male_first_name} #{last_name} #{last_name}"
|
22
|
+
- "#{male_first_name} #{last_name} #{last_name}"
|
23
|
+
- "#{male_first_name} #{last_name} #{last_name}"
|
24
|
+
color:
|
25
|
+
name: [aiguamarina, albercoc, amarant, ambre, ametista, atzur, beix, bistre, blanc, blat, blau, blau cel, blau fosc, blau marí, blau reial, blauet, bronze, camussa, canyella, caqui, cardenal, carmesí, carmí, carnació, castany rogenc, celadont, ceruli, chartreuse, cian, cirera, corall, coure, crema, escarlata, granat, gris, gris fosc, groc, lavanda, lila, llima, magenta, malva, marró, morat, ocre, or, orquídia, panotxa, plata, porpra, préssec, pruna, verd, verd maragda, verd oliva, verd veronès, vermell, vermell fosc, vermelló, vinca, violat, vori]
|
@@ -0,0 +1,69 @@
|
|
1
|
+
da-DK:
|
2
|
+
faker:
|
3
|
+
address:
|
4
|
+
city_prefix: [Nord, Birke, Ny, Frederiks, Lille, Vær, Ring, Støv, Sven, Munke, Kerte, Horn, Aa, Bør, Otte, Had, Vi, Rud, Bro, Vide, Jyde, Lange]
|
5
|
+
city_suffix: [by, hus, borg, holm, bjerg, lund, bro, bæk, løse, slev, rød, å, sør, skov, slet, værk, strup, købing, sted, sten, kro, toft, ring, vig, bo]
|
6
|
+
country: [Rusland, Canada, Kina, USA, Brasilien, Australien, Indien, Argentina, Kasakhstan, Algeriet, Den Demokratiske Republik Congo, Danmark, Færøerne, Grønland, Saudi-Arabien, Mexico, Indonesien, Sudan, Libyen, Iran, Mongoliet, Peru, Chad, Niger, Angola, Mali, Sydafrika, Colombia, Etiopien, Bolivia, Mauretanien, Egypten, Tanzania, Nigeria, Venezuela, Namibia, Pakistan, Mocambique, Tyrkiet, Chile, Zambia, Marokko, Vestsahara, Burma, Afghanistan, Somalia, Den Centralafrikanske Republik, Sydsudan, Ukraine, Botswana, Madagaskar, Kenya, Frankrig, Fransk Guyana, Yemen, Thailand, Spanien, Turkmenistan, Cameroun, Papua Ny Guinea, Sverige, Usbekistan, Irak, Paraguay, Zimbabwe, Japan, Tyskland, Congo, Finland, Malaysia, Vietnam, Norge, Svalbard, Jan Mayen, Elfenbenskysten, Polen, Italien, Filippinerne, Ecuador, Burkina Faso, Nya Zealand, Gabon, Guinea, Storbritannien, Ghana, Rumænien, Laos, Uganda, Guyana, Oman, Hviderusland, Kirgisistan, Senegal, Syrien, Cambodja, Uruguay, Tunesien, Surinam, Nepal, Bangladesh, Tadsjikistan, Grækenland, Nicaragua, Eritrea, Nordkorea, Malawi, Benin, Honduras, Liberia, Bulgarien, Cuba, Guatemala, Island, Sydkorea, Ungarn, Portugal, Jordan, Serbien, Aserbajdsjan, Østrig, De Forenede Arabiske Emirater, Tjekkiet, Panama, Sierra Leone, Irland, Georgien, Sri Lanka, Litauen, Letland, Togo, Kroatien, Bosnien og Hercegovina, Costa Rica, Slovakiet, Den Dominikanske republik, Bhutan, Estland, Danmark, Færøerne, Grønland, Nederlænderne, Schweiz, Guinea-Bissau, Taiwan, Moldova, Belgien, Lesotho, Armenien, Albanien, Salomonøerne, Ækvatorialguinea, Burundi, Haiti, Rwanda, Makedonien, Djibouti, Belize, Israel, El Salvador, Slovenien, Fiji, Kuwait, Swaziland, Østtimor, Montenegro, Bahamas, Vanuatu, Qatar, Gambia, Jamaica, Kosovo, Libanon, Cypern, Brunei, Trinidad og Tobago, Kap Verde, Samoa, Luxembourg, Comorerne, Mauritius, São Tomé og Principe, Kiribati, Dominica, Tonga, Mikronesien, Singapore, Bahrain, Saint Lucia, Andorra, Palau, Seychellerne, Antigua og Barbuda, Barbados, Saint Vincent og Grenadinerne, Grenada, Malta, Maldiverne, Saint Kitts og Nevis, Marshalløerne, Liechtenstein, San Marino, Tuvalu, Nauru, Monaco, Vatikanstaten]
|
7
|
+
common_street_suffix: [vej, gade]
|
8
|
+
street_prefix: [Vester, Øster, Nørre, Over, Under]
|
9
|
+
street_root: [Lærke, Birke, Vinkel, Vibe, Mølle, Ring, Skole, Skov, Ny, Ege, Sol, Industri, Kirke, Park, Strand, Eng]
|
10
|
+
street_suffix: [vej, gade, gyde, allé]
|
11
|
+
state: [Region Nordjylland, Region Midtjylland, Region Syddanmark, Region Hovedstaden, Region Sjælland]
|
12
|
+
|
13
|
+
city:
|
14
|
+
- "#{city_prefix}#{city_suffix}"
|
15
|
+
street_name:
|
16
|
+
- "#{street_root}#{street_suffix}"
|
17
|
+
- "#{street_prefix} #{street_root}#{street_suffix}"
|
18
|
+
- "#{Name.first_name}#{common_street_suffix}"
|
19
|
+
- "#{Name.last_name}#{common_street_suffix}"
|
20
|
+
postcode: ['####']
|
21
|
+
building_number: ['###', '##', '#']
|
22
|
+
secondary_address: ['Hus ###', '# TH.', '#TV.', '# MF.', '# ST.']
|
23
|
+
street_address:
|
24
|
+
- "#{street_name} #{building_number}"
|
25
|
+
default_country: [Danmark]
|
26
|
+
|
27
|
+
company:
|
28
|
+
suffix: ["A/S", "ApS", "I/S", "IVS", "Holding", "SMBA", "K/S", "SPW"]
|
29
|
+
name:
|
30
|
+
- "#{Name.last_name} #{suffix}"
|
31
|
+
- "#{Name.last_name}-#{Name.last_name}"
|
32
|
+
- "#{Name.last_name}, #{Name.last_name} #{suffix}"
|
33
|
+
|
34
|
+
internet:
|
35
|
+
domain_suffix: [dk, nu, com]
|
36
|
+
|
37
|
+
name:
|
38
|
+
first_name: [Peter, Jens, Lars, Michael, Henrik, Thomas, Søren, Jan, Christian, Niels, Anne, Kirsten, Hanne, Mette, Anna, Helle, Susanne, Lene, Maria, Marianne]
|
39
|
+
last_name: [Nielsen, Jensen, Hansen, Pedersen, Andersen, Christensen, Larsen, Sørensen, Rasmussen, Jørgensen]
|
40
|
+
prefix: ["Dr.", "Prof.", "Cand.mag.", "Cand.jur."]
|
41
|
+
|
42
|
+
title:
|
43
|
+
descriptor: [Leder, Senior, Fremtid, Produkt, National, Regional, Distrikt, Central, Global, Kunde, Investor, Dynamic, International, Legacy, Forward, Intern, HR, Direktør, Rektor]
|
44
|
+
level: [Solutions, Program, Brand, Sikkerhed, Research, Marketing, Directives, Implementering, Integration, Funktionalitet, Respons, Paradigme, Taktik, Identitet, Markeder, Gruppe, Division, Applikationer, Optimering, Operationer, Infrastruktur, Intranet, Kommunikation, Web, Branding, Kvalitet, Kontrol, Mobilitet, Regnskab, Data, Kreativ, Konfiguration, Interaktioner, Faktorer, Anvendelighed, Metrik]
|
45
|
+
job: [Supervisor, Officer, Manager, Ingeniør, Specialist, Direktør, Koordinator, Administrator, Arkitekt, Analytiker, Designer, Planner, Tekniker, Udvikler, Producer, Konsultant, Assistant, Agent, Tillidsrepræsentant, Strateg]
|
46
|
+
name:
|
47
|
+
- "#{first_name} #{last_name}"
|
48
|
+
- "#{prefix} #{first_name} #{last_name}"
|
49
|
+
|
50
|
+
phone_number:
|
51
|
+
formats:
|
52
|
+
- '## ## ## ##'
|
53
|
+
- '##-##-##-##'
|
54
|
+
cell_phone:
|
55
|
+
formats:
|
56
|
+
- '20 ## ## ##'
|
57
|
+
- '30 ## ## ##'
|
58
|
+
- '40 ## ## ##'
|
59
|
+
|
60
|
+
commerce:
|
61
|
+
color: [hvid, sølv, grå, sort, rød, grøn, blå, gul, lilla, guld, brun, rosa]
|
62
|
+
department: ["Bøger", "Film", "Musik", "Spil", "Elektronik", "Computere", "Hus", "Have", "Værktøj", "Fødevarer", "Helse", "Skønhed", "Legetøj", "Tøj", "Sko", "Smykker", "Sport"]
|
63
|
+
product_name:
|
64
|
+
adjective: [Lille, Ergonomisk, Robust, Intelligent, Sød, Utrolig, Fantastisk, Praktisk, Slank, Fed, Enorm, Enkel, Tung, Let, Multianvendelig, Udholdende]
|
65
|
+
material: [Stål, Metal, Træ, Beton, Plastic, Bomuld, Granit, Gummi, Latex, Læder, Silke, Uld, Ruskind, Linned, Marmor, Jern, Bronze, Kobber, Messing, Aluminium, Papir]
|
66
|
+
product: [Stol, Bil, Computer, Buks, Trøje, Bord, Hat, Tallerken, Kniv, Flaske, Jakke, Lampe, Tastatur, Taske, Bænk, Ur, Pung]
|
67
|
+
|
68
|
+
name:
|
69
|
+
- "#{Address.city} #{suffix}"
|
data/lib/locales/en.yml
CHANGED
@@ -141,8 +141,10 @@ en:
|
|
141
141
|
credit_card_expiry_dates: ['2011-10-12', '2012-11-12', '2015-11-11', '2013-9-12']
|
142
142
|
credit_card_types: ['visa', 'mastercard', 'american_express', 'discover', 'diners_club', 'jcb', 'switch', 'solo', 'dankort', maestro', 'forbrugsforeningen', 'laser']
|
143
143
|
|
144
|
+
color:
|
145
|
+
name: [red, green, blue, yellow, purple, mint green, teal, white, black, orange, pink, grey, maroon, violet, turquoise, tan, sky blue, salmon, plum, orchid, olive, magenta, lime, ivory, indigo, gold, fuchsia, cyan, azure, lavender, silver]
|
146
|
+
|
144
147
|
commerce:
|
145
|
-
color: [red, green, blue, yellow, purple, mint green, teal, white, black, orange, pink, grey, maroon, violet, turquoise, tan, sky blue, salmon, plum, orchid, olive, magenta, lime, ivory, indigo, gold, fuchsia, cyan, azure, lavender, silver]
|
146
148
|
department: ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Home", "Garden", "Tools", "Grocery", "Health", "Beauty", "Toys", "Kids", "Baby", "Clothing", "Shoes", "Jewelery", "Sports", "Outdoors", "Automotive", "Industrial"]
|
147
149
|
product_name:
|
148
150
|
adjective: [Small, Ergonomic, Rustic, Intelligent, Gorgeous, Incredible, Fantastic, Practical, Sleek, Awesome, Enormous, Mediocre, Synergistic, Heavy Duty, Lightweight, Aerodynamic, Durable]
|
@@ -193,7 +195,30 @@ en:
|
|
193
195
|
- "#{custom}"
|
194
196
|
|
195
197
|
book:
|
196
|
-
title: ['A
|
198
|
+
title: ["Absalom, Absalom!", "After Many a Summer Dies the Swan", "Ah, Wilderness!", "All Passion Spent", "All the King's Men", "Alone on a Wide, Wide Sea", "An Acceptable Time", "Antic Hay", "An Evil Cradling", "Arms and the Man", "As I Lay Dying", "A Time to Kill", "Behold the Man", "Beneath the Bleeding", "Beyond the Mexique Bay", "Blithe Spirit", "Blood's a Rover", "Blue Remembered Earth", "Rosemary Sutcliff", "Françoise Sagan", "Brandy of the Damned", "Bury My Heart at Wounded Knee", "Butter In a Lordly Dish", "By Grand Central Station I Sat Down and Wept", "Cabbages and Kings", "Carrion Comfort", "A Catskill Eagle", "Clouds of Witness", "A Confederacy of Dunces", "Consider Phlebas", "Consider the Lilies", "Cover Her Face", "The Cricket on the Hearth", "The Curious Incident of the Dog in the Night-Time", "The Daffodil Sky", "Dance Dance Dance", "A Darkling Plain", "Death Be Not Proud", "The Doors of Perception", "Down to a Sunless Sea", "Dulce et Decorum Est", "Dying of the Light", "East of Eden", "Ego Dominus Tuus", "Endless Night", "Everything is Illuminated", "Eyeless in Gaza", "Fair Stood the Wind for France", "Fame Is the Spur", "Edna O'Brien", "The Far-Distant Oxus", "A Farewell to Arms", "Far From the Madding Crowd", "Fear and Trembling", "For a Breath I Tarry", "For Whom the Bell Tolls", "Frequent Hearses", "From Here to Eternity", "A Glass of Blessings", "The Glory and the Dream", "The Golden Apples of the Sun", "The Golden Bowl", "Gone with the Wind", "The Grapes of Wrath", "Great Work of Time", "The Green Bay Tree", "A Handful of Dust", "Have His Carcase", "The Heart Is a Lonely Hunter", "The Heart Is Deceitful Above All Things", "His Dark Materials", "The House of Mirth", "Sleep the Brave", "I Know Why the Caged Bird Sings", "I Sing the Body Electric", "I Will Fear No Evil", "If I Forget Thee Jerusalem", "If Not Now, When?", "nfinite Jest", "In a Dry Season", "In a Glass Darkly", "|In Death Ground", "In Dubious Battle", "An Instant In The Wind", "It's a Battlefield", "Jacob Have I Loved", "O Jerusalem!", "Jesting Pilate", "The Last Enemy", "The Last Temptation", "The Lathe of Heaven", "Let Us Now Praise Famous Men", "Lilies of the Field", "This Lime Tree Bower", "The Line of Beauty", "The Little Foxes", "Little Hands Clapping", "Look Homeward, Angel", "Look to Windward", "The Man Within", "Many Waters", "A Many-Splendoured Thing", "The Mermaids Singing", "The Millstone", "The Mirror Crack'd from Side to Side", "Moab Is My Washpot", "The Monkey's Raincoat", "A Monstrous Regiment of Women", "The Moon by Night", "Mother Night", "The Moving Finger", "The Moving Toyshop", "Mr Standfast", "Nectar in a Sieve", "The Needle's Eye", "Nine Coaches Waiting", "No Country for Old Men", "No Highway", "Noli Me Tangere", "No Longer at Ease", "Now Sleeps the Crimson Petal", "Number the Stars", "Of Human Bondage", "Of Mice and Men", "Oh! To be in England", "The Other Side of Silence", "The Painted Veil", "Pale Kings and Princes", "The Parliament of Man", "Paths of Glory", "A Passage to India", "O Pioneers!", "Postern of Fate", "Precious Bane", "The Proper Study", "Quo Vadis", "Recalled to Life", "Recalled to Life", "Ring of Bright Water", "The Road Less Traveled", "A Scanner Darkly", "Shall not Perish", "The Skull Beneath the Skin", "The Soldier's Art", "Some Buried Caesar", "Specimen Days", "The Stars' Tennis Balls", "Stranger in a Strange Land", "Such, Such Were the Joys", "A Summer Bird-Cage", "The Sun Also Rises", "Surprised by Joy", "A Swiftly Tilting Planet", "Taming a Sea Horse", "Tender Is the Night", "Terrible Swift Sword", "That Good Night", "That Hideous Strength", "Things Fall Apart", "This Side of Paradise", "Those Barren Leaves, Thrones, Dominations", "Tiger! Tiger! (Rudyard Kipling)", "A Time of Gifts", "Time of our Darkness", "Time To Murder And Create", "Tirra Lirra by the River", "To a God Unknown", "To Sail Beyond the Sunset", "To Say Nothing of the Dog", "To Your Scattered Bodies Go", "The Torment of Others", "Unweaving the Rainbow", "Vanity Fair", "Vile Bodies", "The Violent Bear It Away", "Waiting for the Barbarians", "The Waste Land", "The Way of All Flesh", "The Way Through the Woods", "The Wealth of Nations", "What's Become of Waring", "When the Green Woods Laugh", "Where Angels Fear to Tread", "The Widening Gyre", "Wildfire at Midnight", "The Wind's Twelve Quarters", "The Wings of the Dove", "The Wives of Bath", "The World, the Flesh and the Devil (1891 novel)", "The Yellow Meads of Asphodel"]
|
197
199
|
author: "#{Name.name}"
|
198
|
-
publisher: [
|
200
|
+
publisher: ["Academic Press", "Ace Books", "Addison–Wesley", "Adis International", "Airiti Press", "André Deutsch", "Andrews McMeel Publishing", "Anova Books", "Anvil Press Poetry", "Applewood Books", "Apress", "Athabasca University Press", "Atheneum Books", "Atheneum Publishers", "Atlantic Books", "Atlas Press", "Ballantine Books", "Banner of Truth Trust", "Bantam Books", "Bantam Spectra", "Barrie & Jenkins", "Basic Books", "BBC Books", "Harvard University Press|Belknap Press", "Bella Books", "Bellevue Literary Press", "Berg Publishers", "Berkley Books", "Bison Books", "Black Dog Publishing", "Black Library", "Black Sparrow Books", "Blackie and Son Limited", "Blackstaff Press", "Blackwell Publishing", "John Blake Publishing|Blake Publishing", "Bloodaxe Books", "Bloomsbury Publishing Plc", "Blue Ribbon Books", "Book League of America", "Book Works", "Booktrope", "Borgo Press", "Bowes & Bowes", "Boydell & Brewer", "Breslov Research Institute", "Brill Publishers", "Brimstone Press", "Broadview Press", "Burns & Oates", "Butterworth-Heinemann", "Caister Academic Press", "Cambridge University Press", "Candlewick Press", "Canongate Books", "Carcanet Press", "Carlton Books", "Carlton Publishing Group", "Carnegie Mellon University Press", "Casemate Publishers", "Cengage Learning", "Central European University Press", "Chambers Harrap", "Charles Scribner's Sons", "Chatto and Windus", "Chick Publications", "Chronicle Books", "Churchill Livingstone", "Cisco Press", "City Lights Publishers", "Cloverdale Corporation", "D. Appleton & Company", "D. Reidel", "Da Capo Press", "Daedalus Publishing", "Dalkey Archive Press", "Darakwon Press", "David & Charles", "DAW Books", "Dedalus Books", "Del Rey Books", "E. P. Dutton", "Earthscan", "ECW Press", "Eel Pie Publishing", "Eerdmans Publishing", "Edupedia Publications", "Ellora's Cave", "Elsevier", "Emerald Group Publishing", "Etruscan Press", "Faber and Faber", "FabJob", "Fairview Press", "Farrar, Straus & Giroux", "Fearless Books", "Felony & Mayhem Press", "Firebrand Books", "Flame Tree Publishing", "Focal Press", "G. P. Putnam's Sons", "G-Unit Books", "Gaspereau Press", "Gay Men's Press", "Gefen Publishing House", "George H. Doran Company", "George Newnes", "George Routledge & Sons", "Godwit Press", "Golden Cockerel Press", "Hachette Book Group USA", "Hackett Publishing Company", "Hamish Hamilton", "Happy House", "Harcourt Assessment", "Harcourt Trade Publishers", "Harlequin Enterprises Ltd", "Harper & Brothers", "Harper & Row", "HarperCollins", "HarperPrism", "HarperTrophy", "Harry N. Abrams, Inc.", "Harvard University Press", "Harvest House", "Harvill Press at Random House", "Hawthorne Books", "Hay House", "Haynes Manuals", "Heyday Books", "HMSO", "Hodder & Stoughton", "Hodder Headline", "Hogarth Press", "Holland Park Press", "Holt McDougal", "Horizon Scientific Press", "Ian Allan Publishing", "Ignatius Press", "Imperial War Museum", "Indiana University Press", "J. M. Dent", "Jaico Publishing House", "Jarrolds Publishing", "Karadi Tales", "Kensington Books", "Kessinger Publishing", "Kodansha", "Kogan Page", "Koren Publishers Jerusalem", "Ladybird Books", "Leaf Books", "Leafwood Publishers", "Left Book Club", "Legend Books", "Lethe Press", "Libertas Academica", "Liberty Fund", "Library of America", "Lion Hudson", "Macmillan Publishers", "Mainstream Publishing", "Manchester University Press", "Mandrake of Oxford", "Mandrake Press", "Manning Publications", "Manor House Publishing", "Mapin Publishing", "Marion Boyars Publishers", "Mark Batty Publisher", "Marshall Cavendish", "Marshall Pickering", "Martinus Nijhoff Publishers", "Mascot Books", "Matthias Media", "McClelland and Stewart", "McFarland & Company", "McGraw-Hill Education", "McGraw Hill Financial", "Medknow Publications", "Naiad Press", "Nauka (publisher)|Nauka", "NavPress", "New Directions Publishing", "New English Library", "New Holland Publishers", "New Village Press", "George Newnes|Newnes", "No Starch Press", "Nonesuch Press", "Oberon Books", "Open Court Publishing Company", "Open University Press", "Orchard Books", "O'Reilly Media", "Orion Books", "Packt Publishing", "Palgrave Macmillan", "Pan Books", "Pantheon Books at Random House", "Papadakis Publisher", "Parachute Publishing", "Parragon", "Pathfinder Press", "Paulist Press", "Pavilion Books", "Peace Hill Press", "Pecan Grove Press", "Pen and Sword Books", "Penguin Books", "Random House", "Reed Elsevier", "Reed Publishing", "SAGE Publications", "St. Martin's Press", "Salt Publishing", "Sams Publishing", "Schocken Books", "Scholastic Press", "Charles Scribner's Sons|Scribner", "Seagull Books", "Secker & Warburg", "Shambhala Publications", "Shire Books", "Shoemaker & Hoard Publishers", "Shuter & Shooter Publishers", "Sidgwick & Jackson", "Signet Books", "Simon & Schuster", "T & T Clark", "Tachyon Publications", "Tammi (publishing company)|Tammi", "Target Books", "Tarpaulin Sky Press", "Tartarus Press", "Tate Publishing & Enterprises", "Taunton Press", "Taylor & Francis", "Ten Speed Press", "UCL Press", "Unfinished Monument Press", "United States Government Publishing Office", "University of Akron Press", "University of Alaska Press", "University of California Press", "University of Chicago Press", "University of Michigan Press", "University of Minnesota Press", "University of Nebraska Press", "Velazquez Press", "Verso Books", "Victor Gollancz Ltd", "Viking Press", "Vintage Books", "Vintage Books at Random House", "Virago Press", "Virgin Publishing", "Voyager Books", "P Publishers{{spaced ndash}} an imprint of [[Brill Publishers", "Allen Ltd", "Zed Books", "Ziff Davis Media", "Zondervan"]
|
199
201
|
genre: ['Classic', 'Comic/Graphic Novel', 'Crime/Detective', 'Fable', 'Fairy tale', 'Fanfiction', 'Fantasy', 'Fiction narrative', 'Fiction in verse', 'Folklore', 'Historical fiction', 'Horror', 'Humor', 'Legend', 'Metafiction', 'Mystery', 'Mythology', 'Mythopoeia', 'Realistic fiction', 'Science fiction ', 'Short story', 'Suspense/Thriller', 'Tall tale', 'Western', 'Biography/Autobiography', 'Essay', 'Narrative nonfiction', 'Speech', 'Textbook', 'Reference book']
|
202
|
+
|
203
|
+
cat:
|
204
|
+
name: ["Alfie", "Angel", "Bella", "Charlie", "Chloe", "Coco", "Daisy", "Felix", "Jasper", "Lily", "Lucky", "Lucy", "Max", "Millie", "Milo", "Missy", "Misty", "Molly", "Oliver", "Oscar", "Poppy", "Sam", "Shadow", "Simba", "Smokey", "Smudge", "Sooty", "Tiger"]
|
205
|
+
breed: ["Abyssinian", "Aegean", "American Bobtail", "American Curl", "American Shorthair", "American Wirehair", "Arabian Mau", "Asian", "Asian Semi-longhair", "Australian Mist", "Balinese", "Bambino", "Bengal", "Birman", "Bombay", "Brazilian Shorthair", "British Longhair", "British Semipi-longhair", "British Shorthair", "Burmese", "Burmilla", "California Spangled", "Chantilly-Tiffany", "Chartreux", "Chausie", "Cheetoh", "Colorpoint Shorthair", "Cornish Rex", "Cymric, or Manx Longhair", "Cyprus", "Devon Rex", "Donskoy, or Don Sphynx", "Dragon Li", "Dwarf cat, or Dwelf", "Egyptian Mau", "European Shorthair", "Exotic Shorthair", "Foldex Cat", "German Rex", "Havana Brown", "Highlander", "Himalayan, or Colorpoint Persian", "Japanese Bobtail", "Javanese", "Khao Manee", "Korat", "Korean Bobtail", "Korn Ja", "Kurilian Bobtail", "Kurilian Bobtail, or Kuril Islands Bobtail", "LaPerm", "Lykoi", "Maine Coon", "Manx", "Mekong Bobtail", "Minskin", "Munchkin", "Napoleon", "Nebelung", "Norwegian Forest Cat", "Ocicat", "Ojos Azules", "Oregon Rex", "Oriental Bicolor", "Oriental Longhair", "Oriental Shorthair", "PerFold Cat (Experimental Breed - WCF)", "Persian (Modern Persian Cat)", "Persian (Traditional Persian Cat)", "Peterbald", "Pixie-bob", "Raas", "Ragamuffin", "Ragdoll", "Russian Blue", "Russian White, Black and Tabby", "Sam Sawet", "Savannah", "Scottish Fold", "Selkirk Rex", "Serengeti", "Serrade petit", "Siamese", "Siberian", "Singapura", "Snowshoe", "Sokoke", "Somali", "Sphynx", "Suphalak", "Thai", "Tonkinese", "Toyger", "Turkish Angora", "Turkish Van", "Ukrainian Levkoy"]
|
206
|
+
registry: ["American Cat Fanciers Association", "Associazione Nazionale Felina Italiana", "Canadian Cat Association", "Cat Aficionado Association", "Cat Fanciers' Association", "Emirates Feline Federation", "Fédération Internationale Féline", "Felis Britannica", "Governing Council of the Cat", "Fancy Southern Africa Cat Council", "The International Cat Association"]
|
207
|
+
|
208
|
+
superhero:
|
209
|
+
power: ["Ability Shift", "Absorption", "Accuracy", "Adaptation", "Aerokinesis", "Agility", "Animal Attributes", "Animal Control", "Animal Oriented Powers", "Animation", "Anti-Gravity", "Apotheosis", "Astral Projection", "Astral Trap", "Astral Travel", "Atmokinesis", "Audiokinesis", "Banish", "Biokinesis", "Bullet Time", "Camouflage", "Changing Armor", "Chlorokinesis", "Chronokinesis", "Clairvoyance", "Cloaking", "Cold Resistance", "Cross-Dimensional Awareness", "Cross-Dimensional Travel", "Cryokinesis", "Danger Sense", "Darkforce Manipulation", "Death Touch", "Density Control", "Dexterity", "Duplication", "Durability", "Echokinesis", "Elasticity", "Electrical Transport", "Electrokinesis", "Elemental Transmogrification", "Empathy", "Endurance", "Energy Absorption", "Energy Armor", "Energy Beams", "Energy Blasts", "Energy Constructs", "Energy Manipulation", "Energy Resistance", "Enhanced Hearing", "Enhanced Memory", "Enhanced Senses", "Enhanced Sight", "Enhanced Smell", "Enhanced Touch", "Entropy Projection", "Fire Resistance", "Flight", "Force Fields", "Geokinesis", "Gliding", "Gravitokinesis", "Grim Reaping", "Healing Factor", "Heat Generation", "Heat Resistance", "Human physical perfection", "Hydrokinesis", "Hyperkinesis", "Hypnokinesis", "Illumination", "Illusions", "Immortality", "Insanity", "Intangibility", "Intelligence", "Intuitive aptitude", "Invisibility", "Invulnerability", "Jump", "Lantern Power Ring", "Latent Abilities", "Levitation", "Longevity", "Magic", "Magic Resistance", "Magnetokinesis", "Matter Absorption", "Melting", "Mind Blast", "Mind Control", "Mind Control Resistance", "Molecular Combustion", "Molecular Dissipation", "Molecular Immobilization", "Molecular Manipulation", "Natural Armor", "Natural Weapons", "Nova Force", "Omnilingualism", "Omnipotence", "Omnitrix", "Orbing", "Phasing", "Photographic Reflexes", "Photokinesis", "Physical Anomaly", "Portal Creation", "Possession", "Power Absorption", "Power Augmentation", "Power Cosmic", "Power Nullifier", "Power Sense", "Power Suit", "Precognition", "Probability Manipulation", "Projection", "Psionic Powers", "Psychokinesis", "Pyrokinesis", "Qwardian Power Ring", "Radar Sense", "Radiation Absorption", "Radiation Control", "Radiation Immunity", "Reality Warping", "Reflexes", "Regeneration", "Resurrection", "Seismic Power", "Self-Sustenance", "Separation", "Shapeshifting", "Size Changing", "Sonar", "Sonic Scream", "Spatial Awareness", "Stamina", "Stealth", "Sub-Mariner", "Substance Secretion", "Summoning", "Super Breath", "Super Speed", "Super Strength", "Symbiote Costume", "Technopath/Cyberpath", "Telekinesis", "Telepathy", "Telepathy Resistance", "Teleportation", "Terrakinesis", "The Force", "Thermokinesis", "Thirstokinesis", "Time Travel", "Timeframe Control", "Toxikinesis", "Toxin and Disease Resistance", "Umbrakinesis", "Underwater breathing", "Vaporising Beams", "Vision - Cryo", "Vision - Heat", "Vision - Infrared", "Vision - Microscopic", "Vision - Night", "Vision - Telescopic", "Vision - Thermal", "Vision - X-Ray", "Vitakinesis", "Wallcrawling", "Weapon-based Powers", "Weapons Master", "Web Creation", "Wishing"]
|
210
|
+
prefix: ["The", "Magnificent", "Ultra", "Supah", "Illustrious", "Agent", "Cyborg", "Dark", "Giant", "Mr", "Doctor", "Red", "Green", "General", "Captain"]
|
211
|
+
suffix: ["I", "II", "III", "IX", "XI", "Claw", "Man", "Woman", "Machine", "Strike", "X", "Eyes", "Dragon", "Skull", "Fist", "Ivy", "Boy", "Girl", "Knight", "Wolf", "Lord", "Brain", "the Hunter", "of Hearts", "Spirit", "Strange", "the Fated", "Brain", "Thirteen"]
|
212
|
+
descriptor: ["A-Bomb", "Abomination", "Absorbing", "Ajax", "Alien", "Amazo", "Ammo", "Angel", "Animal", "Annihilus", "Ant", "Apocalypse", "Aqua", "Aqualad", "Arachne", "Archangel", "Arclight", "Ares", "Ariel", "Armor", "Arsenal", "Astro Boy", "Atlas", "Atom", "Aurora", "Azrael", "Aztar", "Bane", "Banshee", "Bantam", "Bat", "Beak", "Beast", "Beetle", "Ben", "Beyonder", "Binary", "Bird", "Bishop", "Bizarro", "Blade", "Blaquesmith", "Blink", "Blizzard", "Blob", "Bloodaxe", "Bloodhawk", "Bloodwraith", "Bolt", "Bomb Queen", "Boom Boom", "Boomer", "Booster Gold", "Box", "Brainiac", "Brother Voodoo", "Buffy", "Bullseye", "Bumblebee", "Bushido", "Cable", "Callisto", "Cannonball", "Carnage", "Cat", "Century", "Cerebra", "Chamber", "Chameleon", "Changeling", "Cheetah", "Chromos", "Chuck Norris", "Clea", "Cloak", "Cogliostro", "Colin Wagner", "Colossus", "Copycat", "Corsair", "Cottonmouth", "Crystal", "Curse", "Cy-Gor", "Cyborg", "Cyclops", "Cypher", "Dagger", "Daredevil", "Darkhawk", "Darkseid", "Darkside", "Darkstar", "Dash", "Deadpool", "Deadshot", "Deathlok", "Deathstroke", "Demogoblin", "Destroyer", "Doc Samson", "Domino", "Doomsday", "Doppelganger", "Dormammu", "Ego", "Electro", "Elektra", "Elongated Man", "Energy", "ERG", "Etrigan", "Evilhawk", "Exodus", "Falcon", "Faora", "Feral", "Firebird", "Firelord", "Firestar", "Firestorm", "Fixer", "Flash", "Forge", "Frenzy", "Galactus", "Gambit", "Gamora", "Garbage", "Genesis", "Ghost", "Giganta", "Gladiator", "Goblin Queen", "Gog", "Goku", "Goliath", "Gorilla Grodd", "Granny Goodness", "Gravity", "Groot", "Guardian", "Gardner", "Hancock", "Havok", "Hawk", "Heat Wave", "Hell", "Hercules", "Hobgoblin", "Hollow", "Hope Summers", "Hulk", "Huntress", "Husk", "Hybrid", "Hyperion", "Impulse", "Ink", "Iron Fist", "Isis", "Jack of Hearts", "Jack-Jack", "Jigsaw", "Joker", "Jolt", "Jubilee", "Juggernaut", "Junkpile", "Justice", "Kang", "Klaw", "Kool-Aid Man", "Krypto", "Leader", "Leech", "Lizard", "Lobo", "Loki", "Longshot", "Luna", "Lyja", "Magneto", "Magog", "Magus", "Mandarin", "Martian Manhunter", "Match", "Maverick", "Maxima", "Maya Herrera", "Medusa", "Meltdown", "Mephisto", "Mera", "Metallo", "Metamorpho", "Meteorite", "Metron", "Mimic", "Misfit", "Mockingbird", "Mogo", "Moloch", "Molten Man", "Monarch", "Moon Knight", "Moonstone", "Morlun", "Morph", "Multiple", "Mysterio", "Mystique", "Namor", "Namorita", "Naruto Uzumaki", "Nathan Petrelli", "Niki Sanders", "Nina Theroux", "Northstar", "Nova", "Omega Red", "Omniscient", "Onslaught", "Osiris", "Overtkill", "Penance", "Penguin", "Phantom", "Phoenix", "Plastique", "Polaris", "Predator", "Proto-Goblin", "Psylocke", "Punisher", "Pyro", "Quantum", "Question", "Quicksilver", "Quill", "Ra's Al Ghul", "Rachel Pirzad", "Rambo", "Raven", "Redeemer", "Renata Soliz", "Rhino", "Rick Flag", "Riddler", "Ripcord", "Rocket Raccoon", "Rogue", "Ronin", "Rorschach", "Sabretooth", "Sage", "Sasquatch", "Scarecrow", "Scorpia", "Scorpion", "Sentry", "Shang-Chi", "Shatterstar", "She-Hulk", "She-Thing", "Shocker", "Shriek", "Shrinking Violet", "Sif", "Silk", "Silverclaw", "Sinestro", "Siren", "Siryn", "Skaar", "Snowbird", "Sobek", "Songbird", "Space Ghost", "Spawn", "Spectre", "Speedball", "Speedy", "Spider", "Spyke", "Stacy X", "Star-Lord", "Stardust", "Starfire", "Steel", "Storm", "Sunspot", "Swarm", "Sylar", "Synch", "T", "Tempest", "Thanos", "Thing", "Thor", "Thunderbird", "Thundra", "Tiger Shark", "Tigra", "Tinkerer", "Titan", "Toad", "Toxin", "Toxin", "Trickster", "Triplicate", "Triton", "Two-Face", "Ultron", "Vagabond", "Valkyrie", "Vanisher", "Venom", "Vibe", "Vindicator", "Violator", "Violet", "Vision", "Vulcan", "Vulture", "Walrus", "War Machine", "Warbird", "Warlock", "Warp", "Warpath", "Wasp", "Watcher", "White Queen", "Wildfire", "Winter Soldier", "Wiz Kid", "Wolfsbane", "Wolverine", "Wondra", "Wyatt Wingfoot", "Yellow", "Yellowjacket", "Ymir", "Zatanna", "Zoom"]
|
213
|
+
name:
|
214
|
+
- "#{Superhero.prefix} #{Superhero.descriptor} #{Superhero.suffix}"
|
215
|
+
- "#{Superhero.prefix} #{Superhero.descriptor}"
|
216
|
+
- "#{Superhero.descriptor} #{Superhero.suffix}"
|
217
|
+
- "#{Superhero.descriptor}"
|
218
|
+
|
219
|
+
beer:
|
220
|
+
name: ['Pliny The Elder', 'Founders Kentucky Breakfast ', 'Trappistes Rochefort 10', 'HopSlam Ale ', 'Stone Imperial Russian Stout', 'St. Bernardus Abt 12', 'Founders Breakfast Stout', 'Weihenstephaner Hefeweissbier', 'Péché Mortel', 'Celebrator Doppelbock', 'Duvel', 'Dreadnaught IPA', 'Nugget Nectar', 'La Fin Du Monde', 'Bourbon County Stout', 'Old Rasputin Russian Imperial Stout', 'Two Hearted Ale', 'Ruination IPA ', 'Schneider Aventinus ', 'Double Bastard Ale', '90 Minute IPA', 'Hop Rod Rye', 'Trappistes Rochefort 8', 'Chimay Grande Réserve', 'Stone IPA', 'Arrogant Bastard Ale', 'Edmund Fitzgerald Porter', 'Chocolate St', 'Oak Aged Yeti Imperial Stout', 'Ten FIDY', 'Storm King Stout', 'Shakespeare Oatmeal', 'Alpha King Pale Ale', 'Westmalle Trappist Tripel', 'Samuel Smith’s Imperial IPA', 'Yeti Imperial Stout', 'Hennepin', 'Samuel Smith’s Oatmeal Stout', 'Brooklyn Black', 'Oaked Arrogant Bastard Ale', 'Sublimely Self-Righteous Ale', 'Trois Pistoles', 'Bell’s Expedition', 'Sierra Nevada Celebration Ale', 'Sierra Nevada Bigfoot Barleywine Style Ale', 'Racer 5 India Pale Ale, Bear Republic Bre', 'Orval Trappist Ale', 'Hercules Double IPA', 'Maharaj', 'Maudite']
|
221
|
+
hop: ['Ahtanum', 'Amarillo', 'Bitter Gold', 'Bravo', 'Brewer’s Gold', 'Bullion', 'Cascade', 'Cashmere', 'Centennial', 'Chelan', 'Chinook', 'Citra', 'Cluster', 'Columbia', 'Columbus', 'Comet', 'Crystal', 'Equinox', 'Eroica', 'Fuggle', 'Galena', 'Glacier', 'Golding', 'Hallertau', 'Horizon', 'Liberty', 'Magnum', 'Millennium', 'Mosaic', 'Mt. Hood', 'Mt. Rainier', 'Newport', 'Northern Brewer', 'Nugget', 'Olympic', 'Palisade', 'Perle', 'Saaz', 'Santiam', 'Simcoe', 'Sorachi Ace', 'Sterling', 'Summit', 'Tahoma', 'Tettnang', 'TriplePearl', 'Ultra', 'Vanguard', 'Warrior', 'Willamette', 'Yakima Gol']
|
222
|
+
yeast: ['1007 - German Ale', '1010 - American Wheat', '1028 - London Ale', '1056 - American Ale', '1084 - Irish Ale', '1098 - British Ale', '1099 - Whitbread Ale', '1187 - Ringwood Ale', '1272 - American Ale II', '1275 - Thames Valley Ale', '1318 - London Ale III', '1332 - Northwest Ale', '1335 - British Ale II', '1450 - Dennys Favorite 50', '1469 - West Yorkshire Ale', '1728 - Scottish Ale', '1968 - London ESB Ale', '2565 - Kölsch', '1214 - Belgian Abbey', '1388 - Belgian Strong Ale', '1762 - Belgian Abbey II', '3056 - Bavarian Wheat Blend', '3068 - Weihenstephan Weizen', '3278 - Belgian Lambic Blend', '3333 - German Wheat', '3463 - Forbidden Fruit', '3522 - Belgian Ardennes', '3638 - Bavarian Wheat', '3711 - French Saison', '3724 - Belgian Saison', '3763 - Roeselare Ale Blend', '3787 - Trappist High Gravity', '3942 - Belgian Wheat', '3944 - Belgian Witbier', '2000 - Budvar Lager', '2001 - Urquell Lager', '2007 - Pilsen Lager', '2035 - American Lager', '2042 - Danish Lager', '2112 - California Lager', '2124 - Bohemian Lager', '2206 - Bavarian Lager', '2278 - Czech Pils', '2308 - Munich Lager', '2633 - Octoberfest Lager Blend', '5112 - Brettanomyces bruxellensis', '5335 - Lactobacillus', '5526 - Brettanomyces lambicus', '5733 - Pediococcus']
|
223
|
+
malt: ['Black malt', 'Caramel', 'Carapils', 'Chocolate', 'Munich', 'Caramel', 'Carapils', 'Chocolate malt', 'Munich', 'Pale', 'Roasted barley', 'Rye malt', 'Special roast', 'Victory', 'Vienna', 'Wheat mal']
|
224
|
+
style: ["Light Lager", "Pilsner", "European Amber Lager", "Dark Lager", "Bock", "Light Hybrid Beer", "Amber Hybrid Beer", "English Pale Ale", "Scottish And Irish Ale", "Merican Ale", "English Brown Ale", "Porter", "Stout", "India Pale Ale", "German Wheat And Rye Beer", "Belgian And French Ale", "Sour Ale", "Belgian Strong Ale", "Strong Ale", "Fruit Beer", "Vegetable Beer", "Smoke-flavored", "Wood-aged Beer"]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
fi-FI:
|
2
|
+
faker:
|
3
|
+
address:
|
4
|
+
city_prefix: [Haap, He, Kau, Oul, Ra, Ni, 'No', Ke, La, Or]
|
5
|
+
city_suffix: [sjärvi, kano, ahe, inen, esi, uma, mi, inen, valta, mina]
|
6
|
+
building_number: ['###', '##', '#']
|
7
|
+
street_suffix: [katu, gatan, ranta]
|
8
|
+
postcode: ['#####']
|
9
|
+
state: [Turun ja Porin lääni, Uudenmaan ja Hämeen lääni, Pohjanmaan lääni, Viipurin ja Savonlinnan lääni, Käkisalmen lääni, Savonlinnan ja Kymenkartanon lääni, Kymenkartanon ja Savon lääni]
|
10
|
+
city:
|
11
|
+
- "#{city_prefix}#{city_suffix}"
|
12
|
+
street_name:
|
13
|
+
- "#{Name.last_name}#{street_suffix}"
|
14
|
+
street_address:
|
15
|
+
- "#{street_name}#{building_number}"
|
16
|
+
default_country: [Suomi]
|
17
|
+
|
18
|
+
name:
|
19
|
+
first_name_women: [Eija, Helena, Anu, Riitta, Heta, Kanerva, Tytti, Saimi, Kaari, Emma, Elli]
|
20
|
+
first_name_men: [Erkki, Toni, Aki, Iiro, Marko, Henri, Juha, Iivari, Arto, Eelis, Markus, Olli]
|
21
|
+
first_name: [Erkki, Toni, Aki, Iiro, Marko, Henri, Juha, Iivari, Arto, Eelis, Markus, Olli, Eija, Helena, Anu, Riitta, Heta, Kanerva, Tytti, Saimi, Kaari, Emma, Elli]
|
22
|
+
last_name: [Ahokas, Uotila, Pennanen, Meriluoto, Ilkka, Jantunen, Liukkonen, Eronen, Ojanen, Ruutu, Jantunen, Isometsä]
|
23
|
+
name:
|
24
|
+
- "#{first_name} #{last_name}"
|
25
|
+
|
26
|
+
phone_number:
|
27
|
+
formats: ['##-######', '###-#######']
|
28
|
+
cell_phone:
|
29
|
+
formats: ['0##-#######']
|
data/lib/locales/pt.yml
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
pt:
|
2
|
+
faker:
|
3
|
+
address:
|
4
|
+
city_name: [Abrantes,Agualva-Cacém,Águeda,Albergaria-a-Velha,Albufeira,Alcácer do Sal,Alcobaça,Alfena,Almada,Almeirim,Alverca do Ribatejo,Amadora,Amarante,Amora,Anadia,Angra do Heroísmo,Aveiro,Barcelos,Barreiro,Beja,Borba,Braga,Bragança,Caldas da Rainha,Câmara de Lobos,Caniço,Cantanhede,Cartaxo,Castelo Branco,Chaves,Coimbra,Costa da Caparica,Covilhã,Elvas,Entroncamento,Ermesinde,Esmoriz,Espinho,Esposende,Estarreja,Estremoz,Évora,Fafe,Faro,Fátima,Felgueiras,Figueira da Foz,Fiães,Freamunde,Funchal,Fundão,Gafanha da Nazaré,Gandra,Gondomar,Gouveia,Guarda,Guimarães,Horta,Ílhavo,Lagoa,Lagoa,Lagos,Lamego,Leiria,Lisboa,Lixa,Loulé,Loures,Lourosa,Macedo de Cavaleiros,Machico,Maia,Mangualde,Marco de Canaveses,Marinha Grande,Matosinhos,Mealhada,Mêda,Miranda do Douro / Miranda de l Douro,Mirandela,Montemor-o-Novo,Montijo,Moura,Odivelas,Olhão da Restauração,Oliveira de Azeméis,Oliveira do Bairro,Oliveira do Hospital,Ourém,Ovar,Paços de Ferreira,Paredes,Penafiel,Peniche,Peso da Régua,Pinhel,Pombal,Ponta Delgada,Ponte de Sor,Portalegre,Portimão,Porto,Póvoa de Santa Iria,Póvoa de Varzim,Praia da Vitória,Quarteira,Queluz,Rebordosa,Reguengos de Monsaraz,Ribeira Grande,Rio Maior,Rio Tinto,Sabugal,Sacavém,Samora Correia,Santa Comba Dão,Santa Cruz,Santa Maria da Feira,Santana,Santarém,Santiago do Cacém,Santo Tirso,São João da Madeira,São Mamede de Infesta,São Pedro do Sul,Lordelo,Seia,Seixal,Senhora da Hora,Serpa,Setúbal,Silves,Sines,Tarouca,Tavira,Tomar,Tondela,Torres Novas,Torres Vedras,Trancoso,Trofa,Valbom,Vale de Cambra,Valença,Valongo,Valpaços,Vendas Novas,Viana do Castelo,Vila Baleira,Vila do Conde,Vila Franca de Xira,Vila Nova de Famalicão,Vila Nova de Foz Côa,Vila Nova de Gaia,Vila Nova de Santo André,Vila Real,Vila Real de Santo António,Viseu,Vizela]
|
5
|
+
city_prefix: ""
|
6
|
+
city_suffix: ""
|
7
|
+
city:
|
8
|
+
- "#{city_name}"
|
9
|
+
country: [ "Afeganistão", "Albânia", "Algéria", "Samoa", "Andorra", "Angola", "Anguilla", "Antigua and Barbada", "Argentina", "Armênia", "Aruba", "Austrália",
|
10
|
+
"Áustria", "Alzerbajão", "Bahamas", "Barém", "Bangladesh", "Barbado", "Belgrado", "Bélgica", "Belize", "Benin", "Bermuda", "Bhutan", "Bolívia",
|
11
|
+
"Bôsnia", "Botuasuna", "Bouvetoia", "Brasil", "Arquipélago de Chagos", "Ilhas Virgens", "Brunei", "Bulgária", "Burkina Faso", "Burundi", "Cambójia",
|
12
|
+
"Camarões", "Canadá", "Cabo Verde", "Ilhas Caiman", "República da África Central", "Chad", "Chile", "China", "Ilhas Natal", "Ilhas Cocos", "Colômbia",
|
13
|
+
"Comoros", "Congo", "Ilhas Cook", "Costa Rica", "Costa do Marfim", "Croácia", "Cuba", "Cyprus", "República Tcheca", "Dinamarca", "Djibouti", "Dominica",
|
14
|
+
"República Dominicana", "Equador", "Egito", "El Salvador", "Guiné Equatorial", "Eritrea", "Estônia", "Etiópia", "Ilhas Faroe", "Malvinas", "Fiji",
|
15
|
+
"Finlândia", "França", "Guiné Francesa", "Polinésia Francesa", "Gabão", "Gâmbia", "Georgia", "Alemanha", "Gana", "Gibraltar", "Grécia", "Groelândia",
|
16
|
+
"Granada", "Guadalupe", "Guano", "Guatemala", "Guernsey", "Guiné", "Guiné-Bissau", "Guiana", "Haiti", "Heard Island and McDonald Islands", "Vaticano",
|
17
|
+
"Honduras", "Hong Kong", "Hungria", "Iceland", "Índia", "Indonésia", "Irã", "Iraque", "Irlanda", "Ilha de Man", "Israel", "Itália", "Jamaica", "Japão",
|
18
|
+
"Jersey", "Jordânia", "Cazaquistão", "Quênia", "Kiribati", "Coreia do Norte", "Coreia do Sul", "Kuwait", "Kyrgyz Republic", "República Democrática de Lao People",
|
19
|
+
"Latvia", "Líbano", "Lesotho", "Libéria", "Libyan Arab Jamahiriya", "Liechtenstein", "Lituânia", "Luxemburgo", "Macao", "Macedônia", "Madagascar", "Malawi",
|
20
|
+
"Malásia", "Maldives", "Mali", "Malta", "Ilhas Marshall", "Martinica", "Mauritânia", "Mauritius", "Mayotte", "México", "Micronésia", "Moldova", "Mônaco",
|
21
|
+
"Mongólia", "Montenegro", "Montserrat", "Marrocos", "Moçambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Antilhas Holandesas", "Holanda", "Nova Caledonia",
|
22
|
+
"Nova Zelândia", "Nicarágua", "Nigéria", "Niue", "Ilha Norfolk", "Northern Mariana Islands", "Noruega", "Oman", "Paquistão", "Palau", "Território da Palestina",
|
23
|
+
"Panamá", "Nova Guiné Papua", "Paraguai", "Peru", "Filipinas", "Polônia", "Portugal", "Puerto Rico", "Qatar", "Romênia", "Rússia", "Ruanda", "São Bartolomeu",
|
24
|
+
"Santa Helena", "Santa Lúcia", "Saint Martin", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tomé e Príncipe",
|
25
|
+
"Arábia Saudita", "Senegal", "Sérvia", "Seychelles", "Serra Leoa", "Singapura", "Eslováquia", "Eslovênia", "Ilhas Salomão", "Somália",
|
26
|
+
"África do Sul", "South Georgia and the South Sandwich Islands", "Spanha", "Sri Lanka", "Sudão", "Suriname", "Svalbard & Jan Mayen Islands", "Swaziland",
|
27
|
+
"Suécia", "Suíça", "Síria", "Taiwan", "Tajiquistão", "Tanzânia", "Tailândia", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidá e Tobago", "Tunísia",
|
28
|
+
"Turquia", "Turcomenistão", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ucrânia", "Emirados Árabes Unidos", "Reino Unido", "Estados Unidos da América",
|
29
|
+
"Estados Unidos das Ilhas Virgens", "Uruguai", "Uzbequistão", "Vanuatu", "Venezuela", "Vietnã", "Wallis and Futuna", "Sahara", "Yemen", "Zâmbia", "Zimbábue"]
|
30
|
+
building_number: ["#####", "####", "###"]
|
31
|
+
street_suffix: ["Rua", "Avenida", "Travessa", "Ponté", "Alameda", "Marginal", "Viela", "Rodovia"]
|
32
|
+
secondary_address: ["Apto. ###", "Sobrado ##", "Casa #", "Lote ##", "Quadra ##"]
|
33
|
+
postcode: ["####"]
|
34
|
+
state: ["Lisboa", "Leiria", "Santarém", "Setúbal", "Beja", "Faro", "Évora", "Portalegre", "Castelo Branco", "Guarda", "Coimbra", "Aveiro", "Viseu", "Bragança", "Vila Real", "Porto", "Braga", "Viana do Castelo"]
|
35
|
+
default_country: [Portugal]
|
36
|
+
|
37
|
+
company:
|
38
|
+
suffix: ["S.A.", "LTDA", "e Associados", "Comércio", "EIRELI"]
|
39
|
+
name:
|
40
|
+
- "#{Name.last_name} #{suffix}"
|
41
|
+
- "#{Name.last_name}-#{Name.last_name}"
|
42
|
+
- "#{Name.last_name}, #{Name.last_name} e #{Name.last_name}"
|
43
|
+
|
44
|
+
internet:
|
45
|
+
free_email: [gmail.com, yahoo.com, hotmail.com, live.com, bol.com.br]
|
46
|
+
domain_suffix: [pt, com, biz, info, net, org]
|
47
|
+
|
48
|
+
lorem:
|
49
|
+
words: [alias, consequatur, aut, perferendis, sit, voluptatem, accusantium, doloremque, aperiam, eaque, ipsa, quae, ab, illo, inventore, veritatis, et, quasi, architecto, beatae, vitae, dicta, sunt, explicabo, aspernatur, aut, odit, aut, fugit, sed, quia, consequuntur, magni, dolores, eos, qui, ratione, voluptatem, sequi, nesciunt, neque, dolorem, ipsum, quia, dolor, sit, amet, consectetur, adipisci, velit, sed, quia, non, numquam, eius, modi, tempora, incidunt, ut, labore, et, dolore, magnam, aliquam, quaerat, voluptatem, ut, enim, ad, minima, veniam, quis, nostrum, exercitationem, ullam, corporis, nemo, enim, ipsam, voluptatem, quia, voluptas, sit, suscipit, laboriosam, nisi, ut, aliquid, ex, ea, commodi, consequatur, quis, autem, vel, eum, iure, reprehenderit, qui, in, ea, voluptate, velit, esse, quam, nihil, molestiae, et, iusto, odio, dignissimos, ducimus, qui, blanditiis, praesentium, laudantium, totam, rem, voluptatum, deleniti, atque, corrupti, quos, dolores, et, quas, molestias, excepturi, sint, occaecati, cupiditate, non, provident, sed, ut, perspiciatis, unde, omnis, iste, natus, error, similique, sunt, in, culpa, qui, officia, deserunt, mollitia, animi, id, est, laborum, et, dolorum, fuga, et, harum, quidem, rerum, facilis, est, et, expedita, distinctio, nam, libero, tempore, cum, soluta, nobis, est, eligendi, optio, cumque, nihil, impedit, quo, porro, quisquam, est, qui, minus, id, quod, maxime, placeat, facere, possimus, omnis, voluptas, assumenda, est, omnis, dolor, repellendus, temporibus, autem, quibusdam, et, aut, consequatur, vel, illum, qui, dolorem, eum, fugiat, quo, voluptas, nulla, pariatur, at, vero, eos, et, accusamus, officiis, debitis, aut, rerum, necessitatibus, saepe, eveniet, ut, et, voluptates, repudiandae, sint, et, molestiae, non, recusandae, itaque, earum, rerum, hic, tenetur, a, sapiente, delectus, ut, aut, reiciendis, voluptatibus, maiores, doloribus, asperiores, repellat]
|
50
|
+
|
51
|
+
name:
|
52
|
+
first_name: ["Águeda", "Amélia", "Ângela", "Alessandro", "Alessandra", "Alexandre", "Aline", "Antônio", "Breno", "Bruna", "Carlos", "Carla", "Célia", "Cecília", "César", "Danilo", "Dalila", "Deneval", "Eduardo", "Eduarda", "Esther", "Elísio", "Fábio", "Fabrício", "Fabrícia", "Félix", "Felícia", "Feliciano", "Frederico", "Fabiano", "Gustavo", "Guilherme", "Gúbio", "Heitor", "Hélio", "Hugo", "Isabel", "Isabela", "Ígor", "João", "Joana", "Júlio César", "Júlio", "Júlia", "Janaína", "Karla", "Kléber", "Lucas", "Lorena", "Lorraine", "Larissa", "Ladislau", "Marcos", "Meire", "Marcelo", "Marcela", "Margarida", "Mércia", "Márcia", "Marli", "Morgana", "Maria", "Norberto", "Natália", "Nataniel", "Núbia", "Ofélia", "Paulo", "Paula", "Pablo", "Pedro", "Raul", "Rafael", "Rafaela", "Ricardo", "Roberto", "Roberta", "Sílvia", "Sílvia", "Silas", "Suélen", "Sara", "Salvador", "Sirineu", "Talita", "Tertuliano", "Vicente", "Víctor", "Vitória", "Yango", "Yago", "Yuri", "Washington", "Warley"]
|
53
|
+
last_name: ["Araújo", "D'cruze", "Estéves", "Silva", "Souza", "Carvalho", "Santos", "Reis", "Xavier", "Franco", "Braga", "Macedo", "Batista", "Barros", "Moraes", "Costa", "Pereira", "Carvalho", "Melo", "Saraiva", "Nogueira", "Oliveira", "Martins", "Moreira", "Albuquerque"]
|
54
|
+
prefix: ["Sr.", "Sra.", "Srta.", "Dr."]
|
55
|
+
suffix: ["Jr.", "Neto", "Filho"]
|
56
|
+
|
57
|
+
phone_number:
|
58
|
+
formats: ["(##) ###-####", "+351 (##) ###-####", "884 ###-###"]
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
|
3
|
+
class TestCaCatLocale < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
Faker::Config.locale = 'ca-CAT'
|
6
|
+
end
|
7
|
+
|
8
|
+
def teardown
|
9
|
+
Faker::Config.locale = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_ca_methods
|
13
|
+
assert Faker::Address.city.is_a? String
|
14
|
+
assert Faker::Address.country.is_a? String
|
15
|
+
assert Faker::Address.building_number.is_a? String
|
16
|
+
assert Faker::Address.street_suffix.is_a? String
|
17
|
+
assert Faker::Address.secondary_address.is_a? String
|
18
|
+
assert Faker::Address.postcode.is_a? String
|
19
|
+
assert Faker::Address.province.is_a? String
|
20
|
+
assert Faker::Address.state.is_a? String
|
21
|
+
assert Faker::Address.street_name.is_a? String
|
22
|
+
assert Faker::Address.street_address.is_a? String
|
23
|
+
assert Faker::Address.default_country.is_a? String
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_phone_numbers_start_with_9
|
27
|
+
mobile = Faker::PhoneNumber.phone_number.gsub(/\D/,'')
|
28
|
+
assert_equal '9', mobile[0]
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_cell_numbers_start_with_6
|
32
|
+
mobile = Faker::PhoneNumber.cell_phone.gsub(/\D/,'')
|
33
|
+
assert_equal '6', mobile[0]
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
|
3
|
+
class TestCaLocale < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
Faker::Config.locale = 'ca'
|
6
|
+
end
|
7
|
+
|
8
|
+
def teardown
|
9
|
+
Faker::Config.locale = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_ca_methods
|
13
|
+
assert Faker::Name.female_first_name.is_a? String
|
14
|
+
assert Faker::Name.female_prefix.is_a? String
|
15
|
+
assert Faker::Name.male_first_name.is_a? String
|
16
|
+
assert Faker::Name.male_prefix.is_a? String
|
17
|
+
assert Faker::Name.last_name.is_a? String
|
18
|
+
assert Faker::Name.first_name.is_a? String
|
19
|
+
assert Faker::Name.name.is_a? String
|
20
|
+
assert Faker::Color.name.is_a? String
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
|
3
|
+
class TestDaDkLocale < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
Faker::Config.locale = 'da-DK'
|
6
|
+
end
|
7
|
+
|
8
|
+
def teardown
|
9
|
+
Faker::Config.locale = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_da_dk_names
|
13
|
+
assert Faker::Name.name.is_a? String
|
14
|
+
assert Faker::Name.first_name.is_a? String
|
15
|
+
assert Faker::Name.last_name.is_a? String
|
16
|
+
assert Faker::Address.street_name.is_a? String
|
17
|
+
assert Faker::Address.city.is_a? String
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_da_dk_phone_number
|
21
|
+
assert_match /(20)|(30)|(40)[\d\s]+$/, Faker::PhoneNumber.cell_phone
|
22
|
+
assert_match /(\d\d[\s\-]?){4}$/, Faker::PhoneNumber.phone_number
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_da_dk_postal_code
|
26
|
+
assert_match /[\d]{4}$/, Faker::Address.postcode
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_da_dk_building_number
|
30
|
+
assert_match /[\d]{1,3}$/, Faker::Address.building_number
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
|
3
|
+
class TestFakerBeer < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
@tester = Faker::Beer
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_name
|
10
|
+
assert @tester.name.match(/(\w+\.? ?){2,3}/)
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_style
|
14
|
+
assert @tester.style.match(/(\w+\.? ?){2,3}/) # TODO
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_hop
|
18
|
+
assert @tester.hop.match(/(\w+\.? ?){2,3}/)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_yeast
|
22
|
+
assert @tester.yeast.match(/(\w+\.? ?){2,3}/)
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_malts
|
26
|
+
assert @tester.malts.match(/(\w+\.? ?){2,3}/)
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_ibu
|
30
|
+
assert @tester.ibu.match(/(\w+\.? ?){2,3}/)
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_alcohol
|
34
|
+
assert @tester.alcohol.match(/(\w+\.? ?){2,3}/)
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_blg
|
38
|
+
assert @tester.blg.match(/(\w+\.? ?){2,3}/)
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
require 'minitest/mock'
|
3
|
+
|
4
|
+
class TestFakerBoolean < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
@tester = Faker::Boolean
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_boolean
|
10
|
+
assert [true, false].include?(@tester.boolean)
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_distribution
|
14
|
+
true_ratio = rand.round(1)
|
15
|
+
true_counter = 0
|
16
|
+
|
17
|
+
10000.times do
|
18
|
+
true_counter += 1 if @tester.boolean(true_ratio)
|
19
|
+
end
|
20
|
+
|
21
|
+
assert_in_delta true_ratio, (true_counter/10000.0), 0.01
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')
|
2
|
+
|
3
|
+
class TestFakerCat < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@tester = Faker::Cat
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_name
|
9
|
+
assert @tester.name.match(/\w+\.?/)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_breed
|
13
|
+
assert @tester.breed.match(/\w+\.?/)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_registry
|
17
|
+
assert @tester.registry.match(/\w+\.?/)
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
data/test/test_faker_color.rb
CHANGED
data/test/test_faker_date.rb
CHANGED
@@ -16,6 +16,17 @@ class TestFakerDate < Test::Unit::TestCase
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
def test_between_except
|
20
|
+
from = Date.parse("2012-01-01")
|
21
|
+
to = Date.parse("2012-01-05")
|
22
|
+
excepted = Date.parse("2012-01-03")
|
23
|
+
|
24
|
+
100.times do
|
25
|
+
random_date = @tester.between_except(from, to, excepted)
|
26
|
+
assert random_date != excepted, "Expected != \"#{excepted}\", but got #{random_date}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
19
30
|
def test_forward
|
20
31
|
today = Date.today
|
21
32
|
|
data/test/test_faker_internet.rb
CHANGED
@@ -132,6 +132,14 @@ class TestFakerInternet < Test::Unit::TestCase
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
+
def test_ip_v4_cidr
|
136
|
+
assert @tester.ip_v4_cidr.match(/\/\d{1,2}$/)
|
137
|
+
|
138
|
+
1000.times do
|
139
|
+
assert (1..32).include?(@tester.ip_v4_cidr.split('/').last.to_i)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
135
143
|
def test_mac_address
|
136
144
|
assert_equal 5, @tester.mac_address.count(':')
|
137
145
|
assert_equal 5, @tester.mac_address("").count(':')
|
@@ -152,6 +160,14 @@ class TestFakerInternet < Test::Unit::TestCase
|
|
152
160
|
end
|
153
161
|
end
|
154
162
|
|
163
|
+
def test_ip_v6_cidr
|
164
|
+
assert @tester.ip_v6_cidr.match(/\/\d{1,3}$/)
|
165
|
+
|
166
|
+
1000.times do
|
167
|
+
assert (1..128).include?(@tester.ip_v6_cidr.split('/').last.to_i)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
155
171
|
def test_slug
|
156
172
|
assert @tester.slug.match(/^[a-z]+(_|\.|\-)[a-z]+$/)
|
157
173
|
end
|