-
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.
Add Music, Movies and TvShows namespaces (#1480)
* Deprecate ::HarryPotter * Deprecate ::HitchhikersGuideToTheGalaxy * Deprecate ::MichaelScott * Deprecate ::RockBand * Deprecate ::RuPaul * Update unreleased_REAMDE.md * Minor changes * Minor change
- Loading branch information
Showing
30 changed files
with
422 additions
and
107 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,17 @@ | ||
# Faker::Movies::HarryPotter | ||
|
||
Available since version 1.7.3. | ||
|
||
```ruby | ||
Faker::Movies::HarryPotter.character #=> "Harry Potter" | ||
|
||
Faker::Movies::HarryPotter.location #=> "Hogwarts" | ||
|
||
Faker::Movies::HarryPotter.quote #=> "I solemnly swear that I am up to no good." | ||
|
||
Faker::Movies::HarryPotter.book #=> "Harry Potter and the Chamber of Secrets" | ||
|
||
Faker::Movies::HarryPotter.house #=> "Gryffindor" | ||
|
||
Faker::Movies::HarryPotter.spell #=> "Reparo" | ||
``` |
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 @@ | ||
# Faker::Movies::HitchhikersGuideToTheGalaxy | ||
|
||
Available since version 1.8.0. | ||
|
||
```ruby | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.character #=> "Marvin" | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.location #=> "Arthur Dent's house" | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote #=> "Life? Don't talk to me about life." | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.planet #=> "Magrathea" | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.quote #=> "In the beginning, the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.specie #=> "Perfectly Normal Beast" | ||
|
||
Faker::Movies::HitchhikersGuideToTheGalaxy.starship #=> "Vogon Constructor Fleet" | ||
``` |
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,5 @@ | ||
# Faker::Music::RockBand | ||
|
||
```ruby | ||
Faker::Music::RockBand.name #=> "Led Zeppelin" | ||
``` |
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,7 @@ | ||
# Faker::TvShows::MichaelScott | ||
|
||
Available since version 1.9.0. | ||
|
||
```ruby | ||
Faker::TvShows::MichaelScott.quote #=> "I am Beyoncé, always." | ||
``` |
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,8 @@ | ||
# Faker::TvShows::RuPaul | ||
|
||
Available since version 1.8.0. | ||
|
||
```ruby | ||
Faker::TvShows::RuPaul.quote #=> "That's Funny, Tell Another One" | ||
Faker::TvShows::RuPaul.queen #=> "Latrice Royale" | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class HarryPotter < Base | ||
class << self | ||
extend Gem::Deprecate | ||
|
||
def character | ||
Faker::Movies::HarryPotter.character | ||
end | ||
|
||
def location | ||
Faker::Movies::HarryPotter.location | ||
end | ||
|
||
def quote | ||
Faker::Movies::HarryPotter.quote | ||
end | ||
|
||
def book | ||
Faker::Movies::HarryPotter.book | ||
end | ||
|
||
def house | ||
Faker::Movies::HarryPotter.house | ||
end | ||
|
||
def spell | ||
Faker::Movies::HarryPotter.spell | ||
end | ||
|
||
deprecate :character, 'Faker::Movies::HarryPotter.character', 2018, 12 | ||
deprecate :location, 'Faker::Movies::HarryPotter.location', 2018, 12 | ||
deprecate :quote, 'Faker::Movies::HarryPotter.quote', 2018, 12 | ||
deprecate :book, 'Faker::Movies::HarryPotter.book', 2018, 12 | ||
deprecate :house, 'Faker::Movies::HarryPotter.house', 2018, 12 | ||
deprecate :spell, 'Faker::Movies::HarryPotter.spell', 2018, 12 | ||
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,44 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class HitchhikersGuideToTheGalaxy < Base | ||
class << self | ||
extend Gem::Deprecate | ||
|
||
def character | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.character | ||
end | ||
|
||
def location | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.location | ||
end | ||
|
||
def marvin_quote | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote | ||
end | ||
|
||
def planet | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.planet | ||
end | ||
|
||
def quote | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.quote | ||
end | ||
|
||
def specie | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.specie | ||
end | ||
|
||
def starship | ||
Faker::Movies::HitchhikersGuideToTheGalaxy.starship | ||
end | ||
|
||
deprecate :character, 'Faker::Movies::HitchhikersGuideToTheGalaxy.character', 2018, 12 | ||
deprecate :location, 'Faker::Movies::HitchhikersGuideToTheGalaxy.location', 2018, 12 | ||
deprecate :marvin_quote, 'Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote', 2018, 12 | ||
deprecate :planet, 'Faker::Movies::HitchhikersGuideToTheGalaxy.planet', 2018, 12 | ||
deprecate :specie, 'Faker::Movies::HitchhikersGuideToTheGalaxy.specie', 2018, 12 | ||
deprecate :starship, 'Faker::Movies::HitchhikersGuideToTheGalaxy.starship', 2018, 12 | ||
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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class MichaelScott < Base | ||
class << self | ||
extend Gem::Deprecate | ||
|
||
def quote | ||
Faker::TvShows::MichaelScott.quote | ||
end | ||
|
||
deprecate :quote, 'Faker::TvShows::MichaelScott.quote', 2018, 12 | ||
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
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,22 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class RuPaul < Base | ||
flexible :rupaul | ||
|
||
class << self | ||
extend Gem::Deprecate | ||
|
||
def quote | ||
Faker::TvShows::RuPaul.quote | ||
end | ||
|
||
def queen | ||
Faker::TvShows::RuPaul.queen | ||
end | ||
|
||
deprecate :quote, 'Faker::TvShows::RuPaul.quote', 2018, 12 | ||
deprecate :queen, 'Faker::TvShows::RuPaul.queen', 2018, 12 | ||
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,33 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
module Movies | ||
class HarryPotter < Base | ||
class << self | ||
def character | ||
fetch('harry_potter.characters') | ||
end | ||
|
||
def location | ||
fetch('harry_potter.locations') | ||
end | ||
|
||
def quote | ||
fetch('harry_potter.quotes') | ||
end | ||
|
||
def book | ||
fetch('harry_potter.books') | ||
end | ||
|
||
def house | ||
fetch('harry_potter.houses') | ||
end | ||
|
||
def spell | ||
fetch('harry_potter.spells') | ||
end | ||
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,37 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
module Movies | ||
class HitchhikersGuideToTheGalaxy < Base | ||
class << self | ||
def character | ||
fetch('hitchhikers_guide_to_the_galaxy.characters') | ||
end | ||
|
||
def location | ||
fetch('hitchhikers_guide_to_the_galaxy.locations') | ||
end | ||
|
||
def marvin_quote | ||
fetch('hitchhikers_guide_to_the_galaxy.marvin_quote') | ||
end | ||
|
||
def planet | ||
fetch('hitchhikers_guide_to_the_galaxy.planets') | ||
end | ||
|
||
def quote | ||
fetch('hitchhikers_guide_to_the_galaxy.quotes') | ||
end | ||
|
||
def specie | ||
fetch('hitchhikers_guide_to_the_galaxy.species') | ||
end | ||
|
||
def starship | ||
fetch('hitchhikers_guide_to_the_galaxy.starships') | ||
end | ||
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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class Music | ||
class RockBand < Base | ||
class << self | ||
def name | ||
fetch('rock_band.name') | ||
end | ||
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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
module TvShows | ||
class MichaelScott < Base | ||
class << self | ||
def quote | ||
fetch('michael_scott.quotes') | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.