Skip to content

Commit

Permalink
Add supernatural TV show (#2371)
Browse files Browse the repository at this point in the history
* Adding Supernatural Tv Show to Faker

* Adding the last new line to the supernatural.yml file

* Fixing the last new line to the supernatural.yml file
  • Loading branch information
vin1cius committed Aug 19, 2021
1 parent a433078 commit f3d097c
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -341,6 +341,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'mast
- [Faker::TvShows::Stargate](doc/tv_shows/stargate.md)
- [Faker::TvShows::StrangerThings](doc/tv_shows/stranger_things.md)
- [Faker::TvShows::Suits](doc/tv_shows/suits.md)
- [Faker::TvShows::Supernatural](doc/tv_shows/supernatural.md)
- [Faker::TvShows::TheExpanse](doc/tv_shows/the_expanse.md)
- [Faker::TvShows::TheFreshPrinceOfBelAir](doc/tv_shows/the_fresh_prince_of_bel_air.md)
- [Faker::TvShows::TheITCrowd](doc/tv_shows/the_it_crowd.md)
Expand Down
7 changes: 7 additions & 0 deletions doc/tv_shows/supernatural.md
@@ -0,0 +1,7 @@
# Faker::TvShows::Supernatural

```ruby
Faker::TvShows::Supernatural.character #=> "Sam Winchester"
Faker::TvShows::Supernatural.creature #=> "Vampire"
Faker::TvShows::Supernatural.weapon #=> "Colt"
```
48 changes: 48 additions & 0 deletions lib/faker/tv_shows/supernatural.rb
@@ -0,0 +1,48 @@
# frozen_string_literal: true

module Faker
class TvShows
class Supernatural < Base
class << self
##
# Produces the name of a character from Supernatural.
#
# @return [String]
#
# @example
# Faker::TvShows::Supernatural.character #=> "Dean Winchester"
#
# @faker.version next
def character
fetch('supernatural.character')
end

##
# Produces the name of a hunted creature.
#
# @return [String]
#
# @example
# Faker::TvShows::Supernatural.creature #=> "Demon"
#
# @faker.version next
def creature
fetch('supernatural.creature')
end

##
# Produces the name of a weapon used by the hunters.
#
# @return [String]
#
# @example
# Faker::TvShows::Supernatural.weapon #=> "Colt"
#
# @faker.version next
def weapon
fetch('supernatural.weapon')
end
end
end
end
end
141 changes: 141 additions & 0 deletions lib/locales/en/supernatural.yml
@@ -0,0 +1,141 @@
en:
faker:
supernatural:
character:
- Abaddon
- Adam Milligan
- Alastair
- Alex Jones
- Amelia Richardson
- Anna Milton
- Arthur Ketch
- Ash
- Asmodeus
- Azazel
- Balthazar
- Becky Rosen
- Bela Talbot
- Belphegor
- Ben Braeden
- Benny Lafitte
- Bess Fitzgerald
- Bobby Singer
- Castiel
- Charlie Bradbury
- Christian Campbell
- Claire Novak
- Cole Trenton
- Constance Welch
- Crowley
- Dagon
- Dean Winchester
- Death
- Doctor Hess
- Donatello Redfield
- Donna Hanscum
- Dr. Gaines
- Dumah
- Edgar
- Eileen Leahy
- Eleanor Visyak
- Ellen Harvelle
- Eve
- Frank Devereaux
- Gabriel
- Gadreel
- Garth Fitzgerald IV
- Gavin MacLeod
- Gordon Walker
- Gwen Campbell
- Hannah
- Harry Spengler
- Ingrid
- Jack Kline
- Jenny
- Jessica Moore
- Jo Harvelle
- Jody Mills
- John Wayne Gacy
- John Winchester
- Josie Sands
- Karen Singer
- Kevin Tran
- Lady Toni Bevell
- Lilith
- Linda Tran
- Lisa Braeden
- Lucifer
- Mary Winchester
- Mary Worthington
- Meg Masters
- Metatron
- Michael
- Mick Davies
- Naomi
- Nick
- Pamela Barnes
- Raphael
- Rowena MacLeod
- Ruby
- Rufus Turner
- Sam Winchester
- Samandriel
- Samuel Campbell
- Sergei
- Susan
- Tessa
- Uriel
- Victor Henriksen
- Zachariah
creature:
- Angel
- Archangel
- Croatoan Virus
- Demon
- Djinn
- Dragon
- Elf
- Ghost
- Ghoul
- Hellhounds
- Kappa
- Khan worm
- Leprechauns
- Leviathan
- Loch Ness Monster
- Mermaid
- Monster
- Phoenix
- Poltergeist
- Shapeshifter
- Soul Eater
- Tricksters
- Wendigo
- Werewolf
- Zombie
- Vampire
weapon:
- Archangel Blades
- Brass
- Cain's knife
- Crowley's bones
- Death's Scythe
- Death's ring
- Excalibur
- Fire
- Hands Of God
- Holy Oil
- Holy Water
- Lamb blood
- Lance Of Michael
- Rabbit's Foot
- Righteous Bone
- Salt
- Silver Bullets
- Staff of Moses
- Sword of St. George
- The Equalizer
- The First Blade
- Virgin blood
- steel
- The Colt
21 changes: 21 additions & 0 deletions test/faker/tv_shows/test_supernatural.rb
@@ -0,0 +1,21 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerTvShowsSupernatural < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Supernatural
end

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

def test_creature
assert @tester.creature.match(/\w+/)
end

def test_weapon
assert @tester.weapon.match(/\w+/)
end
end

0 comments on commit f3d097c

Please sign in to comment.