diff --git a/lib/faker.rb b/lib/faker.rb index 074b7e17e4..c2c46ccf30 100644 --- a/lib/faker.rb +++ b/lib/faker.rb @@ -230,6 +230,7 @@ def rand_in_range(from, to) require 'faker/game_of_thrones' require 'faker/pokemon' require 'faker/food' +require 'faker/esport' require 'faker/bank' require 'faker/ancient' diff --git a/lib/faker/esport.rb b/lib/faker/esport.rb new file mode 100644 index 0000000000..4ae65d598b --- /dev/null +++ b/lib/faker/esport.rb @@ -0,0 +1,25 @@ +module Faker + class Esport < Base + class << self + def player + fetch('esports.players') + end + + def team + fetch('esports.teams') + end + + def league + fetch('esports.leagues') + end + + def event + fetch('esports.events') + end + + def game + fetch('esports.games') + end + end + end +end diff --git a/lib/locales/en.yml b/lib/locales/en.yml index a82f4278df..159e230d23 100644 --- a/lib/locales/en.yml +++ b/lib/locales/en.yml @@ -515,6 +515,12 @@ en: spices: ["Achiote Seed", "Ajwain Seed", "Ajwan Seed", "Allspice Ground", "Allspice Whole", "Amchoor", "Anise", "Anise Star", "Aniseed Whole", "Annatto Seed", "Arrowroot", "Asafoetida", "Baharat", "Balti Masala", "Balti Stir Fry Mix", "Basil", "Bay Leaves", "Bay Leaves Chopped", "BBQ Seasoning", "Biryani Spice Mix", "Cajun Seasoning", "Caraway Seed", "Cardamom Ground", "Cardamom Whole", "Cassia", "Cassia Bark", "Cayenne Pepper", "Celery Leaf", "Celery Salt", "Celery Seed", "Chamomile", "Chervil", "Chicken Seasoning", "Chilli Crushed", "Chilli Ground", "Chilli Pepper", "Chillies Whole", "China Star", "Chinese 5 Spice", "Chives", "Cinnamon Bark", "Cinnamon Ground", "Cinnamon Powder", "Cinnamon Sticks", "Cloves Ground", "Cloves Whole", "Colombo Powder", "Coriander Ground", "Coriander Leaf", "Coriander Seed", "Creole Seasoning", "Cumin Ground", "Cumin Seed", "Cumin Seed Black", "Cumin Seed Royal", "Curly Leaf Parsley", "Curry Chinese", "Curry Hot", "Curry Leaves", "Curry Madras Medium", "Curry Mild", "Curry Thai Green", "Curry Thai Red", "Dhansak Spice Mix", "Dill Herb", "Dill Leaf", "Dill Seed", "Fajita Seasoning", "Fennel Seed", "Fenugreek Ground", "Fenugreek Leaf", "Fenugreek Seed", "Fines Herbes", "Fish Seasoning", "Five Spice Mix", "French Lavender", "Galangal Ground", "Garam Masala", "Garlic Chips", "Garlic Granules", "Garlic Powder", "Garlic Salt", "German Chamomile", "Ginger Root", "Ginger Ground", "Green Cardamom", "Herbes de Provence", "Jalfrezi Curry Powder", "Jalfrezi Mix", "Jerk Seasoning", "Juniper Berries", "Kaffir Leaves", "Korma Curry Powder", "Korma Mix", "Lamb Seasoning", "Lavender", "Lemon Grass", "Lemon Grass Chopped", "Lemon Pepper", "Lime Leaves", "Lime Leaves Ground", "Liquorice Root", "Mace Ground", "Mace Whole", "Mango Powder", "Marjoram", "Methi", "Methi Leaves", "Mexican Salsa Mix", "Mint", "Mixed Herbs", "Mixed Spice", "Mulled Cider Spices", "Mulled Wine Spices", "Mustard Powder", "Mustard Seed Black", "Mustard Seed Brown", "Mustard Seed White", "Mustard Seed Yellow", "Nigella", "Nutmeg Ground", "Nutmeg Whole", "Onion Seed", "Orange Zest", "Oregano", "Paella Seasoning", "Paprika", "Paprika Hungarian", "Paprika Smoked", "Parsley", "Parsley Flat Leaf", "Pepper Black Coarse", "Pepper Black Ground", "Pepper White Ground", "Peppercorns Black", "Peppercorns Cracked Black", "Peppercorns Green", "Peppercorns Mixed", "Peppercorns Pink", "Peppercorns Szechwan", "Peppercorns White", "Pickling Spice", "Pimento Berries", "Pimento Ground", "Piri Piri Seasoning", "Pizza Topping Mix", "Poppy Seed", "Pot Marjoram", "Poudre de Colombo", "Ras-el-Hanout", "Rice Paper", "Rogan Josh Curry Powder", "Rogan Josh Mix", "Rose Baie", "Rosemary", "Saffron", "Sage", "Sea Salt Coarse", "Seasoning Salt", "Self Adhesive Spice Labels", "Sesame Seed", "Spearmint", "Spice Charts", "Steak Seasoning", "Sumac Ground", "Sweet Basil", "Sweet Laurel", "Tagine Seasoning", "Tandoori Masala", "Tandoori Mix", "Tarragon", "Thai Creen Curry Mix", "Thai Red Curry Mix", "Thai Stir Fry", "Thyme", "Tikka Masala", "Tikka Masala Curry Powder", "Turmeric", "Turmeric Powder", "Vanilla Bean", "Vanilla Pods", "Vegetable Seasoning", "Zahtar Spice Mix"] measurements: ["teaspoon", "tablespoon", "cup", "pint", "quart", "gallon"] measurement_sizes: ["1/4", "1/3", "1/2", "1", "2", "3"] + esports: + players: ["Froggen", "Dendi", "Surefour", "Seagull", "xPeke", "shroud", "KennyS", "pasha", "RamboRay", "Crimsix", "ACE", "Grubby", "f0rest", "cArn", "Flash", "Faker", "Boxer"] + teams: ["Dignitas", "OpTic", "FaZe", "iBUYPOWER", "Evil Genius", "Ninjas in Pajamas", "NaVi", "SoloMid", "Cloud9", "fnatic", "CLG", "EnVyUs", "Virtus Pro"] + events: ["ESL Cologne", "MLG Meadowlands", "GFinity London", "Worlds", "IEM Championship", "League All Stars"] + leagues: ["ESL", "IEM", "MLG", "GFinity"] + games: ["CS:GO", "League of Legends", "Overwatch", "StarCraft II", "Dota2", "Super Smash Bros. Melee", "Hearthstone"] ancient: god: ["Aphrodite", "Apollo", "Ares", "Artemis", "Athena", "Demeter", "Dionysus", "Hades", "Hephaestus", "Hera", "Hermes", "Hestia", "Poseidon", "Zeus"] primordial: ["Aion", "Aether", "Ananke", "Chaos", "Chronos", "Erebus", "Eros", "Hypnos", "Nesoi", "Uranus", "Gaia", "Ourea", "Phanes", "Pontus", "Tartarus", "Thalassa", "Thanatos", "Hemera", "Nyx", "Nemesis"] diff --git a/test/test_faker_esport.rb b/test/test_faker_esport.rb new file mode 100644 index 0000000000..5737218059 --- /dev/null +++ b/test/test_faker_esport.rb @@ -0,0 +1,27 @@ +require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') + +class TestFakerEsport < Test::Unit::TestCase + def setup + @tester = Faker::Esport + end + + def test_team + assert @tester.team.match(/\w+/) + end + + def test_league + assert @tester.league.match(/\w+/) + end + + def test_game + assert @tester.game.match(/\w+/) + end + + def test_player + assert @tester.player.match(/\w+/) + end + + def test_event + assert @tester.event.match(/\w+/) + end +end