From 84ebd02c9045381f6a2044023607d475c0ab4d70 Mon Sep 17 00:00:00 2001 From: Simon Fish Date: Sat, 20 Oct 2018 22:04:07 +0100 Subject: [PATCH 1/2] Add Faker::Games::SuperSmashBros --- CHANGELOG.md | 1 + README.md | 1 + doc/super_smash_bros.md | 11 ++ lib/faker/games/super_smash_bros.rb | 17 +++ lib/locales/en/super_smash_bros.yml | 197 ++++++++++++++++++++++++++++ test/test_faker_super_smash_bros.rb | 17 +++ 6 files changed, 244 insertions(+) create mode 100644 doc/super_smash_bros.md create mode 100644 lib/faker/games/super_smash_bros.rb create mode 100644 lib/locales/en/super_smash_bros.yml create mode 100644 test/test_faker_super_smash_bros.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index f9a99690e5..6673ca6311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ - [PR #1329](https://github.com/stympy/faker/pull/1329) Update docs on behavior of price [@softwaregravy](https://github.com/softwaregravy) ### Feature Request +- [PR #1427](https://github.com/stympy/faker/pull/1427) Add Faker::Games::SuperSmashBros [@boardfish](https://github.com/boardfish) - [PR #1410](https://github.com/stympy/faker/pull/1410) Add Faker::Vehicle.singapore_license_plate [@anonoz](https://github.com/anonoz) - [PR #1422](https://github.com/stympy/faker/pull/1422) Add Faker::Games::SonicTheHedgehog [@boardfish](https://github.com/boardfish) - [PR #1413](https://github.com/stympy/faker/pull/1413) Add Faker::Games::Heroes [@tangens](https://github.com/tangens) diff --git a/README.md b/README.md index d527faebab..5ac3dde656 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ Contents - [Faker::Games::Heroes](doc/heroes.md) - [Faker::Games::HeroesOfTheStorm](doc/heroes_of_the_storm.md) - [Faker::Games::SonicTheHedgehog](doc/sonic_the_hedgehog.md) + - [Faker::Games::SuperSmashBros](doc/super_smash_bros.md) - [Faker::Gender](doc/gender.md) - [Faker::GreekPhilosophers](doc/greek_philosophers.md) - [Faker::Hacker](doc/hacker.md) diff --git a/doc/super_smash_bros.md b/doc/super_smash_bros.md new file mode 100644 index 0000000000..4f133fc237 --- /dev/null +++ b/doc/super_smash_bros.md @@ -0,0 +1,11 @@ +# Faker::Games::SuperSmashBros + +Data up to date as of October 2018, preceding any final announcements on *Super Smash Bros. Ultimate*. + +```ruby +# Any playable fighter from the series +Faker::Games::SuperSmashBros.fighter #=> "Simon Belmont" + +# Any stage from the series +Faker::Games::SuperSmashBros.stage #=> "Temple" +``` diff --git a/lib/faker/games/super_smash_bros.rb b/lib/faker/games/super_smash_bros.rb new file mode 100644 index 0000000000..f9e1a45a9f --- /dev/null +++ b/lib/faker/games/super_smash_bros.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Faker + module Games + class SuperSmashBros < Base + class << self + def fighter + fetch('games.super_smash_bros.fighter') + end + + def stage + fetch('games.super_smash_bros.stage') + end + end + end + end +end diff --git a/lib/locales/en/super_smash_bros.yml b/lib/locales/en/super_smash_bros.yml new file mode 100644 index 0000000000..c85a0d2f68 --- /dev/null +++ b/lib/locales/en/super_smash_bros.yml @@ -0,0 +1,197 @@ +en: + faker: + games: + super_smash_bros: + fighter: + - Bayonetta + - Bowser + - Bowser Jr. + - Captain Falcon + - Charizard + - Chrom + - Cloud + - Corrin + - Daisy + - Dark Pit + - Dark Samus + - Diddy Kong + - Donkey Kong + - Dr. Mario + - Duck Hunt Duo + - Falco + - Fox + - Ganondorf + - Greninja + - Ice Climbers + - Ike + - Inkling + - Isabelle + - Ivysaur + - Jigglypuff + - King Dedede + - King K. Rool + - Kirby + - Link + - Little Mac + - Lucario + - Lucas + - Lucina + - Luigi + - Mario + - Marth + - Mega Man + - Meta Knight + - Mewtwo + - Mii Fighter + - Mii Gunner + - Mii Sword Fighter + - Mr. Game & Watch + - Ness + - Olimar + - Pac-Man + - Palutena + - Peach + - Pichu + - Pikachu + - Pit + - Pokémon Trainer + - R.O.B. + - Richter Belmont + - Ridley + - Robin + - Rosalina + - Roy + - Ryu + - Samus + - Sheik + - Shulk + - Simon Belmont + - Snake + - Sonic + - Squirtle + - Toon Link + - Villager + - Wario + - Wii Fit Trainer + - Wolf + - Yoshi + - Young Link + - Zelda + - Zero Suit Samus + stage: + - 3D Land + - 75m + - Arena Ferox + - Balloon Fight + - Battlefield + - Big Battlefield + - Big Blue + - Boxing Ring + - Bridge of Eldin + - Brinstar + - Brinstar Depths + - Castle Siege + - Coliseum + - Corneria + - Delfino Plaza + - Distant Planet + - Dracula's Castle + - Dream Land + - Duck Hunt + - Figure-8 Circuit + - Final Destination + - Find Mii + - Flat Zone + - Flat Zone 2 + - Flat Zone X + - Fountain of Dreams + - Fourside + - Frigate Orpheon + - Gamer + - Garden of Hope + - Gaur Plain + - Gerudo Valley + - Golden Plains + - Great Bay + - The Great Cave Offensive + - Great Plateau Tower + - Green Greens + - Green Hill Zone + - Halberd + - Hanenbow + - Hyrule Castle + - Icicle Mountain + - Jungle Hijinxs + - Jungle Japes + - Kalos Pokémon League + - Kongo Falls + - Kongo Jungle + - Living Room + - Luigi's Mansion + - Lylat Cruise + - Magicant + - Mario Bros. + - Mario Circuit + - Mario Galaxy + - Midgar + - Miiverse + - Moray Towers + - Mushroom Kingdom + - Mushroom Kingdom II + - Mushroomy Kingdom + - Mushroom Kingdom U + - Mute City + - New Donk City Hall + - New Pork City + - Norfair + - Onett + - Orbital Gate Assault + - Pac-Land + - Pac-Maze + - Palutena's Temple + - Paper Mario + - Peach's Castle + - Princess Peach's Castle + - PictoChat + - PictoChat 2 + - Pilotwings + - Pirate Ship + - Planet Zebes + - Poké Floats + - Pokémon Stadium + - Pokémon Stadium 2 + - Port Town Aero Dive + - Prism Tower + - Pyrosphere + - Rainbow Cruise + - Rainbow Road + - Reset Bomb Forest + - Rumble Falls + - Saffron City + - Sector Z + - Shadow Moses Island + - Skyloft + - Skyworld + - Smashville + - Spear Pillar + - Spirit Train + - Summit + - Super Happy Tree + - Super Mario Maker + - Suzaku Castle + - Temple + - Tomodachi Life + - Tortimer Island + - Town and City + - Umbra Clock Tower + - Unova Pokémon League + - Venom + - WarioWare, Inc. + - Wii Fit Studio + - Wily Castle + - Windy Hill Zone + - Woolly World + - Wrecking Crew + - Wuhu Island + - Yoshi's Island + - Yoshi's Story \ No newline at end of file diff --git a/test/test_faker_super_smash_bros.rb b/test/test_faker_super_smash_bros.rb new file mode 100644 index 0000000000..cc739a616f --- /dev/null +++ b/test/test_faker_super_smash_bros.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require_relative 'test_helper' + +class TestFakerGamesSuperSmashBros < Test::Unit::TestCase + def setup + @tester = Faker::Games::SuperSmashBros + end + + def test_fighter + assert @tester.fighter.match(/\w+/) + end + + def test_stage + assert @tester.stage.match(/\w+/) + end +end From 7291d9655da68f207a5b0daf8b743a65082c4461 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sun, 21 Oct 2018 00:01:57 -0300 Subject: [PATCH 2/2] Add newline at end of file --- lib/locales/en/super_smash_bros.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locales/en/super_smash_bros.yml b/lib/locales/en/super_smash_bros.yml index c85a0d2f68..3eab3d4d1b 100644 --- a/lib/locales/en/super_smash_bros.yml +++ b/lib/locales/en/super_smash_bros.yml @@ -194,4 +194,4 @@ en: - Wrecking Crew - Wuhu Island - Yoshi's Island - - Yoshi's Story \ No newline at end of file + - Yoshi's Story