Skip to content

Commit

Permalink
Add The Room (2003) to Movies (faker-ruby#2134)
Browse files Browse the repository at this point in the history
* Add the Room (2003) to Movies

* Add the Room to README.md

* Remove unnecessary whitespace

* Move README.md changes to unreleased_README.md

Changes can't be in README.md, because these changes aren't
released yet and it will confuse users.
For approved example see comment from vbrazo at
faker-ruby@dc2305d

* Fix spelling & other errors

* Fix problems found by rubocop

* Add Park location

* Add the Room (2003) to Movies

* Remove unreleased_README.md

* Rename Faker::Movies::TheRoom
  • Loading branch information
fiteclub authored and droznyk committed Oct 23, 2020
1 parent 47bc44e commit 92f3f53
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/movies/room.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Faker::Movies::Room

```ruby
Faker::Movies::Room.actor #=> "Tommy Wiseau"

Faker::Movies::Room.character #=> "Johnny"

Faker::Movies::Room.location #=> "Johnny's Apartment"

Faker::Movies::Room.quote #=> "A-ha-ha-ha! What a story, Mark!"
```
63 changes: 63 additions & 0 deletions lib/faker/movies/room.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# frozen_string_literal: true

module Faker
class Movies
class TheRoom < Base
class << self
##
# Produces an actor from The Room (2003).
#
# @return [String]
#
# @example
# Faker::Movies::Room.actor #=> "Tommy Wiseau"
#
# @faker.version next
def actor
fetch('room.actors')
end

##
# Produces a character from The Room (2003).
#
# @return [String]
#
# @example
# Faker::Movies::Room.character #=> "Johnny"
#
# @faker.version next
def character
fetch('room.characters')
end

##
# Produces a location from The Room (2003).
#
# @return [String]
#
# @example
# Faker::Movies::Room.location #=> "Johnny's Apartment"
#
# @faker.version next
def location
fetch('room.locations')
end

##
##
# Produces a quote from The Room (2003).
#
# @return [String]
#
# @example
# Faker::Movies::Room.quote
# #=> "You're lying, I never hit you. You are tearing me apart, Lisa!"
#
# @faker.version next
def quote
fetch('room.quotes')
end
end
end
end
end
68 changes: 68 additions & 0 deletions lib/locales/en/room.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
en:
faker:
room:
actors:
- Tommy Wiseau
- Juliette Danielle
- Greg Sestero
- Philip Haldiman
- Carolyn Minnott
- Robyn Paris
- Scott Holmes
- Dan Janjigian
- Kyle Vogt
- Greg Ellery
characters:
- Johnny
- Lisa
- Mark
- Denny
- Claudette
- Michelle
- Mike
- Chris-R
- Peter
- Steven
locations:
- Johnny's Place
- Rooftop
- Park
- Alley
- Flower Shop
- Claudette's Place
quotes:
- "Oh hi, Denny"
- "Anything for my princess! Ha-ha-ha-ha."
- "Denny, two's great, but three's a crowd. Ha-ha."
- "Oh hi, Johnny, I didn't know it was you."
- "Here you go, keep the change. Hi doggy!"
- "You're my favorite customer"
- "I just want to talk to Johnny. You look beautiful today. Can I kiss you?"
- "I got the results of the test back. I definitely have breast cancer."
- "Did you, uh, know, that chocolate is the symbol of love?"
- "Where’s my money, Denny?"
- "Denny, what kind of money, just tell me!"
- "What kind of drugs, Denny?"
- "I did not hit her! It’s not true! It’s bullshit! I did not hit her! I did not! Oh, hi Mark."
- "A-ha-ha-ha! What a story, Mark!"
- "You can love someone deep inside your heart, and there is nothing wrong with it. If a lot of people loved each other, the world would be a better place to live."
- "I never hit you. You shouldn’t have any secrets from me. I’m your future husband."
- "Why Lisa, why Lisa, please talk to me, please! You’re part of my life, you are everything, I could not go on without you, Lisa."
- "You’re lying, I never hit you. You are tearing me apart, Lisa!"
- "Do you understand life? Do you?"
- "Oh hi, Mike, what’s new?"
- "Oh hey, Denny."
- "How can they say this about me? I don’t believe it. I show them. I will record everything."
- "You know what they say: love is blind."
- "Ha-ha-ha, chicken, Peter, you’re just a little chicken! Cheep, cheep cheep cheep cheep chee-ee-ee-eep eeeeeeeeeeee!"
- "Oh, hi Denny. Nice tux, you look great."
- "You look great. You look a babyface."
- "Oh hi, Susan."
- "We got a new client at the bank, we make a lot of money."
- "Anyway, how is your sex life?"
- "Oh hi, Claudette. Bye!"
- "You betrayed me, you’re not good, you’re just a chicken, cheep-cheep-cheep-cheep-cheep."
- "It’s not over! Everybody betray me! I fed up with this world!"
- "How could you do this to me?! I gave you seven years of my life! And you betray me."
- "Aughhhhhhhh!!! Everybody betray me. I don’t have a friend in the world."
- "As far as I’m concerned, you can drop off the earth. That’s a promise"
25 changes: 25 additions & 0 deletions test/faker/movies/test_faker_room.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerRoom < Test::Unit::TestCase
def setup
@tester = Faker::Movies::TheRoom
end

def test_actor
assert @tester.actor.match(/\w+/)
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

0 comments on commit 92f3f53

Please sign in to comment.