faker 2.2.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +131 -15
- data/README.md +2 -2
- data/lib/faker.rb +34 -0
- data/lib/faker/blockchain/aeternity.rb +70 -0
- data/lib/faker/blockchain/bitcoin.rb +26 -0
- data/lib/faker/blockchain/ethereum.rb +10 -0
- data/lib/faker/blockchain/tezos.rb +62 -6
- data/lib/faker/books/book.rb +36 -0
- data/lib/faker/books/culture_series.rb +49 -0
- data/lib/faker/books/dune.rb +60 -9
- data/lib/faker/books/lovecraft.rb +189 -33
- data/lib/faker/creature/animal.rb +9 -0
- data/lib/faker/creature/cat.rb +27 -0
- data/lib/faker/creature/dog.rb +72 -0
- data/lib/faker/creature/horse.rb +18 -0
- data/lib/faker/default/address.rb +10 -15
- data/lib/faker/default/alphanumeric.rb +29 -18
- data/lib/faker/default/app.rb +50 -11
- data/lib/faker/default/appliance.rb +18 -0
- data/lib/faker/default/artist.rb +9 -0
- data/lib/faker/default/avatar.rb +38 -19
- data/lib/faker/default/bank.rb +4 -6
- data/lib/faker/default/boolean.rb +14 -4
- data/lib/faker/default/chile_rut.rb +6 -14
- data/lib/faker/default/chuck_norris.rb +1 -1
- data/lib/faker/default/code.rb +7 -13
- data/lib/faker/default/commerce.rb +8 -17
- data/lib/faker/default/company.rb +4 -6
- data/lib/faker/default/crypto_coin.rb +6 -9
- data/lib/faker/default/date.rb +76 -30
- data/lib/faker/default/demographic.rb +2 -3
- data/lib/faker/default/dessert.rb +27 -0
- data/lib/faker/default/device.rb +54 -0
- data/lib/faker/default/driving_licence.rb +5 -15
- data/lib/faker/default/electrical_components.rb +27 -0
- data/lib/faker/default/file.rb +9 -26
- data/lib/faker/default/fillmurray.rb +4 -11
- data/lib/faker/default/finance.rb +2 -3
- data/lib/faker/default/gender.rb +18 -0
- data/lib/faker/default/greek_philosophers.rb +18 -0
- data/lib/faker/default/hacker.rb +59 -1
- data/lib/faker/default/hipster.rb +21 -54
- data/lib/faker/default/house.rb +18 -0
- data/lib/faker/default/id_number.rb +5 -7
- data/lib/faker/default/industry_segments.rb +36 -0
- data/lib/faker/default/internet.rb +49 -76
- data/lib/faker/default/invoice.rb +7 -13
- data/lib/faker/default/json.rb +9 -16
- data/lib/faker/default/lorem.rb +38 -77
- data/lib/faker/default/lorem_flickr.rb +17 -48
- data/lib/faker/default/lorem_pixel.rb +7 -23
- data/lib/faker/default/markdown.rb +3 -7
- data/lib/faker/default/marketing.rb +9 -0
- data/lib/faker/default/measurement.rb +16 -24
- data/lib/faker/default/military.rb +45 -0
- data/lib/faker/default/name.rb +2 -3
- data/lib/faker/default/nation.rb +48 -5
- data/lib/faker/default/nato_phonetic_alphabet.rb +9 -0
- data/lib/faker/default/nhs.rb +2 -3
- data/lib/faker/default/number.rb +150 -51
- data/lib/faker/default/omniauth.rb +67 -63
- data/lib/faker/default/phone_number.rb +2 -3
- data/lib/faker/default/placeholdit.rb +6 -19
- data/lib/faker/default/programming_language.rb +18 -0
- data/lib/faker/default/relationship.rb +2 -3
- data/lib/faker/default/restaurant.rb +54 -2
- data/lib/faker/default/science.rb +27 -0
- data/lib/faker/default/source.rb +51 -14
- data/lib/faker/default/string.rb +2 -3
- data/lib/faker/default/stripe.rb +8 -12
- data/lib/faker/default/subscription.rb +45 -0
- data/lib/faker/default/superhero.rb +45 -0
- data/lib/faker/default/time.rb +102 -56
- data/lib/faker/default/twitter.rb +23 -32
- data/lib/faker/default/types.rb +12 -23
- data/lib/faker/default/vehicle.rb +8 -14
- data/lib/faker/default/world_cup.rb +5 -10
- data/lib/faker/games/dota.rb +49 -3
- data/lib/faker/games/elder_scrolls.rb +72 -0
- data/lib/faker/games/fallout.rb +37 -0
- data/lib/faker/games/game.rb +27 -0
- data/lib/faker/games/half_life.rb +27 -0
- data/lib/faker/games/heroes.rb +27 -0
- data/lib/faker/games/heroes_of_the_storm.rb +36 -0
- data/lib/faker/games/league_of_legends.rb +54 -0
- data/lib/faker/games/myst.rb +45 -0
- data/lib/faker/games/overwatch.rb +27 -0
- data/lib/faker/games/pokemon.rb +27 -0
- data/lib/faker/games/sonic_the_hedgehog.rb +27 -0
- data/lib/faker/games/super_smash_bros.rb +18 -0
- data/lib/faker/games/witcher.rb +54 -0
- data/lib/faker/games/world_of_warcraft.rb +18 -0
- data/lib/faker/games/zelda.rb +37 -1
- data/lib/faker/japanese_media/dragon_ball.rb +9 -0
- data/lib/faker/japanese_media/one_piece.rb +54 -0
- data/lib/faker/japanese_media/sword_art_online.rb +36 -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/hobbit.rb +37 -0
- data/lib/faker/movies/lebowski.rb +27 -0
- data/lib/faker/movies/lord_of_the_rings.rb +28 -0
- data/lib/faker/movies/movie.rb +9 -0
- data/lib/faker/movies/princess_bride.rb +19 -0
- data/lib/faker/movies/star_wars.rb +97 -6
- data/lib/faker/movies/v_for_vendetta.rb +29 -0
- data/lib/faker/music/grateful_dead.rb +18 -0
- data/lib/faker/music/phish.rb +9 -0
- data/lib/faker/music/rock_band.rb +9 -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/breaking_bad.rb +18 -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 -1
- 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/science.yml +1 -1
- data/lib/locales/ja.yml +8 -9
- data/lib/locales/th.yml +380 -0
- metadata +33 -14
@@ -4,6 +4,15 @@ module Faker
|
|
4
4
|
class Music
|
5
5
|
class UmphreysMcgee < Base
|
6
6
|
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a song by Umphrey's McGee.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Music::UmphreysMcgee.song #=> "Dump City"
|
14
|
+
#
|
15
|
+
# @faker.version 1.8.3
|
7
16
|
def song
|
8
17
|
fetch('umphreys_mcgee.song')
|
9
18
|
end
|
@@ -4,18 +4,54 @@ module Faker
|
|
4
4
|
class Sports
|
5
5
|
class Basketball < Base
|
6
6
|
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a basketball team.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Sports::Basketball.team #=> "Golden State Warriors"
|
14
|
+
#
|
15
|
+
# @faker.version 1.9.4
|
7
16
|
def team
|
8
17
|
fetch('basketball.teams')
|
9
18
|
end
|
10
19
|
|
20
|
+
##
|
21
|
+
# Produces the name of a basketball player.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Sports::Basketball.player #=> "LeBron James"
|
27
|
+
#
|
28
|
+
# @faker.version 1.9.4
|
11
29
|
def player
|
12
30
|
fetch('basketball.players')
|
13
31
|
end
|
14
32
|
|
33
|
+
##
|
34
|
+
# Produces the name of a basketball coach.
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# Faker::Sports::Basketball.coach #=> "Gregg Popovich"
|
40
|
+
#
|
41
|
+
# @faker.version 1.9.4
|
15
42
|
def coach
|
16
43
|
fetch('basketball.coaches')
|
17
44
|
end
|
18
45
|
|
46
|
+
##
|
47
|
+
# Produces a position in basketball.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# Faker::Sports::Basketball.position #=> "Point Guard"
|
53
|
+
#
|
54
|
+
# @faker.version 1.9.4
|
19
55
|
def position
|
20
56
|
fetch('basketball.positions')
|
21
57
|
end
|
@@ -4,22 +4,67 @@ module Faker
|
|
4
4
|
class Sports
|
5
5
|
class Football < Base
|
6
6
|
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a football team.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Sports::Football.team #=> "Manchester United"
|
14
|
+
#
|
15
|
+
# @faker.version 1.9.0
|
7
16
|
def team
|
8
17
|
fetch('football.teams')
|
9
18
|
end
|
10
19
|
|
20
|
+
##
|
21
|
+
# Produces the name of a football player.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Sports::Football.player #=> "Lionel Messi"
|
27
|
+
#
|
28
|
+
# @faker.version 1.9.0
|
11
29
|
def player
|
12
30
|
fetch('football.players')
|
13
31
|
end
|
14
32
|
|
33
|
+
##
|
34
|
+
# Produces the name of a football coach.
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# Faker::Sports::Football.coach #=> "Jose Mourinho"
|
40
|
+
#
|
41
|
+
# @faker.version 1.9.0
|
15
42
|
def coach
|
16
43
|
fetch('football.coaches')
|
17
44
|
end
|
18
45
|
|
46
|
+
##
|
47
|
+
# Produces a football competition.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# Faker::Sports::Football.competition #=> "FIFA World Cup"
|
53
|
+
#
|
54
|
+
# @faker.version 1.9.0
|
19
55
|
def competition
|
20
56
|
fetch('football.competitions')
|
21
57
|
end
|
22
58
|
|
59
|
+
##
|
60
|
+
# Produces a position in football.
|
61
|
+
#
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
# @example
|
65
|
+
# Faker::Sports::Football.position #=> "Defensive Midfielder"
|
66
|
+
#
|
67
|
+
# @faker.version 1.9.2
|
23
68
|
def position
|
24
69
|
fetch('football.positions')
|
25
70
|
end
|
@@ -6,6 +6,15 @@ module Faker
|
|
6
6
|
flexible :aqua_teen_hunger_force
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Aqua Teen Hunger Force.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::AquaTeenHungerForce.character #=> "Master Shake"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.5
|
9
18
|
def character
|
10
19
|
fetch('aqua_teen_hunger_force.character')
|
11
20
|
end
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :bojack_horseman
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from BoJack Horseman.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::BojackHorseman.character #=> "BoJack Horseman"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.0
|
9
18
|
def character
|
10
19
|
fetch('bojack_horseman.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a tongue twister from BoJack Horseman.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::BojackHorseman.tongue_twister #=> "Did you steal a meal from Neal McBeal the Navy Seal?"
|
29
|
+
#
|
30
|
+
# @faker.version 1.9.0
|
13
31
|
def tongue_twister
|
14
32
|
fetch('bojack_horseman.tongue_twisters')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a quote from BoJack Horseman.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::BojackHorseman.quote
|
42
|
+
# #=> "Not understanding that you're a horrible person doesn't make you less of a horrible person."
|
43
|
+
#
|
44
|
+
# @faker.version 1.9.0
|
17
45
|
def quote
|
18
46
|
fetch('bojack_horseman.quotes')
|
19
47
|
end
|
@@ -6,10 +6,28 @@ module Faker
|
|
6
6
|
flexible :breaking_bad
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces the name of a character from Breaking Bad.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::BreakingBad.character #=> "Walter White"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.8
|
9
18
|
def character
|
10
19
|
fetch('breaking_bad.character')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces the name of an episode from Breaking Bad.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::BreakingBad.episode #=> "Fly"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.8
|
13
31
|
def episode
|
14
32
|
fetch('breaking_bad.episode')
|
15
33
|
end
|
data/lib/faker/tv_shows/buffy.rb
CHANGED
@@ -6,22 +6,67 @@ module Faker
|
|
6
6
|
flexible :buffy
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Buffy the Vampire Slayer.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::Buffy.character #=> "Buffy Summers"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.2
|
9
18
|
def character
|
10
19
|
fetch('buffy.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a quote from Buffy the Vampire Slayer.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::Buffy.quote #=> "If the apocalypse comes, beep me."
|
29
|
+
#
|
30
|
+
# @faker.version 1.9.2
|
13
31
|
def quote
|
14
32
|
fetch('buffy.quotes')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a celebrity from Buffy the Vampire Slayer.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::Buffy.celebrity #=> "John Ritter"
|
42
|
+
#
|
43
|
+
# @faker.version 1.9.2
|
17
44
|
def celebrity
|
18
45
|
fetch('buffy.celebrities')
|
19
46
|
end
|
20
47
|
|
48
|
+
##
|
49
|
+
# Produces a big bad from Buffy the Vampire Slayer.
|
50
|
+
#
|
51
|
+
# @return [String]
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# Faker::TvShows::Buffy.big_bad #=> "Glory"
|
55
|
+
#
|
56
|
+
# @faker.version 1.9.2
|
21
57
|
def big_bad
|
22
58
|
fetch('buffy.big_bads')
|
23
59
|
end
|
24
60
|
|
61
|
+
##
|
62
|
+
# Produces an episode from Buffy the Vampire Slayer.
|
63
|
+
#
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @example
|
67
|
+
# Faker::TvShows::Buffy.episode #=> "Once More, with Feeling"
|
68
|
+
#
|
69
|
+
# @faker.version 1.9.2
|
25
70
|
def episode
|
26
71
|
fetch('buffy.episodes')
|
27
72
|
end
|
@@ -6,10 +6,29 @@ module Faker
|
|
6
6
|
flexible :community
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Community.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::Community.characters #=> "Jeff Winger"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.0
|
9
18
|
def characters
|
10
19
|
fetch('community.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a quote from Community.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::Community.quotes
|
29
|
+
# #=> "I fear a political career could shine a negative light on my drug dealing."
|
30
|
+
#
|
31
|
+
# @faker.version 1.9.0
|
13
32
|
def quotes
|
14
33
|
fetch('community.quotes')
|
15
34
|
end
|
@@ -6,30 +6,106 @@ module Faker
|
|
6
6
|
flexible :dr_who
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Doctor Who.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::DrWho.character #=> "Captain Jack Harkness"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.0
|
9
18
|
def character
|
10
19
|
fetch('dr_who.character')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces an iteration of The Doctor from Doctor Who.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::DrWho.the_doctor #=> "Ninth Doctor"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.0
|
13
31
|
def the_doctor
|
14
32
|
fetch('dr_who.the_doctors')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces an actor from Doctor Who.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::DrWho.actor #=> "Matt Smith"
|
42
|
+
#
|
43
|
+
# @faker.version 1.9.0
|
17
44
|
def actor
|
18
45
|
fetch('dr_who.actors')
|
19
46
|
end
|
20
47
|
|
48
|
+
##
|
49
|
+
# Produces a catch phrase from Doctor Who.
|
50
|
+
#
|
51
|
+
# @return [String]
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# Faker::TvShows::DrWho.catch_phrase #=> "Fantastic!"
|
55
|
+
#
|
56
|
+
# @faker.version 1.8.0
|
21
57
|
def catch_phrase
|
22
58
|
fetch('dr_who.catch_phrases')
|
23
59
|
end
|
24
60
|
|
61
|
+
##
|
62
|
+
# Produces a quote from Doctor Who.
|
63
|
+
#
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @example
|
67
|
+
# Faker::TvShows::DrWho.quote #=> "Lots of planets have a north!"
|
68
|
+
#
|
69
|
+
# @faker.version 1.8.0
|
25
70
|
def quote
|
26
71
|
fetch('dr_who.quotes')
|
27
72
|
end
|
28
73
|
|
29
|
-
|
30
|
-
|
74
|
+
##
|
75
|
+
# Produces a villain from Doctor Who.
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @example
|
80
|
+
# Faker::TvShows::DrWho.villain #=> "The Master"
|
81
|
+
#
|
82
|
+
# @faker.version next
|
83
|
+
def villain
|
84
|
+
fetch('dr_who.villains')
|
31
85
|
end
|
32
86
|
|
87
|
+
##
|
88
|
+
# Produces a villain from Doctor Who.
|
89
|
+
#
|
90
|
+
# @return [String]
|
91
|
+
#
|
92
|
+
# @example
|
93
|
+
# Faker::TvShows::DrWho.villian #=> "The Master"
|
94
|
+
#
|
95
|
+
# @deprecated Use the correctly-spelled `villain` method instead.
|
96
|
+
#
|
97
|
+
# @faker.version 1.8.0
|
98
|
+
alias villian villain
|
99
|
+
|
100
|
+
##
|
101
|
+
# Produces a species from Doctor Who.
|
102
|
+
#
|
103
|
+
# @return [String]
|
104
|
+
#
|
105
|
+
# @example
|
106
|
+
# Faker::TvShows::DrWho.specie #=> "Dalek"
|
107
|
+
#
|
108
|
+
# @faker.version 1.8.0
|
33
109
|
def specie
|
34
110
|
fetch('dr_who.species')
|
35
111
|
end
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :dumb_and_dumber
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces an actor from Dumb and Dumber.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::DumbAndDumber.actor #=> "Jim Carrey"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.5
|
9
18
|
def actor
|
10
19
|
fetch('dumb_and_dumber.actors')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a character from Dumb and Dumber.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::DumbAndDumber.character #=> "Harry Dunne"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.5
|
13
31
|
def character
|
14
32
|
fetch('dumb_and_dumber.characters')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a quote from Dumb and Dumber.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::DumbAndDumber.quote
|
42
|
+
# #=> "Why you going to the airport? Flying somewhere?"
|
43
|
+
#
|
44
|
+
# @faker.version 1.8.5
|
17
45
|
def quote
|
18
46
|
fetch('dumb_and_dumber.quotes')
|
19
47
|
end
|