Skip to content

Commit

Permalink
Add Faker::Games::SonicTheHedgehog (faker-ruby#1422)
Browse files Browse the repository at this point in the history
* Add Faker::Vehicle.singapore_license_plate (faker-ruby#1410)

* Add Singapore vehicle license plate

* Update en-SG.yml

* Add image file method to placeholdit (faker-ruby#1243)

* Update Placeholdit doc

Show how to use Placehold to download a file from Placeholdit url.

* Code cleanup

* Add Faker::Games::SonicTheHedgehog

* Update README, CHANGELOG and documentation
  • Loading branch information
boardfish authored and vbrazo committed Oct 19, 2018
1 parent 7d6a1e0 commit 569b4b9
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- [PR #1329](https://github.com/stympy/faker/pull/1329) Update docs on behavior of price [@softwaregravy](https://github.com/softwaregravy)

### Feature Request
- [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)
- [PR #1409](https://github.com/stympy/faker/pull/1409) Add DC Comics titles [@matheusteixeira](https://github.com/matheusteixeira)
- [PR #1400](https://github.com/stympy/faker/pull/1400) Add Faker::Movies::Ghostbusters [@eddorre](https://github.com/eddorre)
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::HalfLife](doc/half_life.md)
- [Faker::Games::Heroes](doc/heroes.md)
- [Faker::Games::HeroesOfTheStorm](doc/heroes_of_the_storm.md)
- [Faker::Games::SonicTheHedgehog](doc/sonic_the_hedgehog.md)
- [Faker::Gender](doc/gender.md)
- [Faker::GreekPhilosophers](doc/greek_philosophers.md)
- [Faker::Hacker](doc/hacker.md)
Expand Down
9 changes: 9 additions & 0 deletions doc/sonic_the_hedgehog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::Games::SonicTheHedgehog

```ruby
# Any character from the games
Faker::Games::SonicTheHedgehog.character #=> "Sonic the Hedgehog"

# Any zone from the series
Faker::Games::SonicTheHedgehog.zone #=> "The Legend of Zelda Zone"
```
17 changes: 17 additions & 0 deletions lib/faker/games/sonic_the_hedgehog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

module Faker
module Games
class SonicTheHedgehog < Base
class << self
def character
fetch('games.sonic_the_hedgehog.character')
end

def zone
fetch('games.sonic_the_hedgehog.zone')
end
end
end
end
end
285 changes: 285 additions & 0 deletions lib/locales/en/sonic_the_hedgehog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
en:
faker:
games:
sonic_the_hedgehog:
zone:
- Aerobase Zone
- Angel Island Zone
- Aqua Lake Zone
- Aqua Planet Zone
- Aquatic Relix Zone
- Aquatic Ruin Zone
- Atomic Destroyer Zone
- Azure Lake Zone
- Balloon Park Zone
- Beach Zone
- Blue Coast Zone
- Blue Marine Zone
- Blue Ridge Zone
- Blue Sky Zone
- Bonus Zone
- Boss Attack Zone
- Bridge Zone
- Carnival Night Zone
- Carrier Zone
- Casino Night Zone
- Casino Paradise Zone
- Casino Street Zone
- Chaotic Inferno Zone
- Chaotic Space Zone
- Chemical Plant Zone
- Chrome Gadget Zone
- Colosseum Highway Zone
- Cosmic Angel Zone
- Cosmic Casino Zone
- Cosmic Zone
- Crystal Egg Zone
- Crystal Mountain Zone
- Cyber City Zone
- Death Egg Zone
- Death Egg mk.II Zone
- Death Yard Zone
- Desert Palace Zone
- Diamond Dust Zone
- Dust Hill Zone
- E.G.G. Station Zone
- Egg Gauntlet Zone
- Egg Reverie Zone
- Egg Rocket Zone
- Electric Egg Zone
- Emerald Hill Zone
- Endless Mine Zone
- Final Zone
- Flying Battery Zone
- Forest Falls Zone
- Frontier Canyon Zone
- Gene Gadget Zone
- Genocide City Zone
- Gigalopolis Zone
- Gigantic Angel Zone
- Gimmick Mountain Zone
- Great Turquoise Zone
- Green Grove Zone
- Green Hill Zone
- Green Hills Zone
- Hidden Palace Zone
- Hill Top Zone
- Hydrocity Zone
- Ice Mountain Zone
- IceCap Zone
- Jungle Zone
- Labyrinth Zone
- Last Utopia Zone
- Launch Base Zone
- Lava Reef Zone
- Lost Labyrinth Zone
- Mad Gear Zone
- Marble Garden Zone
- Marble Zone
- Mecha Green Hill Zone
- Mechanical Zone
- Meta Junglira Zone
- Metallic Madness Zone
- Meteor Base Zone
- Metropolis Zone
- Mirage Saloon Zone
- Mountain Zone
- Mushroom Hill Zone
- Mystic Cave Zone
- Mystic Haunt Zone
- Nature Zone
- Neo Green Hill Zone
- Neo South Island Zone
- Neon Palace Zone
- Nightmare Zone
- Oil Desert Zone
- Oil Ocean Zone
- Panic Puppet Zone
- Press Garden Zone
- Proto Palace Zone
- Red Volcano Zone
- Robotnik Winter Zone
- Rusty Ruin Zone
- Sandopolis Zone
- Scrambled Egg Zone
- Scrap Brain Zone
- Seaside Hill Zone
- Secret Base Zone
- Secret Plant Zone
- Silver Castle Zone
- Sky Base Zone
- Sky Chase Zone
- Sky Fortress Zone
- Sky High Zone
- Sky Park Zone
- Sky Sanctuary Zone
- Sleeping Egg Zone
- Splash Hill Zone
- Spring Stadium Zone
- Spring Yard Zone
- Star Light Zone
- Stardust Speedway Zone
- Studiopolis Zone
- Sunset Forest Zone
- Sunset Park Zone
- Sylvania Castle Zone
- Temple Zone
- The Doomsday Zone
- The Legend of Zelda Zone
- The Moon Zone
- Tidal Plant Zone
- Titanic Monarch Zone
- Turquoise Hill Zone
- Under Ground Zone
- Volcano Valley Zone
- White Park Zone
- Wing Fortress Zone
- Wood Zone
- X-Zone
- Yellow Desert Zone
- Yoshi's Island Zone
character:
- Alf-Layla-wa-Layla
- Ali Baba
- Amy Rose
- Ashura
- Avatar
- Badnik
- Bark the Polar Bear
- Battle Kukku 16th
- Bean the Dynamite
- Bearenger
- Big the Cat
- Biolizard
- Black Doom
- Blacksmith
- Blaze the Cat
- Caliburn
- Captain Whisker
- Carrotia
- Chaos
- Chaos Gamma
- Charmy Bee
- Cheese the Chao
- Chip
- Chocola the Chao
- Cream the Rabbit
- Cubot
- Dark Gaia
- Dark Super Sonic
- Darkspine Sonic
- Doctor Fukurokov
- Doctor Zachary
- Don Fachio
- Dr. Eggman
- Duke of Soleanna
- E-10000B
- E-10000G
- E-10000R
- E-101 β
- E-101mkII
- E-102 γ
- E-103 δ
- E-104 ε
- E-105 ζ
- E-121 Phi
- E-123 Ω
- Edmund
- Eggman Nega
- Eggrobo
- Princess Elise the Third
- Emerl
- Erazor Djinn
- Espio the Chameleon
- Fang the Sniper
- Focke-Wulf
- Froggy
- G-merl
- G.U.N. Commander
- Gaia Colossus
- Gerald Robotnik
- Grand Battle Kukku 15th
- Has Bean
- Heavy
- Bomb
- Honey the Cat
- Iblis
- Ifrit
- Ifrit Golem
- Illumina
- Infinite
- Ix
- Jet the Hawk
- Johnny
- Julie-su
- King Arthur
- King Boom Boo
- King Shahryār
- Knuckles the Echidna
- Lily
- Luigi
- Lumina Flowlight
- Maria Robotnik
- Marine the Raccoon
- Mario
- Master Core ABIS
- Master Zik
- Mecha Knuckles
- Mecha Sonic
- Mephiles the Dark
- Merlin
- Merlina the Wizard
- Metal Knuckles
- Metal Sonic
- Metal Sonic 3.0
- Mighty the Armadillo
- Mii
- Miles "Tails" Prower
- Mr. Needlemouse
- Neo Metal Sonic
- NiGHTS
- Nimue, Lady of the Lake
- Omochao
- Orbot
- Pachacamac
- Perfect Chaos
- President of the United Federation
- Professor Pickle
- Ray the Flying Squirrel
- Rocket Metal
- Rouge the Bat
- Scourge the Hedgehog
- SCR-GP
- SCR-HD
- Shade
- Shadow Android
- Shadow the Hedgehog
- Shahra, the Genie of the Ring
- Shugo-hei
- Silver the Hedgehog
- Sinbad
- Sir Galahad
- Sir Gawain
- Sir Lamorak
- Sir Lancelot
- Sir Percival
- Solaris
- Sonic the Hedgehog
- Sticks the Badger
- Storm the Albatross
- Tails Doll
- Tiara Boobowski
- Tikal
- Vanilla the Rabbit
- Vector the Crocodile
- Wave the Swallow
- Wentos
- Witchcart
- Xbox Live Avatar
- Yacker
- Zavok
- Zazz
- Zeena
- ZERO
- Zomom
- Zor
17 changes: 17 additions & 0 deletions test/test_faker_sonic_the_hedgehog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

require_relative 'test_helper'

class TestFakerGamesSonicTheHedgehog < Test::Unit::TestCase
def setup
@tester = Faker::Games::SonicTheHedgehog
end

def test_character
assert @tester.character.match(/\w+/)
end

def test_zone
assert @tester.zone.match(/\w+/)
end
end

0 comments on commit 569b4b9

Please sign in to comment.