faker 1.9.6 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +386 -6
  3. data/README.md +12 -5
  4. data/lib/faker.rb +56 -1
  5. data/lib/faker/blockchain/aeternity.rb +70 -0
  6. data/lib/faker/blockchain/bitcoin.rb +26 -0
  7. data/lib/faker/blockchain/ethereum.rb +10 -0
  8. data/lib/faker/blockchain/tezos.rb +62 -6
  9. data/lib/faker/books/book.rb +36 -0
  10. data/lib/faker/books/culture_series.rb +49 -0
  11. data/lib/faker/books/dune.rb +66 -5
  12. data/lib/faker/books/lovecraft.rb +221 -18
  13. data/lib/faker/creature/animal.rb +10 -1
  14. data/lib/faker/creature/cat.rb +28 -1
  15. data/lib/faker/creature/dog.rb +73 -1
  16. data/lib/faker/creature/horse.rb +19 -1
  17. data/lib/faker/default/address.rb +25 -5
  18. data/lib/faker/default/alphanumeric.rb +58 -9
  19. data/lib/faker/default/app.rb +55 -1
  20. data/lib/faker/default/appliance.rb +18 -0
  21. data/lib/faker/default/artist.rb +9 -0
  22. data/lib/faker/default/avatar.rb +43 -1
  23. data/lib/faker/default/bank.rb +10 -2
  24. data/lib/faker/default/boolean.rb +16 -1
  25. data/lib/faker/default/cannabis.rb +4 -0
  26. data/lib/faker/default/chile_rut.rb +13 -3
  27. data/lib/faker/default/chuck_norris.rb +1 -1
  28. data/lib/faker/default/code.rb +18 -5
  29. data/lib/faker/default/commerce.rb +18 -4
  30. data/lib/faker/default/company.rb +11 -3
  31. data/lib/faker/default/crypto_coin.rb +21 -4
  32. data/lib/faker/default/date.rb +122 -9
  33. data/lib/faker/default/demographic.rb +5 -1
  34. data/lib/faker/default/dessert.rb +27 -0
  35. data/lib/faker/default/device.rb +56 -2
  36. data/lib/faker/default/driving_licence.rb +13 -7
  37. data/lib/faker/default/educator.rb +0 -3
  38. data/lib/faker/default/electrical_components.rb +27 -0
  39. data/lib/faker/default/file.rb +20 -3
  40. data/lib/faker/default/fillmurray.rb +10 -2
  41. data/lib/faker/default/finance.rb +5 -1
  42. data/lib/faker/default/gender.rb +18 -0
  43. data/lib/faker/default/greek_philosophers.rb +18 -0
  44. data/lib/faker/default/hacker.rb +59 -1
  45. data/lib/faker/default/hipster.rb +55 -16
  46. data/lib/faker/default/house.rb +18 -0
  47. data/lib/faker/default/id_number.rb +85 -11
  48. data/lib/faker/default/industry_segments.rb +36 -0
  49. data/lib/faker/default/internet.rb +107 -22
  50. data/lib/faker/default/invoice.rb +16 -3
  51. data/lib/faker/default/json.rb +19 -2
  52. data/lib/faker/default/lorem.rb +91 -20
  53. data/lib/faker/default/lorem_flickr.rb +38 -5
  54. data/lib/faker/default/lorem_pixel.rb +10 -1
  55. data/lib/faker/default/markdown.rb +12 -7
  56. data/lib/faker/default/marketing.rb +9 -0
  57. data/lib/faker/default/measurement.rb +40 -8
  58. data/lib/faker/default/military.rb +45 -0
  59. data/lib/faker/default/name.rb +6 -4
  60. data/lib/faker/default/nation.rb +48 -5
  61. data/lib/faker/default/nato_phonetic_alphabet.rb +9 -0
  62. data/lib/faker/default/nhs.rb +11 -7
  63. data/lib/faker/default/number.rb +202 -30
  64. data/lib/faker/default/omniauth.rb +98 -15
  65. data/lib/faker/default/phone_number.rb +5 -1
  66. data/lib/faker/default/placeholdit.rb +11 -1
  67. data/lib/faker/default/programming_language.rb +18 -0
  68. data/lib/faker/default/relationship.rb +5 -1
  69. data/lib/faker/default/restaurant.rb +54 -2
  70. data/lib/faker/default/science.rb +27 -0
  71. data/lib/faker/default/source.rb +59 -3
  72. data/lib/faker/default/south_africa.rb +1 -1
  73. data/lib/faker/default/space.rb +2 -2
  74. data/lib/faker/default/string.rb +5 -1
  75. data/lib/faker/default/stripe.rb +20 -4
  76. data/lib/faker/default/subscription.rb +45 -0
  77. data/lib/faker/default/superhero.rb +45 -0
  78. data/lib/faker/default/time.rb +133 -8
  79. data/lib/faker/default/twitter.rb +62 -48
  80. data/lib/faker/default/types.rb +29 -7
  81. data/lib/faker/default/vehicle.rb +19 -6
  82. data/lib/faker/default/world_cup.rb +61 -2
  83. data/lib/faker/games/dota.rb +53 -2
  84. data/lib/faker/games/elder_scrolls.rb +73 -1
  85. data/lib/faker/games/fallout.rb +38 -1
  86. data/lib/faker/games/game.rb +27 -0
  87. data/lib/faker/games/half_life.rb +28 -1
  88. data/lib/faker/games/heroes.rb +28 -1
  89. data/lib/faker/games/heroes_of_the_storm.rb +37 -1
  90. data/lib/faker/games/league_of_legends.rb +55 -1
  91. data/lib/faker/games/myst.rb +46 -1
  92. data/lib/faker/games/overwatch.rb +28 -1
  93. data/lib/faker/games/pokemon.rb +28 -1
  94. data/lib/faker/games/sonic_the_hedgehog.rb +28 -1
  95. data/lib/faker/games/super_smash_bros.rb +19 -1
  96. data/lib/faker/games/witcher.rb +55 -1
  97. data/lib/faker/games/world_of_warcraft.rb +19 -1
  98. data/lib/faker/games/zelda.rb +38 -2
  99. data/lib/faker/japanese_media/dragon_ball.rb +10 -1
  100. data/lib/faker/japanese_media/one_piece.rb +55 -1
  101. data/lib/faker/japanese_media/sword_art_online.rb +37 -1
  102. data/lib/faker/movies/back_to_the_future.rb +29 -1
  103. data/lib/faker/movies/ghostbusters.rb +29 -1
  104. data/lib/faker/movies/harry_potter.rb +55 -1
  105. data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +70 -1
  106. data/lib/faker/movies/hobbit.rb +38 -1
  107. data/lib/faker/movies/lebowski.rb +28 -1
  108. data/lib/faker/movies/lord_of_the_rings.rb +29 -1
  109. data/lib/faker/movies/movie.rb +9 -0
  110. data/lib/faker/movies/princess_bride.rb +20 -1
  111. data/lib/faker/movies/star_wars.rb +101 -5
  112. data/lib/faker/movies/v_for_vendetta.rb +30 -1
  113. data/lib/faker/music/grateful_dead.rb +18 -0
  114. data/lib/faker/music/phish.rb +9 -0
  115. data/lib/faker/music/rock_band.rb +9 -0
  116. data/lib/faker/music/umphreys_mcgee.rb +9 -0
  117. data/lib/faker/sports/basketball.rb +36 -0
  118. data/lib/faker/sports/football.rb +45 -0
  119. data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +10 -1
  120. data/lib/faker/tv_shows/bojack_horseman.rb +29 -1
  121. data/lib/faker/tv_shows/breaking_bad.rb +19 -1
  122. data/lib/faker/tv_shows/buffy.rb +46 -1
  123. data/lib/faker/tv_shows/community.rb +20 -1
  124. data/lib/faker/tv_shows/dr_who.rb +79 -3
  125. data/lib/faker/tv_shows/dumb_and_dumber.rb +29 -1
  126. data/lib/faker/tv_shows/family_guy.rb +29 -1
  127. data/lib/faker/tv_shows/friends.rb +28 -1
  128. data/lib/faker/tv_shows/game_of_thrones.rb +47 -1
  129. data/lib/faker/tv_shows/hey_arnold.rb +28 -1
  130. data/lib/faker/tv_shows/how_i_met_your_mother.rb +38 -1
  131. data/lib/faker/tv_shows/michael_scott.rb +14 -1
  132. data/lib/faker/tv_shows/new_girl.rb +20 -1
  133. data/lib/faker/tv_shows/parks_and_rec.rb +19 -1
  134. data/lib/faker/tv_shows/rick_and_morty.rb +29 -1
  135. data/lib/faker/tv_shows/ru_paul.rb +19 -1
  136. data/lib/faker/tv_shows/seinfeld.rb +29 -1
  137. data/lib/faker/tv_shows/silicon_valley.rb +76 -1
  138. data/lib/faker/tv_shows/simpsons.rb +29 -1
  139. data/lib/faker/tv_shows/south_park.rb +20 -1
  140. data/lib/faker/tv_shows/star_trek.rb +37 -1
  141. data/lib/faker/tv_shows/stargate.rb +29 -1
  142. data/lib/faker/tv_shows/stranger_things.rb +20 -1
  143. data/lib/faker/tv_shows/the_expanse.rb +37 -1
  144. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +29 -1
  145. data/lib/faker/tv_shows/the_it_crowd.rb +38 -1
  146. data/lib/faker/tv_shows/the_thick_of_it.rb +29 -1
  147. data/lib/faker/tv_shows/twin_peaks.rb +29 -1
  148. data/lib/faker/tv_shows/venture_bros.rb +39 -1
  149. data/lib/faker/version.rb +1 -1
  150. data/lib/locales/en-CA.yml +2 -1
  151. data/lib/locales/en-IND.yml +1 -1
  152. data/lib/locales/en-TH.yml +360 -0
  153. data/lib/locales/en.yml +4 -1
  154. data/lib/locales/en/address.yml +1 -4
  155. data/lib/locales/en/animal.yml +2 -2
  156. data/lib/locales/en/cannabis.yml +1 -0
  157. data/lib/locales/en/color.yml +1 -1
  158. data/lib/locales/en/dr_who.yml +1 -1
  159. data/lib/locales/en/science.yml +1 -1
  160. data/lib/locales/en/space.yml +1 -1
  161. data/lib/locales/en/super_smash_bros.yml +5 -0
  162. data/lib/locales/fr-CA.yml +1 -1
  163. data/lib/locales/ja.yml +12 -9
  164. data/lib/locales/th.yml +380 -0
  165. data/lib/locales/vi.yml +1 -1
  166. metadata +44 -27
  167. data/lib/faker/default/creature.rb +0 -6
  168. data/lib/faker/default/games.rb +0 -6
  169. data/lib/faker/default/japanese_media.rb +0 -6
  170. data/lib/faker/default/movies.rb +0 -6
  171. data/lib/faker/default/tv_shows.rb +0 -6
  172. data/lib/faker/deprecate/unreleased/football.rb +0 -35
  173. data/lib/faker/deprecate/unreleased/movies/grateful_dead.rb +0 -22
