-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bojack horseman to faker (#1308)
- Loading branch information
1 parent
c08964d
commit 5db13e2
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Faker::BojackHorseman | ||
|
||
|
||
```ruby | ||
Faker::BojackHorseman.character #=> "BoJack Horseman"" | ||
|
||
Faker::BojackHorseman.tongue_twister #=> "Did you steal a meal from Neal McBeal the Navy Seal?" | ||
|
||
Faker::BojackHorseman.quote #=> "Not understanding that you're a horrible person doesn't make you less of a horrible person" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Faker | ||
class BojackHorseman < Base | ||
class << self | ||
def character | ||
fetch('bojack_horseman.characters') | ||
end | ||
|
||
def tongue_twister | ||
fetch('bojack_horseman.tongue_twisters') | ||
end | ||
|
||
def quote | ||
fetch('bojack_horseman.quotes') | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
en: | ||
faker: | ||
bojack_horseman: | ||
characters: ["Joseph Sugarman", "Princess Carolyn", "Kelsey Jannings", "Katrina Peanutbutter", "Charley Witherspoon", "Tom Jumbo-Grumbo", "Wanda Pierce", "Officer Meow Meow Fuzzyface", "Hank Hippopopalous", "Tina", "Courtney Portnoy", "Mr Peanutbutter", "Todd Chavez", "Wayne", "Dr Allen Hu", "Sarah Lynn", "Jogging Baboon", "A Ryan Seacrest Type", "Emily", "Vincent Adultman", "Sebastian St Clair", "Hollyhock", "Butterscotch Horseman", "Roxy", "Beatrice Horseman", "Herb Kazzaz", "Sextina Aquafina", "Rutabaga Rabbitowitz", "Charlotte Moore", "Ralph Stilton", "Paparazzi Birds", "Lenny Turteltaub", "Corduroy Jackson-Jackson", "Judah", "Woodchuck Coodchuck-Berkowitz", "Diane Nguyen", "Honey Sugarman", "BoJack Horseman", "Pinky Penguin"] | ||
quotes: ["It gets easier. But you have to do it every day, that's the hard part. But it does get easier", "Yes, I ate all the muffins, because I have no self-control and I hate myself", "Dead on the inside, dead on the outside", "The universe is a cruel, uncaring void. The key to being happy isn't a search for meaning. It's to just keep yourself busy with unimportant nonsense, and eventually, you'll be dead", "Beer before liquor, never sicker, liquor before beer, never fear, don't do heroine", "If you care about what other people think, you're never gonna do anything", "Ow, crap. I hate this. Running is terrible. Everything is the worst", "For a lot of people, life is just one long, hard kick in the urethra", "Spaghetti or not, here I come", "I need to go take a shower so I can't tell if I'm crying or not", "You know what the problem is with everybody? They all just want to hear what they already believe. No one ever wants to hear the truth", "I don't understand how people live. It's amazing to me that people wake up every morning and say: 'Yeah, another day, let's do it.' How do people do it? I don't know how", "Not understanding that you're a horrible person doesn't make you less of a horrible person", "That's the problem with life, either you know what you want and you don't get what you want, or you get what you want and then you don't know what you want", "I do love you, by the way. I mean as much as I'm capable of loving anyone"] | ||
tongue_twisters: ["Courtney Portnoy portrayed the formerly portly consort in the seaport resort", "Courtly roles like the formerly portly consort are Courtney portnoys forte", "That's sorta been thwarted unfortunately cos Courtney's purportedly falling short of shoring up fourth quadrant support", "Portnoy finds joy in hoi polloi boy toy", "Did you steal a meal from Neal McBeal the Navy Seal?", " audiences are going to adore your tour de force performance as the forceful denim-clad court reporter in 'The Court Reporter Sported Jorts', the jet-setting jort-sporting court reporter story"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require_relative 'test_helper' | ||
|
||
class TestFakerBojackHorseman < Test::Unit::TestCase | ||
def setup | ||
@tester = Faker::BojackHorseman | ||
end | ||
|
||
def test_character | ||
assert @tester.character.match(/\w+/) | ||
end | ||
|
||
def test_tongue_twister | ||
assert @tester.tongue_twister.match(/\w+/) | ||
end | ||
|
||
def test_quote | ||
assert @tester.quote.match(/\w+/) | ||
end | ||
end |