faker 2.4.0 → 2.5.0
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 +34 -0
- data/lib/faker/default/app.rb +2 -1
- data/lib/faker/default/avatar.rb +2 -1
- data/lib/faker/default/chuck_norris.rb +1 -1
- data/lib/faker/default/date.rb +59 -2
- data/lib/faker/default/internet.rb +4 -1
- data/lib/faker/default/nation.rb +48 -5
- data/lib/faker/default/number.rb +124 -0
- data/lib/faker/default/restaurant.rb +54 -2
- data/lib/faker/default/time.rb +85 -8
- 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-TH.yml +360 -0
- data/lib/locales/en/color.yml +1 -1
- data/lib/locales/en/dr_who.yml +1 -1
- data/lib/locales/th.yml +380 -0
- metadata +6 -4
@@ -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
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :stargate
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Stargate.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::Stargate.character #=> "Jack O'Neill"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.5
|
9
18
|
def character
|
10
19
|
fetch('stargate.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a planet from Stargate.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::Stargate.planet #=> "Abydos"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.5
|
13
31
|
def planet
|
14
32
|
fetch('stargate.planets')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a quote from Stargate.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::Stargate.quote
|
42
|
+
# #=> "General, request permission to beat the crap out of this man."
|
43
|
+
#
|
44
|
+
# @faker.version 1.8.5
|
17
45
|
def quote
|
18
46
|
fetch('stargate.quotes')
|
19
47
|
end
|
@@ -6,10 +6,29 @@ module Faker
|
|
6
6
|
flexible :stranger_things
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Stranger Things.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::StrangerThings.character #=> "six"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.0
|
9
18
|
def quote
|
10
19
|
fetch('stranger_things.quote')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a quote from Stranger Things.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::StrangerThings.quote
|
29
|
+
# #=> "Friends don't lie."
|
30
|
+
#
|
31
|
+
# @faker.version 1.9.0
|
13
32
|
def character
|
14
33
|
fetch('stranger_things.character')
|
15
34
|
end
|
@@ -6,18 +6,54 @@ module Faker
|
|
6
6
|
flexible :the_expanse
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from The Expanse.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::TheExpanse.character #=> "Jim Holden"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.2
|
9
18
|
def character
|
10
19
|
fetch('the_expanse.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a quote from The Expanse.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::TheExpanse.quote #=> "I am that guy."
|
29
|
+
#
|
30
|
+
# @faker.version 1.9.2
|
13
31
|
def quote
|
14
32
|
fetch('the_expanse.quotes')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a location from The Expanse.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::TheExpanse.location #=> "Ganymede"
|
42
|
+
#
|
43
|
+
# @faker.version 1.9.2
|
17
44
|
def location
|
18
45
|
fetch('the_expanse.locations')
|
19
46
|
end
|
20
47
|
|
48
|
+
##
|
49
|
+
# Produces a ship from The Expanse.
|
50
|
+
#
|
51
|
+
# @return [String]
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# Faker::TvShows::TheExpanse.ship #=> "Nauvoo"
|
55
|
+
#
|
56
|
+
# @faker.version 1.9.2
|
21
57
|
def ship
|
22
58
|
fetch('the_expanse.ships')
|
23
59
|
end
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :the_fresh_prince_of_bel_air
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from The Fresh Prince of Bel-Air.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::TheFreshPrinceOfBelAir.character #=> "Will Smith"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.3
|
9
18
|
def character
|
10
19
|
fetch('the_fresh_prince_of_bel_air.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a celebrity from The Fresh Prince of Bel-Air.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.3
|
13
31
|
def celebrity
|
14
32
|
fetch('the_fresh_prince_of_bel_air.celebrities')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a quote from The Fresh Prince of Bel-Air.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::TheFreshPrinceOfBelAir.quote
|
42
|
+
# #=> "Girl, you look so good, I would marry your brother just to get in your family."
|
43
|
+
#
|
44
|
+
# @faker.version 1.8.3
|
17
45
|
def quote
|
18
46
|
fetch('the_fresh_prince_of_bel_air.quotes')
|
19
47
|
end
|
@@ -6,18 +6,55 @@ module Faker
|
|
6
6
|
flexible :the_it_crowd
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces an actor from The IT Crowd.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::TheITCrowd.actor #=> "Chris O'Dowd"
|
16
|
+
#
|
17
|
+
# @faker.version 1.9.0
|
9
18
|
def actor
|
10
19
|
fetch('the_it_crowd.actors')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a character from The IT Crowd.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::TheITCrowd.character #=> "Roy Trenneman"
|
29
|
+
#
|
30
|
+
# @faker.version 1.9.0
|
13
31
|
def character
|
14
32
|
fetch('the_it_crowd.characters')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces an email from The IT Crowd.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::TheITCrowd.email #=> "roy.trenneman@reynholm.test"
|
42
|
+
#
|
43
|
+
# @faker.version 1.9.0
|
17
44
|
def email
|
18
45
|
fetch('the_it_crowd.emails')
|
19
46
|
end
|
20
47
|
|
48
|
+
##
|
49
|
+
# Produces a quote from The IT Crowd.
|
50
|
+
#
|
51
|
+
# @return [String]
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# Faker::TvShows::TheITCrowd.quote
|
55
|
+
# #=> "Hello, IT. Have you tried turning it off and on again?"
|
56
|
+
#
|
57
|
+
# @faker.version 1.9.0
|
21
58
|
def quote
|
22
59
|
fetch('the_it_crowd.quotes')
|
23
60
|
end
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :the_thick_of_it
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from The Thick of It.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::TheThickOfIt.character #=> "Nicola Murray"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.5
|
9
18
|
def character
|
10
19
|
fetch('the_thick_of_it.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a department from The Thick of It.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::TheThickOfIt.department #=> "Shadow Cabinet"
|
29
|
+
#
|
30
|
+
# @faker.version 1.8.5
|
13
31
|
def department
|
14
32
|
fetch('the_thick_of_it.departments')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a position from The Thick of It.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::TheThickOfIt.position
|
42
|
+
# #=> "Director of Communications"
|
43
|
+
#
|
44
|
+
# @faker.version 1.8.5
|
17
45
|
def position
|
18
46
|
fetch('the_thick_of_it.positions')
|
19
47
|
end
|
@@ -6,14 +6,42 @@ module Faker
|
|
6
6
|
flexible :twin_peaks
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Twin Peaks.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::TwinPeaks.character #=> "Dale Cooper"
|
16
|
+
#
|
17
|
+
# @faker.version 1.7.0
|
9
18
|
def character
|
10
19
|
fetch('twin_peaks.characters')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces a location from Twin Peaks.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::TwinPeaks.location #=> "Black Lodge"
|
29
|
+
#
|
30
|
+
# @faker.version 1.7.0
|
13
31
|
def location
|
14
32
|
fetch('twin_peaks.locations')
|
15
33
|
end
|
16
34
|
|
35
|
+
##
|
36
|
+
# Produces a quote from Twin Peaks.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::TwinPeaks.quote
|
42
|
+
# #=> "The owls are not what they seem."
|
43
|
+
#
|
44
|
+
# @faker.version 1.7.0
|
17
45
|
def quote
|
18
46
|
fetch('twin_peaks.quotes')
|
19
47
|
end
|
@@ -6,18 +6,56 @@ module Faker
|
|
6
6
|
flexible :venture_bros
|
7
7
|
|
8
8
|
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from The Venture Bros.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::VentureBros.character #=> "Scaramantula"
|
16
|
+
#
|
17
|
+
# @faker.version 1.8.3
|
9
18
|
def character
|
10
19
|
fetch('venture_bros.character')
|
11
20
|
end
|
12
21
|
|
22
|
+
##
|
23
|
+
# Produces an organization from The Venture Bros.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::VentureBros.organization
|
29
|
+
# #=> "Guild of Calamitous Intent"
|
30
|
+
#
|
31
|
+
# @faker.version 1.8.3
|
13
32
|
def organization
|
14
33
|
fetch('venture_bros.organization')
|
15
34
|
end
|
16
35
|
|
36
|
+
##
|
37
|
+
# Produces a vehicle from The Venture Bros.
|
38
|
+
#
|
39
|
+
# @return [String]
|
40
|
+
#
|
41
|
+
# @example
|
42
|
+
# Faker::TvShows::VentureBros.vehicle #=> "Monarchmobile"
|
43
|
+
#
|
44
|
+
# @faker.version 1.8.3
|
17
45
|
def vehicle
|
18
46
|
fetch('venture_bros.vehicle')
|
19
47
|
end
|
20
48
|
|
49
|
+
##
|
50
|
+
# Produces a quote from The Venture Bros.
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @example
|
55
|
+
# Faker::TvShows::VentureBros.quote
|
56
|
+
# #=> "Revenge, like gazpacho soup, is best served cold, precise, and merciless."
|
57
|
+
#
|
58
|
+
# @faker.version 1.8.3
|
21
59
|
def quote
|
22
60
|
fetch('venture_bros.quote')
|
23
61
|
end
|