faker 2.4.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +159 -0
- data/README.md +3 -0
- data/lib/faker/default/address.rb +202 -0
- data/lib/faker/default/ancient.rb +36 -0
- data/lib/faker/default/app.rb +2 -1
- data/lib/faker/default/avatar.rb +2 -1
- data/lib/faker/default/bank.rb +13 -7
- data/lib/faker/default/bossa_nova.rb +18 -0
- data/lib/faker/default/business.rb +27 -0
- data/lib/faker/default/chuck_norris.rb +12 -2
- data/lib/faker/default/coffee.rb +45 -0
- data/lib/faker/default/coin.rb +18 -0
- data/lib/faker/default/color.rb +48 -1
- data/lib/faker/default/crypto.rb +27 -0
- data/lib/faker/default/currency.rb +27 -0
- data/lib/faker/default/date.rb +83 -2
- data/lib/faker/default/demographic.rb +57 -0
- data/lib/faker/default/driving_licence.rb +2 -2
- data/lib/faker/default/educator.rb +60 -6
- data/lib/faker/default/esport.rb +45 -0
- data/lib/faker/default/fillmurray.rb +23 -1
- data/lib/faker/default/food.rb +65 -1
- data/lib/faker/default/id_number.rb +29 -0
- data/lib/faker/default/internet.rb +21 -8
- data/lib/faker/default/kpop.rb +54 -0
- data/lib/faker/default/nation.rb +48 -5
- data/lib/faker/default/number.rb +124 -0
- data/lib/faker/default/relationship.rb +45 -0
- data/lib/faker/default/restaurant.rb +54 -2
- data/lib/faker/default/space.rb +127 -0
- data/lib/faker/default/team.rb +45 -0
- data/lib/faker/default/time.rb +85 -8
- data/lib/faker/default/world_cup.rb +50 -0
- data/lib/faker/games/zelda.rb +1 -1
- data/lib/faker/japanese_media/one_piece.rb +54 -0
- data/lib/faker/movies/back_to_the_future.rb +28 -0
- data/lib/faker/movies/ghostbusters.rb +28 -0
- data/lib/faker/movies/harry_potter.rb +54 -0
- data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +69 -0
- data/lib/faker/movies/lebowski.rb +27 -0
- data/lib/faker/movies/lord_of_the_rings.rb +28 -0
- data/lib/faker/movies/princess_bride.rb +19 -0
- data/lib/faker/movies/star_wars.rb +94 -0
- data/lib/faker/movies/v_for_vendetta.rb +29 -0
- data/lib/faker/music/umphreys_mcgee.rb +9 -0
- data/lib/faker/sports/basketball.rb +36 -0
- data/lib/faker/sports/football.rb +45 -0
- data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +9 -0
- data/lib/faker/tv_shows/bojack_horseman.rb +28 -0
- data/lib/faker/tv_shows/buffy.rb +45 -0
- data/lib/faker/tv_shows/community.rb +19 -0
- data/lib/faker/tv_shows/dr_who.rb +78 -2
- data/lib/faker/tv_shows/dumb_and_dumber.rb +28 -0
- data/lib/faker/tv_shows/family_guy.rb +28 -0
- data/lib/faker/tv_shows/friends.rb +27 -0
- data/lib/faker/tv_shows/game_of_thrones.rb +46 -0
- data/lib/faker/tv_shows/hey_arnold.rb +27 -0
- data/lib/faker/tv_shows/how_i_met_your_mother.rb +37 -0
- data/lib/faker/tv_shows/michael_scott.rb +13 -0
- data/lib/faker/tv_shows/new_girl.rb +19 -0
- data/lib/faker/tv_shows/parks_and_rec.rb +18 -0
- data/lib/faker/tv_shows/rick_and_morty.rb +28 -0
- data/lib/faker/tv_shows/ru_paul.rb +18 -0
- data/lib/faker/tv_shows/seinfeld.rb +28 -0
- data/lib/faker/tv_shows/silicon_valley.rb +75 -0
- data/lib/faker/tv_shows/simpsons.rb +28 -0
- data/lib/faker/tv_shows/south_park.rb +19 -0
- data/lib/faker/tv_shows/star_trek.rb +36 -0
- data/lib/faker/tv_shows/stargate.rb +28 -0
- data/lib/faker/tv_shows/stranger_things.rb +19 -0
- data/lib/faker/tv_shows/the_expanse.rb +36 -0
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +28 -0
- data/lib/faker/tv_shows/the_it_crowd.rb +37 -0
- data/lib/faker/tv_shows/the_thick_of_it.rb +28 -0
- data/lib/faker/tv_shows/twin_peaks.rb +28 -0
- data/lib/faker/tv_shows/venture_bros.rb +38 -0
- data/lib/faker/version.rb +1 -1
- data/lib/locales/en-CA.yml +1 -0
- data/lib/locales/en-TH.yml +360 -0
- data/lib/locales/en/color.yml +1 -1
- data/lib/locales/en/dr_who.yml +1 -1
- data/lib/locales/en/educator.yml +69 -6
- data/lib/locales/en/overwatch.yml +2617 -32
- data/lib/locales/en/super_smash_bros.yml +1 -0
- data/lib/locales/fr-CA.yml +1 -1
- data/lib/locales/ja.yml +6 -2
- data/lib/locales/pt-BR.yml +23 -2
- data/lib/locales/th.yml +380 -0
- metadata +22 -14
|
@@ -6,18 +6,55 @@ module Faker
|
|
|
6
6
|
flexible :how_i_met_your_mother
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from How I Met Your Mother.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::HowIMetYourMother.character #=> "Barney Stinson"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('how_i_met_your_mother.character')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a catch phrase from How I Met Your Mother.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::HowIMetYourMother.catch_phrase #=> "Legendary"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.0
|
|
13
31
|
def catch_phrase
|
|
14
32
|
fetch('how_i_met_your_mother.catch_phrase')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a high five from How I Met Your Mother.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::HowIMetYourMother.high_five #=> "Relapse Five"
|
|
42
|
+
#
|
|
43
|
+
# @faker.version 1.8.0
|
|
17
44
|
def high_five
|
|
18
45
|
fetch('how_i_met_your_mother.high_five')
|
|
19
46
|
end
|
|
20
47
|
|
|
48
|
+
##
|
|
49
|
+
# Produces a quote from How I Met Your Mother.
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
#
|
|
53
|
+
# @example
|
|
54
|
+
# Faker::TvShows::HowIMetYourMother.quote
|
|
55
|
+
# #=> "Whenever I'm sad, I stop being sad and be awesome instead."
|
|
56
|
+
#
|
|
57
|
+
# @faker.version 1.8.0
|
|
21
58
|
def quote
|
|
22
59
|
fetch('how_i_met_your_mother.quote')
|
|
23
60
|
end
|
|
@@ -4,9 +4,22 @@ module Faker
|
|
|
4
4
|
class TvShows
|
|
5
5
|
class MichaelScott < Base
|
|
6
6
|
class << self
|
|
7
|
+
# rubocop:disable Style/AsciiComments
|
|
8
|
+
|
|
9
|
+
##
|
|
10
|
+
# Produces a quote from Michael Scott.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::MichaelScott.quote
|
|
16
|
+
# #=> "I am Beyoncé, always."
|
|
17
|
+
#
|
|
18
|
+
# @faker.version 1.9.0
|
|
7
19
|
def quote
|
|
8
20
|
fetch('michael_scott.quotes')
|
|
9
21
|
end
|
|
22
|
+
# rubocop:enable Style/AsciiComments
|
|
10
23
|
end
|
|
11
24
|
end
|
|
12
25
|
end
|
|
@@ -6,10 +6,29 @@ module Faker
|
|
|
6
6
|
flexible :new_girl
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from New Girl.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::NewGirl.character #=> "Jessica Day"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.9.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('new_girl.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a quote from New Girl.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::NewGirl.quote
|
|
29
|
+
# #=> "Are you cooking a frittata in a sauce pan? What is this - prison?"
|
|
30
|
+
#
|
|
31
|
+
# @faker.version 1.9.0
|
|
13
32
|
def quote
|
|
14
33
|
fetch('new_girl.quotes')
|
|
15
34
|
end
|
|
@@ -6,10 +6,28 @@ module Faker
|
|
|
6
6
|
flexible :parks_and_rec
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from Parks and Recreation.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::ParksAndRec.character #=> "Leslie Knope"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.9.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('parks_and_rec.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a city from Parks and Recreation.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::ParksAndRec.city #=> "Pawnee"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.9.0
|
|
13
31
|
def city
|
|
14
32
|
fetch('parks_and_rec.cities')
|
|
15
33
|
end
|
|
@@ -6,14 +6,42 @@ module Faker
|
|
|
6
6
|
flexible :rick_and_morty
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from Rick and Morty.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::RickAndMorty.character #=> "Rick Sanchez"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('rick_and_morty.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a location from Rick and Morty.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::RickAndMorty.location #=> "Dimension C-132"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.0
|
|
13
31
|
def location
|
|
14
32
|
fetch('rick_and_morty.locations')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a quote from Rick and Morty.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::RickAndMorty.quote
|
|
42
|
+
# #=> "Ohh yea, you gotta get schwifty."
|
|
43
|
+
#
|
|
44
|
+
# @faker.version 1.8.0
|
|
17
45
|
def quote
|
|
18
46
|
fetch('rick_and_morty.quotes')
|
|
19
47
|
end
|
|
@@ -6,10 +6,28 @@ module Faker
|
|
|
6
6
|
flexible :rupaul
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a quote from RuPaul's Drag Race.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::RuPaul.quote #=> "That's Funny, Tell Another One."
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.0
|
|
9
18
|
def quote
|
|
10
19
|
fetch('rupaul.quotes')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a queen from RuPaul's Drag Race.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::RuPaul.queen #=> "Latrice Royale"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.0
|
|
13
31
|
def queen
|
|
14
32
|
fetch('rupaul.queens')
|
|
15
33
|
end
|
|
@@ -6,14 +6,42 @@ module Faker
|
|
|
6
6
|
flexible :seinfeld
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a business from Seinfeld.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::Seinfeld.business #=> "Kruger Industrial Smoothing"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.9.2
|
|
9
18
|
def business
|
|
10
19
|
fetch('seinfeld.business')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a character from Seinfeld.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::Seinfeld.character #=> "George Costanza"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.3
|
|
13
31
|
def character
|
|
14
32
|
fetch('seinfeld.character')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a quote from Seinfeld.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::Seinfeld.quote
|
|
42
|
+
# #=> "I'm not a lesbian. I hate men, but I'm not a lesbian."
|
|
43
|
+
#
|
|
44
|
+
# @faker.version 1.8.3
|
|
17
45
|
def quote
|
|
18
46
|
fetch('seinfeld.quote')
|
|
19
47
|
end
|
|
@@ -6,34 +6,109 @@ module Faker
|
|
|
6
6
|
flexible :silicon_valley
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from Silicon Valley.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::SiliconValley.character #=> "Jian Yang"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.5
|
|
9
18
|
def character
|
|
10
19
|
fetch('silicon_valley.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a company from Silicon Valley.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::SiliconValley.company #=> "Bachmanity"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.5
|
|
13
31
|
def company
|
|
14
32
|
fetch('silicon_valley.companies')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a quote from Silicon Valley.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::SiliconValley.quote
|
|
42
|
+
# #=> "I don't want to live in a world where someone else is making the world a better place better than we are."
|
|
43
|
+
#
|
|
44
|
+
# @faker.version 1.8.5
|
|
17
45
|
def quote
|
|
18
46
|
fetch('silicon_valley.quotes')
|
|
19
47
|
end
|
|
20
48
|
|
|
49
|
+
##
|
|
50
|
+
# Produces an app from Silicon Valley.
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
# @example
|
|
55
|
+
# Faker::TvShows::SiliconValley.app #=> "Nip Alert"
|
|
56
|
+
#
|
|
57
|
+
# @faker.version 1.8.5
|
|
21
58
|
def app
|
|
22
59
|
fetch('silicon_valley.apps')
|
|
23
60
|
end
|
|
24
61
|
|
|
62
|
+
##
|
|
63
|
+
# Produces an invention from Silicon Valley.
|
|
64
|
+
#
|
|
65
|
+
# @return [String]
|
|
66
|
+
#
|
|
67
|
+
# @example
|
|
68
|
+
# Faker::TvShows::SiliconValley.invention
|
|
69
|
+
# #=> "Tres Comas Tequila"
|
|
70
|
+
#
|
|
71
|
+
# @faker.version 1.8.5
|
|
25
72
|
def invention
|
|
26
73
|
fetch('silicon_valley.inventions')
|
|
27
74
|
end
|
|
28
75
|
|
|
76
|
+
##
|
|
77
|
+
# Produces a motto from Silicon Valley.
|
|
78
|
+
#
|
|
79
|
+
# @return [String]
|
|
80
|
+
#
|
|
81
|
+
# @example
|
|
82
|
+
# Faker::TvShows::SiliconValley.motto
|
|
83
|
+
# #=> "Our products are products, producing unrivaled results"
|
|
84
|
+
#
|
|
85
|
+
# @faker.version 1.8.5
|
|
29
86
|
def motto
|
|
30
87
|
fetch('silicon_valley.mottos')
|
|
31
88
|
end
|
|
32
89
|
|
|
90
|
+
##
|
|
91
|
+
# Produces a URL from Silicon Valley.
|
|
92
|
+
#
|
|
93
|
+
# @return [String]
|
|
94
|
+
#
|
|
95
|
+
# @example
|
|
96
|
+
# Faker::TvShows::SiliconValley.url #=> "http://www.piedpiper.com"
|
|
97
|
+
#
|
|
98
|
+
# @faker.version 1.8.5
|
|
33
99
|
def url
|
|
34
100
|
fetch('silicon_valley.urls')
|
|
35
101
|
end
|
|
36
102
|
|
|
103
|
+
##
|
|
104
|
+
# Produces an email address from Silicon Valley.
|
|
105
|
+
#
|
|
106
|
+
# @return [String]
|
|
107
|
+
#
|
|
108
|
+
# @example
|
|
109
|
+
# Faker::TvShows::SiliconValley.email #=> "richard@piedpiper.test"
|
|
110
|
+
#
|
|
111
|
+
# @faker.version 1.9.0
|
|
37
112
|
def email
|
|
38
113
|
fetch('silicon_valley.email')
|
|
39
114
|
end
|
|
@@ -6,14 +6,42 @@ module Faker
|
|
|
6
6
|
flexible :simpsons
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from The Simpsons.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('simpsons.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a location from The Simpsons.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::Simpsons.location #=> "Moe's Tavern"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.0
|
|
13
31
|
def location
|
|
14
32
|
fetch('simpsons.locations')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a quote from The Simpsons.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::Simpsons.quote
|
|
42
|
+
# #=> "It takes two to lie: one to lie and one to listen."
|
|
43
|
+
#
|
|
44
|
+
# @faker.version 1.8.0
|
|
17
45
|
def quote
|
|
18
46
|
fetch('simpsons.quotes')
|
|
19
47
|
end
|
|
@@ -6,10 +6,29 @@ module Faker
|
|
|
6
6
|
flexible :south_park
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from South Park.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::SouthPark.character #=> "Mr. Garrison"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.9.2
|
|
9
18
|
def character
|
|
10
19
|
fetch('south_park.characters')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a quote from South Park.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::SouthPark.quote
|
|
29
|
+
# #=> "I'm just getting a little cancer Stan."
|
|
30
|
+
#
|
|
31
|
+
# @faker.version 1.9.2
|
|
13
32
|
def quote
|
|
14
33
|
fetch('south_park.quotes')
|
|
15
34
|
end
|
|
@@ -6,18 +6,54 @@ module Faker
|
|
|
6
6
|
flexible :star_trek
|
|
7
7
|
|
|
8
8
|
class << self
|
|
9
|
+
##
|
|
10
|
+
# Produces a character from Star Trek.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
#
|
|
14
|
+
# @example
|
|
15
|
+
# Faker::TvShows::StarTrek.character #=> "Spock"
|
|
16
|
+
#
|
|
17
|
+
# @faker.version 1.8.0
|
|
9
18
|
def character
|
|
10
19
|
fetch('star_trek.character')
|
|
11
20
|
end
|
|
12
21
|
|
|
22
|
+
##
|
|
23
|
+
# Produces a location from Star Trek.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# Faker::TvShows::StarTrek.location #=> "Cardassia"
|
|
29
|
+
#
|
|
30
|
+
# @faker.version 1.8.0
|
|
13
31
|
def location
|
|
14
32
|
fetch('star_trek.location')
|
|
15
33
|
end
|
|
16
34
|
|
|
35
|
+
##
|
|
36
|
+
# Produces a species from Star Trek.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
#
|
|
40
|
+
# @example
|
|
41
|
+
# Faker::TvShows::StarTrek.specie #=> "Ferengi"
|
|
42
|
+
#
|
|
43
|
+
# @faker.version 1.8.0
|
|
17
44
|
def specie
|
|
18
45
|
fetch('star_trek.specie')
|
|
19
46
|
end
|
|
20
47
|
|
|
48
|
+
##
|
|
49
|
+
# Produces a villain from Star Trek.
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
#
|
|
53
|
+
# @example
|
|
54
|
+
# Faker::TvShows::StarTrek.villain #=> "Khan Noonien Singh"
|
|
55
|
+
#
|
|
56
|
+
# @faker.version 1.8.0
|
|
21
57
|
def villain
|
|
22
58
|
fetch('star_trek.villain')
|
|
23
59
|
end
|