faker 2.11.0 → 2.13.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 +160 -0
- data/README.md +11 -2
- data/lib/faker.rb +16 -10
- data/lib/faker/default/address.rb +31 -1
- data/lib/faker/default/bank.rb +79 -0
- data/lib/faker/default/blood.rb +48 -0
- data/lib/faker/default/business.rb +1 -1
- data/lib/faker/default/chile_rut.rb +44 -1
- data/lib/faker/default/commerce.rb +73 -10
- data/lib/faker/default/company.rb +40 -3
- data/lib/faker/default/compass.rb +135 -0
- data/lib/faker/default/computer.rb +63 -0
- data/lib/faker/default/construction.rb +54 -0
- data/lib/faker/default/cosmere.rb +90 -0
- data/lib/faker/default/crypto_coin.rb +45 -0
- data/lib/faker/default/date.rb +16 -12
- data/lib/faker/default/driving_licence.rb +42 -0
- data/lib/faker/default/file.rb +49 -0
- data/lib/faker/default/finance.rb +24 -0
- data/lib/faker/default/gender.rb +1 -1
- data/lib/faker/default/hipster.rb +94 -0
- data/lib/faker/default/id_number.rb +86 -0
- data/lib/faker/default/internet.rb +35 -7
- data/lib/faker/default/internet_http.rb +48 -0
- data/lib/faker/default/invoice.rb +32 -5
- data/lib/faker/default/json.rb +55 -0
- data/lib/faker/default/lorem_flickr.rb +65 -0
- data/lib/faker/default/lorem_pixel.rb +22 -0
- data/lib/faker/default/markdown.rb +89 -0
- data/lib/faker/default/measurement.rb +90 -0
- data/lib/faker/default/name.rb +98 -0
- data/lib/faker/default/nhs.rb +19 -0
- data/lib/faker/default/number.rb +5 -7
- data/lib/faker/default/omniauth.rb +58 -5
- data/lib/faker/default/phone_number.rb +88 -5
- data/lib/faker/default/placeholdit.rb +21 -0
- data/lib/faker/default/slack_emoji.rb +81 -0
- data/lib/faker/default/south_africa.rb +90 -0
- data/lib/faker/default/string.rb +19 -3
- data/lib/faker/default/stripe.rb +61 -0
- data/lib/faker/default/twitter.rb +35 -0
- data/lib/faker/default/types.rb +80 -0
- data/lib/faker/default/university.rb +45 -0
- data/lib/faker/default/vehicle.rb +184 -4
- data/lib/faker/default/verb.rb +45 -0
- data/lib/faker/default/world_cup.rb +4 -4
- data/lib/faker/games/control.rb +113 -0
- data/lib/faker/games/dnd.rb +61 -0
- data/lib/faker/games/heroes_of_the_storm.rb +16 -5
- data/lib/faker/games/minecraft.rb +48 -0
- data/lib/faker/games/warhammer_fantasy.rb +74 -0
- data/lib/faker/movies/departed.rb +49 -0
- data/lib/faker/movies/movie.rb +13 -0
- data/lib/faker/music/pearl_jam.rb +50 -0
- data/lib/faker/music/phish.rb +27 -1
- data/lib/faker/music/prince.rb +64 -0
- data/lib/faker/music/rush.rb +37 -0
- data/lib/faker/music/show.rb +49 -0
- data/lib/faker/quotes/quote.rb +54 -1
- data/lib/faker/quotes/shakespeare.rb +36 -0
- data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +13 -0
- data/lib/faker/tv_shows/big_bang_theory.rb +37 -0
- data/lib/faker/tv_shows/dr_who.rb +1 -1
- data/lib/faker/tv_shows/futurama.rb +65 -0
- data/lib/faker/tv_shows/simpsons.rb +14 -0
- data/lib/faker/tv_shows/suits.rb +37 -0
- data/lib/faker/version.rb +1 -1
- data/lib/helpers/base58.rb +1 -1
- data/lib/helpers/char.rb +22 -27
- data/lib/locales/de-CH.yml +1693 -0
- data/lib/locales/en-AU.yml +44 -10
- data/lib/locales/en-CA.yml +2 -0
- data/lib/locales/en-US.yml +29 -3
- data/lib/locales/en/address.yml +2 -0
- data/lib/locales/en/aqua_teen_hunger_force.yml +33 -1
- data/lib/locales/en/bank.yml +1 -1
- data/lib/locales/en/big_bang_theory.yml +38 -0
- data/lib/locales/en/blood.yml +13 -0
- data/lib/locales/en/computer.yml +36 -0
- data/lib/locales/en/control.yml +247 -0
- data/lib/locales/en/departed.yml +50 -0
- data/lib/locales/en/dnd.yml +54 -0
- data/lib/locales/en/futurama.yml +344 -0
- data/lib/locales/en/heroes_of_the_storm.yml +2 -2
- data/lib/locales/en/house.yml +1 -1
- data/lib/locales/en/minecraft.yml +390 -0
- data/lib/locales/en/movie.yml +192 -1
- data/lib/locales/en/name.yml +3 -2
- data/lib/locales/en/one_piece.yml +2 -2
- data/lib/locales/en/pearl_jam.yml +213 -0
- data/lib/locales/en/phish.yml +392 -1
- data/lib/locales/en/prince.yml +227 -0
- data/lib/locales/en/rush.yml +32 -0
- data/lib/locales/en/show.yml +597 -0
- data/lib/locales/en/simpsons.yml +668 -0
- data/lib/locales/en/star_wars.yml +568 -220
- data/lib/locales/en/suits.yml +45 -0
- data/lib/locales/en/warhammer_fantasy.yml +582 -0
- data/lib/locales/fr-CA.yml +2 -0
- data/lib/locales/ko.yml +82 -0
- data/lib/locales/pt-BR.yml +1 -0
- metadata +46 -17
data/lib/faker/music/phish.rb
CHANGED
@@ -4,6 +4,32 @@ module Faker
|
|
4
4
|
class Music
|
5
5
|
class Phish < Base
|
6
6
|
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a album by Phish.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Music::Phish.album #=> "Fuego"
|
14
|
+
#
|
15
|
+
# @faker.version 2.13.0
|
16
|
+
def album
|
17
|
+
fetch('phish.albums')
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# Produces the name of a musician in Phish.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Music::Phish.musician #=> "Trey Anastasio"
|
27
|
+
#
|
28
|
+
# @faker.version 2.13.0
|
29
|
+
def musician
|
30
|
+
fetch('phish.musicians')
|
31
|
+
end
|
32
|
+
|
7
33
|
##
|
8
34
|
# Produces the name of a song by Phish.
|
9
35
|
#
|
@@ -14,7 +40,7 @@ module Faker
|
|
14
40
|
#
|
15
41
|
# @faker.version 1.9.2
|
16
42
|
def song
|
17
|
-
fetch('phish.
|
43
|
+
fetch('phish.songs')
|
18
44
|
end
|
19
45
|
end
|
20
46
|
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class Music
|
5
|
+
class Prince < Base
|
6
|
+
class << self
|
7
|
+
##
|
8
|
+
# Produces a random Prince song.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Music::Prince.song #=> "Raspberry Beret"
|
14
|
+
# Faker::Music::Prince.song #=> "Starfish And Coffee"
|
15
|
+
#
|
16
|
+
# @faker.version 2.13.0
|
17
|
+
def song
|
18
|
+
fetch('prince.song')
|
19
|
+
end
|
20
|
+
|
21
|
+
##
|
22
|
+
# Produces a random Prince song lyric.
|
23
|
+
#
|
24
|
+
# @return [String]
|
25
|
+
#
|
26
|
+
# @example
|
27
|
+
# Faker::Music::Prince.lyric #=> "Dearly beloved, we are gathered here today to get through this thing called life."
|
28
|
+
# Faker::Music::Prince.lyric #=> "You were so hard to find, the beautiful ones, they hurt you every time."
|
29
|
+
#
|
30
|
+
# @faker.version 2.13.0
|
31
|
+
def lyric
|
32
|
+
fetch('prince.lyric')
|
33
|
+
end
|
34
|
+
|
35
|
+
##
|
36
|
+
# Produces a random Prince album.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::Music::Prince.album #=> "The Gold Experience"
|
42
|
+
# Faker::Music::Prince.album #=> "Purple Rain"
|
43
|
+
#
|
44
|
+
# @faker.version 2.13.0
|
45
|
+
def album
|
46
|
+
fetch('prince.album')
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# Produces a random Prince-associated band.
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @example
|
55
|
+
# Faker::Music::Prince.band #=> "The New Power Generation"
|
56
|
+
#
|
57
|
+
# @faker.version 2.13.0
|
58
|
+
def band
|
59
|
+
fetch('prince.band')
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'music'
|
4
|
+
|
5
|
+
module Faker
|
6
|
+
class Music
|
7
|
+
class Rush < Base
|
8
|
+
class << self
|
9
|
+
##
|
10
|
+
# Produces the name of a member of Rush
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::Music::Rush.player #=> "Geddy Lee"
|
16
|
+
#
|
17
|
+
# @faker.version 2.13.0
|
18
|
+
def player
|
19
|
+
fetch('rush.players')
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# Produces the name of an album by Rush
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::Music::Rush.album #=> "Hold Your Fire"
|
29
|
+
#
|
30
|
+
# @faker.version 2.13.0
|
31
|
+
def album
|
32
|
+
fetch('rush.albums')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class Show < Base
|
5
|
+
class << self
|
6
|
+
##
|
7
|
+
# Produces the name of a musical for an older audience
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
#
|
11
|
+
# @example
|
12
|
+
# Faker::Alphanumeric.alpha
|
13
|
+
# #=> "West Side Story"
|
14
|
+
#
|
15
|
+
# @faker.version 2.13.0
|
16
|
+
def adult_musical
|
17
|
+
fetch('show.adult_musical')
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# Produces the name of a musical for a younger audience
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Alphanumeric.alpha
|
27
|
+
# #=> "Into the Woods JR."
|
28
|
+
#
|
29
|
+
# @faker.version 2.13.0
|
30
|
+
def kids_musical
|
31
|
+
fetch('show.kids_musical')
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# Produces the name of a play
|
36
|
+
#
|
37
|
+
# @return [String]
|
38
|
+
#
|
39
|
+
# @example
|
40
|
+
# Faker::Alphanumeric.alpha
|
41
|
+
# #=> "Death of a Salesman"
|
42
|
+
#
|
43
|
+
# @faker.version 2.13.0
|
44
|
+
def play
|
45
|
+
fetch('show.play')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
data/lib/faker/quotes/quote.rb
CHANGED
@@ -3,27 +3,80 @@
|
|
3
3
|
module Faker
|
4
4
|
class Quote < Base
|
5
5
|
class << self
|
6
|
+
##
|
7
|
+
# Produces a famous last words quote.
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
#
|
11
|
+
# @example
|
12
|
+
# Faker::Quote.famous_last_words #=> "My vocabulary did this to me. Your love will let you go on..."
|
13
|
+
#
|
14
|
+
# @faker.version 1.9.0
|
6
15
|
def famous_last_words
|
7
16
|
fetch('quote.famous_last_words')
|
8
17
|
end
|
9
18
|
|
19
|
+
##
|
20
|
+
# Produces a quote from Matz.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
#
|
24
|
+
# @example
|
25
|
+
# Faker::Quote.matz #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better."
|
26
|
+
#
|
27
|
+
# @faker.version 1.9.0
|
10
28
|
def matz
|
11
29
|
fetch('quote.matz')
|
12
30
|
end
|
13
31
|
|
32
|
+
##
|
33
|
+
# Produces a quote about the most interesting man in the world.
|
34
|
+
#
|
35
|
+
# @return [String]
|
36
|
+
#
|
37
|
+
# @example
|
38
|
+
# Faker::Quote.most_interesting_man_in_the_world #=> "He can speak Russian... in French"
|
39
|
+
#
|
40
|
+
# @faker.version 1.9.0
|
14
41
|
def most_interesting_man_in_the_world
|
15
42
|
fetch('quote.most_interesting_man_in_the_world')
|
16
43
|
end
|
17
44
|
|
45
|
+
##
|
46
|
+
# Produces a Robin quote.
|
47
|
+
#
|
48
|
+
# @return [String]
|
49
|
+
#
|
50
|
+
# @example
|
51
|
+
# Faker::Quote.robin #=> "Holy Razors Edge"
|
52
|
+
#
|
53
|
+
# @faker.version 1.9.0
|
18
54
|
def robin
|
19
55
|
fetch('quote.robin')
|
20
56
|
end
|
21
57
|
|
58
|
+
##
|
59
|
+
# Produces a singular siegler quote.
|
60
|
+
#
|
61
|
+
# @return [String]
|
62
|
+
#
|
63
|
+
# @example
|
64
|
+
# Faker::Quote.singular_siegler #=> "Texas!"
|
65
|
+
#
|
66
|
+
# @faker.version 1.9.0
|
22
67
|
def singular_siegler
|
23
68
|
fetch('quote.singular_siegler')
|
24
69
|
end
|
25
70
|
|
26
|
-
|
71
|
+
##
|
72
|
+
# Produces a quote from Yoda.
|
73
|
+
#
|
74
|
+
# @return [String]
|
75
|
+
#
|
76
|
+
# @example
|
77
|
+
# Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will."
|
78
|
+
#
|
79
|
+
# @faker.version 1.9.0
|
27
80
|
def yoda
|
28
81
|
fetch('quote.yoda')
|
29
82
|
end
|
@@ -4,18 +4,54 @@ module Faker
|
|
4
4
|
class Quotes
|
5
5
|
class Shakespeare < Base
|
6
6
|
class << self
|
7
|
+
##
|
8
|
+
# Produces a Shakespeare quote from Hamlet.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Quotes::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question."
|
14
|
+
#
|
15
|
+
# @faker.version 1.9.2
|
7
16
|
def hamlet_quote
|
8
17
|
sample(hamlet)
|
9
18
|
end
|
10
19
|
|
20
|
+
##
|
21
|
+
# Produces a Shakespeare quote from As You Like It.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Quotes::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?."
|
27
|
+
#
|
28
|
+
# @faker.version 1.9.2
|
11
29
|
def as_you_like_it_quote
|
12
30
|
sample(as_you_like_it)
|
13
31
|
end
|
14
32
|
|
33
|
+
##
|
34
|
+
# Produces a Shakespeare quote from King Richard III.
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# Faker::Quotes::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent."
|
40
|
+
#
|
41
|
+
# @faker.version 1.9.2
|
15
42
|
def king_richard_iii_quote
|
16
43
|
sample(king_richard_iii)
|
17
44
|
end
|
18
45
|
|
46
|
+
##
|
47
|
+
# Produces a Shakespeare quote from Romeo And Juliet.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# Faker::Quotes::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?."
|
53
|
+
#
|
54
|
+
# @faker.version 1.9.2
|
19
55
|
def romeo_and_juliet_quote
|
20
56
|
sample(romeo_and_juliet)
|
21
57
|
end
|
@@ -18,6 +18,19 @@ module Faker
|
|
18
18
|
def character
|
19
19
|
fetch('aqua_teen_hunger_force.character')
|
20
20
|
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# Produces a perl of great ATHF wisdom
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::AquaTeenHungerForce.quote #=> "Friendship ain't about trust. Friendship's about nunchucks."
|
29
|
+
#
|
30
|
+
# @faker.version 2.13.0
|
31
|
+
def quote
|
32
|
+
fetch('aqua_teen_hunger_force.quote')
|
33
|
+
end
|
21
34
|
end
|
22
35
|
end
|
23
36
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class TvShows
|
5
|
+
class BigBangTheory < Base
|
6
|
+
flexible :big_bang_theory
|
7
|
+
|
8
|
+
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Big Bang Theory
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::BigBangTheory.character #=> "Sheldon Cooper"
|
16
|
+
#
|
17
|
+
# @faker.version 2.13.0
|
18
|
+
def character
|
19
|
+
fetch('big_bang_theory.characters')
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# Produces a quote from Bing Bang Theory
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::BigBangTheory.quote #=> "I'm not crazy. My mother had me tested."
|
29
|
+
#
|
30
|
+
# @faker.version 2.13.0
|
31
|
+
def quote
|
32
|
+
fetch('big_bang_theory.quotes')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class TvShows
|
5
|
+
class Futurama < Base
|
6
|
+
flexible :futurama
|
7
|
+
|
8
|
+
class << self
|
9
|
+
##
|
10
|
+
# Produces a character from Futurama.
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# Faker::TvShows::Futurama.character #=> "Amy Wong"
|
16
|
+
#
|
17
|
+
# @faker.version 2.13.0
|
18
|
+
def character
|
19
|
+
fetch('futurama.characters')
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# Produces a location from Futurama.
|
24
|
+
#
|
25
|
+
# @return [String]
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# Faker::TvShows::Futurama.location #=> "Wormulon"
|
29
|
+
#
|
30
|
+
# @faker.version 2.13.0
|
31
|
+
def location
|
32
|
+
fetch('futurama.locations')
|
33
|
+
end
|
34
|
+
|
35
|
+
##
|
36
|
+
# Produces a quote from Futurama.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @example
|
41
|
+
# Faker::TvShows::Futurama.quote
|
42
|
+
# #=> "Ugh, it's like a party in my mouth & everyone's throwing up."
|
43
|
+
#
|
44
|
+
# @faker.version 2.13.0
|
45
|
+
def quote
|
46
|
+
fetch('futurama.quotes')
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# Produces a catchphrase from Hermes Conrad.
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
# @example
|
55
|
+
# Faker::TvShows::Futurama.hermes_catchphrase
|
56
|
+
# #=> "Great foo of bar!"
|
57
|
+
#
|
58
|
+
# @faker.version 2.13.0
|
59
|
+
def hermes_catchphrase
|
60
|
+
fetch('futurama.hermes_catchphrases')
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|