faker 2.14.0 → 2.18.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 +218 -19
- data/History.md +4 -4
- data/README.md +18 -1
- data/lib/faker.rb +12 -13
- data/lib/faker/blockchain/aeternity.rb +4 -4
- data/lib/faker/blockchain/bitcoin.rb +2 -2
- data/lib/faker/blockchain/tezos.rb +30 -2
- data/lib/faker/books/dune.rb +15 -2
- data/lib/faker/books/lovecraft.rb +8 -4
- data/lib/faker/creature/bird.rb +203 -0
- data/lib/faker/default/address.rb +4 -4
- data/lib/faker/default/app.rb +1 -1
- data/lib/faker/default/avatar.rb +1 -1
- data/lib/faker/default/bank.rb +20 -6
- data/lib/faker/default/barcode.rb +44 -33
- data/lib/faker/default/beer.rb +3 -3
- data/lib/faker/default/camera.rb +46 -0
- data/lib/faker/default/cannabis.rb +10 -0
- data/lib/faker/default/chile_rut.rb +3 -2
- data/lib/faker/default/chuck_norris.rb +1 -0
- data/lib/faker/default/code.rb +5 -5
- data/lib/faker/default/commerce.rb +1 -1
- data/lib/faker/default/company.rb +58 -10
- data/lib/faker/default/crypto.rb +17 -4
- data/lib/faker/default/driving_licence.rb +4 -3
- data/lib/faker/default/drone.rb +25 -25
- data/lib/faker/default/educator.rb +13 -0
- data/lib/faker/default/faker_adjective.rb +35 -0
- data/lib/faker/default/file.rb +6 -4
- data/lib/faker/default/finance.rb +21 -0
- data/lib/faker/default/food.rb +1 -1
- data/lib/faker/default/hipster.rb +14 -11
- data/lib/faker/default/id_number.rb +36 -2
- data/lib/faker/default/internet.rb +232 -6
- data/lib/faker/default/invoice.rb +1 -1
- data/lib/faker/default/json.rb +7 -6
- data/lib/faker/default/lorem.rb +160 -5
- data/lib/faker/default/lorem_flickr.rb +3 -8
- data/lib/faker/default/lorem_pixel.rb +2 -1
- data/lib/faker/default/markdown.rb +4 -2
- data/lib/faker/default/measurement.rb +3 -2
- data/lib/faker/default/military.rb +26 -0
- data/lib/faker/default/mountain.rb +33 -0
- data/lib/faker/default/number.rb +23 -6
- data/lib/faker/default/omniauth.rb +5 -10
- data/lib/faker/default/placeholdit.rb +3 -2
- data/lib/faker/default/relationship.rb +1 -1
- data/lib/faker/default/science.rb +26 -0
- data/lib/faker/default/space.rb +1 -1
- data/lib/faker/default/string.rb +3 -2
- data/lib/faker/default/stripe.rb +3 -3
- data/lib/faker/default/tea.rb +41 -0
- data/lib/faker/default/types.rb +4 -3
- data/lib/faker/default/vehicle.rb +1 -1
- data/lib/faker/fantasy/tolkien.rb +67 -0
- data/lib/faker/games/clash_of_clans.rb +48 -0
- data/lib/faker/games/control.rb +1 -1
- data/lib/faker/games/dnd.rb +6 -6
- data/lib/faker/games/elder_scrolls.rb +26 -0
- data/lib/faker/games/heroes.rb +13 -0
- data/lib/faker/games/minecraft.rb +65 -0
- data/lib/faker/games/street_fighter.rb +4 -4
- data/lib/faker/games/super_mario.rb +48 -0
- data/lib/faker/games/touhou.rb +75 -0
- data/lib/faker/games/witcher.rb +39 -0
- data/lib/faker/games/world_of_warcraft.rb +26 -1
- data/lib/faker/japanese_media/conan.rb +48 -0
- data/lib/faker/japanese_media/doraemon.rb +48 -0
- data/lib/faker/japanese_media/dragon_ball.rb +26 -0
- data/lib/faker/japanese_media/naruto.rb +61 -0
- data/lib/faker/japanese_media/studio_ghibli.rb +48 -0
- data/lib/faker/movies/hobbit.rb +4 -4
- data/lib/faker/movies/how_to_train_your_dragon.rb +48 -0
- data/lib/faker/movies/lord_of_the_rings.rb +3 -3
- data/lib/faker/movies/room.rb +63 -0
- data/lib/faker/movies/star_wars.rb +74 -2
- data/lib/faker/music/hiphop.rb +48 -0
- data/lib/faker/music/music.rb +12 -0
- data/lib/faker/music/opera.rb +237 -1
- data/lib/faker/music/rock_band.rb +12 -0
- data/lib/faker/quotes/quote.rb +26 -0
- data/lib/faker/quotes/rajnikanth.rb +1 -0
- data/lib/faker/quotes/shakespeare.rb +34 -0
- data/lib/faker/sports/volleyball.rb +74 -0
- data/lib/faker/tv_shows/big_bang_theory.rb +1 -1
- data/lib/faker/tv_shows/buffy.rb +17 -4
- data/lib/faker/tv_shows/final_space.rb +51 -0
- data/lib/faker/tv_shows/suits.rb +1 -1
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +17 -4
- data/lib/faker/version.rb +1 -1
- data/lib/locales/en-US.yml +1 -1
- data/lib/locales/en/adjective.yml +179 -0
- data/lib/locales/en/bird.yml +1281 -0
- data/lib/locales/en/book.yml +487 -3
- data/lib/locales/en/buffy.yml +1 -1
- data/lib/locales/en/camera.yml +611 -0
- data/lib/locales/en/clash_of_clan.yml +101 -0
- data/lib/locales/en/company.yml +2 -2
- data/lib/locales/en/conan.yml +171 -0
- data/lib/locales/en/demographic.yml +218 -5
- data/lib/locales/en/device.yml +112 -4
- data/lib/locales/en/doraemon.yml +286 -0
- data/lib/locales/en/dota.yml +531 -63
- data/lib/locales/en/dragon_ball.yml +243 -1
- data/lib/locales/en/driving_license.yml +3 -0
- data/lib/locales/en/dune.yml +270 -131
- data/lib/locales/en/educator.yml +6 -0
- data/lib/locales/en/elder_scrolls.yml +583 -9
- data/lib/locales/en/fallout.yml +311 -133
- data/lib/locales/en/final_space.yml +37 -0
- data/lib/locales/en/finance.yml +53 -0
- data/lib/locales/en/football.yml +3 -3
- data/lib/locales/en/fresh_prince_of_bel_air.yml +1 -1
- data/lib/locales/en/half_life.yml +84 -3
- data/lib/locales/en/heroes.yml +408 -3
- data/lib/locales/en/heroes_of_the_storm.yml +131 -4
- data/lib/locales/en/how_to_train_your_dragon.yml +174 -0
- data/lib/locales/en/jack_handey.yml +54 -0
- data/lib/locales/en/league_of_legends.yml +285 -6
- data/lib/locales/en/lebowski.yml +1 -1
- data/lib/locales/en/lovecraft.yml +76 -6
- data/lib/locales/en/military.yml +179 -5
- data/lib/locales/en/minecraft.yml +273 -0
- data/lib/locales/en/mountain.yml +158 -0
- data/lib/locales/en/music.yml +461 -29
- data/lib/locales/en/myst.yml +87 -31
- data/lib/locales/en/naruto.yml +231 -0
- data/lib/locales/en/opera.yml +168 -0
- data/lib/locales/en/overwatch.yml +2650 -2622
- data/lib/locales/en/pokemon.yml +417 -4
- data/lib/locales/en/quote.yml +692 -163
- data/lib/locales/en/rock_band.yml +1 -0
- data/lib/locales/en/room.yml +68 -0
- data/lib/locales/en/science.yml +355 -3
- data/lib/locales/en/shakespeare.yml +21 -24
- data/lib/locales/en/source.yml +30 -0
- data/lib/locales/en/space.yml +1 -1
- data/lib/locales/en/star_trek.yml +1 -1
- data/lib/locales/en/street_fighter.yml +4 -4
- data/lib/locales/en/studio_ghibli.yml +107 -0
- data/lib/locales/en/super_mario.yml +58 -0
- data/lib/locales/en/super_smash_bros.yml +18 -4
- data/lib/locales/en/tea.yml +172 -0
- data/lib/locales/en/tolkien.yml +2453 -0
- data/lib/locales/en/touhou.yml +839 -0
- data/lib/locales/en/volleyball.yml +501 -0
- data/lib/locales/en/witcher.yml +426 -7
- data/lib/locales/en/world_of_warcraft.yml +122 -4
- data/lib/locales/en/zelda.yml +962 -4
- data/lib/locales/es-AR.yml +4603 -0
- data/lib/locales/es.yml +56 -0
- data/lib/locales/fr.yml +0 -118
- data/lib/locales/fr/address.yml +21 -0
- data/lib/locales/fr/book.yml +7 -0
- data/lib/locales/fr/color.yml +4 -0
- data/lib/locales/fr/company.yml +17 -0
- data/lib/locales/fr/compass.yml +23 -0
- data/lib/locales/fr/demographic.yml +4 -0
- data/lib/locales/fr/gender.yml +6 -0
- data/lib/locales/fr/internet.yml +5 -0
- data/lib/locales/fr/lorem.yml +5 -0
- data/lib/locales/fr/measurement.yml +7 -0
- data/lib/locales/fr/name.yml +21 -0
- data/lib/locales/fr/phone_number.yml +7 -0
- data/lib/locales/fr/pokemon.yml +9 -0
- data/lib/locales/id.yml +1 -0
- data/lib/locales/ja/README.md +13 -0
- data/lib/locales/ja/address.yml +17 -0
- data/lib/locales/ja/ancient.yml +4 -0
- data/lib/locales/ja/bank.yml +4 -0
- data/lib/locales/ja/book.yml +7 -0
- data/lib/locales/ja/coffee.yml +4 -0
- data/lib/locales/ja/color.yml +4 -0
- data/lib/locales/ja/commerce.yml +11 -0
- data/lib/locales/ja/company.yml +8 -0
- data/lib/locales/ja/creature.yml +9 -0
- data/lib/locales/ja/food.yml +4 -0
- data/lib/locales/ja/games.yml +18 -0
- data/lib/locales/ja/gender.yml +4 -0
- data/lib/locales/ja/lorem.yml +9 -0
- data/lib/locales/ja/name.yml +13 -0
- data/lib/locales/ja/phone_number.yml +7 -0
- data/lib/locales/ja/restaurant.yml +11 -0
- data/lib/locales/ja/space.yml +5 -0
- data/lib/locales/ja/subscription.yml +8 -0
- data/lib/locales/ja/university.yml +9 -0
- data/lib/locales/pt-BR.yml +2 -1
- data/lib/locales/ru.yml +39 -0
- data/lib/locales/uk.yml +2 -0
- metadata +92 -19
- data/lib/locales/en/hobbit.yml +0 -19
- data/lib/locales/en/lord_of_the_rings.yml +0 -6
- data/lib/locales/ja.yml +0 -101
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class Music
|
5
|
+
class Hiphop < Base
|
6
|
+
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a Hip Hop Artist
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Music::Hiphop.artist #=> "Lil Wayne"
|
14
|
+
#
|
15
|
+
# @faker.version next
|
16
|
+
def artist
|
17
|
+
fetch('hiphop.artist')
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# Produces the name of a Hip Hop Group
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Music::Hiphop.groups #=> "OVO"
|
27
|
+
#
|
28
|
+
# @faker.version next
|
29
|
+
def groups
|
30
|
+
fetch('hiphop.groups')
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# Produces the name of a Hip Hop Subgenre
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# Faker::Music::Hiphop.subgeneres #=> "Alternative"
|
40
|
+
#
|
41
|
+
# @faker.version next
|
42
|
+
def subgenres
|
43
|
+
fetch('hiphop.subgenres')
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/lib/faker/music/music.rb
CHANGED
@@ -128,6 +128,18 @@ module Faker
|
|
128
128
|
def genre
|
129
129
|
fetch('music.genres')
|
130
130
|
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# Produces a name from Lou Bega's Mambo #5
|
134
|
+
#
|
135
|
+
# @return [String]
|
136
|
+
#
|
137
|
+
# @example
|
138
|
+
# Faker::Music.mambo #=> "Monica"
|
139
|
+
# @faker.version next
|
140
|
+
def mambo_no_5
|
141
|
+
fetch('music.mambo_no_5')
|
142
|
+
end
|
131
143
|
end
|
132
144
|
end
|
133
145
|
end
|
data/lib/faker/music/opera.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Faker
|
4
|
-
# A generator of titles of operas by
|
4
|
+
# A generator of titles of operas by various composers
|
5
5
|
class Music
|
6
6
|
class Opera < Base
|
7
7
|
class << self
|
@@ -56,6 +56,242 @@ module Faker
|
|
56
56
|
def bellini
|
57
57
|
fetch('opera.italian.by_vincenzo_bellini')
|
58
58
|
end
|
59
|
+
|
60
|
+
##
|
61
|
+
# Produces the title of an opera by Wolfgang Amadeus Mozart.
|
62
|
+
#
|
63
|
+
# @return [String]
|
64
|
+
#
|
65
|
+
# @example
|
66
|
+
# Faker::Music::Opera.mozart #=> "Die Zauberfloete"
|
67
|
+
#
|
68
|
+
# @faker.version next
|
69
|
+
def mozart
|
70
|
+
fetch('opera.italian.by_wolfgang_amadeus_mozart') +
|
71
|
+
fetch('opera.german.by_wolfgang_amadeus_mozart')
|
72
|
+
end
|
73
|
+
|
74
|
+
##
|
75
|
+
# Produces the title of an Italian opera by Wolfgang Amadeus Mozart.
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @example
|
80
|
+
# Faker::Music::Opera.mozart_it #=> "Cosi fan tutte"
|
81
|
+
#
|
82
|
+
# @faker.version next
|
83
|
+
def mozart_italian
|
84
|
+
fetch('opera.italian.by_wolfgang_amadeus_mozart')
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Produces the title of a German opera by Wolfgang Amadeus Mozart.
|
89
|
+
#
|
90
|
+
# @return [String]
|
91
|
+
#
|
92
|
+
# @example
|
93
|
+
# Faker::Music::Opera.mozart_ger #=> "Die Zauberfloete"
|
94
|
+
#
|
95
|
+
# @faker.version next
|
96
|
+
def mozart_german
|
97
|
+
fetch('opera.german.by_wolfgang_amadeus_mozart')
|
98
|
+
end
|
99
|
+
|
100
|
+
##
|
101
|
+
# Produces the title of an opera by Christoph Willibald Gluck.
|
102
|
+
#
|
103
|
+
# @return [String]
|
104
|
+
#
|
105
|
+
# @example
|
106
|
+
# Faker::Music::Opera.gluck #=> "Orfeo ed Euridice"
|
107
|
+
#
|
108
|
+
# @faker.version next
|
109
|
+
def gluck
|
110
|
+
fetch('opera.italian.by_christoph_willibald_gluck') +
|
111
|
+
fetch('opera.french.by_christoph_willibald_gluck')
|
112
|
+
end
|
113
|
+
|
114
|
+
##
|
115
|
+
# Produces the title of an Italian opera by Christoph Willibald Gluck.
|
116
|
+
#
|
117
|
+
# @return [String]
|
118
|
+
#
|
119
|
+
# @example
|
120
|
+
# Faker::Music::Opera.gluck_it #=> "Orfeo ed Euridice"
|
121
|
+
#
|
122
|
+
# @faker.version next
|
123
|
+
def gluck_italian
|
124
|
+
fetch('opera.italian.by_christoph_willibald_gluck')
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Produces the title of a French opera by Christoph Willibald Gluck.
|
129
|
+
#
|
130
|
+
# @return [String]
|
131
|
+
#
|
132
|
+
# @example
|
133
|
+
# Faker::Music::Opera.gluck_fr #=> "Orphee et Euridice"
|
134
|
+
#
|
135
|
+
# @faker.version next
|
136
|
+
def gluck_french
|
137
|
+
fetch('opera.french.by_christoph_willibald_gluck')
|
138
|
+
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# Produces the title of an opera by Ludwig van Beethoven.
|
142
|
+
#
|
143
|
+
# @return [String]
|
144
|
+
#
|
145
|
+
# @example
|
146
|
+
# Faker::Music::Opera.beethoven #=> "Fidelio"
|
147
|
+
#
|
148
|
+
# @faker.version next
|
149
|
+
def beethoven
|
150
|
+
fetch('opera.german.by_ludwig_van_beethoven')
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# Produces the title of an opera by Carl Maria von Weber.
|
155
|
+
#
|
156
|
+
# @return [String]
|
157
|
+
#
|
158
|
+
# @example
|
159
|
+
# Faker::Music::Opera.weber #=> "Der Freischuetz"
|
160
|
+
#
|
161
|
+
# @faker.version next
|
162
|
+
def weber
|
163
|
+
fetch('opera.german.by_carl_maria_von_weber')
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Produces the title of an opera by Richard Strauss.
|
168
|
+
#
|
169
|
+
# @return [String]
|
170
|
+
#
|
171
|
+
# @example
|
172
|
+
# Faker::Music::Opera.strauss #=> "Elektra"
|
173
|
+
#
|
174
|
+
# @faker.version next
|
175
|
+
def strauss
|
176
|
+
fetch('opera.german.by_richard_strauss')
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# Produces the title of an opera by Richard Wagner.
|
181
|
+
#
|
182
|
+
# @return [String]
|
183
|
+
#
|
184
|
+
# @example
|
185
|
+
# Faker::Music::Opera.wagner #=> "Tristan und Isolde"
|
186
|
+
#
|
187
|
+
# @faker.version next
|
188
|
+
def wagner
|
189
|
+
fetch('opera.german.by_richard_wagner')
|
190
|
+
end
|
191
|
+
|
192
|
+
##
|
193
|
+
# Produces the title of an opera by Robert Schumann.
|
194
|
+
#
|
195
|
+
# @return [String]
|
196
|
+
#
|
197
|
+
# @example
|
198
|
+
# Faker::Music::Opera.schumann #=> "Genoveva"
|
199
|
+
#
|
200
|
+
# @faker.version next
|
201
|
+
def schumann
|
202
|
+
fetch('opera.german.by_robert_schumann')
|
203
|
+
end
|
204
|
+
|
205
|
+
##
|
206
|
+
# Produces the title of an opera by Franz Schubert.
|
207
|
+
#
|
208
|
+
# @return [String]
|
209
|
+
#
|
210
|
+
# @example
|
211
|
+
# Faker::Music::Opera.schubert #=> "Alfonso und Estrella"
|
212
|
+
#
|
213
|
+
# @faker.version next
|
214
|
+
def schubert
|
215
|
+
fetch('opera.german.by_franz_schubert')
|
216
|
+
end
|
217
|
+
|
218
|
+
##
|
219
|
+
# Produces the title of an opera by Alban Berg.
|
220
|
+
#
|
221
|
+
# @return [String]
|
222
|
+
#
|
223
|
+
# @example
|
224
|
+
# Faker::Music::Opera.berg #=> "Wozzeck"
|
225
|
+
#
|
226
|
+
# @faker.version next
|
227
|
+
def berg
|
228
|
+
fetch('opera.german.by_alban_berg')
|
229
|
+
end
|
230
|
+
|
231
|
+
##
|
232
|
+
# Produces the title of an opera by Maurice Ravel.
|
233
|
+
#
|
234
|
+
# @return [String]
|
235
|
+
#
|
236
|
+
# @example
|
237
|
+
# Faker::Music::Opera.ravel #=> "L'enfant et les sortileges"
|
238
|
+
#
|
239
|
+
# @faker.version next
|
240
|
+
def ravel
|
241
|
+
fetch('opera.french.by_maurice_ravel')
|
242
|
+
end
|
243
|
+
|
244
|
+
##
|
245
|
+
# Produces the title of an opera by Hector Berlioz.
|
246
|
+
#
|
247
|
+
# @return [String]
|
248
|
+
#
|
249
|
+
# @example
|
250
|
+
# Faker::Music::Opera.berlioz #=> "Les Troyens"
|
251
|
+
#
|
252
|
+
# @faker.version next
|
253
|
+
def berlioz
|
254
|
+
fetch('opera.french.by_hector_berlioz')
|
255
|
+
end
|
256
|
+
|
257
|
+
##
|
258
|
+
# Produces the title of an opera by Georges Bizet.
|
259
|
+
#
|
260
|
+
# @return [String]
|
261
|
+
#
|
262
|
+
# @example
|
263
|
+
# Faker::Music::Opera.bizet #=> "Carmen"
|
264
|
+
#
|
265
|
+
# @faker.version next
|
266
|
+
def bizet
|
267
|
+
fetch('opera.french.by_georges_bizet')
|
268
|
+
end
|
269
|
+
|
270
|
+
##
|
271
|
+
# Produces the title of an opera by Charles Gounod.
|
272
|
+
#
|
273
|
+
# @return [String]
|
274
|
+
#
|
275
|
+
# @example
|
276
|
+
# Faker::Music::Opera.gounod #=> "Faust"
|
277
|
+
#
|
278
|
+
# @faker.version next
|
279
|
+
def gounod
|
280
|
+
fetch('opera.french.by_charles_gounod')
|
281
|
+
end
|
282
|
+
|
283
|
+
##
|
284
|
+
# Produces the title of an opera by Camille Saint-Saens.
|
285
|
+
#
|
286
|
+
# @return [String]
|
287
|
+
#
|
288
|
+
# @example
|
289
|
+
# Faker::Music::Opera.saint_saens #=> "Samson and Delilah"
|
290
|
+
#
|
291
|
+
# @faker.version next
|
292
|
+
def saint_saens
|
293
|
+
fetch('opera.french.by_camille_saint_saens')
|
294
|
+
end
|
59
295
|
end
|
60
296
|
end
|
61
297
|
end
|
@@ -16,6 +16,18 @@ module Faker
|
|
16
16
|
def name
|
17
17
|
fetch('rock_band.name')
|
18
18
|
end
|
19
|
+
|
20
|
+
# Produces a rock song.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
#
|
24
|
+
# @example
|
25
|
+
# Faker::Music::RockBand.song #=> "Dani California"
|
26
|
+
#
|
27
|
+
# @faker.version next
|
28
|
+
def song
|
29
|
+
fetch('rock_band.song')
|
30
|
+
end
|
19
31
|
end
|
20
32
|
end
|
21
33
|
end
|
data/lib/faker/quotes/quote.rb
CHANGED
@@ -16,6 +16,19 @@ module Faker
|
|
16
16
|
fetch('quote.famous_last_words')
|
17
17
|
end
|
18
18
|
|
19
|
+
##
|
20
|
+
# Produces a quote from Deep Thoughts by Jack Handey.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
#
|
24
|
+
# @example
|
25
|
+
# Faker::Quote.jack_handey # => "I hope life isn't a big joke, because I don't get it."
|
26
|
+
#
|
27
|
+
# @faker.version next
|
28
|
+
def jack_handey
|
29
|
+
fetch('quote.jack_handey')
|
30
|
+
end
|
31
|
+
|
19
32
|
##
|
20
33
|
# Produces a quote from Matz.
|
21
34
|
#
|
@@ -80,6 +93,19 @@ module Faker
|
|
80
93
|
def yoda
|
81
94
|
fetch('quote.yoda')
|
82
95
|
end
|
96
|
+
|
97
|
+
##
|
98
|
+
# Produces a quote from a fortune cookie.
|
99
|
+
#
|
100
|
+
# @return [String]
|
101
|
+
#
|
102
|
+
# @example
|
103
|
+
# Faker::Quote.fortune_cookie #=> "This cookie senses that you are superstitious; it is an inclination that is bad for your mental health."
|
104
|
+
#
|
105
|
+
# @faker.version next
|
106
|
+
def fortune_cookie
|
107
|
+
fetch('quote.fortune_cookie')
|
108
|
+
end
|
83
109
|
end
|
84
110
|
end
|
85
111
|
end
|
@@ -56,18 +56,52 @@ module Faker
|
|
56
56
|
sample(romeo_and_juliet)
|
57
57
|
end
|
58
58
|
|
59
|
+
##
|
60
|
+
# Generates quote from Hamlet
|
61
|
+
#
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
# @example
|
65
|
+
# Faker::Quotes::Shakespeare.hamlet #=> "A little more than kin, and less than kind."
|
66
|
+
#
|
67
|
+
# @faker.version 1.9.2
|
59
68
|
def hamlet
|
60
69
|
fetch('shakespeare.hamlet')
|
61
70
|
end
|
62
71
|
|
72
|
+
##
|
73
|
+
# Generates quote from 'As you like it!'
|
74
|
+
#
|
75
|
+
# @return [String]
|
76
|
+
#
|
77
|
+
# @example
|
78
|
+
# Faker::Quotes::Shakespeare.as_you_like_it #=> "How bitter a thing it is to look into happiness through another man's eyes!"
|
79
|
+
#
|
80
|
+
# @faker.version 1.9.2
|
63
81
|
def as_you_like_it
|
64
82
|
fetch('shakespeare.as_you_like_it')
|
65
83
|
end
|
66
84
|
|
85
|
+
##
|
86
|
+
# Returns quote from 'King Rechard III'
|
87
|
+
#
|
88
|
+
# @return [String]
|
89
|
+
#
|
90
|
+
# @example
|
91
|
+
# Faker::Quotes::Shakespeare #=> "The king's name is a tower of strength."
|
67
92
|
def king_richard_iii
|
68
93
|
fetch('shakespeare.king_richard_iii')
|
69
94
|
end
|
70
95
|
|
96
|
+
##
|
97
|
+
# Quote from 'Romeo and Juliet'
|
98
|
+
#
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @example
|
102
|
+
# Faker::Quotes::Shakespeare.romeo_and_juliet #=> "Wisely and slow; they stumble that run fast."
|
103
|
+
#
|
104
|
+
# @faker.version 1.9.2
|
71
105
|
def romeo_and_juliet
|
72
106
|
fetch('shakespeare.romeo_and_juliet')
|
73
107
|
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Faker
|
4
|
+
class Sports
|
5
|
+
class Volleyball < Base
|
6
|
+
class << self
|
7
|
+
##
|
8
|
+
# Produces the name of a volleyball team.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# Faker::Sports::Volleyball.team #=> "Leo Shoes Modena"
|
14
|
+
#
|
15
|
+
# @faker.version next
|
16
|
+
def team
|
17
|
+
fetch('volleyball.team')
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# Produces the name of a volleyball player.
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# Faker::Sports::Volleyball.player #=> "Saeid Marouf"
|
27
|
+
#
|
28
|
+
# @faker.version next
|
29
|
+
def player
|
30
|
+
fetch('volleyball.player')
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# Produces the name of a volleyball coach.
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# Faker::Sports::Volleyball.coach #=> "Russ Rose"
|
40
|
+
#
|
41
|
+
# @faker.version next
|
42
|
+
def coach
|
43
|
+
fetch('volleyball.coach')
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Produces a position in volleyball.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# Faker::Sports::Volleyball.position #=> "Middle blocker"
|
53
|
+
#
|
54
|
+
# @faker.version next
|
55
|
+
def position
|
56
|
+
fetch('volleyball.position')
|
57
|
+
end
|
58
|
+
|
59
|
+
##
|
60
|
+
# Produces a formation in volleyball.
|
61
|
+
#
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
# @example
|
65
|
+
# Faker::Sports::Volleyball.formation #=> "4-2"
|
66
|
+
#
|
67
|
+
# @faker.version next
|
68
|
+
def formation
|
69
|
+
fetch('volleyball.formation')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|