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

Faker: Umphreys mcgee #942

Merged
merged 4 commits into from Jul 12, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -88,6 +88,7 @@ Contents
- [Faker::Time](doc/time.md)
- [Faker::TwinPeaks](doc/twin_peaks.md)
- [Faker::Twitter](doc/twitter.md)
- [Faker::UmphreysMcgee](doc/umphreys_mcgee.md)
- [Faker::University](doc/university.md)
- [Faker::Vehicle](doc/vehicle.md)
- [Faker::Zelda](doc/zelda.md)
Expand Down
5 changes: 5 additions & 0 deletions doc/umphreys_mcgee.md
@@ -0,0 +1,5 @@
# Faker::UmphreysMcgee

```ruby
Faker::UmphreysMcgee.song #=> "Dump City"
```
9 changes: 9 additions & 0 deletions lib/faker/umphreys_mcgee.rb
@@ -0,0 +1,9 @@
module Faker
class UmphreysMcgee < Base
class << self
def song
fetch('umphreys_mcgee.song')
end
end
end
end
2 changes: 2 additions & 0 deletions lib/locales/en.yml
Expand Up @@ -495,6 +495,8 @@ en:
primordial: ["Aion", "Aether", "Ananke", "Chaos", "Chronos", "Erebus", "Eros", "Hypnos", "Nesoi", "Uranus", "Gaia", "Ourea", "Phanes", "Pontus", "Tartarus", "Thalassa", "Thanatos", "Hemera", "Nyx", "Nemesis"]
titan: ["Coeus", "Crius", "Cronus", "Hyperion", "Iapetus", "Mnemosyne", "Oceanus", "Phoebe", "Rhea", "Tethys", "Theia", "Themis", "Asteria", "Astraeus", "Atlas", "Aura", "Clymene", "Dione", "Helios", "Selene", "Eos", "Epimetheus", "Eurybia", "Eurynome", "Lelantos", "Leto", "Menoetius", "Metis", "Ophion", "Pallas", "Perses", "Prometheus", "Styx"]
hero: ["Abderus", "Achilles", "Aeneas", "Ajax", "Amphitryon", "Antilochus", "Bellerophon", "Castor", "Chrysippus", "Daedalus", "Diomedes", "Eleusis", "Eunostus", "Ganymede", "Hector", "Hercules", "Icarus", "Iolaus", "Jason", "Meleager", "Odysseus", "Orpheus", "Pandion", "Perseus", "Theseus", "Alcestis", "Amymone", "Andromache", "Andromeda", "Antigone", "Arachne", "Ariadne", "Atalanta", "Briseis", "Caeneus", "Cassandra", "Cassiopeia", "Clytemnestra", "Danaë", "Deianeira", "Electra", "Europa", "Hecuba", "Helen", "Hermione", "Iphigenia", "Ismene", "Jocasta", "Medea", "Medusa", "Niobe", "Pandora", "Penelope", "Phaedra", "Polyxena", "Semele", "Thrace"]
umphreys_mcgee:
song: ["1000 Places to See Before You Die", "10th Grade", "13 Days", "1348", "2nd Self", "2x2", "40's Theme", "930", "A Mild Sedative", "Ahab", "Alex's House", "All in Time", "All Things Ninja", "Amble On", "Anchor Drops", "Andy's Last Beer", "Angular Momentum", "Atmosfarag", "Attachments", "Auf Wiedersehen", "August", "B.Onion", "Baby Honey Sugar Darlin", "Bad Friday", "Bad Poker", "Bathing Digits", "Believe the Lie", "Blue Echo", "Bob", "Booth Love", "Breaker", "Bridgeless", "Bright Lights Big City", "Bullhead City", "Bus Call", "Catshot", "Cemetery Walk", "Cemetery Walk II", "Chicago", "Conduit", "Comma Later", "Conduit", "Constellations", "Crucial Taunt", "Cummins Lies", "Cut off", "Cut the Cable", "Day Nurse", "Dear Lord", "Deeper", "Den", "Depth Charge", "Der Bluten Kat", "DeWayne", "Dim Sun", "Divisions", "Domino Theory", "Dough Bro", "Downtrodden", "Draconian", "Dream Team", "Drink My Drank", "Drums", "Duck Butter", "Dump City", "Eat", "Educated Guess", "Empty the Tank", "End of the Road", "Example 1", "FDR", "FF", "Final Word", "Flamethrower", "Fly Like a Beagle", "Fool's Gold", "Forks", "Front Porch", "Front Port", "Full Frontal", "Funk Improv", "Funk Jam", "G-Song", "Gents", "Gesture Under a Mitten", "Get in the Van", "Glory", "Go to Hell", "Gobbler's Knob", "Gone for Good", "Goonville", "Got Your Milk Right Here", "Gravity's Real", "Great American", "Gulf Stream", "Gurgle", "Gut Strut", "Hajimemashite", "Hangover", "Headphones & Snowcones", "Higgins", "Hindsight", "Hourglass", "Hours", "Hurt Bird Bath", "In the Black", "In the Kitchen", "In Violation of Yes", "Intentions Clear", "JaJunk", "Jared", "Jekyll & Hyde", "Jose", "Kabump", "Kat's Tune", "Keefer", "Kimble", "Kula", "Larceny", "Last Call", "Last Man Swerving", "Le Blitz", "Leave Me Las Vegas", "Liberty Echo", "Lift & Separate", "Liquid", "Little Gift", "Loose Ends", "Lord Bail Ship", "Lucid State", "Mad Love", "Made to Measure", "Mail Package", "Make it Right", "Mamu", "Mantis", "Mantis Ghetts", "Memoris of Home", "Miami Virtue", "Miss Tinkle's Overture", "Moogasaurus Rex", "Morning Song", "Much Obliged", "Muff II The Revenge", "MuffburgerSandwich", "Mulche's Odyssey", "Mullet Over", "Nachos for Two", "Nemo", "Never Cease", "Night Nurse", "Nipple Trix", "No Comment", "Non-Compliance", "Nopener", "North Route", "Nothing Too Fancy", "Ocean Billy", "October Rain", "Oesque", "Onward and Upward", "Orfeo", "Out of Order", "Padgett's Profile", "Partyin Peeps", "Passing", "Pay the Snucka", "Phil's Farm", "Pick your Nose", "Piranhas", "Plunger", "PonchEstrada", "Pooh Doggie", "Preamble", "Professor Wormbog", "Prophecy Now", "Proverbial", "Prowler", "Puppet String", "Push the Booth Deeper", "Push the Pig", "QBert", "Raymond", "Red Room Disco", "Red Tape", "Remind Me", "Resolution", "REW", "Ride On Pony", "Ringo", "Rise To the Top", "Rising Bird", "Robot World", "Rocker", "Rocker Part 2", "Roctopus", "Room To Breathe", "Roulette", "Salamander Strut", "Scaffolding Melee", "Search 4", "Similar Skin", "Skin the Cat", "Skip", "Slacker", "Slow", "Sludge and Death", "Smell the Mitten", "Snake Juice", "Sociable Jimmy", "Soul Food", "Space Funk Booty", "Speak Up", "Spires", "St. Hubbins March 2", "Spires", "Stanton", "Stinko's Ascension", "Susanah", "Sweetness", "Syncopated Strangers", "Take it to Church", "Tango Mike", "The Bottom Half", "The Crooked One", "The Empire State", "The Floor", "The Fussy Dutchman", "The Fuzz", "The Haunt", "The Linear", "The Other Side of Things", "The Pequod", "The Plot Thickens", "The Triple Wide", "The Weight Around", "There's No Crying in Mexico", "Theresa", "Thin Air", "Through the Cracks", "Tribute to the Spinal Shaft", "Turn and Dub", "Turn and Run", "Uncle Wally", "Uncommon", "Until We Meet Again", "Utopian Fir", "Vibe", "Visions", "Waist Down", "Walletsworth", "Wappy Sprayberry", "Water", "Web Tangle", "Weed Rap", "Wellwishers", "White Man's Moccasins", "White Pickle", "Wife Soup", "Wizard Burial Ground", "Women Wine and Song", "Words", "Yoga Pants", "You Got the Wrong Guy", "Zeroes and Ones"]
twin_peaks:
characters: ["Albert Rosenfield", "Andrew Packard", "Andy Brennan", "Annie Blackburn", "Audrey Horne", "Ben Horne", "Bernard Renault", "Big Ed Hurley", "Blackie O'Reilly", "Bobby Briggs", "Catherine Martell", "Chet Desmond", "Dale Cooper", "Denise Bryson", "Dick Tremayne", "Doc Hayward", "Donna Hayward", "Dougie Milford", "Dr Jacoby", "Eileen Hayward", "Evelyn Marsh", "Gersten Hayward", "Gordon Cole", "Hank Jennings", "Harold Smith", "Harriet Hayward", "Hawk Hill", "Jacques Renault", "James Hurley", "Jean Renault", "Jerry Horne", "John Justice Wheeler", "Johnny Horne", "Josie Packard", "Killer BOB", "Lana Budding Milford", "Laura Palmer", "Leland Palmer", "Leo Johnson", "Lil the dancer", "Lucy Moran", "MIKE", "Maddy Ferguson", "Major Briggs", "Mayor Milford", "Mike Nelson", "Mr Tojamura", "Mrs Tremond", "Nadine Hurley", "Norma Jennings", "Pete Martell", "Phillip Gerard", "Phillip Jeffries", "Pierre Tremond", "Ronette Pulaski", "Sam Stanley", "Sarah Palmer", "Shelly Johnson", "Sheriff Truman", "Teresa Banks", "The Giant", "The Log Lady", "The Man from Another Place", "Thomas Eckhardt", "Windom Earle"]
locations: ["Big Ed's Gas Farm", "Black Lake", "Black Lodge", "Blue Pine Lodge", "Bookhouse", "Calhoun Memorial Hospital", "Cemetery", "Dead Dog Farm", "Deer Meadow", "Double-R Diner", "Easter Park", "FBI Office", "Fat Trout Trailer Park", "Ghostwood National Forest", "Glastonbury Grove", "Great Northern Hotel", "Haps Diner", "High School", "Horne's Department Store", "Log Lady's Cabin", "One Eyed Jack's", "Owl Cave", "Packard Sawmill", "Palmer House", "Railroad Car", "Roadhouse", "Ronette's Bridge", "Sheriff's Department", "Timber Falls Motel", "Town Hall", "Twin Peaks Savings & Loan", "White Lodge", "Wind River"]
Expand Down
12 changes: 12 additions & 0 deletions test/test_faker_umphreys_mcgee.rb
@@ -0,0 +1,12 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestFakerUmphreysMcgee < Test::Unit::TestCase

def setup
@tester = Faker::UmphreysMcgee
end

def test_song
assert @tester.song.match(/\w+/)
end
end