faker 3.5.1 → 3.8.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 +251 -7
- data/README.md +78 -393
- data/lib/faker/blockchain/bitcoin.rb +0 -1
- data/lib/faker/blockchain/tezos.rb +0 -1
- data/lib/faker/blockchain.rb +9 -0
- data/lib/faker/books/lovecraft.rb +1 -1
- data/lib/faker/books.rb +9 -0
- data/lib/faker/creature.rb +9 -0
- data/lib/faker/default/avatar.rb +1 -1
- data/lib/faker/default/bank.rb +1 -5
- data/lib/faker/default/boolean.rb +2 -1
- data/lib/faker/default/code.rb +4 -0
- data/lib/faker/default/company.rb +2 -2
- data/lib/faker/default/crypto.rb +0 -2
- data/lib/faker/default/driving_licence.rb +3 -3
- data/lib/faker/default/finance.rb +2 -2
- data/lib/faker/default/hipster.rb +1 -1
- data/lib/faker/default/html.rb +4 -4
- data/lib/faker/default/id_number.rb +1 -1
- data/lib/faker/default/invoice.rb +2 -2
- data/lib/faker/default/json.rb +7 -2
- data/lib/faker/default/lorem.rb +3 -3
- data/lib/faker/default/lorem_flickr.rb +1 -1
- data/lib/faker/default/markdown.rb +5 -5
- data/lib/faker/default/national_health_service.rb +1 -2
- data/lib/faker/default/omniauth.rb +58 -58
- data/lib/faker/default/placeholdit.rb +2 -2
- data/lib/faker/default/string.rb +1 -1
- data/lib/faker/default/types.rb +2 -2
- data/lib/faker/default/x.rb +189 -0
- data/lib/faker/default.rb +9 -0
- data/lib/faker/fantasy.rb +9 -0
- data/lib/faker/games.rb +9 -0
- data/lib/faker/{default/internet.rb → internet.rb} +8 -4
- data/lib/faker/japanese_media.rb +9 -0
- data/lib/faker/locations.rb +9 -0
- data/lib/faker/movies.rb +9 -0
- data/lib/faker/music/bossa_nova.rb +35 -0
- data/lib/faker/music/grateful_dead.rb +0 -2
- data/lib/faker/music/pearl_jam.rb +0 -2
- data/lib/faker/music/rush.rb +0 -2
- data/lib/faker/music/smashing_pumpkins.rb +0 -2
- data/lib/faker/{music/music.rb → music.rb} +4 -0
- data/lib/faker/quotes.rb +9 -0
- data/lib/faker/religion/bible.rb +1 -1
- data/lib/faker/religion.rb +9 -0
- data/lib/faker/sports.rb +9 -0
- data/lib/faker/travel.rb +9 -0
- data/lib/faker/tv_shows.rb +9 -0
- data/lib/faker/version.rb +1 -1
- data/lib/faker.rb +67 -12
- data/lib/helpers/deprecator.rb +1 -1
- data/lib/helpers/positional_generator.rb +0 -2
- data/lib/helpers/unique_generator.rb +1 -1
- data/lib/locales/README.md +2 -2
- data/lib/locales/ar.yml +1606 -49
- data/lib/locales/bg.yml +935 -18
- data/lib/locales/ca-CAT.yml +347 -12
- data/lib/locales/ca.yml +580 -7
- data/lib/locales/de-CH.yml +31 -0
- data/lib/locales/ee.yml +1185 -26
- data/lib/locales/en/adjective.yml +174 -174
- data/lib/locales/en/airport.yml +374 -374
- data/lib/locales/en/ancient.yml +128 -4
- data/lib/locales/en/animal.yml +141 -2
- data/lib/locales/en/app.yml +89 -2
- data/lib/locales/en/appliance.yml +81 -2
- data/lib/locales/en/aqua_teen_hunger_force.yml +31 -31
- data/lib/locales/en/artist.yml +43 -1
- data/lib/locales/en/avatar.yml +54 -28
- data/lib/locales/en/back_to_the_future.yml +145 -117
- data/lib/locales/en/bank.yml +91 -2
- data/lib/locales/en/beer.yml +232 -6
- data/lib/locales/en/bible.yml +3 -6
- data/lib/locales/en/big_bang_theory.yml +34 -35
- data/lib/locales/en/bird.yml +1225 -1226
- data/lib/locales/en/bojack_horseman.yml +63 -3
- data/lib/locales/en/book.yml +0 -1
- data/lib/locales/en/bossa_nova.yml +110 -3
- data/lib/locales/en/breaking_bad.yml +110 -25
- data/lib/locales/en/brooklyn_nine_nine.yml +0 -1
- data/lib/locales/en/buffy.yml +239 -257
- data/lib/locales/en/business.yml +18 -2
- data/lib/locales/en/cannabis.yml +344 -10
- data/lib/locales/en/cat.yml +155 -3
- data/lib/locales/en/chess.yml +2 -3
- data/lib/locales/en/chiquito.yml +60 -61
- data/lib/locales/en/chuck_norris.yml +78 -79
- data/lib/locales/en/clash_of_clan.yml +0 -2
- data/lib/locales/en/code.yml +501 -1
- data/lib/locales/en/coffee.yml +450 -25
- data/lib/locales/en/color.yml +73 -1
- data/lib/locales/en/commerce.yml +117 -23
- data/lib/locales/en/community.yml +55 -30
- data/lib/locales/en/company.yml +1756 -14
- data/lib/locales/en/compass.yml +108 -12
- data/lib/locales/en/conan.yml +0 -2
- data/lib/locales/en/construction.yml +416 -422
- data/lib/locales/en/cosmere.yml +219 -54
- data/lib/locales/en/cowboy_bebop.yml +56 -59
- data/lib/locales/en/culture_series.yml +298 -298
- data/lib/locales/en/currency.yml +358 -3
- data/lib/locales/en/dc_comics.yml +178 -49
- data/lib/locales/en/demographic.yml +215 -215
- data/lib/locales/en/departed.yml +40 -44
- data/lib/locales/en/dessert.yml +78 -3
- data/lib/locales/en/doraemon.yml +278 -280
- data/lib/locales/en/dr_who.yml +468 -93
- data/lib/locales/en/dragon_ball.yml +240 -240
- data/lib/locales/en/dumb_and_dumber.yml +72 -56
- data/lib/locales/en/elder_scrolls.yml +52 -53
- data/lib/locales/en/electrical_components.yml +49 -3
- data/lib/locales/en/esport.yml +58 -5
- data/lib/locales/en/family_guy.yml +54 -4
- data/lib/locales/en/file.yml +108 -9
- data/lib/locales/en/final_space.yml +1 -3
- data/lib/locales/en/finance.yml +1 -1
- data/lib/locales/en/food.yml +1 -1
- data/lib/locales/en/football.yml +121 -5
- data/lib/locales/en/fresh_prince_of_bel_air.yml +119 -70
- data/lib/locales/en/friends.yml +162 -3
- data/lib/locales/en/funny_name.yml +752 -1
- data/lib/locales/en/futurama.yml +7 -15
- data/lib/locales/en/game_of_thrones.yml +2487 -5
- data/lib/locales/en/gender.yml +15 -3
- data/lib/locales/en/ghostbusters.yml +101 -88
- data/lib/locales/en/grateful_dead.yml +47 -45
- data/lib/locales/en/greek_philosophers.yml +44 -23
- data/lib/locales/en/hacker.yml +110 -5
- data/lib/locales/en/hackers.yml +1 -1
- data/lib/locales/en/harry_potter.yml +323 -6
- data/lib/locales/en/hey_arnold.yml +104 -21
- data/lib/locales/en/hipster.yml +203 -1
- data/lib/locales/en/hitchhikers_guide_to_the_galaxy.yml +243 -42
- data/lib/locales/en/hobby.yml +0 -1
- data/lib/locales/en/horse.yml +446 -2
- data/lib/locales/en/house.yml +34 -2
- data/lib/locales/en/how_i_met_your_mother.yml +97 -25
- data/lib/locales/en/how_to_train_your_dragon.yml +0 -1
- data/lib/locales/en/id_number.yml +6 -1
- data/lib/locales/en/industry_segments.yml +188 -4
- data/lib/locales/en/job.yml +98 -7
- data/lib/locales/en/kamen_rider.yml +272 -6
- data/lib/locales/en/kpop.yml +954 -80
- data/lib/locales/en/lebowski.yml +58 -40
- data/lib/locales/en/lorem.yml +1095 -6
- data/lib/locales/en/markdown.yml +12 -2
- data/lib/locales/en/marketing.yml +54 -1
- data/lib/locales/en/measurement.yml +42 -8
- data/lib/locales/en/michael_scott.yml +41 -42
- data/lib/locales/en/movie.yml +188 -176
- data/lib/locales/en/name.yml +6068 -6
- data/lib/locales/en/nato_phonetic_alphabet.yml +27 -1
- data/lib/locales/en/new_girl.yml +35 -37
- data/lib/locales/en/one_piece.yml +359 -6
- data/lib/locales/en/opera.yml +1 -1
- data/lib/locales/en/overwatch.yml +1 -1
- data/lib/locales/en/parks_and_rec.yml +33 -4
- data/lib/locales/en/pearl_jam.yml +207 -207
- data/lib/locales/en/phish.yml +388 -389
- data/lib/locales/en/prince.yml +219 -219
- data/lib/locales/en/princess_bride.yml +48 -2
- data/lib/locales/en/programming_language.yml +753 -3
- data/lib/locales/en/quote.yml +599 -685
- data/lib/locales/en/rajnikanth.yml +74 -74
- data/lib/locales/en/relationship.yml +29 -6
- data/lib/locales/en/restaurant.yml +31 -31
- data/lib/locales/en/rick_and_morty.yml +116 -3
- data/lib/locales/en/rock_band.yml +228 -2
- data/lib/locales/en/rupaul.yml +120 -122
- data/lib/locales/en/seinfeld.yml +110 -3
- data/lib/locales/en/shakespeare.yml +46 -50
- data/lib/locales/en/silicon_valley.yml +122 -50
- data/lib/locales/en/simpsons.yml +897 -691
- data/lib/locales/en/slack_emoji.yml +874 -8
- data/lib/locales/en/space.yml +373 -14
- data/lib/locales/en/star_trek.yml +105 -4
- data/lib/locales/en/star_wars.yml +525 -528
- data/lib/locales/en/stargate.yml +65 -18
- data/lib/locales/en/stranger_thing.yml +31 -33
- data/lib/locales/en/street_fighter.yml +1 -1
- data/lib/locales/en/subscription.yml +47 -5
- data/lib/locales/en/superhero.yml +574 -4
- data/lib/locales/en/sword_art_online.yml +327 -331
- data/lib/locales/en/team.yml +125 -3
- data/lib/locales/en/the_expanse.yml +92 -4
- data/lib/locales/en/the_it_crowd.yml +148 -152
- data/lib/locales/en/the_office.yml +77 -81
- data/lib/locales/en/the_room.yml +35 -35
- data/lib/locales/en/the_thick_of_it.yml +83 -3
- data/lib/locales/en/theater.yml +593 -593
- data/lib/locales/en/tolkien.yml +2 -2
- data/lib/locales/en/touhou.yml +54 -54
- data/lib/locales/en/tron.yml +191 -191
- data/lib/locales/en/twin_peaks.yml +130 -3
- data/lib/locales/en/umphreys_mcgee.yml +266 -1
- data/lib/locales/en/university.yml +15 -2
- data/lib/locales/en/v_for_vendetta.yml +157 -160
- data/lib/locales/en/venture_bros.yml +225 -4
- data/lib/locales/en/verbs.yml +3785 -5
- data/lib/locales/en/volleyball.yml +493 -493
- data/lib/locales/en/warhammer_fantasy.yml +540 -573
- data/lib/locales/en/world_cup.yml +1132 -235
- data/lib/locales/en/yoda.yml +38 -1
- data/lib/locales/en-BORK.yml +104 -1
- data/lib/locales/en-GB.yml +9 -7
- data/lib/locales/en-NG.yml +737 -66
- data/lib/locales/en-PAK.yml +24 -1
- data/lib/locales/en-TH.yml +1 -1
- data/lib/locales/en-UG.yml +374 -76
- data/lib/locales/en-ZA.yml +1394 -13
- data/lib/locales/es-AR.yml +1 -1
- data/lib/locales/es-MX.yml +1907 -40
- data/lib/locales/es.yml +2117 -52
- data/lib/locales/fa.yml +1624 -5
- data/lib/locales/fi-FI.yml +315 -17
- data/lib/locales/fr/address.yml +761 -8
- data/lib/locales/fr/adjective.yml +261 -261
- data/lib/locales/fr/ancient.yml +134 -134
- data/lib/locales/fr/animal.yml +118 -1
- data/lib/locales/fr/appliance.yml +66 -1
- data/lib/locales/fr/book.yml +27 -3
- data/lib/locales/fr/color.yml +31 -1
- data/lib/locales/fr/company.yml +490 -10
- data/lib/locales/fr/compass.yml +58 -10
- data/lib/locales/fr/demographic.yml +3 -1
- data/lib/locales/fr/gender.yml +18 -3
- data/lib/locales/fr/internet.yml +12 -1
- data/lib/locales/fr/lorem.yml +1091 -2
- data/lib/locales/fr/measurement.yml +31 -4
- data/lib/locales/fr/name.yml +1176 -5
- data/lib/locales/fr/phone_number.yml +34 -3
- data/lib/locales/fr/pokemon.yml +417 -3
- data/lib/locales/fr-CA.yml +12 -6
- data/lib/locales/fr-CH.yml +2455 -41
- data/lib/locales/he.yml +255 -9
- data/lib/locales/hy.yml +12 -6
- data/lib/locales/it.yml +12 -6
- data/lib/locales/ja/address.yml +350 -120526
- data/lib/locales/ja/ancient.yml +15 -1
- data/lib/locales/ja/animal.yml +83 -1
- data/lib/locales/ja/artist.yml +46 -0
- data/lib/locales/ja/bank.yml +136 -1
- data/lib/locales/ja/book.yml +492 -3
- data/lib/locales/ja/cat.yml +75 -1
- data/lib/locales/ja/coffee.yml +19 -1
- data/lib/locales/ja/color.yml +32 -1
- data/lib/locales/ja/commerce.yml +98 -6
- data/lib/locales/ja/company.yml +20 -2
- data/lib/locales/ja/dog.yml +335 -2
- data/lib/locales/ja/emotion.yml +1 -3
- data/lib/locales/ja/food.yml +38 -1
- data/lib/locales/ja/gender.yml +3 -1
- data/lib/locales/ja/lorem.yml +1014 -3
- data/lib/locales/ja/name.yml +203 -3
- data/lib/locales/ja/overwatch.yml +33 -1
- data/lib/locales/ja/phone_number.yml +9 -3
- data/lib/locales/ja/pokemon.yml +437 -3
- data/lib/locales/ja/relationship.yml +29 -6
- data/lib/locales/ja/restaurant.yml +74 -3
- data/lib/locales/ja/space.yml +20 -2
- data/lib/locales/ja/subscription.yml +47 -5
- data/lib/locales/ja/super_mario.yml +68 -4
- data/lib/locales/ja/university.yml +15 -2
- data/lib/locales/ja/zelda.yml +15 -1
- data/lib/locales/ko.yml +1 -1
- data/lib/locales/lv.yml +1221 -26
- data/lib/locales/nl.yml +33514 -55
- data/lib/locales/pl.yml +4008 -37
- data/lib/locales/sk.yml +12 -6
- data/lib/locales/sv.yml +639 -49
- data/lib/locales/th.yml +375 -375
- data/lib/locales/tr.yml +77 -18
- data/lib/locales/uk.yml +7 -7
- data/lib/locales/vi.yml +392 -49
- data/lib/locales/zh-CN.yml +540 -19
- data/lib/locales/zh-TW.yml +1030 -15
- metadata +29 -18
- data/lib/faker/default/bossa_nova.rb +0 -33
- data/lib/faker/default/religion.rb +0 -6
- data/lib/faker/default/twitter.rb +0 -207
- /data/lib/faker/{books → default}/book.rb +0 -0
- /data/lib/faker/{games → default}/game.rb +0 -0
- /data/lib/faker/{movies → default}/movie.rb +0 -0
- /data/lib/faker/{quotes → default}/quote.rb +0 -0
- /data/lib/faker/{sports → default}/sport.rb +0 -0
- /data/lib/faker/{default/internet_http.rb → internet/http.rb} +0 -0
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Curtis
|
|
8
8
|
- Vitor Oliveira
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: i18n
|
|
@@ -46,20 +45,23 @@ files:
|
|
|
46
45
|
- README.md
|
|
47
46
|
- bin/faker
|
|
48
47
|
- lib/faker.rb
|
|
48
|
+
- lib/faker/blockchain.rb
|
|
49
49
|
- lib/faker/blockchain/aeternity.rb
|
|
50
50
|
- lib/faker/blockchain/bitcoin.rb
|
|
51
51
|
- lib/faker/blockchain/ethereum.rb
|
|
52
52
|
- lib/faker/blockchain/tezos.rb
|
|
53
|
-
- lib/faker/books
|
|
53
|
+
- lib/faker/books.rb
|
|
54
54
|
- lib/faker/books/culture_series.rb
|
|
55
55
|
- lib/faker/books/dune.rb
|
|
56
56
|
- lib/faker/books/lovecraft.rb
|
|
57
57
|
- lib/faker/books/the_kingkiller_chronicle.rb
|
|
58
|
+
- lib/faker/creature.rb
|
|
58
59
|
- lib/faker/creature/animal.rb
|
|
59
60
|
- lib/faker/creature/bird.rb
|
|
60
61
|
- lib/faker/creature/cat.rb
|
|
61
62
|
- lib/faker/creature/dog.rb
|
|
62
63
|
- lib/faker/creature/horse.rb
|
|
64
|
+
- lib/faker/default.rb
|
|
63
65
|
- lib/faker/default/address.rb
|
|
64
66
|
- lib/faker/default/adjective.rb
|
|
65
67
|
- lib/faker/default/alphanumeric.rb
|
|
@@ -72,8 +74,8 @@ files:
|
|
|
72
74
|
- lib/faker/default/barcode.rb
|
|
73
75
|
- lib/faker/default/beer.rb
|
|
74
76
|
- lib/faker/default/blood.rb
|
|
77
|
+
- lib/faker/default/book.rb
|
|
75
78
|
- lib/faker/default/boolean.rb
|
|
76
|
-
- lib/faker/default/bossa_nova.rb
|
|
77
79
|
- lib/faker/default/business.rb
|
|
78
80
|
- lib/faker/default/camera.rb
|
|
79
81
|
- lib/faker/default/cannabis.rb
|
|
@@ -107,6 +109,7 @@ files:
|
|
|
107
109
|
- lib/faker/default/finance.rb
|
|
108
110
|
- lib/faker/default/food.rb
|
|
109
111
|
- lib/faker/default/funny_name.rb
|
|
112
|
+
- lib/faker/default/game.rb
|
|
110
113
|
- lib/faker/default/gender.rb
|
|
111
114
|
- lib/faker/default/greek_philosophers.rb
|
|
112
115
|
- lib/faker/default/hacker.rb
|
|
@@ -116,8 +119,6 @@ files:
|
|
|
116
119
|
- lib/faker/default/html.rb
|
|
117
120
|
- lib/faker/default/id_number.rb
|
|
118
121
|
- lib/faker/default/industry_segments.rb
|
|
119
|
-
- lib/faker/default/internet.rb
|
|
120
|
-
- lib/faker/default/internet_http.rb
|
|
121
122
|
- lib/faker/default/invoice.rb
|
|
122
123
|
- lib/faker/default/job.rb
|
|
123
124
|
- lib/faker/default/json.rb
|
|
@@ -129,6 +130,7 @@ files:
|
|
|
129
130
|
- lib/faker/default/measurement.rb
|
|
130
131
|
- lib/faker/default/military.rb
|
|
131
132
|
- lib/faker/default/mountain.rb
|
|
133
|
+
- lib/faker/default/movie.rb
|
|
132
134
|
- lib/faker/default/name.rb
|
|
133
135
|
- lib/faker/default/nation.rb
|
|
134
136
|
- lib/faker/default/national_health_service.rb
|
|
@@ -138,14 +140,15 @@ files:
|
|
|
138
140
|
- lib/faker/default/phone_number.rb
|
|
139
141
|
- lib/faker/default/placeholdit.rb
|
|
140
142
|
- lib/faker/default/programming_language.rb
|
|
143
|
+
- lib/faker/default/quote.rb
|
|
141
144
|
- lib/faker/default/relationship.rb
|
|
142
|
-
- lib/faker/default/religion.rb
|
|
143
145
|
- lib/faker/default/restaurant.rb
|
|
144
146
|
- lib/faker/default/science.rb
|
|
145
147
|
- lib/faker/default/slack_emoji.rb
|
|
146
148
|
- lib/faker/default/source.rb
|
|
147
149
|
- lib/faker/default/south_africa.rb
|
|
148
150
|
- lib/faker/default/space.rb
|
|
151
|
+
- lib/faker/default/sport.rb
|
|
149
152
|
- lib/faker/default/string.rb
|
|
150
153
|
- lib/faker/default/stripe.rb
|
|
151
154
|
- lib/faker/default/subscription.rb
|
|
@@ -154,14 +157,16 @@ files:
|
|
|
154
157
|
- lib/faker/default/team.rb
|
|
155
158
|
- lib/faker/default/theater.rb
|
|
156
159
|
- lib/faker/default/time.rb
|
|
157
|
-
- lib/faker/default/twitter.rb
|
|
158
160
|
- lib/faker/default/types.rb
|
|
159
161
|
- lib/faker/default/university.rb
|
|
160
162
|
- lib/faker/default/vehicle.rb
|
|
161
163
|
- lib/faker/default/verb.rb
|
|
162
164
|
- lib/faker/default/vulnerability_identifier.rb
|
|
163
165
|
- lib/faker/default/world_cup.rb
|
|
166
|
+
- lib/faker/default/x.rb
|
|
167
|
+
- lib/faker/fantasy.rb
|
|
164
168
|
- lib/faker/fantasy/tolkien.rb
|
|
169
|
+
- lib/faker/games.rb
|
|
165
170
|
- lib/faker/games/clash_of_clans.rb
|
|
166
171
|
- lib/faker/games/control.rb
|
|
167
172
|
- lib/faker/games/dnd.rb
|
|
@@ -169,7 +174,6 @@ files:
|
|
|
169
174
|
- lib/faker/games/elder_scrolls.rb
|
|
170
175
|
- lib/faker/games/fallout.rb
|
|
171
176
|
- lib/faker/games/final_fantasy_xiv.rb
|
|
172
|
-
- lib/faker/games/game.rb
|
|
173
177
|
- lib/faker/games/half_life.rb
|
|
174
178
|
- lib/faker/games/heroes.rb
|
|
175
179
|
- lib/faker/games/heroes_of_the_storm.rb
|
|
@@ -188,6 +192,9 @@ files:
|
|
|
188
192
|
- lib/faker/games/witcher.rb
|
|
189
193
|
- lib/faker/games/world_of_warcraft.rb
|
|
190
194
|
- lib/faker/games/zelda.rb
|
|
195
|
+
- lib/faker/internet.rb
|
|
196
|
+
- lib/faker/internet/http.rb
|
|
197
|
+
- lib/faker/japanese_media.rb
|
|
191
198
|
- lib/faker/japanese_media/conan.rb
|
|
192
199
|
- lib/faker/japanese_media/cowboy_bebop.rb
|
|
193
200
|
- lib/faker/japanese_media/doraemon.rb
|
|
@@ -198,7 +205,9 @@ files:
|
|
|
198
205
|
- lib/faker/japanese_media/one_piece.rb
|
|
199
206
|
- lib/faker/japanese_media/studio_ghibli.rb
|
|
200
207
|
- lib/faker/japanese_media/sword_art_online.rb
|
|
208
|
+
- lib/faker/locations.rb
|
|
201
209
|
- lib/faker/locations/australia.rb
|
|
210
|
+
- lib/faker/movies.rb
|
|
202
211
|
- lib/faker/movies/avatar.rb
|
|
203
212
|
- lib/faker/movies/back_to_the_future.rb
|
|
204
213
|
- lib/faker/movies/departed.rb
|
|
@@ -210,15 +219,15 @@ files:
|
|
|
210
219
|
- lib/faker/movies/how_to_train_your_dragon.rb
|
|
211
220
|
- lib/faker/movies/lebowski.rb
|
|
212
221
|
- lib/faker/movies/lord_of_the_rings.rb
|
|
213
|
-
- lib/faker/movies/movie.rb
|
|
214
222
|
- lib/faker/movies/princess_bride.rb
|
|
215
223
|
- lib/faker/movies/star_wars.rb
|
|
216
224
|
- lib/faker/movies/the_room.rb
|
|
217
225
|
- lib/faker/movies/tron.rb
|
|
218
226
|
- lib/faker/movies/v_for_vendetta.rb
|
|
227
|
+
- lib/faker/music.rb
|
|
228
|
+
- lib/faker/music/bossa_nova.rb
|
|
219
229
|
- lib/faker/music/grateful_dead.rb
|
|
220
230
|
- lib/faker/music/hiphop.rb
|
|
221
|
-
- lib/faker/music/music.rb
|
|
222
231
|
- lib/faker/music/opera.rb
|
|
223
232
|
- lib/faker/music/pearl_jam.rb
|
|
224
233
|
- lib/faker/music/phish.rb
|
|
@@ -227,19 +236,22 @@ files:
|
|
|
227
236
|
- lib/faker/music/rush.rb
|
|
228
237
|
- lib/faker/music/smashing_pumpkins.rb
|
|
229
238
|
- lib/faker/music/umphreys_mcgee.rb
|
|
239
|
+
- lib/faker/quotes.rb
|
|
230
240
|
- lib/faker/quotes/chiquito.rb
|
|
231
|
-
- lib/faker/quotes/quote.rb
|
|
232
241
|
- lib/faker/quotes/rajnikanth.rb
|
|
233
242
|
- lib/faker/quotes/shakespeare.rb
|
|
243
|
+
- lib/faker/religion.rb
|
|
234
244
|
- lib/faker/religion/bible.rb
|
|
245
|
+
- lib/faker/sports.rb
|
|
235
246
|
- lib/faker/sports/basketball.rb
|
|
236
247
|
- lib/faker/sports/chess.rb
|
|
237
248
|
- lib/faker/sports/football.rb
|
|
238
249
|
- lib/faker/sports/mountaineering.rb
|
|
239
|
-
- lib/faker/sports/sport.rb
|
|
240
250
|
- lib/faker/sports/volleyball.rb
|
|
251
|
+
- lib/faker/travel.rb
|
|
241
252
|
- lib/faker/travel/airport.rb
|
|
242
253
|
- lib/faker/travel/train_station.rb
|
|
254
|
+
- lib/faker/tv_shows.rb
|
|
243
255
|
- lib/faker/tv_shows/aqua_teen_hunger_force.rb
|
|
244
256
|
- lib/faker/tv_shows/archer.rb
|
|
245
257
|
- lib/faker/tv_shows/big_bang_theory.rb
|
|
@@ -556,6 +568,7 @@ files:
|
|
|
556
568
|
- lib/locales/ja/adjective.yml
|
|
557
569
|
- lib/locales/ja/ancient.yml
|
|
558
570
|
- lib/locales/ja/animal.yml
|
|
571
|
+
- lib/locales/ja/artist.yml
|
|
559
572
|
- lib/locales/ja/bank.yml
|
|
560
573
|
- lib/locales/ja/book.yml
|
|
561
574
|
- lib/locales/ja/cat.yml
|
|
@@ -615,7 +628,6 @@ metadata:
|
|
|
615
628
|
documentation_uri: https://rubydoc.info/github/faker-ruby/faker
|
|
616
629
|
yard.run: yri
|
|
617
630
|
rubygems_mfa_required: 'true'
|
|
618
|
-
post_install_message:
|
|
619
631
|
rdoc_options: []
|
|
620
632
|
require_paths:
|
|
621
633
|
- lib
|
|
@@ -623,15 +635,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
623
635
|
requirements:
|
|
624
636
|
- - ">="
|
|
625
637
|
- !ruby/object:Gem::Version
|
|
626
|
-
version: '3.
|
|
638
|
+
version: '3.2'
|
|
627
639
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
628
640
|
requirements:
|
|
629
641
|
- - ">="
|
|
630
642
|
- !ruby/object:Gem::Version
|
|
631
643
|
version: '0'
|
|
632
644
|
requirements: []
|
|
633
|
-
rubygems_version:
|
|
634
|
-
signing_key:
|
|
645
|
+
rubygems_version: 4.0.6
|
|
635
646
|
specification_version: 4
|
|
636
647
|
summary: Easily generate fake data
|
|
637
648
|
test_files: []
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Faker
|
|
4
|
-
class BossaNova < Base
|
|
5
|
-
class << self
|
|
6
|
-
##
|
|
7
|
-
# Produces the name of a bossa nova artist.
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
#
|
|
11
|
-
# @example
|
|
12
|
-
# Faker::BossaNova.artist #=> "Tom Jobin"
|
|
13
|
-
#
|
|
14
|
-
# @faker.version 1.8.3
|
|
15
|
-
def artist
|
|
16
|
-
fetch('bossa_nova.artists')
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
##
|
|
20
|
-
# Produces a bossa nova song.
|
|
21
|
-
#
|
|
22
|
-
# @return [String]
|
|
23
|
-
#
|
|
24
|
-
# @example
|
|
25
|
-
# Faker::BossaNova.song #=> "Chega de Saudade"
|
|
26
|
-
#
|
|
27
|
-
# @faker.version 1.8.3
|
|
28
|
-
def song
|
|
29
|
-
fetch('bossa_nova.songs')
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Faker
|
|
4
|
-
class Twitter < Base
|
|
5
|
-
class << self
|
|
6
|
-
##
|
|
7
|
-
# Produces a random Twitter user.
|
|
8
|
-
#
|
|
9
|
-
# @param include_status [Boolean] Include or exclude user status details
|
|
10
|
-
# @param include_email [Boolean] Include or exclude user email details
|
|
11
|
-
# @return [Hash]
|
|
12
|
-
#
|
|
13
|
-
# @example
|
|
14
|
-
# Faker::Twitter.user #=> {:id=>8821452687517076614, :name=>"Lincoln Paucek", :screen_name=>"cody"...
|
|
15
|
-
# Faker::Twitter.user(include_status: false) # Just get a user object with no embed status
|
|
16
|
-
# Faker::Twitter.user(include_email: true) # Simulate an authenticated user with the email permission
|
|
17
|
-
#
|
|
18
|
-
# @faker.version 1.7.3
|
|
19
|
-
def user(include_status: true, include_email: false)
|
|
20
|
-
user_id = id
|
|
21
|
-
background_image_url = Faker::LoremFlickr.image(size: '600x400')
|
|
22
|
-
profile_image_url = Faker::Avatar.image(slug: user_id, size: '48x48')
|
|
23
|
-
user = {
|
|
24
|
-
id: user_id,
|
|
25
|
-
id_str: user_id.to_s,
|
|
26
|
-
contributors_enabled: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
27
|
-
created_at: created_at,
|
|
28
|
-
default_profile_image: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
29
|
-
default_profile: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
30
|
-
description: Faker::Lorem.sentence,
|
|
31
|
-
entities: user_entities,
|
|
32
|
-
favourites_count: Faker::Number.between(to: 1, from: 100_000),
|
|
33
|
-
follow_request_sent: false,
|
|
34
|
-
followers_count: Faker::Number.between(to: 1, from: 10_000_000),
|
|
35
|
-
following: false,
|
|
36
|
-
friends_count: Faker::Number.between(to: 1, from: 100_000),
|
|
37
|
-
geo_enabled: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
38
|
-
is_translation_enabled: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
39
|
-
is_translator: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
40
|
-
lang: Faker::Address.country_code,
|
|
41
|
-
listed_count: Faker::Number.between(to: 1, from: 1000),
|
|
42
|
-
location: "#{Faker::Address.city}, #{Faker::Address.state_abbr}, #{Faker::Address.country_code}",
|
|
43
|
-
name: Faker::Name.name,
|
|
44
|
-
notifications: false,
|
|
45
|
-
profile_background_color: Faker::Color.hex_color,
|
|
46
|
-
profile_background_image_url_https: background_image_url,
|
|
47
|
-
profile_background_image_url: background_image_url.sub('https://', 'http://'),
|
|
48
|
-
profile_background_tile: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
49
|
-
profile_banner_url: Faker::LoremFlickr.image(size: '1500x500'),
|
|
50
|
-
profile_image_url_https: profile_image_url,
|
|
51
|
-
profile_image_url: profile_image_url.sub('https://', 'http://'),
|
|
52
|
-
profile_link_color: Faker::Color.hex_color,
|
|
53
|
-
profile_sidebar_border_color: Faker::Color.hex_color,
|
|
54
|
-
profile_sidebar_fill_color: Faker::Color.hex_color,
|
|
55
|
-
profile_text_color: Faker::Color.hex_color,
|
|
56
|
-
profile_use_background_image: Faker::Boolean.boolean(true_ratio: 0.4),
|
|
57
|
-
protected: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
58
|
-
screen_name: screen_name,
|
|
59
|
-
statuses_count: Faker::Number.between(to: 1, from: 100_000),
|
|
60
|
-
time_zone: Faker::Address.time_zone,
|
|
61
|
-
url: Faker::Internet.url(host: 'example.com'),
|
|
62
|
-
utc_offset: utc_offset,
|
|
63
|
-
verified: Faker::Boolean.boolean(true_ratio: 0.1)
|
|
64
|
-
}
|
|
65
|
-
user[:status] = Faker::Twitter.status(include_user: false) if include_status
|
|
66
|
-
user[:email] = Faker::Internet.email if include_email
|
|
67
|
-
user
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
##
|
|
71
|
-
# Produces a random Twitter user.
|
|
72
|
-
#
|
|
73
|
-
# @param include_user [Boolean] Include or exclude user details
|
|
74
|
-
# @param include_photo [Boolean] Include or exclude user photo
|
|
75
|
-
# @return [Hash]
|
|
76
|
-
#
|
|
77
|
-
# @example
|
|
78
|
-
# Faker::Twitter.status #=> {:id=>8821452687517076614, :text=>"Ea et laboriosam vel non."...
|
|
79
|
-
# Faker::Twitter.status(include_user: false) # Just get a status object with no embed user
|
|
80
|
-
# Faker::Twitter.status(include_photo: true) # Includes entities for an attached image
|
|
81
|
-
#
|
|
82
|
-
# @faker.version 1.7.3
|
|
83
|
-
def status(include_user: true, include_photo: false)
|
|
84
|
-
status_id = id
|
|
85
|
-
status = {
|
|
86
|
-
id: status_id,
|
|
87
|
-
id_str: status_id.to_s,
|
|
88
|
-
contributors: nil,
|
|
89
|
-
coordinates: nil,
|
|
90
|
-
created_at: created_at,
|
|
91
|
-
entities: status_entities(include_photo: include_photo),
|
|
92
|
-
favorite_count: Faker::Number.between(to: 1, from: 10_000),
|
|
93
|
-
favorited: false,
|
|
94
|
-
geo: nil,
|
|
95
|
-
in_reply_to_screen_name: nil,
|
|
96
|
-
in_reply_to_status_id: nil,
|
|
97
|
-
in_reply_to_user_id_str: nil,
|
|
98
|
-
in_reply_to_user_id: nil,
|
|
99
|
-
is_quote_status: false,
|
|
100
|
-
lang: Faker::Address.country_code,
|
|
101
|
-
nil: nil,
|
|
102
|
-
place: nil,
|
|
103
|
-
possibly_sensitive: Faker::Boolean.boolean(true_ratio: 0.1),
|
|
104
|
-
retweet_count: Faker::Number.between(to: 1, from: 10_000),
|
|
105
|
-
retweeted_status: nil,
|
|
106
|
-
retweeted: false,
|
|
107
|
-
source: "<a href=\"#{Faker::Internet.url(host: 'example.com')}\" rel=\"nofollow\">#{Faker::Company.name}</a>",
|
|
108
|
-
text: Faker::Lorem.sentence,
|
|
109
|
-
truncated: false
|
|
110
|
-
}
|
|
111
|
-
status[:user] = Faker::Twitter.user(include_status: false) if include_user
|
|
112
|
-
status[:text] = "#{status[:text]} #{status[:entities][:media].first[:url]}" if include_photo
|
|
113
|
-
status
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
##
|
|
117
|
-
# Produces a random screen name.
|
|
118
|
-
#
|
|
119
|
-
# @return [String]
|
|
120
|
-
#
|
|
121
|
-
# @example
|
|
122
|
-
# Faker::Twitter.screen_name #=> "audreanne_hackett"
|
|
123
|
-
#
|
|
124
|
-
# @faker.version 1.7.3
|
|
125
|
-
def screen_name
|
|
126
|
-
Faker::Internet.username(specifier: nil, separators: ['_'])[0...20]
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
private
|
|
130
|
-
|
|
131
|
-
def id
|
|
132
|
-
Faker::Number.between(from: 1, to: 9_223_372_036_854_775_807)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
def created_at
|
|
136
|
-
Faker::Date.between(from: '2006-03-21', to: ::Date.today).strftime('%a %b %d %H:%M:%S %z %Y')
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def utc_offset
|
|
140
|
-
Faker::Number.between(to: -43_200, from: 50_400)
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def user_entities
|
|
144
|
-
{
|
|
145
|
-
url: {
|
|
146
|
-
urls: []
|
|
147
|
-
},
|
|
148
|
-
description: {
|
|
149
|
-
urls: []
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
def status_entities(include_photo: false)
|
|
155
|
-
entities = {
|
|
156
|
-
hashtags: [],
|
|
157
|
-
symbols: [],
|
|
158
|
-
user_mentions: [],
|
|
159
|
-
urls: []
|
|
160
|
-
}
|
|
161
|
-
entities[:media] = [photo_entity] if include_photo
|
|
162
|
-
entities
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def photo_entity
|
|
166
|
-
media_url = Faker::LoremFlickr.image(size: '1064x600')
|
|
167
|
-
media_id = id
|
|
168
|
-
{
|
|
169
|
-
id: media_id,
|
|
170
|
-
id_str: media_id.to_s,
|
|
171
|
-
indices: [
|
|
172
|
-
103,
|
|
173
|
-
126
|
|
174
|
-
],
|
|
175
|
-
media_url: media_url.sub('https://', 'http://'),
|
|
176
|
-
media_url_https: media_url,
|
|
177
|
-
url: Faker::Internet.url(host: 'example.com'),
|
|
178
|
-
display_url: 'example.com',
|
|
179
|
-
expanded_url: Faker::Internet.url(host: 'example.com'),
|
|
180
|
-
type: 'photo',
|
|
181
|
-
sizes: {
|
|
182
|
-
medium: {
|
|
183
|
-
w: 1064,
|
|
184
|
-
h: 600,
|
|
185
|
-
resize: 'fit'
|
|
186
|
-
},
|
|
187
|
-
large: {
|
|
188
|
-
w: 1064,
|
|
189
|
-
h: 600,
|
|
190
|
-
resize: 'fit'
|
|
191
|
-
},
|
|
192
|
-
small: {
|
|
193
|
-
w: 680,
|
|
194
|
-
h: 383,
|
|
195
|
-
resize: 'fit'
|
|
196
|
-
},
|
|
197
|
-
thumb: {
|
|
198
|
-
w: 150,
|
|
199
|
-
h: 150,
|
|
200
|
-
resize: 'crop'
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|