@@ -42,7 +42,7 @@ vi:
42
42
  "Trịnh", "Đinh", "Lâm", "Phùng", "Mai", "Tô", "Trương", "Hà",
43
43
  "Vinh", "Nhung", "Hòa", "Tiến", "Tâm", "Bửu", "Loan", "Hiền", "Hải",
44
44
  "Vân", "Kha", "Minh", "Nhân", "Triệu", "Tuân", "Hữu", "Đức", "Phú", "Khoa",
45
- "Thắgn", "Sơn", "Dung", "Tú", "Trinh", "Thảo", "Sa", "Kim", "Long", "Thi",
45
+ "Thắng", "Sơn", "Dung", "Tú", "Trinh", "Thảo", "Sa", "Kim", "Long", "Thi",
46
46
  "Cường", "Ngọc", "Sinh", "Khang", "Phong", "Thắm", "Thu", "Thủy", "Nhàn"]
47
47
  name:
48
48
  - "#{first_name} #{last_name}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Curtis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-06 00:00:00.000000000 Z
12
+ date: 2019-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -17,28 +17,34 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0.7'
20
+ version: '1.6'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '1.8'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
- version: '0.7'
30
+ version: '1.6'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.8'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: minitest
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
38
  - - '='
33
39
  - !ruby/object:Gem::Version
