From 40d959c65578083a275bdf8fca2278140a493ef1 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 20 Mar 2017 13:45:29 -0400 Subject: [PATCH 1/3] Add Hey Arnold faker --- lib/faker/hey_arnold.rb | 17 +++++++++++++++++ lib/locales/en.yml | 22 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 lib/faker/hey_arnold.rb diff --git a/lib/faker/hey_arnold.rb b/lib/faker/hey_arnold.rb new file mode 100644 index 0000000000..3d3505f659 --- /dev/null +++ b/lib/faker/hey_arnold.rb @@ -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 diff --git a/lib/locales/en.yml b/lib/locales/en.yml index 42458f57b6..8944a3b9ec 100755 --- a/lib/locales/en.yml +++ b/lib/locales/en.yml @@ -606,3 +606,25 @@ 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!" + ] From 2e159c2460778d7299b4e4e3c38b7fee144536d5 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 20 Mar 2017 13:47:41 -0400 Subject: [PATCH 2/3] Add tests for Hey Arnold Faker --- test/test_faker_hey_arnold.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test_faker_hey_arnold.rb diff --git a/test/test_faker_hey_arnold.rb b/test/test_faker_hey_arnold.rb new file mode 100644 index 0000000000..c47086c31f --- /dev/null +++ b/test/test_faker_hey_arnold.rb @@ -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 From 96bab6e6c849220d21cbeb4c0fc753e82496abfa Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 20 Mar 2017 13:49:16 -0400 Subject: [PATCH 3/3] Add Faker::HeyArnold documentation --- README.md | 3 ++- doc/hey_arnold.md | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 doc/hey_arnold.md diff --git a/README.md b/README.md index e057bae60b..e91269ae13 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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) diff --git a/doc/hey_arnold.md b/doc/hey_arnold.md new file mode 100644 index 0000000000..b58e02ddac --- /dev/null +++ b/doc/hey_arnold.md @@ -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!" +```