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::HeyArnold #855

Merged
merged 4 commits into from
Mar 22, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ development.
### NOTE

* While Faker generates data at random, returned values are not guaranteed to be unique by default.
You must explicity specify when you require unique values, see [details](#ensuring-unique-values).
You must explicity specify when you require unique values, see [details](#ensuring-unique-values).
Values also can be deterministic if you use the deterministic feature, see [details](#deterministic-random)
* This is the `master` branch of Faker and may contain changes that are not yet released.
Please refer the README of your version for the available methods.
Expand Down Expand Up @@ -53,6 +53,7 @@ Contents
- [Faker::GameOfThrones](doc/game_of_thrones.md)
- [Faker::Hacker](doc/hacker.md)
- [Faker::HarryPotter](doc/harry_potter.md)
- [Faker::HeyArnold](doc/hey_arnold.md)
- [Faker::Hipster](doc/hipster.md)
- [Faker::Internet](doc/internet.md)
- [Faker::LordOfTheRings](doc/lord_of_the_rings.md)
Expand Down
10 changes: 10 additions & 0 deletions doc/hey_arnold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Faker::HeyArnold

```ruby

Faker::HeyArnold.character #=> "Arnold"

Faker::HeyArnold.location #=> "Big Bob's Beeper Emporium"

Faker::HeyArnold.quote #=> "Stoop Kid's afraid to leave his stoop!"
```
17 changes: 17 additions & 0 deletions lib/faker/hey_arnold.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module Faker
class HeyArnold < Base
class << self
def character
fetch('hey_arnold.characters')
end

def location
fetch('hey_arnold.locations')
end

def quote
fetch('hey_arnold.quotes')
end
end
end
end
22 changes: 22 additions & 0 deletions lib/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,28 @@ en:
markdown:
headers: ["#", "##", "###", "####", "#####", "######"]
emphasis: ["_", "~", "*", "**"]
hey_arnold:
characters: ["Arnold", "Steely Phil", "Pookie", "Oskar Kokoschka", "Suzie Kokoschka", "Mr. Hyuhn", "Helga G. Pataki", "Miriam Pataki", "Olga Pataki", "Gerald Johannssen", "Harold Berman", "Phoebe Heyerdahl", "Rhonda Lloyd", "Lila Sawyer", "Stinky Peterson", "Eugene Horowitz", "Sid", "Curly", "Torvald", "Sheena", "Lorenzo", "Iggy", "Brainy", "Nadine", "Park", "Joey Stevenson", "Peapod Kid", "Big Gino", "Campfire Lass", "Wolfgang", "Edmund", "Big Patty", "Mickey the Weasel", "Chocolate Boy",
"Ruth P. McDougal", "Robert Simmons", "Miss Slovak", "Principal Wartz", "Jack Wittenburg", "Tish Wittenburg", "Tucker Wittenburg", "Dino Spumoni", "Jimmy Kafka", "Ernie Potts", "Ronnie Matthews", "Mickey Kaline", "Monkey Man", "Pigeon Man", "Robbie Fisher", "Sewer King", "Stoop Kid", "The Jolly Olly Man", "Abner", "Four-Eyed Jack", "Wheezin' Ed", "Don Reynolds", "Big Bob Pataki", "Miriam Pataki", "Jamie O", "Timberly", "Marty Green", "Ludwig", "Dr. Bliss", "Lieutenant Major Goose", "Alphonse Perrier du von Scheck", "The Mauve Avenger", "Earl"]
locations: ["P.S. 118", "Stoop Kid's Stoop", "Antonio's Pizzeria", "Mickey's Dog Pound", "Big Bob's Beeper Emporium", "Sundae Salon", "Omar's Falafel Hut", "The Fudge Place", "Hillwood City", "Green Meats", "Roscoe's Funky Rags", "Watch Repair", "Yahoo Chocolate Factory", "Sunset Arms", "Stinky's farm", "Chez Paris", "Gerald Field", "Madame Bovary's Dance School for Boys"]
quotes: [
"Stoop Kid's afraid to leave his stoop!",
"MONKEYMAAAAN!",
"You better not touch my gal, or I'll pop you in the kisser, pal",
"Yahoo Soda Just Drink It",
"I saw your face and wow!",
"But you see, Arnold and tall hair boy, I don’t want to be famous! I want to live my life simply! I like my banana wallpaper, I like doing my own laundry! Just give me the simple things!",
"Kitty, kitty, kitty, do you like to pet the kitty? I like to pet the kitty! Hey look! I'm petting the kitty!",
"You're a bold kid, Arnold, a bold kid.",
"Hey, short man!",
"You keep the money!",
"Suzie, make me a sandwich!",
"But Gerald, the Jolly Olly Man is a stingy, mean spirited jerk, who hates kids and is constantly teetering on the brink of insanity.",
"Can you get your arm off my shoulder? As I've told you many times before, I don't like you like you, I just like you.",
"Move it, Footballhead",
"Never eat raspberries.",
"I'm okay!"
]
overwatch:
heroes: ["Ana", "Bastion", "D.va", "Genji", "Hanzo", "Junkrat", "Lucio", "McCree", "Mei", "Mercy", "Orisa", "Pharah", "Reaper", "Reinhardt", "Roadhog", "Soldier 76", "Sombra", "Symmetra", "Torbjorn", "Tracer", "Widowmaker", "Winston", "Zarya", "Zenyatta"]
locations: ["Adlersbrunn", "Dorado", "Ecopoint: Antarctica", "Eichenwalde", "Hanamura", "Hollywood", "Ilios", "King's Row", "Lijiang Tower", "Nepal", "Numbani", "Oasis", "Route 66", "Temple of Anubis", "Volskaya Industries", "Watchpoint: Gibraltar"]
Expand Down
19 changes: 19 additions & 0 deletions test/test_faker_hey_arnold.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestFakerHeyArnold < Test::Unit::TestCase
def setup
@tester = Faker::HeyArnold
end

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

def test_location
assert @tester.location.match(/\w+/)
end

def test_quote
assert @tester.quote.match(/\w+/)
end
end