34
- version: 5.11.3
40
+ version: 5.13.0
35
41
  type: :development
36
42
  prerelease: false
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
45
  - - '='
40
46
  - !ruby/object:Gem::Version
41
- version: 5.11.3
47
+ version: 5.13.0
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: pry
44
50
  requirement: !ruby/object:Gem::Requirement
@@ -59,56 +65,56 @@ dependencies:
59
65
  requirements:
60
66
  - - '='
61
67
  - !ruby/object:Gem::Version
62
- version: 12.3.1
68
+ version: 13.0.0
63
69
  type: :development
64
70
  prerelease: false
65
71
  version_requirements: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - '='
68
74
  - !ruby/object:Gem::Version
69
- version: 12.3.1
75
+ version: 13.0.0
70
76
  - !ruby/object:Gem::Dependency
71
77
  name: rubocop
72
78
  requirement: !ruby/object:Gem::Requirement
73
79
  requirements:
74
80
  - - '='
75
81
  - !ruby/object:Gem::Version
76
- version: 0.59.1
82
+ version: 0.76.0
77
83
  type: :development
78
84
  prerelease: false
79
85
  version_requirements: !ruby/object:Gem::Requirement
80
86
  requirements:
81
87
  - - '='
82
88
  - !ruby/object:Gem::Version
