faker 2.10.0 → 2.13.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 +265 -0
- data/README.md +14 -2
- data/lib/faker.rb +20 -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/cannabis.rb +80 -0
- data/lib/faker/default/chile_rut.rb +44 -1
- data/lib/faker/default/commerce.rb +73 -10
- data/lib/faker/default/company.rb +276 -7
- 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/dc_comics.rb +45 -0
- data/lib/faker/default/driving_licence.rb +42 -0
- data/lib/faker/default/file.rb +51 -2
- data/lib/faker/default/finance.rb +24 -0
- data/lib/faker/default/funny_name.rb +45 -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 +64 -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.rb +1 -1
- 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 +105 -52
- 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/chiquito.rb +80 -0
- data/lib/faker/quotes/quote.rb +54 -1
- data/lib/faker/quotes/rajnikanth.rb +26 -0
- 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/helpers/unique_generator.rb +4 -0
- data/lib/locales/bg.yml +2 -2
- data/lib/locales/ca.yml +0 -8
- data/lib/locales/da-DK.yml +3 -3
- 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-GB.yml +1 -1
- data/lib/locales/en-NEP.yml +1 -1
- data/lib/locales/en-NZ.yml +2 -0
- data/lib/locales/en-US.yml +29 -3
- data/lib/locales/en-ZA.yml +1 -1
- 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/chiquito.yml +64 -0
- data/lib/locales/en/color.yml +1 -1
- 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 +4 -3
- 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/rajnikanth.yml +77 -0
- data/lib/locales/en/rush.yml +32 -0
- data/lib/locales/en/shakespeare.yml +3 -3
- 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/stripe.yml +3 -3
- data/lib/locales/en/suits.yml +45 -0
- data/lib/locales/en/warhammer_fantasy.yml +582 -0
- data/lib/locales/es-MX.yml +3 -0
- data/lib/locales/fr-CA.yml +7 -4
- data/lib/locales/fr-CH.yml +1 -1
- data/lib/locales/fr.yml +5 -4
- data/lib/locales/hy.yml +1 -6
- data/lib/locales/id.yml +2 -1
- data/lib/locales/ja.yml +1 -1
- data/lib/locales/ko.yml +82 -0
- data/lib/locales/pt-BR.yml +1 -0
- data/lib/locales/pt.yml +2 -2
- data/lib/locales/uk.yml +5 -5
- data/lib/locales/zh-CN.yml +1 -1
- data/lib/locales/zh-TW.yml +1 -1
- metadata +52 -19
data/lib/faker/default/verb.rb
CHANGED
|
@@ -3,22 +3,67 @@
|
|
|
3
3
|
module Faker
|
|
4
4
|
class Verb < Base
|
|
5
5
|
class << self
|
|
6
|
+
##
|
|
7
|
+
# Produces the base form of a random verb.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
#
|
|
11
|
+
# @example
|
|
12
|
+
# Faker::Verb.base #=> "hurt"
|
|
13
|
+
#
|
|
14
|
+
# @faker.version 1.9.0
|
|
6
15
|
def base
|
|
7
16
|
fetch('verbs.base')
|
|
8
17
|
end
|
|
9
18
|
|
|
19
|
+
##
|
|
20
|
+
# Produces a random verb in past tense.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
#
|
|
24
|
+
# @example
|
|
25
|
+
# Faker::Verb.past #=> "completed"
|
|
26
|
+
#
|
|
27
|
+
# @faker.version 1.9.0
|
|
10
28
|
def past
|
|
11
29
|
fetch('verbs.past')
|
|
12
30
|
end
|
|
13
31
|
|
|
32
|
+
##
|
|
33
|
+
# Produces a random verb in past participle.
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
#
|
|
37
|
+
# @example
|
|
38
|
+
# Faker::Verb.past_participle #=> "digested"
|
|
39
|
+
#
|
|
40
|
+
# @faker.version 1.9.0
|
|
14
41
|
def past_participle
|
|
15
42
|
fetch('verbs.past_participle')
|
|
16
43
|
end
|
|
17
44
|
|
|
45
|
+
##
|
|
46
|
+
# Produces a random verb in simple present.
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
#
|
|
50
|
+
# @example
|
|
51
|
+
# Faker::Verb.simple_present #=> "climbs"
|
|
52
|
+
#
|
|
53
|
+
# @faker.version 1.9.0
|
|
18
54
|
def simple_present
|
|
19
55
|
fetch('verbs.simple_present')
|
|
20
56
|
end
|
|
21
57
|
|
|
58
|
+
##
|
|
59
|
+
# Produces a random verb in the .ing form.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
# @example
|
|
64
|
+
# Faker::Verb.ing_form #=> "causing"
|
|
65
|
+
#
|
|
66
|
+
# @faker.version 1.9.0
|
|
22
67
|
def ing_form
|
|
23
68
|
fetch('verbs.ing_form')
|
|
24
69
|
end
|
|
@@ -24,7 +24,7 @@ module Faker
|
|
|
24
24
|
# @example
|
|
25
25
|
# Faker::WorldCup.city #=> "Moscow"
|
|
26
26
|
#
|
|
27
|
-
# @faker.version
|
|
27
|
+
# @faker.version 2.13.0
|
|
28
28
|
def city
|
|
29
29
|
fetch('world_cup.cities')
|
|
30
30
|
end
|
|
@@ -37,7 +37,7 @@ module Faker
|
|
|
37
37
|
# @example
|
|
38
38
|
# Faker::WorldCup.stadium #=> "Rostov Arena"
|
|
39
39
|
#
|
|
40
|
-
# @faker.version
|
|
40
|
+
# @faker.version 2.13.0
|
|
41
41
|
def stadium
|
|
42
42
|
fetch('world_cup.stadiums')
|
|
43
43
|
end
|
|
@@ -52,7 +52,7 @@ module Faker
|
|
|
52
52
|
# @example
|
|
53
53
|
# Faker::WorldCup.group #=> "Russia"
|
|
54
54
|
#
|
|
55
|
-
# @faker.version
|
|
55
|
+
# @faker.version 2.13.0
|
|
56
56
|
def group(legacy_group = NOT_GIVEN, group: 'group_A')
|
|
57
57
|
warn_for_deprecated_arguments do |keywords|
|
|
58
58
|
keywords << :group if legacy_group != NOT_GIVEN
|
|
@@ -72,7 +72,7 @@ module Faker
|
|
|
72
72
|
# @example
|
|
73
73
|
# Faker::WorldCup.roster(country: 'Spain', type: 'forwards') #=> "Diego Costa"
|
|
74
74
|
#
|
|
75
|
-
# @faker.version
|
|
75
|
+
# @faker.version 2.13.0
|
|
76
76
|
def roster(legacy_country = NOT_GIVEN, legacy_type = NOT_GIVEN, country: 'Egypt', type: 'coach')
|
|
77
77
|
warn_for_deprecated_arguments do |keywords|
|
|
78
78
|
keywords << :country if legacy_country != NOT_GIVEN
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Faker
|
|
4
|
+
class Games
|
|
5
|
+
class Control < Base
|
|
6
|
+
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a character from Control.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Control.character #=> "Jesse Faden"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 2.13.0
|
|
16
|
+
def character
|
|
17
|
+
fetch('games.control.character')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a location from Control.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Control.character #=> "Dimensional Research"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 2.13.0
|
|
29
|
+
def location
|
|
30
|
+
fetch('games.control.location')
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of an Object of Power (OoP)
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Control.object_of_power #=> "Hotline"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 2.13.0
|
|
42
|
+
def object_of_power
|
|
43
|
+
fetch('games.control.object_of_power')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Produces the name of an Altered Item
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::Control.altered_item #=> "Rubber Duck"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 2.13.0
|
|
55
|
+
def altered_item
|
|
56
|
+
fetch('games.control.altered_item')
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
##
|
|
60
|
+
# Produces the location of an Altered World Event (AWE)
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @example
|
|
65
|
+
# Faker::Games::Control.altered_world_event #=> "Ordinary, Wisconsin"
|
|
66
|
+
#
|
|
67
|
+
# @faker.version 2.13.0
|
|
68
|
+
def altered_world_event
|
|
69
|
+
fetch('games.control.altered_world_event')
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
##
|
|
73
|
+
# Produces a line from the Hiss incantation
|
|
74
|
+
#
|
|
75
|
+
# @return [String]
|
|
76
|
+
#
|
|
77
|
+
# @example
|
|
78
|
+
# Faker::Games::Control.hiss #=> "Push the fingers through the surface into the wet."
|
|
79
|
+
#
|
|
80
|
+
# @faker.version 2.13.0
|
|
81
|
+
def hiss
|
|
82
|
+
fetch('games.control.hiss')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
##
|
|
86
|
+
# < Produces a line/quote/message from The Board >
|
|
87
|
+
#
|
|
88
|
+
# @return [String]
|
|
89
|
+
#
|
|
90
|
+
# @example
|
|
91
|
+
# Faker::Games::Control.the_board #=> "< You/We wield the Gun/You. The Board appoints you. Congratulations, Director. >"
|
|
92
|
+
#
|
|
93
|
+
# @faker.version 2.13.0
|
|
94
|
+
def the_board
|
|
95
|
+
fetch('games.control.the_board')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
##
|
|
99
|
+
# Produces a quote from Control
|
|
100
|
+
#
|
|
101
|
+
# @return [String]
|
|
102
|
+
#
|
|
103
|
+
# @example
|
|
104
|
+
# Faker::Games::Control.quote #=> "He never liked fridge duty"
|
|
105
|
+
#
|
|
106
|
+
# @faker.version 2.13.0
|
|
107
|
+
def quote
|
|
108
|
+
fetch('games.control.quote')
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Faker
|
|
4
|
+
class Games
|
|
5
|
+
class DnD < Base
|
|
6
|
+
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a race from Dungeons and Dragons (PHB).
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::DnD.race #=> "Dwarf"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 2.13.0
|
|
16
|
+
def species
|
|
17
|
+
fetch('dnd.species')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a class from Dungeons and Dragons (PHB).
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::DnD.klass #=> "Warlock"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 2.13.0
|
|
29
|
+
def klass
|
|
30
|
+
fetch('dnd.klasses')
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a background from Dungeons and Dragons (PHB).
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::DnD.background #=> "Urchin"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 2.13.0
|
|
42
|
+
def background
|
|
43
|
+
fetch('dnd.backgrounds')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Produces the name of an alignment from Dungeons and Dragons.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::DnD.alignment #=> "Lawful Neutral"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 2.13.0
|
|
55
|
+
def alignment
|
|
56
|
+
fetch('dnd.alignments')
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -18,16 +18,27 @@ module Faker
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
##
|
|
21
|
-
#
|
|
21
|
+
# This method is deprecated. The implementation will be removed in a near future release.
|
|
22
|
+
# Use `HeroesOfTheStorm.class_name` instead.
|
|
23
|
+
#
|
|
24
|
+
# @deprecated Use {#class_name} instead.
|
|
25
|
+
def class
|
|
26
|
+
warn '`HeroesOfTheStorm.class` is deprecated. Use `HeroesOfTheStorm.class_name` instead.'
|
|
27
|
+
|
|
28
|
+
super
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
# Produces a class name from Heroes of the Storm.
|
|
22
33
|
#
|
|
23
34
|
# @return [String]
|
|
24
35
|
#
|
|
25
36
|
# @example
|
|
26
|
-
# Faker::Games::HeroesOfTheStorm.
|
|
37
|
+
# Faker::Games::HeroesOfTheStorm.class_name #=> "Support"
|
|
27
38
|
#
|
|
28
|
-
# @faker.version
|
|
29
|
-
def
|
|
30
|
-
fetch('heroes_of_the_storm.
|
|
39
|
+
# @faker.version 2.13.0
|
|
40
|
+
def class_name
|
|
41
|
+
fetch('heroes_of_the_storm.class_names')
|
|
31
42
|
end
|
|
32
43
|
|
|
33
44
|
##
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Faker
|
|
4
|
+
class Games
|
|
5
|
+
class Minecraft < Base
|
|
6
|
+
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a block from Minecraft.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Minecraft.block #=> "Stone"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 2.13.0
|
|
16
|
+
def block
|
|
17
|
+
fetch('games.minecraft.blocks')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of an item from Minecraft.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Minecraft.item #=> "Iron Shovel"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 2.13.0
|
|
29
|
+
def item
|
|
30
|
+
fetch('games.minecraft.items')
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a mob from Minecraft.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Minecraft.item #=> "Sheep"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 2.13.0
|
|
42
|
+
def mob
|
|
43
|
+
fetch('games.minecraft.mobs')
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Faker
|
|
4
|
+
class Games
|
|
5
|
+
class WarhammerFantasy < Base
|
|
6
|
+
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a hero from the Warhammer Fantasy setting.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::WarhammerFantasy.hero #=> "Sigmar Heldenhammer"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 2.13.0
|
|
16
|
+
def hero
|
|
17
|
+
fetch('games.warhammer_fantasy.heros')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Produces a quote from the Warhammer Fantasy setting.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::WarhammerFantasy.quote #=> "The softest part of a castle is the belly of the man inside."
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 2.13.0
|
|
29
|
+
def quote
|
|
30
|
+
fetch('games.warhammer_fantasy.quotes')
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Produces a location from the Warhammer Fantasy setting.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::WarhammerFantasy.location #=> "Lustria"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 2.13.0
|
|
42
|
+
def location
|
|
43
|
+
fetch('games.warhammer_fantasy.locations')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Produces a faction from the Warhammer Fantasy setting.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::WarhammerFantasy.faction #=> "Bretonnia"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 2.13.0
|
|
55
|
+
def faction
|
|
56
|
+
fetch('games.warhammer_fantasy.factions')
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
##
|
|
60
|
+
# Produces a creature from the Warhammer Fantasy setting.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @example
|
|
65
|
+
# Faker::Games::WarhammerFantasy.creature #=> "Hydra"
|
|
66
|
+
#
|
|
67
|
+
# @faker.version 2.13.0
|
|
68
|
+
def creature
|
|
69
|
+
fetch('games.warhammer_fantasy.creatures')
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Faker
|
|
4
|
+
class Movies
|
|
5
|
+
class Departed < Base
|
|
6
|
+
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces an actor from The Departed.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Movies::Departed.actor #=> "Matt Damon"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 2.13.0
|
|
16
|
+
def actor
|
|
17
|
+
fetch('departed.actors')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Produces a character from The Departed.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Movies::Departed.character #=> "Frank Costello"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 2.13.0
|
|
29
|
+
def character
|
|
30
|
+
fetch('departed.characters')
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
##
|
|
34
|
+
# Produces a quote from The Departed.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Movies::Departed.quote
|
|
40
|
+
# #=> "I'm the guy who does his job. You must be the other guy"
|
|
41
|
+
#
|
|
42
|
+
# @faker.version 2.13.0
|
|
43
|
+
def quote
|
|
44
|
+
fetch('departed.quotes')
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|