Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Faker::Games::SuperSmashBros #1427

Merged
merged 2 commits into from
Oct 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions doc/super_smash_bros.md
Original file line number Diff line number Diff line change
@@ -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"
```
17 changes: 17 additions & 0 deletions lib/faker/games/super_smash_bros.rb
Original file line number Diff line number Diff line change
@@ -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
197 changes: 197 additions & 0 deletions lib/locales/en/super_smash_bros.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions test/test_faker_super_smash_bros.rb
Original file line number Diff line number Diff line change
@@ -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