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::TvShow namespace #1431

Merged
merged 49 commits into from
Nov 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4fef7e5
add TvShows namespace
Zeragamba Oct 21, 2018
4f65f09
move BojackHorseman into TvShows namespace
Zeragamba Oct 21, 2018
6c1e978
update documentation for BojackHorseman
Zeragamba Oct 21, 2018
03ca2f9
reorganize the new test
Zeragamba Oct 21, 2018
acf683d
move AquaTeenHungerForce to TvShows namespace
Zeragamba Oct 21, 2018
9a789a3
remove Bojack from the ignored subclasses
Zeragamba Oct 21, 2018
b18a9b6
move BreakingBad to TvShows
Zeragamba Oct 21, 2018
dfd97f8
move Buffy to TvShows
Zeragamba Oct 21, 2018
b1fdac8
move DrWho to TvShows
Zeragamba Oct 22, 2018
5009fde
update Readme
Zeragamba Oct 22, 2018
7b9fa64
move Community to TvShows
Zeragamba Oct 22, 2018
5c8bd53
make deprecated methods wrappers around new ones
Zeragamba Oct 22, 2018
a28ebe8
add flexible tag to new classes
Zeragamba Oct 22, 2018
79d9eb8
move DumbAndDumber to TvShows
Zeragamba Oct 22, 2018
97e5427
update Faker::TvShows::BreakingBad to use class << self style
Zeragamba Oct 22, 2018
2c3ee47
fix filename
Zeragamba Oct 22, 2018
f07580f
Move FamilyGuy to TvShows
Zeragamba Oct 22, 2018
f21cf0f
move VentureBros to TvShows
Zeragamba Oct 22, 2018
5ab7823
move TwinPeaks to TvShows
Zeragamba Oct 22, 2018
b287807
move Friends to TvShows
Zeragamba Oct 22, 2018
fcf299c
move SouthPark to TvShows
Zeragamba Oct 22, 2018
f93381c
move GameOfThrones to TvShows
Zeragamba Oct 22, 2018
c31f914
move TheITCrowd to TvShows
Zeragamba Oct 22, 2018
3130de8
move HeyArnold to TvShows
Zeragamba Oct 22, 2018
5846b6b
move HowIMetYourMother to TvShows
Zeragamba Oct 22, 2018
6a0e9c6
move NewGirl to TvShows
Zeragamba Oct 22, 2018
79da2fa
move ParksAndRec to TvShows
Zeragamba Oct 22, 2018
d94d235
move RickAndMorty to TvShows
Zeragamba Oct 22, 2018
3e3b653
move Seinfeld to TvShows
Zeragamba Oct 22, 2018
ed88a50
move SiliconValley to TvShows
Zeragamba Oct 22, 2018
e41d256
move Simpsons to TvShows
Zeragamba Oct 22, 2018
a21a095
move StarTrek to TvShows
Zeragamba Oct 22, 2018
eca76d3
move StrangerThings to TvShows
Zeragamba Oct 22, 2018
6a2ea72
move TheFreshPrinceOfBelAir to TvShows
Zeragamba Oct 22, 2018
c392069
move TheThickOfIt to TvShows
Zeragamba Oct 22, 2018
3a86dc6
move Stargate to TvShows
Zeragamba Oct 22, 2018
37457fb
add StarTrek back into the readme
Zeragamba Oct 22, 2018
32e3be0
add flexible tag to FamilyGuy
Zeragamba Oct 22, 2018
bffba2c
fix copy-paste error with TheITCrowd docs
Zeragamba Oct 22, 2018
88167f3
please the Rubocop
Zeragamba Oct 22, 2018
3c06955
remove windows platform from .lock file
Zeragamba Oct 23, 2018
0703d77
Merge branch 'master' into namespace/tv-shows
Zeragamba Oct 25, 2018
cf2374d
Merge remote-tracking branch 'upstream/master'
Zeragamba Nov 1, 2018
577ae0d
Merge branch 'master' into namespace/tv-shows
Zeragamba Nov 1, 2018
320f092
update unreleased README
Zeragamba Nov 1, 2018
6872c4e
Restore README
Zeragamba Nov 1, 2018
5dd2222
Fix merge issues
vbrazo Nov 11, 2018
e90cbf0
Add a few comments - faker.rb
vbrazo Nov 11, 2018
14899b8
Update CHANGELOG.md
vbrazo Nov 11, 2018
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- [PR #372](https://github.com/stympy/faker/pull/372) Add test_password_could_achieve_max_length [@oleksii-ti](https://github.com/oleksii-ti)

### Deprecation
- [PR #1431](https://github.com/stympy/faker/pull/1431) Add Faker::TvShow namespace [@SpyMaster356](https://github.com/SpyMaster356)
- [PR #1412](https://github.com/stympy/faker/pull/1412) Add Faker::Games namespace [@ChaoticBoredom](https://github.com/ChaoticBoredom)
- Deprecates `::Dota`, `::ElderScrolls`, `::Fallout`, `::LeagueOfLegends`, `::Myst`, `::Overwatch`, `::Pokemon`, `::Witcher`, `::WorldOfWarcraft` and `::Zelda`
- [PR #1424](https://github.com/stympy/faker/pull/1424) Add Faker::Creature namespace [@ChaoticBoredom](https://github.com/ChaoticBoredom)
Expand Down
4 changes: 2 additions & 2 deletions doc/unreleased/aqua_teen_hunger_force.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Faker::AquaTeenHungerForce
# Faker::TvShows::AquaTeenHungerForce

```ruby
Faker::AquaTeenHungerForce.character #=> "Master Shake"
Faker::TvShows::AquaTeenHungerForce.character #=> "Master Shake"
```
8 changes: 4 additions & 4 deletions doc/unreleased/bojack_horseman.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Faker::BojackHorseman
# Faker::TvShows::BojackHorseman


```ruby
Faker::BojackHorseman.character #=> "BoJack Horseman""
Faker::TvShows::BojackHorseman.character #=> "BoJack Horseman""

Faker::BojackHorseman.tongue_twister #=> "Did you steal a meal from Neal McBeal the Navy Seal?"
Faker::TvShows::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"
Faker::TvShows::BojackHorseman.quote #=> "Not understanding that you're a horrible person doesn't make you less of a horrible person"
```
6 changes: 3 additions & 3 deletions doc/unreleased/breaking_bad.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::BreakingBad
# Faker::TvShows::BreakingBad

Available since version 1.8.8.

```ruby
Faker::BreakingBad.character #=> "Walter White"
Faker::TvShows::BreakingBad.character #=> "Walter White"

Faker::BreakingBad.episode #=> "Cancer Man"
Faker::TvShows::BreakingBad.episode #=> "Cancer Man"
```
12 changes: 6 additions & 6 deletions doc/unreleased/buffy.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Faker::Buffy
# Faker::TvShows::Buffy

It might be available in the next version.

```ruby
Faker::Buffy.character #=> "Buffy Summers"
Faker::TvShows::Buffy.character #=> "Buffy Summers"

Faker::Buffy.quote #=> "If the apocalypse comes, beep me."
Faker::TvShows::Buffy.quote #=> "If the apocalypse comes, beep me."

Faker::Buffy.celebrity #=> "John Ritter"
Faker::TvShows::Buffy.celebrity #=> "John Ritter"

Faker::Buffy.big_bad #=> "Glory"
Faker::TvShows::Buffy.big_bad #=> "Glory"

Faker::Buffy.episode #> "Once More, with Feeling"
Faker::TvShows::Buffy.episode #> "Once More, with Feeling"
```
6 changes: 3 additions & 3 deletions doc/unreleased/community.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::Community
# Faker::TvShows::Community

Available since version 1.9.0.

```ruby
Faker::Community.characters #=> "Jeff Winger"
Faker::TvShows::Community.characters #=> "Jeff Winger"

Faker::Community.quotes #=> I fear a political career could shine a negative light on my drug dealing."
Faker::TvShows::Community.quotes #=> I fear a political career could shine a negative light on my drug dealing."
```
16 changes: 8 additions & 8 deletions doc/unreleased/dr_who.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Faker::DrWho
# Faker::TvShows::DrWho

```ruby
Faker::DrWho.character #=> "Captain Jack Harkness"
Faker::TvShows::DrWho.character #=> "Captain Jack Harkness"

Faker::DrWho.the_doctor #=> "Ninth Doctor"
Faker::TvShows::DrWho.the_doctor #=> "Ninth Doctor"

Faker::DrWho.actor #=> "Matt Smith"
Faker::TvShows::DrWho.actor #=> "Matt Smith"

Faker::DrWho.catch_phrase #=> "Fantastic!"
Faker::TvShows::DrWho.catch_phrase #=> "Fantastic!"

Faker::DrWho.quote #=> "Lots of planets have a north!"
Faker::TvShows::DrWho.quote #=> "Lots of planets have a north!"

Faker::DrWho.villian #=> "The Master"
Faker::TvShows::DrWho.villian #=> "The Master"

Faker::DrWho.specie #=> "Dalek"
Faker::TvShows::DrWho.specie #=> "Dalek"
```
8 changes: 4 additions & 4 deletions doc/unreleased/dumb_and_dumber.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Faker::DumbAndDumber
# Faker::TvShows::DumbAndDumber

```ruby

Faker::DumbAndDumber.actor #=> "Jim Carrey"
Faker::TvShows::DumbAndDumber.actor #=> "Jim Carrey"

Faker::DumbAndDumber.character #=> "Harry Dunne"
Faker::TvShows::DumbAndDumber.character #=> "Harry Dunne"

Faker::DumbAndDumber.quote #=> "Why you going to the airport? Flying somewhere?"
Faker::TvShows::DumbAndDumber.quote #=> "Why you going to the airport? Flying somewhere?"

```
8 changes: 4 additions & 4 deletions doc/unreleased/family_guy.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::FamilyGuy
# Faker::TvShows::FamilyGuy

```ruby
Faker::FamilyGuy.character #=> "Peter Griffin"
Faker::TvShows::FamilyGuy.character #=> "Peter Griffin"

Faker::FamilyGuy.location #=> "James Woods High"
Faker::TvShows::FamilyGuy.location #=> "James Woods High"

Faker::FamilyGuy.quote #=> "It’s Peanut Butter Jelly Time."
Faker::TvShows::FamilyGuy.quote #=> "It’s Peanut Butter Jelly Time."
```
8 changes: 4 additions & 4 deletions doc/unreleased/friends.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Faker::Friends
# Faker::TvShows::Friends

Available since version 1.7.3.

```ruby
Faker::Friends.character #=> "Rachel Green"
Faker::TvShows::Friends.character #=> "Rachel Green"

Faker::Friends.location #=> "Central Perk"
Faker::TvShows::Friends.location #=> "Central Perk"

Faker::Friends.quote #=> "We were on a break!"
Faker::TvShows::Friends.quote #=> "We were on a break!"
```
12 changes: 6 additions & 6 deletions doc/unreleased/game_of_thrones.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Faker::GameOfThrones
# Faker::TvShows::GameOfThrones

Available since version 1.6.6.

```ruby
Faker::GameOfThrones.character #=> "Tyrion Lannister"
Faker::TvShows::GameOfThrones.character #=> "Tyrion Lannister"

Faker::GameOfThrones.house #=> "Stark"
Faker::TvShows::GameOfThrones.house #=> "Stark"

Faker::GameOfThrones.city #=> "Lannisport"
Faker::TvShows::GameOfThrones.city #=> "Lannisport"

Faker::GameOfThrones.quote #=> "Never forget who you are. The rest of the world won't. Wear it like an armor and it can never be used against you."
Faker::TvShows::GameOfThrones.quote #=> "Never forget who you are. The rest of the world won't. Wear it like an armor and it can never be used against you."

Faker::GameOfThrones.dragon #=> "Drogon"
Faker::TvShows::GameOfThrones.dragon #=> "Drogon"
```
8 changes: 4 additions & 4 deletions doc/unreleased/hey_arnold.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Faker::HeyArnold
# Faker::TvShows::HeyArnold

Available since version 1.8.0.

```ruby

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

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

Faker::HeyArnold.quote #=> "Stoop Kid's afraid to leave his stoop!"
Faker::TvShows::HeyArnold.quote #=> "Stoop Kid's afraid to leave his stoop!"

```
10 changes: 5 additions & 5 deletions doc/unreleased/how_i_met_your_mother.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Faker::HowIMetYourMother
# Faker::TvShows::HowIMetYourMother

Available since version 1.8.0.

```ruby
Faker::HowIMetYourMother.character #=> "Barney Stinson"
Faker::TvShows::HowIMetYourMother.character #=> "Barney Stinson"

Faker::HowIMetYourMother.catch_phrase #=> "Legendary"
Faker::TvShows::HowIMetYourMother.catch_phrase #=> "Legendary"

Faker::HowIMetYourMother.high_five #=> "Relapse Five"
Faker::TvShows::HowIMetYourMother.high_five #=> "Relapse Five"

Faker::HowIMetYourMother.quote #=> "Whenever I’m sad, I stop being sad and be awesome instead."
Faker::TvShows::HowIMetYourMother.quote #=> "Whenever I’m sad, I stop being sad and be awesome instead."
```
6 changes: 3 additions & 3 deletions doc/unreleased/new_girl.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Faker::NewGirl
# Faker::TvShows::NewGirl

```ruby
Faker::NewGirl.character #=> "Jessica Day"
Faker::TvShows::NewGirl.character #=> "Jessica Day"

Faker::NewGirl.quote #=> "Are you cooking a frittata in a sauce pan? What is this – prison?"
Faker::TvShows::NewGirl.quote #=> "Are you cooking a frittata in a sauce pan? What is this – prison?"
```
6 changes: 3 additions & 3 deletions doc/unreleased/parks_and_rec.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Faker::ParksAndRec
# Faker::TvShows::ParksAndRec

```ruby
Faker::ParksAndRec.character #=> "Leslie Knope"
Faker::TvShows::ParksAndRec.character #=> "Leslie Knope"

Faker::ParksAndRec.city #=> "Pawnee"
Faker::TvShows::ParksAndRec.city #=> "Pawnee"
```
8 changes: 4 additions & 4 deletions doc/unreleased/rick_and_morty.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Faker::RickAndMorty
# Faker::TvShows::RickAndMorty

Available since version 1.8.0.

```ruby
Faker::RickAndMorty.character #=> "Rick Sanchez"
Faker::TvShows::RickAndMorty.character #=> "Rick Sanchez"

Faker::RickAndMorty.location #=> "Dimension C-132"
Faker::TvShows::RickAndMorty.location #=> "Dimension C-132"

Faker::RickAndMorty.quote #=> "Ohh yea, you gotta get schwifty."
Faker::TvShows::RickAndMorty.quote #=> "Ohh yea, you gotta get schwifty."
```
8 changes: 4 additions & 4 deletions doc/unreleased/seinfeld.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::Seinfeld
# Faker::TvShows::Seinfeld

```ruby
Faker::Seinfeld.character #=> George Costanza
Faker::TvShows::Seinfeld.character #=> George Costanza

Faker::Seinfeld.quote #=> I'm not a lesbian. I hate men, but I'm not a lesbian
Faker::TvShows::Seinfeld.quote #=> I'm not a lesbian. I hate men, but I'm not a lesbian

Faker::Seinfeld.business #=> Kruger Industrial Smoothing
Faker::TvShows::Seinfeld.business #=> Kruger Industrial Smoothing
```
18 changes: 9 additions & 9 deletions doc/unreleased/silicon_valley.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Faker::SiliconValley
# Faker::TvShows::SiliconValley

```ruby

Faker::SiliconValley.character # => "Jian Yang"
Faker::TvShows::SiliconValley.character # => "Jian Yang"

Faker::SiliconValley.company # => "Bachmanity"
Faker::TvShows::SiliconValley.company # => "Bachmanity"

Faker::SiliconValley.quote # => "I don't want to live in a world where someone else is making the world a better place better than we are."
Faker::TvShows::SiliconValley.quote # => "I don't want to live in a world where someone else is making the world a better place better than we are."

Faker::SiliconValley.app # => "Nip Alert"
Faker::TvShows::SiliconValley.app # => "Nip Alert"

Faker::SiliconValley.invention # => "Tres Comas Tequila"
Faker::TvShows::SiliconValley.invention # => "Tres Comas Tequila"

Faker::SiliconValley.motto # => "Our products are products, producing unrivaled results"
Faker::TvShows::SiliconValley.motto # => "Our products are products, producing unrivaled results"

Faker::SiliconValley.url # => "http://www.piedpiper.com"
Faker::TvShows::SiliconValley.url # => "http://www.piedpiper.com"

Faker::SiliconValley.email #=> "richard@piedpiper.test"
Faker::TvShows::SiliconValley.email #=> "richard@piedpiper.test"
```
8 changes: 4 additions & 4 deletions doc/unreleased/simpsons.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Faker::Simpsons
# Faker::TvShows::Simpsons

Available since version 1.8.0.

```ruby
Faker::Simpsons.character #=> "Charles Montgomery Burns"
Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns"

Faker::Simpsons.location #=> "Moe's Tavern"
Faker::TvShows::Simpsons.location #=> "Moe's Tavern"

Faker::Simpsons.quote #=> "It takes two to lie: one to lie and one to listen."
Faker::TvShows::Simpsons.quote #=> "It takes two to lie: one to lie and one to listen."
```
6 changes: 3 additions & 3 deletions doc/unreleased/south_park.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::Movies::SouthPark
# Faker::TvShows::SouthPark

It might be available in the next version.

```ruby
Faker::Movies::SouthPark.character #=> "Mr. Garrison"
Faker::TvShows::SouthPark.character #=> "Mr. Garrison"

Faker::Movies::SouthPark.quote #=> "I'm just getting a little cancer Stan"
Faker::TvShows::SouthPark.quote #=> "I'm just getting a little cancer Stan"
```
10 changes: 5 additions & 5 deletions doc/unreleased/star_trek.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Faker::StarTrek
# Faker::TvShows::StarTrek

Available since version 1.8.0.

```ruby
Faker::StarTrek.character #=> "Spock"
Faker::TvShows::StarTrek.character #=> "Spock"

Faker::StarTrek.location #=> "Cardassia"
Faker::TvShows::StarTrek.location #=> "Cardassia"

Faker::StarTrek.specie #=> "Ferengi"
Faker::TvShows::StarTrek.specie #=> "Ferengi"

Faker::StarTrek.villain #=> "Khan Noonien Singh"
Faker::TvShows::StarTrek.villain #=> "Khan Noonien Singh"

```
9 changes: 9 additions & 0 deletions doc/unreleased/stargate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::TvShows::Stargate

```ruby
Faker::TvShows::StarTrek.character #=> "Jack O'Neill"

Faker::TvShows::StarTrek.planet #=> "Abydos"

Faker::TvShows::StarTrek.quote #=> "General, request permission to beat the crap out of this man."
```
6 changes: 3 additions & 3 deletions doc/unreleased/stranger_things.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::StrangerThings
# Faker::TvShows::StrangerThings

Available since version 1.9.0.

```ruby
Faker::StrangerThings.character #=> "six"
Faker::TvShows::StrangerThings.character #=> "six"

Faker::StrangerThings.quote #=> "Friends don't lie"
Faker::TvShows::StrangerThings.quote #=> "Friends don't lie"
```
8 changes: 4 additions & 4 deletions doc/unreleased/the_fresh_prince_of_bel_air.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Faker::TheFreshPrinceOfBelAir
# Faker::TvShows::TheFreshPrinceOfBelAir

```ruby
Faker::TheFreshPrinceOfBelAir.character #=> "Will Smith"
Faker::TvShows::TheFreshPrinceOfBelAir.character #=> "Will Smith"

Faker::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"

Faker::TheFreshPrinceOfBelAir.quote #=> "Girl, you look so good, I would marry your brother just to get in your family."
Faker::TvShows::TheFreshPrinceOfBelAir.quote #=> "Girl, you look so good, I would marry your brother just to get in your family."
```
10 changes: 5 additions & 5 deletions doc/unreleased/the_it_crowd.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Faker::TheITCrowd
# Faker::TvShows::TheITCrowd

```ruby
Faker::TheITCrowd.actor #=> "Chris O'Dowd"
Faker::TvShows::TheITCrowd.actor #=> "Chris O'Dowd"

Faker::TheITCrowd.character #=> "Roy Trenneman"
Faker::TvShows::TheITCrowd.character #=> "Roy Trenneman"

Faker::TheITCrowd.email #=> "roy.trenneman@reynholm.test"
Faker::TvShows::TheITCrowd.email #=> "roy.trenneman@reynholm.test"

Faker::TheITCrowd.quote #=> "Hello, IT. Have you tried turning it off and on again?"
Faker::TvShows::TheITCrowd.quote #=> "Hello, IT. Have you tried turning it off and on again?"
```
Loading