faker 2.12.0 → 2.16.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 +240 -0
- data/History.md +4 -4
- data/README.md +18 -1
- data/lib/faker.rb +14 -14
- data/lib/faker/blockchain/aeternity.rb +4 -4
- data/lib/faker/blockchain/tezos.rb +28 -0
- data/lib/faker/books/dune.rb +15 -2
- data/lib/faker/books/lovecraft.rb +8 -4
- data/lib/faker/default/address.rb +34 -4
- data/lib/faker/default/app.rb +1 -1
- data/lib/faker/default/avatar.rb +1 -1
- data/lib/faker/default/bank.rb +4 -6
- data/lib/faker/default/barcode.rb +165 -0
- data/lib/faker/default/beer.rb +3 -3
- data/lib/faker/default/blood.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 +47 -3
- data/lib/faker/default/chuck_norris.rb +1 -0
- data/lib/faker/default/code.rb +98 -17
- data/lib/faker/default/commerce.rb +1 -1
- data/lib/faker/default/company.rb +57 -11
- data/lib/faker/default/computer.rb +4 -4
- data/lib/faker/default/date.rb +16 -12
- data/lib/faker/default/driving_licence.rb +26 -2
- data/lib/faker/default/drone.rb +332 -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/gender.rb +1 -1
- data/lib/faker/default/hipster.rb +14 -11
- data/lib/faker/default/id_number.rb +88 -2
- data/lib/faker/default/internet.rb +266 -12
- data/lib/faker/default/internet_http.rb +48 -0
- 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 +67 -7
- data/lib/faker/default/lorem_pixel.rb +23 -0
- data/lib/faker/default/markdown.rb +91 -0
- 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/name.rb +15 -0
- data/lib/faker/default/nhs.rb +19 -0
- data/lib/faker/default/number.rb +6 -8
- data/lib/faker/default/omniauth.rb +62 -14
- data/lib/faker/default/placeholdit.rb +3 -2
- data/lib/faker/default/relationship.rb +1 -1
- 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/vehicle.rb +1 -1
- data/lib/faker/default/world_cup.rb +4 -4
- data/lib/faker/fantasy/tolkien.rb +67 -0
- data/lib/faker/games/clash_of_clans.rb +48 -0
- data/lib/faker/games/control.rb +9 -9
- data/lib/faker/games/dnd.rb +91 -16
- data/lib/faker/games/elder_scrolls.rb +26 -0
- data/lib/faker/games/heroes.rb +13 -0
- data/lib/faker/games/heroes_of_the_storm.rb +16 -5
- data/lib/faker/games/minecraft.rb +113 -0
- data/lib/faker/games/street_fighter.rb +61 -0
- data/lib/faker/games/super_mario.rb +48 -0
- data/lib/faker/games/touhou.rb +75 -0
- data/lib/faker/games/warhammer_fantasy.rb +5 -5
- 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/departed.rb +3 -3
- 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/movie.rb +13 -0
- 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/opera.rb +237 -1
- data/lib/faker/music/pearl_jam.rb +3 -3
- data/lib/faker/music/phish.rb +2 -2
- data/lib/faker/music/prince.rb +64 -0
- data/lib/faker/music/rock_band.rb +12 -0
- data/lib/faker/music/rush.rb +37 -0
- data/lib/faker/music/show.rb +3 -3
- 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/aqua_teen_hunger_force.rb +13 -0
- data/lib/faker/tv_shows/big_bang_theory.rb +37 -0
- data/lib/faker/tv_shows/buffy.rb +17 -4
- data/lib/faker/tv_shows/dr_who.rb +1 -1
- data/lib/faker/tv_shows/final_space.rb +51 -0
- 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 +3 -3
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +17 -4
- data/lib/faker/version.rb +1 -1
- data/lib/helpers/base58.rb +1 -1
- data/lib/helpers/char.rb +20 -26
- data/lib/helpers/unique_generator.rb +3 -2
- data/lib/locales/de-AT.yml +4 -2
- data/lib/locales/de-CH.yml +3 -1
- data/lib/locales/de.yml +4 -2
- data/lib/locales/en-AU.yml +8 -2
- data/lib/locales/en-GB.yml +1 -1
- data/lib/locales/en-IND.yml +2 -1
- data/lib/locales/en-MS.yml +2 -1
- data/lib/locales/en-NEP.yml +4 -1
- data/lib/locales/en-NZ.yml +3 -1
- data/lib/locales/en-PAK.yml +2 -1
- data/lib/locales/en-SG.yml +2 -1
- data/lib/locales/en-US.yml +10 -10
- data/lib/locales/en-au-ocker.yml +2 -1
- data/lib/locales/en.yml +0 -3
- data/lib/locales/en/adjective.yml +179 -0
- data/lib/locales/en/animal.yml +1 -1
- data/lib/locales/en/aqua_teen_hunger_force.yml +33 -1
- data/lib/locales/en/bank.yml +1 -1
- data/lib/locales/en/barcode.yml +24 -0
- data/lib/locales/en/big_bang_theory.yml +38 -0
- 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/dnd.yml +430 -33
- 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 +181 -0
- data/lib/locales/en/drone.yml +95 -0
- data/lib/locales/en/dune.yml +401 -131
- 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/futurama.yml +344 -0
- 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/military.yml +179 -5
- data/lib/locales/en/minecraft.yml +663 -0
- data/lib/locales/en/mountain.yml +158 -0
- data/lib/locales/en/movie.yml +192 -1
- data/lib/locales/en/music.yml +451 -29
- data/lib/locales/en/myst.yml +87 -31
- data/lib/locales/en/name.yml +5 -4
- 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/prince.yml +227 -0
- 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/rush.yml +32 -0
- data/lib/locales/en/simpsons.yml +668 -0
- data/lib/locales/en/source.yml +30 -0
- data/lib/locales/en/star_trek.yml +1 -1
- data/lib/locales/en/star_wars.yml +1 -0
- data/lib/locales/en/street_fighter.yml +1524 -0
- 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/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 +389 -7
- data/lib/locales/en/world_of_warcraft.yml +122 -4
- data/lib/locales/en/zelda.yml +962 -4
- data/lib/locales/es.yml +56 -0
- data/lib/locales/fi-FI.yml +1 -1
- data/lib/locales/fr-CA.yml +19 -5
- data/lib/locales/fr-CH.yml +2 -2
- data/lib/locales/fr.yml +12 -6
- data/lib/locales/id.yml +3 -1
- data/lib/locales/it.yml +2 -1
- data/lib/locales/ja.yml +10 -1
- data/lib/locales/ko.yml +34 -24
- data/lib/locales/nb-NO.yml +4 -2
- data/lib/locales/pt-BR.yml +1 -1
- data/lib/locales/pt.yml +3 -1
- data/lib/locales/ru.yml +3 -1
- data/lib/locales/sk.yml +4 -2
- data/lib/locales/uk.yml +2 -0
- metadata +66 -18
- data/lib/locales/en/hobbit.yml +0 -19
- data/lib/locales/en/lord_of_the_rings.yml +0 -6
@@ -119,7 +119,7 @@ module Faker
|
|
119
119
|
def wookiee_sentence
|
120
120
|
sentence = sample(wookiee_words).capitalize
|
121
121
|
|
122
|
-
rand(0..10).times { sentence +=
|
122
|
+
rand(0..10).times { sentence += " #{sample(wookiee_words)}" }
|
123
123
|
|
124
124
|
sentence + sample(['.', '?', '!'])
|
125
125
|
end
|
@@ -158,37 +158,109 @@ module Faker
|
|
158
158
|
raise ArgumentError, "Character for quotes can be left blank or #{quoted_characters.keys.join(', ')}" unless quoted_characters.key?(character.to_sym)
|
159
159
|
end
|
160
160
|
|
161
|
-
fetch(
|
161
|
+
fetch("star_wars.quotes.#{character}")
|
162
162
|
end
|
163
163
|
|
164
|
+
##
|
165
|
+
# Generates numbers array
|
166
|
+
#
|
167
|
+
# @return [Array]
|
168
|
+
#
|
169
|
+
# @example
|
170
|
+
# Faker::Movies::StarWars.call_numbers #=> ["Leader", "#"]
|
171
|
+
#
|
172
|
+
# @faker.version 1.6.2
|
164
173
|
def call_numbers
|
165
174
|
fetch_all('star_wars.call_numbers')
|
166
175
|
end
|
167
176
|
|
177
|
+
##
|
178
|
+
# Returns squadrons array
|
179
|
+
#
|
180
|
+
# @return [Array]
|
181
|
+
#
|
182
|
+
# @example
|
183
|
+
# Faker::Movies::StarWars.call_squadrons #=> ["Rogue", "Red", "Gray", "Green", "Blue", "Gold", "Black", "Yellow", "Phoenix"]
|
184
|
+
#
|
185
|
+
# @faker.version 1.6.2
|
168
186
|
def call_squadrons
|
169
187
|
fetch_all('star_wars.call_squadrons')
|
170
188
|
end
|
171
189
|
|
190
|
+
##
|
191
|
+
# Returns all character names in movie
|
192
|
+
#
|
193
|
+
# @return [Array]
|
194
|
+
#
|
195
|
+
# @example
|
196
|
+
# Faker::Movies::StarWars.characters
|
197
|
+
#
|
198
|
+
# @faker.version 1.6.2
|
172
199
|
def characters
|
173
200
|
fetch_all('star_wars.characters')
|
174
201
|
end
|
175
202
|
|
203
|
+
##
|
204
|
+
# Returns droid list
|
205
|
+
#
|
206
|
+
# @return [Array]
|
207
|
+
#
|
208
|
+
# @example
|
209
|
+
# Faker::Movies::StarWars.droids
|
210
|
+
#
|
211
|
+
# @faker.versionn 1.6.2
|
176
212
|
def droids
|
177
213
|
fetch_all('star_wars.droids')
|
178
214
|
end
|
179
215
|
|
216
|
+
##
|
217
|
+
# Lists out all planet names
|
218
|
+
#
|
219
|
+
# @return [Array]
|
220
|
+
#
|
221
|
+
# @example
|
222
|
+
# Faker::Movies::StarWars.planets
|
223
|
+
#
|
224
|
+
# @faker.version 1.6.2
|
180
225
|
def planets
|
181
226
|
fetch_all('star_wars.planets')
|
182
227
|
end
|
183
228
|
|
229
|
+
##
|
230
|
+
# Returns name of all species
|
231
|
+
#
|
232
|
+
# @return [Array]
|
233
|
+
#
|
234
|
+
# @example
|
235
|
+
# Faker::Movies::StarWars.species
|
236
|
+
#
|
237
|
+
# @faker.version 1.6.2
|
184
238
|
def species
|
185
239
|
fetch_all('star_wars.species')
|
186
240
|
end
|
187
241
|
|
242
|
+
##
|
243
|
+
# Lists out all vehicles
|
244
|
+
#
|
245
|
+
# @return [Array]
|
246
|
+
#
|
247
|
+
# @example
|
248
|
+
# Faker::Movies::StarWars.vehicles
|
249
|
+
#
|
250
|
+
# @faker.version 1.6.2
|
188
251
|
def vehicles
|
189
252
|
fetch_all('star_wars.vehicles')
|
190
253
|
end
|
191
254
|
|
255
|
+
##
|
256
|
+
# All wookiee words
|
257
|
+
#
|
258
|
+
# @return [Array]
|
259
|
+
#
|
260
|
+
# @example
|
261
|
+
# Faker::Movies::StarWars.wookiee_words
|
262
|
+
#
|
263
|
+
# @faker.version 1.6.2
|
192
264
|
def wookiee_words
|
193
265
|
fetch_all('star_wars.wookiee_words')
|
194
266
|
end
|
@@ -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/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
|
@@ -14,7 +14,7 @@ module Faker
|
|
14
14
|
# @example
|
15
15
|
# Faker::Music::PearlJam.musician #=> "Eddie Vedder"
|
16
16
|
#
|
17
|
-
# @faker.version
|
17
|
+
# @faker.version 2.13.0
|
18
18
|
def musician
|
19
19
|
fetch('pearl_jam.musicians')
|
20
20
|
end
|
@@ -27,7 +27,7 @@ module Faker
|
|
27
27
|
# @example
|
28
28
|
# Faker::Music::PearlJam.album #=> "Ten"
|
29
29
|
#
|
30
|
-
# @faker.version
|
30
|
+
# @faker.version 2.13.0
|
31
31
|
def album
|
32
32
|
fetch('pearl_jam.albums')
|
33
33
|
end
|
@@ -40,7 +40,7 @@ module Faker
|
|
40
40
|
# @example
|
41
41
|
# Faker::Music::PearlJam.song #=> "Even Flow"
|
42
42
|
#
|
43
|
-
# @faker.version
|
43
|
+
# @faker.version 2.13.0
|
44
44
|
def song
|
45
45
|
fetch('pearl_jam.songs')
|
46
46
|
end
|
data/lib/faker/music/phish.rb
CHANGED
@@ -12,7 +12,7 @@ module Faker
|
|
12
12
|
# @example
|
13
13
|
# Faker::Music::Phish.album #=> "Fuego"
|
14
14
|
#
|
15
|
-
# @faker.version
|
15
|
+
# @faker.version 2.13.0
|
16
16
|
def album
|
17
17
|
fetch('phish.albums')
|
18
18
|
end
|
@@ -25,7 +25,7 @@ module Faker
|
|
25
25
|
# @example
|
26
26
|
# Faker::Music::Phish.musician #=> "Trey Anastasio"
|
27
27
|
#
|
28
|
-
# @faker.version
|
28
|
+
# @faker.version 2.13.0
|
29
29
|
def musician
|
30
30
|
fetch('phish.musicians')
|
31
31
|
end
|