83
- version: 0.59.1
89
+ version: 0.76.0
84
90
  - !ruby/object:Gem::Dependency
85
91
  name: simplecov
86
92
  requirement: !ruby/object:Gem::Requirement
87
93
  requirements:
88
94
  - - '='
89
95
  - !ruby/object:Gem::Version
90
- version: 0.16.1
96
+ version: 0.17.1
91
97
  type: :development
92
98
  prerelease: false
93
99
  version_requirements: !ruby/object:Gem::Requirement
94
100
  requirements:
95
101
  - - '='
96
102
  - !ruby/object:Gem::Version
97
- version: 0.16.1
103
+ version: 0.17.1
98
104
  - !ruby/object:Gem::Dependency
99
105
  name: test-unit
100
106
  requirement: !ruby/object:Gem::Requirement
101
107
  requirements:
102
108
  - - '='
103
109
  - !ruby/object:Gem::Version
104
- version: 3.2.8
110
+ version: 3.3.4
105
111
  type: :development
106
112
  prerelease: false
107
113
  version_requirements: !ruby/object:Gem::Requirement
108
114
  requirements:
109
115
  - - '='
110
116
  - !ruby/object:Gem::Version
111
- version: 3.2.8
117
+ version: 3.3.4
112
118
  - !ruby/object:Gem::Dependency
113
119
  name: timecop
114
120
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +129,20 @@ dependencies:
123
129
  - - '='
124
130
  - !ruby/object:Gem::Version
125
131
  version: 0.9.1
132
+ - !ruby/object:Gem::Dependency
133
+ name: yard
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.20
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: 0.9.20
126
146
  description: 'Faker, a port of Data::Faker from Perl, is used to easily generate fake
127
147
  data: names, addresses, phone numbers, etc.'
128
148
  email:
@@ -139,6 +159,7 @@ files:
139
159
  - README.md
140
160
  - bin/faker
141
161
  - lib/faker.rb
162
+ - lib/faker/blockchain/aeternity.rb
142
163
  - lib/faker/blockchain/bitcoin.rb
143
164
  - lib/faker/blockchain/ethereum.rb
144
165
  - lib/faker/blockchain/tezos.rb
@@ -174,7 +195,6 @@ files:
174
195
  - lib/faker/default/compass.rb
175
196
  - lib/faker/default/construction.rb
176
197
  - lib/faker/default/cosmere.rb
177
- - lib/faker/default/creature.rb
178
198
  - lib/faker/default/crypto.rb
179
199
  - lib/faker/default/crypto_coin.rb
180
200
  - lib/faker/default/currency.rb
@@ -192,7 +212,6 @@ files:
192
212
  - lib/faker/default/finance.rb
193
213
  - lib/faker/default/food.rb
194
214
  - lib/faker/default/funny_name.rb
195
- - lib/faker/default/games.rb
196
215
  - lib/faker/default/gender.rb
197
216
  - lib/faker/default/greek_philosophers.rb
198
217
  - lib/faker/default/hacker.rb
@@ -202,7 +221,6 @@ files:
202
221
  - lib/faker/default/industry_segments.rb
203
222
  - lib/faker/default/internet.rb
204
223
  - lib/faker/default/invoice.rb
205
- - lib/faker/default/japanese_media.rb
206
224
  - lib/faker/default/job.rb
207
225
  - lib/faker/default/json.rb
208
226
  - lib/faker/default/kpop.rb
@@ -213,7 +231,6 @@ files:
213
231
  - lib/faker/default/marketing.rb
214
232
  - lib/faker/default/measurement.rb
215
233
  - lib/faker/default/military.rb
216
- - lib/faker/default/movies.rb
217
234
  - lib/faker/default/name.rb
218
235
  - lib/faker/default/nation.rb
219
236
  - lib/faker/default/nato_phonetic_alphabet.rb
@@ -236,15 +253,12 @@ files:
236
253
  - lib/faker/default/superhero.rb
237
254
  - lib/faker/default/team.rb
238
255
  - lib/faker/default/time.rb
239
- - lib/faker/default/tv_shows.rb
240
256
  - lib/faker/default/twitter.rb
241
257
  - lib/faker/default/types.rb
242
258
  - lib/faker/default/university.rb
243
259
  - lib/faker/default/vehicle.rb
244
260
  - lib/faker/default/verb.rb
245
261
  - lib/faker/default/world_cup.rb
246
- - lib/faker/deprecate/unreleased/football.rb
247
- - lib/faker/deprecate/unreleased/movies/grateful_dead.rb
248
262
  - lib/faker/games/dota.rb
249
263
  - lib/faker/games/elder_scrolls.rb
250
264
  - lib/faker/games/fallout.rb
@@ -340,6 +354,7 @@ files:
340
354
  - lib/locales/en-NZ.yml
341
355
  - lib/locales/en-PAK.yml
342
356
  - lib/locales/en-SG.yml
357
+ - lib/locales/en-TH.yml
343
358
  - lib/locales/en-UG.yml
344
359
  - lib/locales/en-US.yml
345
360
  - lib/locales/en-ZA.yml
@@ -516,18 +531,21 @@ files:
516
531
  - lib/locales/ru.yml
517
532
  - lib/locales/sk.yml
518
533
  - lib/locales/sv.yml
534
+ - lib/locales/th.yml
519
535
  - lib/locales/tr.yml
520
536
  - lib/locales/uk.yml
521
537
  - lib/locales/vi.yml
522
538
  - lib/locales/zh-CN.yml
523
539
  - lib/locales/zh-TW.yml
524
- homepage: https://github.com/stympy/faker
540
+ homepage: https://github.com/faker-ruby/faker
525
541
  licenses:
526
542
  - MIT
527
543
  metadata:
528
- changelog_uri: https://github.com/stympy/faker/blob/master/CHANGELOG.md
529
- source_code_uri: https://github.com/stympy/faker
530
- bug_tracker_uri: https://github.com/stympy/faker/issues
544
+ changelog_uri: https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md
545
+ source_code_uri: https://github.com/faker-ruby/faker
546
+ bug_tracker_uri: https://github.com/faker-ruby/faker/issues
547
+ documentation_uri: https://rubydoc.info/github/faker-ruby/faker/master
548
+ yard.run: yri
531
549
  post_install_message:
532
550
  rdoc_options: []
533
551
  require_paths:
@@ -543,8 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
543
561
  - !ruby/object:Gem::Version
544
562
  version: '0'
545
563
  requirements: []
546
- rubyforge_project:
547
- rubygems_version: 2.7.9
564
+ rubygems_version: 3.0.4
548
565
  signing_key:
549
566
  specification_version: 4
550
567
  summary: Easily generate fake data
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module Creature
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module Games
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module JapaneseMedia
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module Movies
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module TvShows
5
- end
6
- end
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- class Football
5
- class << self
6
- extend Gem::Deprecate
7
-
8
- def team
9
- Faker::Sports::Football.team
10
- end
11
-
12
- def player
13
- Faker::Sports::Football.player
14
- end
15
-
16
- def coach
17
- Faker::Sports::Football.coach
18
- end
19
-
20
- def competition
21
- Faker::Sports::Football.competition
22
- end
23
-
24
- def position
25
- Faker::Sports::Football.position
26
- end
27
-
28
- deprecate :team, 'Faker::Sports::Football.team', 2019, 04
29
- deprecate :player, 'Faker::Sports::Football.player', 2019, 04
30
- deprecate :coach, 'Faker::Sports::Football.coach', 2019, 04
31
- deprecate :competition, 'Faker::Sports::Football.competition', 2019, 04
32
- deprecate :position, 'Faker::Sports::Football.position', 2019, 04
33
- end
34
- end
35
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Faker
4
- module Movies
5
- class GratefulDead < Base
6
- class << self
7
- extend Gem::Deprecate
8
-
9
- def player
10
- Faker::Music::GratefulDead.player
11
- end
12
-
13
- def song
14
- Faker::Music::GratefulDead.song
15
- end
16
-
17
- deprecate :player, 'Faker::Music::GratefulDead.player', 2019, 04
18
- deprecate :song, 'Faker::Music::GratefulDead.song', 2019, 04
19
- end
20
- end
21
- end
22
- end