faker 3.2.0 → 3.5.2
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 +437 -2
- data/README.md +29 -14
- data/lib/faker/books/lovecraft.rb +2 -3
- data/lib/faker/default/address.rb +2 -2
- data/lib/faker/default/alphanumeric.rb +1 -1
- data/lib/faker/default/chile_rut.rb +23 -17
- data/lib/faker/default/code.rb +64 -18
- data/lib/faker/default/company.rb +99 -5
- data/lib/faker/default/crypto.rb +13 -4
- data/lib/faker/default/date.rb +61 -5
- data/lib/faker/default/driving_licence.rb +19 -8
- data/lib/faker/default/finance.rb +2 -2
- data/lib/faker/default/hipster.rb +2 -3
- data/lib/faker/default/html.rb +230 -0
- data/lib/faker/default/id_number.rb +38 -24
- data/lib/faker/default/internet.rb +19 -53
- data/lib/faker/default/invoice.rb +3 -3
- data/lib/faker/default/json.rb +9 -4
- data/lib/faker/default/lorem.rb +6 -3
- data/lib/faker/default/{nhs.rb → national_health_service.rb} +8 -4
- data/lib/faker/default/number.rb +1 -1
- data/lib/faker/default/omniauth.rb +4 -4
- data/lib/faker/default/phone_number.rb +37 -18
- data/lib/faker/default/placeholdit.rb +1 -1
- data/lib/faker/default/south_africa.rb +3 -3
- data/lib/faker/{music/show.rb → default/theater.rb} +8 -8
- data/lib/faker/default/types.rb +5 -6
- data/lib/faker/default/vehicle.rb +23 -11
- data/lib/faker/games/final_fantasy_xiv.rb +73 -0
- data/lib/faker/games/heroes_of_the_storm.rb +0 -11
- data/lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb +10 -10
- data/lib/faker/locations/australia.rb +40 -38
- data/lib/faker/movies/star_wars.rb +1 -1
- data/lib/faker/movies/{room.rb → the_room.rb} +4 -4
- data/lib/faker/music/smashing_pumpkins.rb +64 -0
- data/lib/faker/travel/airport.rb +2 -2
- data/lib/faker/travel/train_station.rb +54 -0
- data/lib/faker/tv_shows/archer.rb +51 -0
- data/lib/faker/tv_shows/buffy.rb +0 -13
- data/lib/faker/tv_shows/dr_who.rb +0 -13
- data/lib/faker/tv_shows/south_park.rb +15 -0
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +0 -13
- data/lib/faker/version.rb +1 -1
- data/lib/faker.rb +20 -8
- data/lib/helpers/deprecator.rb +118 -0
- data/lib/helpers/positional_generator.rb +480 -0
- data/lib/locales/README.md +18 -2
- data/lib/locales/bg.yml +0 -1
- data/lib/locales/da-DK.yml +529 -35
- data/lib/locales/de-AT.yml +3487 -26
- data/lib/locales/de-CH.yml +4359 -12
- data/lib/locales/de.yml +7182 -100
- data/lib/locales/ee.yml +0 -1
- data/lib/locales/en/address.yml +1826 -561
- data/lib/locales/en/archer.yml +75 -0
- data/lib/locales/en/australia.yml +106 -105
- data/lib/locales/en/bank.yml +1 -1
- data/lib/locales/en/cosmere.yml +1 -1
- data/lib/locales/en/dog.yml +262 -7
- data/lib/locales/en/dota.yml +120 -67
- data/lib/locales/en/final_fantasy_xiv.yml +754 -0
- data/lib/locales/en/finance.yml +4 -4
- data/lib/locales/en/food.yml +2 -1
- data/lib/locales/en/{fma_brotherhood.yml → fullmetal_alchemist_brotherhood.yml} +3 -3
- data/lib/locales/en/harry_potter.yml +1 -1
- data/lib/locales/en/id_number.yml +1 -1
- data/lib/locales/en/internet.yml +0 -4
- data/lib/locales/en/minecraft.yml +4 -4
- data/lib/locales/en/music.yml +25 -25
- data/lib/locales/en/opera.yml +1 -1
- data/lib/locales/en/phone_number.yml +78 -3
- data/lib/locales/en/restaurant.yml +1 -1
- data/lib/locales/en/smashing_pumpkins.yml +382 -0
- data/lib/locales/en/south_park.yml +360 -2
- data/lib/locales/en/{room.yml → the_room.yml} +1 -1
- data/lib/locales/en/{show.yml → theater.yml} +1 -1
- data/lib/locales/en/train_station.yml +280 -0
- data/lib/locales/en/vehicle.yml +1 -1
- data/lib/locales/en-AU.yml +718 -47
- data/lib/locales/en-CA.yml +373 -19
- data/lib/locales/en-GB.yml +116 -9
- data/lib/locales/en-IND.yml +1259 -17
- data/lib/locales/en-KE.yml +212 -0
- data/lib/locales/en-MS.yml +364 -18
- data/lib/locales/en-NEP.yml +212 -38
- data/lib/locales/en-NZ.yml +1153 -124
- data/lib/locales/en-PAK.yml +392 -11
- data/lib/locales/en-SG.yml +581 -17
- data/lib/locales/en-US.yml +6914 -74
- data/lib/locales/en-au-ocker.yml +266 -24
- data/lib/locales/es-AR.yml +4569 -4600
- data/lib/locales/es-MX.yml +0 -1
- data/lib/locales/es.yml +0 -1
- data/lib/locales/fr/address.yml +761 -8
- data/lib/locales/fr/internet.yml +0 -1
- data/lib/locales/fr/name.yml +2 -1
- data/lib/locales/fr-CA.yml +2733 -44
- data/lib/locales/fr-CH.yml +0 -1
- data/lib/locales/fr.yml +3 -1
- data/lib/locales/hy.yml +3624 -120
- data/lib/locales/id.yml +839 -12
- data/lib/locales/it.yml +1304 -33
- data/lib/locales/ja/book.yml +492 -3
- data/lib/locales/ja/football.yml +115 -0
- data/lib/locales/ja/lorem.yml +1 -1
- data/lib/locales/ja/sport.yml +130 -0
- data/lib/locales/ja/touhou.yml +466 -0
- data/lib/locales/ko.yml +1361 -21
- data/lib/locales/lt.yml +297 -16
- data/lib/locales/lv.yml +0 -1
- data/lib/locales/nb-NO.yml +518 -30
- data/lib/locales/nl.yml +9 -2
- data/lib/locales/pl.yml +0 -1
- data/lib/locales/pt-BR.yml +8205 -665
- data/lib/locales/pt.yml +844 -45
- data/lib/locales/ru.yml +1353 -70
- data/lib/locales/sk.yml +4410 -44
- data/lib/locales/sv.yml +99 -0
- data/lib/locales/tr.yml +0 -2
- data/lib/locales/uk.yml +1808 -45
- data/lib/locales/zh-CN/bank.yml +17 -0
- metadata +26 -154
- data/History.md +0 -176
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc659ae3f4a2f8e2d7f7fc3a22903c5a1e81138110b8ddeced3b6969ad92e22d
|
4
|
+
data.tar.gz: a0370b7a158c4fe7a40b3a32500e45997cb0fa5b753e507f65cbbebe66523c2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3feb382544da65be21255d723278ef89ba1c470a572267b61c5adb9c4e5b171668356bd30f339be12a735d605722118ad0e6d302b3c3774e987cd76bdc3763
|
7
|
+
data.tar.gz: 031cadfc32e4f3faaf68d971a18cda06caa01a610da3449a4fe3d5fe9c0523979b4426b9fbb699a6a6f2511958223875d783e7b792aebb390a4d871bbbbae59d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,440 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.5.2](https://github.com/faker-ruby/faker/tree/v3.5.2) (2025-07-01)
|
4
|
+
|
5
|
+
Happy Canada Day! 🍁
|
6
|
+
|
7
|
+
This version adds and improves some locales and fixes some bugs.
|
8
|
+
|
9
|
+
Thanks to all contributors!
|
10
|
+
|
11
|
+
### Improvements & Bug fixes
|
12
|
+
* Correct `Faker::Address.city` and `Faker::Address.street_address` for `:fr` locale by @brupla6126 in https://github.com/faker-ruby/faker/pull/3018
|
13
|
+
* fix condominium_fiscal_code generator length from 9 to 11 characters by @FiloSpaTeam in https://github.com/faker-ruby/faker/pull/3037
|
14
|
+
* Add Cell Phone, Default Time Zone and State Abbreviation translation for en-PAK locale by @wonderer007 in https://github.com/faker-ruby/faker/pull/3024
|
15
|
+
* Fix usage docs header indentation by @jaredsmithse in https://github.com/faker-ruby/faker/pull/3049
|
16
|
+
* Fix nl phone format by @klaaspieter in https://github.com/faker-ruby/faker/pull/3050
|
17
|
+
* Fix typo in `ja/book` locale by @thdaraujo in https://github.com/faker-ruby/faker/pull/3062
|
18
|
+
* fix a typo by @jethrodaniel in https://github.com/faker-ruby/faker/pull/3060
|
19
|
+
* Fix typo in `restaurant.yml` by @daniel-nerdgeschoss in https://github.com/faker-ruby/faker/pull/3067
|
20
|
+
* Fix city address with number in `locales/fr/address.yml` by @brupla6126 in https://github.com/faker-ruby/faker/pull/3071
|
21
|
+
* Fix unclosed quote in `locales/en/cosmere.yml` by @bensheldon in https://github.com/faker-ruby/faker/pull/3075
|
22
|
+
* Remove inappropriate word from ja lorem by @se4weed in https://github.com/faker-ruby/faker/pull/3095
|
23
|
+
* Add mountains to de-CH locale by @codez in https://github.com/faker-ruby/faker/pull/3066
|
24
|
+
* Bump i18n from 1.14.6 to 1.14.7 by @dependabot in https://github.com/faker-ruby/faker/pull/3042
|
25
|
+
|
26
|
+
### Chore
|
27
|
+
* ci: run against Ruby 3.4 by @thdaraujo in https://github.com/faker-ruby/faker/pull/3079
|
28
|
+
* Fix Broken CI by @wonderer007 in https://github.com/faker-ruby/faker/pull/3073
|
29
|
+
|
30
|
+
### Update local dependencies
|
31
|
+
* Bump rubocop from 1.67.0 to 1.68.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3020
|
32
|
+
* Bump rubocop from 1.68.0 to 1.69.2 by @dependabot in https://github.com/faker-ruby/faker/pull/3035
|
33
|
+
* Bump rubocop version + offenses fixes by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3053
|
34
|
+
* deps: update dev dependencies by @thdaraujo in https://github.com/faker-ruby/faker/pull/3078
|
35
|
+
* Bump rubocop-minitest and fix rubocop's offense by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3052
|
36
|
+
* Bump rubocop-minitest from 0.38.0 to 0.38.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3088
|
37
|
+
* Bump rubocop-rake from 0.6.0 to 0.7.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3059
|
38
|
+
* deps: bump `rubocop-minitest` from `0.37.1` to `0.38.0`. by @thdaraujo in https://github.com/faker-ruby/faker/pull/3080
|
39
|
+
* Bump minitest from 5.25.1 to 5.25.4 by @dependabot in https://github.com/faker-ruby/faker/pull/3031
|
40
|
+
* Bump test-unit from 3.6.2 to 3.6.7 by @dependabot in https://github.com/faker-ruby/faker/pull/3038
|
41
|
+
* Bump benchmark from 0.3.0 to 0.4.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3021
|
42
|
+
* Bump benchmark from 0.4.0 to 0.4.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3087
|
43
|
+
* Bump pry from 0.14.2 to 0.15.2 by @dependabot in https://github.com/faker-ruby/faker/pull/3039
|
44
|
+
* Bump rake from 13.2.1 to 13.3.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3086
|
45
|
+
* Bump test-unit from 3.6.8 to 3.6.9 by @dependabot in https://github.com/faker-ruby/faker/pull/3096
|
46
|
+
|
47
|
+
### New Contributors
|
48
|
+
* @brupla6126 made their first contribution in https://github.com/faker-ruby/faker/pull/3018
|
49
|
+
* @jaredsmithse made their first contribution in https://github.com/faker-ruby/faker/pull/3049
|
50
|
+
* @klaaspieter made their first contribution in https://github.com/faker-ruby/faker/pull/3050
|
51
|
+
* @jethrodaniel made their first contribution in https://github.com/faker-ruby/faker/pull/3060
|
52
|
+
* @daniel-nerdgeschoss made their first contribution in https://github.com/faker-ruby/faker/pull/3067
|
53
|
+
* @bensheldon made their first contribution in https://github.com/faker-ruby/faker/pull/3075
|
54
|
+
* @se4weed made their first contribution in https://github.com/faker-ruby/faker/pull/3095
|
55
|
+
|
56
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.5.1...v3.5.2
|
57
|
+
|
58
|
+
---------------------------------
|
59
|
+
|
60
|
+
## [v3.5.1](https://github.com/faker-ruby/faker/tree/v3.5.1) (2024-10-18)
|
61
|
+
|
62
|
+
Happy October! 🎃
|
63
|
+
|
64
|
+
This version **drops support for Ruby < 3.0**. We only support one EOL Ruby version at a time. Please upgrade to Ruby 3.0 to update to this and future versions of faker-ruby.
|
65
|
+
|
66
|
+
Besides that, this version removes deprecated generators, fixes some bugs, and adds a Security Policy.
|
67
|
+
|
68
|
+
Thanks to all contributors!
|
69
|
+
|
70
|
+
### Breaking Changes
|
71
|
+
* Drop support for Ruby 2.7 by @tatheerf02 in https://github.com/faker-ruby/faker/pull/3006
|
72
|
+
* Removes deprecated generators by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3014
|
73
|
+
|
74
|
+
The following deprecated generators are being removed. Please use the new generators:
|
75
|
+
|
76
|
+
|
77
|
+
| Deprecated | New |
|
78
|
+
| -------- | ------- |
|
79
|
+
| Faker::TvShows::TheFreshPrinceOfBelAir.celebrity | Faker::TvShows::TheFreshPrinceOfBelAir.actor |
|
80
|
+
| Faker::TvShows::Buffy.celebrity | Faker::TvShows::Buffy.actor |
|
81
|
+
| Faker::TvShows::DrWho.villian | Faker::TvShows::DrWho.villain |
|
82
|
+
| Faker::Games::HeroesOfTheStorm.class | Faker::Games::HeroesOfTheStorm.class_name |
|
83
|
+
| Faker::JapaneseMedia::FmaBrotherhood | Faker::JapaneseMedia::FullmetalAlchemistBrotherhood |
|
84
|
+
| Faker::Show | Faker::Theater |
|
85
|
+
| Faker::Australia | Faker::Locations::Australia |
|
86
|
+
| Faker::IDNumber | Faker::IdNumber |
|
87
|
+
|
88
|
+
### Improvements & Bug fixes
|
89
|
+
* Fix typos by @tagliala in https://github.com/faker-ruby/faker/pull/2982
|
90
|
+
* Fix benchmark:all_methods task by excluding Faker::Deprecator module from benchmark target by @amatsuda in https://github.com/faker-ruby/faker/pull/2988
|
91
|
+
* Add Brazilian Portuguese translations for `Faker::Subscription` by @murichristopher in https://github.com/faker-ruby/faker/pull/2960
|
92
|
+
* Deprecator improvements by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2997
|
93
|
+
* Faker::Alphanumeric.alphanumeric determinism fix by @admtnnr in https://github.com/faker-ruby/faker/pull/2996
|
94
|
+
* Remove CodeClimate badges by @tagliala in https://github.com/faker-ruby/faker/pull/3003
|
95
|
+
* Update Company.logo example url by @dirschn in https://github.com/faker-ruby/faker/pull/3007
|
96
|
+
* fix(music.band): removes leading whitespace by @JeremasPosta in https://github.com/faker-ruby/faker/pull/3015
|
97
|
+
* Create SECURITY.md by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3016
|
98
|
+
|
99
|
+
### Update local dependencies
|
100
|
+
* Bump i18n from 1.14.5 to 1.14.6 by @dependabot in https://github.com/faker-ruby/faker/pull/3005
|
101
|
+
* Bump minitest from 5.24.1 to 5.25.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2991
|
102
|
+
* Bump rubocop-minitest from 0.35.1 to 0.36.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2999
|
103
|
+
* Bump yard from 0.9.36 to 0.9.37 by @dependabot in https://github.com/faker-ruby/faker/pull/3000
|
104
|
+
* Bump rubocop from 1.65.1 to 1.66.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3001
|
105
|
+
|
106
|
+
### New Contributors
|
107
|
+
* @murichristopher made their first contribution in https://github.com/faker-ruby/faker/pull/2960
|
108
|
+
* @admtnnr made their first contribution in https://github.com/faker-ruby/faker/pull/2996
|
109
|
+
* @dirschn made their first contribution in https://github.com/faker-ruby/faker/pull/3007
|
110
|
+
* @tatheerf02 made their first contribution in https://github.com/faker-ruby/faker/pull/3006
|
111
|
+
* @JeremasPosta made their first contribution in https://github.com/faker-ruby/faker/pull/3015
|
112
|
+
|
113
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.4.2...v3.5.1
|
114
|
+
|
115
|
+
--------------------------------------
|
116
|
+
|
117
|
+
## [v3.4.2](https://github.com/faker-ruby/faker/tree/v3.4.2) (2024-07-16)
|
118
|
+
|
119
|
+
Happy July with a new faker-ruby release.
|
120
|
+
|
121
|
+
This version:
|
122
|
+
|
123
|
+
- introduces a breaking change for `Faker::NationalHealthService.british_number` (more details below)
|
124
|
+
- adds translation for some generators
|
125
|
+
- fixes bugs
|
126
|
+
|
127
|
+
### Breaking changes
|
128
|
+
|
129
|
+
The NHS sets aside a range of numbers from 999 000 0000 to 999 999 9999 for test purposes. The old range could
|
130
|
+
produce NHS numbers that were in use by real patients in the UK/England and Wales. In this version, `Faker::NationalHealthService.british_number` uses the test range for creating NHS numbers rather than the previous 400 000 0010 to 499 999 9999 range.
|
131
|
+
|
132
|
+
Breaking change was introduced in "Add test range param to NHS numbers" by @neanias in https://github.com/faker-ruby/faker/pull/2947
|
133
|
+
|
134
|
+
### Improvements & Bug fixes
|
135
|
+
|
136
|
+
* Add Bank and Sport to Swedish locale by @twk-mn in https://github.com/faker-ruby/faker/pull/2961
|
137
|
+
* docs: update with notes about validity for zips by @garrettgregor in https://github.com/faker-ruby/faker/pull/2963
|
138
|
+
* `Faker::Games::Dota` missing quotes and new heroes by @arthurka-o in https://github.com/faker-ruby/faker/pull/2907
|
139
|
+
* Add phone_number.country_code and address.full_address in locale sv by @larkro in https://github.com/faker-ruby/faker/pull/2965
|
140
|
+
* Fix typo by @fynsta in https://github.com/faker-ruby/faker/pull/2968
|
141
|
+
* fix: `Faker::Internet.username` should not generate duplicated punctuation by @thdaraujo in https://github.com/faker-ruby/faker/pull/2970
|
142
|
+
* Update dog breed names for `en-US` locale by @mononoken in https://github.com/faker-ruby/faker/pull/2972
|
143
|
+
* Add `Deprecator.skip_warning?` ability to silence deprecators on tests by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2956
|
144
|
+
|
145
|
+
### Update local dependencies
|
146
|
+
|
147
|
+
* Bump timecop from 0.9.9 to 0.9.10 by @dependabot in https://github.com/faker-ruby/faker/pull/2969
|
148
|
+
* Bump minitest from 5.23.1 to 5.24.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2975
|
149
|
+
* Bump bundler version to `2.4.22` by @thdaraujo in https://github.com/faker-ruby/faker/pull/2978
|
150
|
+
* Bump rubocop from 1.64.1 to 1.65.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2979
|
151
|
+
* Bump rubocop-minitest from 0.35.0 to 0.35.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2980
|
152
|
+
|
153
|
+
### New Contributors
|
154
|
+
* @twk-mn made their first contribution in https://github.com/faker-ruby/faker/pull/2961
|
155
|
+
* @neanias made their first contribution in https://github.com/faker-ruby/faker/pull/2947
|
156
|
+
* @garrettgregor made their first contribution in https://github.com/faker-ruby/faker/pull/2963
|
157
|
+
* @arthurka-o made their first contribution in https://github.com/faker-ruby/faker/pull/2907
|
158
|
+
* @larkro made their first contribution in https://github.com/faker-ruby/faker/pull/2965
|
159
|
+
* @fynsta made their first contribution in https://github.com/faker-ruby/faker/pull/2968
|
160
|
+
* @mononoken made their first contribution in https://github.com/faker-ruby/faker/pull/2972
|
161
|
+
|
162
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v.3.4.1...v3.4.2
|
163
|
+
|
164
|
+
---------------------------------
|
165
|
+
|
166
|
+
## [v3.4.1](https://github.com/faker-ruby/faker/tree/v3.4.1) (2024-05-28)
|
167
|
+
|
168
|
+
### What's changed
|
169
|
+
|
170
|
+
* Performance: Sample arrays instead of performing shuffle and slice by @alextaujenis in https://github.com/faker-ruby/faker/pull/2940
|
171
|
+
* Performance: Reduce the time complexity of `Faker::Crypto` generators by @alextaujenis in https://github.com/faker-ruby/faker/pull/2938
|
172
|
+
* Remove tzinfo dependency by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2952
|
173
|
+
|
174
|
+
### Bug fixes
|
175
|
+
|
176
|
+
* Fix invalid IANA time zone identifier for `Atlantic/Cape_Verde` by @andrelaszlo in https://github.com/faker-ruby/faker/pull/2927
|
177
|
+
* Fix entry in faker.food.ingredients by @matthewmayer in https://github.com/faker-ruby/faker/pull/2933
|
178
|
+
* Docs: add absolute links to CONTRIBUTING from README by @matthewmayer in https://github.com/faker-ruby/faker/pull/2934
|
179
|
+
* Fix: `Faker::Number.hexadecimal` should include characters within the range of `[0-9a-f]` by @alextaujenis in https://github.com/faker-ruby/faker/pull/2942
|
180
|
+
* Username splits names by space and doesn't regex match them by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2950
|
181
|
+
|
182
|
+
### Features
|
183
|
+
|
184
|
+
* Add animals, desserts, foods, hobbies, house, and k-pop translations to the Korean locale file by @connie-feng in https://github.com/faker-ruby/faker/pull/2935
|
185
|
+
* Add adjectives to Korean locale file by @connie-feng in https://github.com/faker-ruby/faker/pull/2930
|
186
|
+
* Add emotions, movies, Pokemon, and Studio Ghibli to the Korean locale by @connie-feng in https://github.com/faker-ruby/faker/pull/2941
|
187
|
+
* Add Japanese translations for `Faker::Sports::Football`. by @yamat47 in https://github.com/faker-ruby/faker/pull/2903
|
188
|
+
|
189
|
+
### Update local dependencies
|
190
|
+
|
191
|
+
* Bump rake from 13.1.0 to 13.2.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2929
|
192
|
+
* Bump i18n from 1.14.4 to 1.14.5 by @dependabot in https://github.com/faker-ruby/faker/pull/2949
|
193
|
+
* Bump minitest from 5.22.3 to 5.23.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2957
|
194
|
+
* Bump rubocop from 1.63.4 to 1.64.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2958
|
195
|
+
|
196
|
+
### New Contributors
|
197
|
+
|
198
|
+
* @connie-feng made their first contribution in https://github.com/faker-ruby/faker/pull/2930
|
199
|
+
* @andrelaszlo made their first contribution in https://github.com/faker-ruby/faker/pull/2927
|
200
|
+
* @matthewmayer made their first contribution in https://github.com/faker-ruby/faker/pull/2933
|
201
|
+
|
202
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.3.1...v.3.4.1
|
203
|
+
|
204
|
+
---------------------------------
|
205
|
+
|
206
|
+
## [v3.3.1](https://github.com/faker-ruby/faker/tree/v3.3.1) (2024-04-02)
|
207
|
+
|
208
|
+
### Bug fixes
|
209
|
+
|
210
|
+
* Fix bug on phone number generator for `en-US` locale caused by incorrect `.yml` file structure by @aprescott in https://github.com/faker-ruby/faker/pull/2924
|
211
|
+
|
212
|
+
### What's Changed
|
213
|
+
|
214
|
+
* Added docs for Deprecator in CONTRIBUTING.md by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2919
|
215
|
+
* Rename Faker::show to Faker::Theater by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2921
|
216
|
+
* renamed nhs to national_health_service by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2923
|
217
|
+
|
218
|
+
### New Contributors
|
219
|
+
* @aprescott made their first contribution in https://github.com/faker-ruby/faker/pull/2924
|
220
|
+
|
221
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.3.0...v3.3.1
|
222
|
+
|
223
|
+
-------------------------
|
224
|
+
|
225
|
+
## [v3.3.0](https://github.com/faker-ruby/faker/tree/v3.3.0) (2024-03-25)
|
226
|
+
|
227
|
+
### Bug Fixes
|
228
|
+
|
229
|
+
* Remove the duplicate method Faker::Commerce.material description by @mmarusyk in https://github.com/faker-ruby/faker/pull/2914
|
230
|
+
|
231
|
+
### Features
|
232
|
+
|
233
|
+
* Add Kenya to supported countries by @AndrewNduati in https://github.com/faker-ruby/faker/pull/2871
|
234
|
+
* Benchmarking loading JSON file vs YML file by @salochara in https://github.com/faker-ruby/faker/pull/2897
|
235
|
+
|
236
|
+
### What's changed
|
237
|
+
|
238
|
+
* Fix/Deprecate `Faker::IDNumber` to `Faker::IdNumber` to be more consistent with other generator's naming convention. by @Jamal-A-Mohamed in https://github.com/faker-ruby/faker/pull/2858
|
239
|
+
* Fix/Deprecate FmaBrotherhood Generator by @kirkkwang in https://github.com/faker-ruby/faker/pull/2856
|
240
|
+
* Fix/Deprecate Faker::Australia to Faker::Locations::Australia by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2869
|
241
|
+
* Add note about EOL dependencies by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2890
|
242
|
+
|
243
|
+
### Update local dependencies
|
244
|
+
|
245
|
+
* Bump test-unit from 3.6.1 to 3.6.2 by @dependabot in https://github.com/faker-ruby/faker/pull/2906
|
246
|
+
* Bump i18n from 1.14.1 to 1.14.4 by @dependabot in https://github.com/faker-ruby/faker/pull/2913
|
247
|
+
* Bump rubocop from 1.60.2 to 1.62.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2916
|
248
|
+
* Bump yard from 0.9.34 to 0.9.36 by @dependabot in https://github.com/faker-ruby/faker/pull/2909
|
249
|
+
* Bump minitest from 5.22.2 to 5.22.3 by @dependabot in https://github.com/faker-ruby/faker/pull/2917
|
250
|
+
|
251
|
+
### New Contributors
|
252
|
+
|
253
|
+
* @AndrewNduati made their first contribution in https://github.com/faker-ruby/faker/pull/2871
|
254
|
+
* @Jamal-A-Mohamed made their first contribution in https://github.com/faker-ruby/faker/pull/2858
|
255
|
+
* @mmarusyk made their first contribution in https://github.com/faker-ruby/faker/pull/2914
|
256
|
+
|
257
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.2.3...v3.3.0
|
258
|
+
|
259
|
+
-------------------------
|
260
|
+
|
261
|
+
## [v3.2.3](https://github.com/faker-ruby/faker/tree/v3.2.3) (2024-01-12)
|
262
|
+
|
263
|
+
### What's Changed
|
264
|
+
|
265
|
+
Happy 2024 with a new faker-ruby release.
|
266
|
+
|
267
|
+
This version includes bug and documentation fixes, and some changes on the contributing guides.
|
268
|
+
|
269
|
+
### faker-ruby is is not accepting new features proposals
|
270
|
+
|
271
|
+
As we [discussed here](https://github.com/orgs/faker-ruby/discussions/2877), we want to improve faker's performance and organization. There hasn't been to many bug reports and most of the open issues are related to performance and confusion around using faker.
|
272
|
+
|
273
|
+
As we have limited time to invest in faker, reviewing _new_ generators and locales prevent us from focusing on the big picture work. With this decision, we hope to make the necessary changes for faker to go to the next level. Please read the Contributing guides for ways to help us get there.
|
274
|
+
|
275
|
+
### Bug fixes
|
276
|
+
* Fix Phone number long number and other updates by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2842
|
277
|
+
* Favor 'The Room' instead of 'Room' by @kirkkwang in https://github.com/faker-ruby/faker/pull/2854
|
278
|
+
* Limit generated Discover cards to 19 digits by @jamie in https://github.com/faker-ruby/faker/pull/2845
|
279
|
+
* Fix Typo in README Link: Update sports.md to sport.md by @hatsu38 in https://github.com/faker-ruby/faker/pull/2859
|
280
|
+
* Fix country names and codes in address by @sudeeptarlekar in https://github.com/faker-ruby/faker/pull/2850
|
281
|
+
* fixed typo for README. Faker::JapaneseMedia::CowboyBebop by @jacoyutorius in https://github.com/faker-ruby/faker/pull/2863
|
282
|
+
* Fix typo in `Faker::Movies::HarryPotter.location` (Castelobruxo) by @leomartins1999 in https://github.com/faker-ruby/faker/pull/2866
|
283
|
+
* Fix flaky spec on `TestFakerFile#test_file_name` by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2868
|
284
|
+
* Update `Internet#username` separator param to match with the example by @AlexandreL0pes in https://github.com/faker-ruby/faker/pull/2882
|
285
|
+
* fix polish bban_pattern by @artur1313 in https://github.com/faker-ruby/faker/pull/2887
|
286
|
+
|
287
|
+
### What's Changed
|
288
|
+
* Add benchmark by @salochara in https://github.com/faker-ruby/faker/pull/2855
|
289
|
+
* Freeze new generator and locales by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2886
|
290
|
+
* Remove deprecate safe_email and free_email methods by @hatsu38 in https://github.com/faker-ruby/faker/pull/2841
|
291
|
+
* Update contribution guidelines and PULL_REQUEST_TEMPLATE by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2878
|
292
|
+
* Remove unmaintained `History.md` by @y-yagi in https://github.com/faker-ruby/faker/pull/2880
|
293
|
+
* Adds Ruby 3.3 to the CI matrix by @m-nakamura145 in https://github.com/faker-ruby/faker/pull/2883
|
294
|
+
|
295
|
+
### Update local dependencies
|
296
|
+
* Bump rubocop from 1.58.0 to 1.59.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2865
|
297
|
+
* Bump rubocop-minitest from 0.34.3 to 0.34.4 by @dependabot in https://github.com/faker-ruby/faker/pull/2884
|
298
|
+
* Bump minitest version by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2889
|
299
|
+
|
300
|
+
### New Contributors
|
301
|
+
* @kirkkwang made their first contribution in https://github.com/faker-ruby/faker/pull/2854
|
302
|
+
* @jamie made their first contribution in https://github.com/faker-ruby/faker/pull/2845
|
303
|
+
* @hatsu38 made their first contribution in https://github.com/faker-ruby/faker/pull/2859
|
304
|
+
* @salochara made their first contribution in https://github.com/faker-ruby/faker/pull/2855
|
305
|
+
* @jacoyutorius made their first contribution in https://github.com/faker-ruby/faker/pull/2863
|
306
|
+
* @leomartins1999 made their first contribution in https://github.com/faker-ruby/faker/pull/2866
|
307
|
+
* @keshavbiswa made their first contribution in https://github.com/faker-ruby/faker/pull/2868
|
308
|
+
* @y-yagi made their first contribution in https://github.com/faker-ruby/faker/pull/2880
|
309
|
+
* @AlexandreL0pes made their first contribution in https://github.com/faker-ruby/faker/pull/2882
|
310
|
+
* @m-nakamura145 made their first contribution in https://github.com/faker-ruby/faker/pull/2883
|
311
|
+
* @artur1313 made their first contribution in https://github.com/faker-ruby/faker/pull/2887
|
312
|
+
|
313
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.2.2...v.3.2.3
|
314
|
+
|
315
|
+
-------------------------
|
316
|
+
|
317
|
+
## [v3.2.2](https://github.com/faker-ruby/faker/tree/v3.2.2) (2023-11-03)
|
318
|
+
|
319
|
+
Happy November with a new faker-ruby release.
|
320
|
+
|
321
|
+
This version:
|
322
|
+
- adds generators
|
323
|
+
- fixes bugs
|
324
|
+
- updates dev and dependencies
|
325
|
+
- updates docs
|
326
|
+
|
327
|
+
### Features
|
328
|
+
* feat: add danish country code by @hoshy in https://github.com/faker-ruby/faker/pull/2818
|
329
|
+
* Add `zh-CN` translations for Bank names by @guxiaobai in https://github.com/faker-ruby/faker/pull/2840
|
330
|
+
* Add Code Scanning by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2835
|
331
|
+
* Add Japanese for Games Touhou by @shiroemons in https://github.com/faker-ruby/faker/pull/2829
|
332
|
+
* Added Faker::Company.indian_gst_number fixed #2823 by @ankitkhadria in https://github.com/faker-ruby/faker/pull/2825
|
333
|
+
* Adds Smashing Pumpkins to the Music module by @redconfetti in https://github.com/faker-ruby/faker/pull/2817
|
334
|
+
|
335
|
+
### Bug fixes
|
336
|
+
* Delete doc/default/michael_scott.md by @jmromer in https://github.com/faker-ruby/faker/pull/2837
|
337
|
+
* Fix typo in `lib/locales/README.md` by @BelaBartok39 in https://github.com/faker-ruby/faker/pull/2812
|
338
|
+
|
339
|
+
### What's Changed
|
340
|
+
* Update contributing and maintaining guides by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2836
|
341
|
+
* Changed tests from x.times loop to deterministically_verify helper. #2813 issue by @fernandomenolli in https://github.com/faker-ruby/faker/pull/2816
|
342
|
+
* Improve `#deterministically_verify` helper by @erichmachado in https://github.com/faker-ruby/faker/pull/2828
|
343
|
+
|
344
|
+
### Update local dependencies
|
345
|
+
* Bump minitest from 5.19.0 to 5.20.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2826
|
346
|
+
* Bump rake from 13.0.6 to 13.1.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2846
|
347
|
+
* Bump rubocop-minitest from 0.32.2 to 0.33.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2843
|
348
|
+
* Bump rubocop from 1.57.1 to 1.57.2 by @dependabot in https://github.com/faker-ruby/faker/pull/2844
|
349
|
+
* Bump timecop from 0.9.6 to 0.9.8 by @dependabot in https://github.com/faker-ruby/faker/pull/2811
|
350
|
+
|
351
|
+
### New Contributors
|
352
|
+
* @BelaBartok39 made their first contribution in https://github.com/faker-ruby/faker/pull/2812
|
353
|
+
* @fernandomenolli made their first contribution in https://github.com/faker-ruby/faker/pull/2816
|
354
|
+
* @hoshy made their first contribution in https://github.com/faker-ruby/faker/pull/2818
|
355
|
+
* @shiroemons made their first contribution in https://github.com/faker-ruby/faker/pull/2829
|
356
|
+
* @erichmachado made their first contribution in https://github.com/faker-ruby/faker/pull/2828
|
357
|
+
* @jmromer made their first contribution in https://github.com/faker-ruby/faker/pull/2837
|
358
|
+
* @guxiaobai made their first contribution in https://github.com/faker-ruby/faker/pull/2840
|
359
|
+
* @redconfetti made their first contribution in https://github.com/faker-ruby/faker/pull/2817
|
360
|
+
* @ankitkhadria made their first contribution in https://github.com/faker-ruby/faker/pull/2825
|
361
|
+
|
362
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.2.1...v3.2.2
|
363
|
+
|
364
|
+
-------------------------
|
365
|
+
|
366
|
+
## [v3.2.1](https://github.com/faker-ruby/faker/tree/v3.2.1) (2023-08-11)
|
367
|
+
|
368
|
+
Happy August with a new Faker release! 🎉
|
369
|
+
|
370
|
+
This version:
|
371
|
+
|
372
|
+
- adds generators
|
373
|
+
- fixes bugs
|
374
|
+
- updates dev dependencies
|
375
|
+
|
376
|
+
This version fixes a bug with setting the locale in multi-threaded environments. It's now possible to set the locale per thread. For more details, see [How to set the default locale for in threaded server environments](https://github.com/faker-ruby/faker/blob/main/lib/locales/README.md#how-to-set-the-default-locale-for-in-threaded-server-environments).
|
377
|
+
|
378
|
+
Other changes included in this version:
|
379
|
+
|
380
|
+
## Features
|
381
|
+
* Add Final Fantasy XIV by @old-dead-account in https://github.com/faker-ruby/faker/pull/2742
|
382
|
+
* Add the Ukrainian country calling code by @kyrylo in https://github.com/faker-ruby/faker/pull/2758
|
383
|
+
* Add `exclude_words` filter to `Faker::Lorem.word` generator by @geophilusd in https://github.com/faker-ruby/faker/pull/2761
|
384
|
+
* Add Japanese translations for Sports category. by @yamat47 in https://github.com/faker-ruby/faker/pull/2770
|
385
|
+
* Add type support for Faker::Types.rb_array by @ruban-thilak in https://github.com/faker-ruby/faker/pull/2771
|
386
|
+
* Added Archer into tv category. by @lepari23 in https://github.com/faker-ruby/faker/pull/2750
|
387
|
+
* Add train station generator by @AngusDSR in https://github.com/faker-ruby/faker/pull/2755
|
388
|
+
* Add custom start date for `Faker::Date.forward` by @luciagirasoles in https://github.com/faker-ruby/faker/pull/2791
|
389
|
+
* Add `max_rut` option to `Faker::ChileRut.rut` by @hacktivista in https://github.com/faker-ruby/faker/pull/2778
|
390
|
+
* Add Faker::Date.day_of_week_between by @aramvisser in https://github.com/faker-ruby/faker/pull/2713
|
391
|
+
* Html generator for Faker by @ruban-thilak in https://github.com/faker-ruby/faker/pull/2769
|
392
|
+
|
393
|
+
## Bug fixes
|
394
|
+
* Fix locale setting by @mateusdeap in https://github.com/faker-ruby/faker/pull/2734
|
395
|
+
* add tests for password and fix an edge case by @DeepakRaj228 in https://github.com/faker-ruby/faker/pull/2741
|
396
|
+
* Remove broken chars from minecraft.yml by @ujihisa in https://github.com/faker-ruby/faker/pull/2765
|
397
|
+
* Fix flaky specs for `name` and `id` by @ruban-thilak in https://github.com/faker-ruby/faker/pull/2782
|
398
|
+
* Fixes `Faker::Music::Opera.saint_saens` issue by @devashishTaneja in https://github.com/faker-ruby/faker/pull/2792
|
399
|
+
* Fix flaky specs for dota `test_player` by @ruban-thilak in https://github.com/faker-ruby/faker/pull/2798
|
400
|
+
* Add prefixes to french name locale (`Faker::Name.name`) by @thdaraujo in https://github.com/faker-ruby/faker/pull/2800
|
401
|
+
|
402
|
+
## What's Changed
|
403
|
+
* Introduce PositionalGenerator by @mike-burns in https://github.com/faker-ruby/faker/pull/2710
|
404
|
+
* Update South Park by @IvanReyesO7 in https://github.com/faker-ruby/faker/pull/2744
|
405
|
+
* Speed up Internet::Password generation using constants by @MicBruz in https://github.com/faker-ruby/faker/pull/2725
|
406
|
+
* Improve de-CH locale with new formats and content by @stefnnn in https://github.com/faker-ruby/faker/pull/2768
|
407
|
+
|
408
|
+
## Update local dependencies
|
409
|
+
* Bump rubocop from 1.55.1 to 1.56.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2807
|
410
|
+
* Update test-unit requirement from = 3.5.9 to = 3.6.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2788
|
411
|
+
* Bump i18n from 1.12.0 to 1.13.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2756
|
412
|
+
* Update rubocop-minitest requirement from = 0.30.0 to = 0.31.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2759
|
413
|
+
* Bump minitest from 5.18.1 to 5.19.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2804
|
414
|
+
|
415
|
+
### New Contributors
|
416
|
+
* @old-dead-account made their first contribution in https://github.com/faker-ruby/faker/pull/2742
|
417
|
+
* @IvanReyesO7 made their first contribution in https://github.com/faker-ruby/faker/pull/2744
|
418
|
+
* @DeepakRaj228 made their first contribution in https://github.com/faker-ruby/faker/pull/2741
|
419
|
+
* @MicBruz made their first contribution in https://github.com/faker-ruby/faker/pull/2725
|
420
|
+
* @kyrylo made their first contribution in https://github.com/faker-ruby/faker/pull/2758
|
421
|
+
* @ujihisa made their first contribution in https://github.com/faker-ruby/faker/pull/2765
|
422
|
+
* @geophilusd made their first contribution in https://github.com/faker-ruby/faker/pull/2761
|
423
|
+
* @stefnnn made their first contribution in https://github.com/faker-ruby/faker/pull/2768
|
424
|
+
* @yamat47 made their first contribution in https://github.com/faker-ruby/faker/pull/2770
|
425
|
+
* @ruban-thilak made their first contribution in https://github.com/faker-ruby/faker/pull/2782
|
426
|
+
* @lepari23 made their first contribution in https://github.com/faker-ruby/faker/pull/2750
|
427
|
+
* @AngusDSR made their first contribution in https://github.com/faker-ruby/faker/pull/2755
|
428
|
+
* @devashishTaneja made their first contribution in https://github.com/faker-ruby/faker/pull/2792
|
429
|
+
* @mike-burns made their first contribution in https://github.com/faker-ruby/faker/pull/2710
|
430
|
+
* @hacktivista made their first contribution in https://github.com/faker-ruby/faker/pull/2778
|
431
|
+
* @mateusdeap made their first contribution in https://github.com/faker-ruby/faker/pull/2734
|
432
|
+
* @aramvisser made their first contribution in https://github.com/faker-ruby/faker/pull/2713
|
433
|
+
|
434
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.2.0...v3.2.1
|
435
|
+
|
436
|
+
-------------------------
|
437
|
+
|
3
438
|
## [v3.2.0](https://github.com/faker-ruby/faker/tree/v3.2.0) (2023-04-14)
|
4
439
|
|
5
440
|
Happy Spring with a new Faker release! 🌼
|
@@ -44,7 +479,7 @@ Other changes included in this version:
|
|
44
479
|
* Add Faker::Company.department generator by @acuppy in https://github.com/faker-ruby/faker/pull/2737
|
45
480
|
* Update Pull Request template and guides by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2749
|
46
481
|
|
47
|
-
|
482
|
+
### New Contributors
|
48
483
|
* @lexisvar made their first contribution in https://github.com/faker-ruby/faker/pull/2699
|
49
484
|
* @danieldiekmeier made their first contribution in https://github.com/faker-ruby/faker/pull/2700
|
50
485
|
* @AaronRustad made their first contribution in https://github.com/faker-ruby/faker/pull/2706
|
@@ -2228,7 +2663,7 @@ Fix lib/faker/version.rb
|
|
2228
2663
|
- Fixed typo in dutch translation [\#679](https://github.com/stympy/faker/pull/679) ([nschmoller](https://github.com/nschmoller))
|
2229
2664
|
- Add pokemon [\#677](https://github.com/stympy/faker/pull/677) ([bakunyo](https://github.com/bakunyo))
|
2230
2665
|
- Food [\#672](https://github.com/stympy/faker/pull/672) ([martymclaugh](https://github.com/martymclaugh))
|
2231
|
-
- Added
|
2666
|
+
- Added characters and houses data for game of thrones in en.yml [\#670](https://github.com/stympy/faker/pull/670) ([vamsipavanmahesh](https://github.com/vamsipavanmahesh))
|
2232
2667
|
- add Faker::Commerce.promotion\_code [\#669](https://github.com/stympy/faker/pull/669) ([jGRUBBS](https://github.com/jGRUBBS))
|
2233
2668
|
- Eliminate and prevent leading and trailing white space [\#665](https://github.com/stympy/faker/pull/665) ([retroGiant89](https://github.com/retroGiant89))
|
2234
2669
|
- Fix for memory overflow error Issue: \#478 [\#664](https://github.com/stympy/faker/pull/664) ([anuj-verma](https://github.com/anuj-verma))
|
data/README.md
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
[](https://github.com/faker-ruby/faker/actions?query=workflow%3ATests)
|
5
5
|
[](https://badge.fury.io/rb/faker)
|
6
6
|
[](https://inch-ci.org/github/faker-ruby/faker)
|
7
|
-
[](https://codeclimate.com/github/stympy/faker/test_coverage)
|
8
|
-
[](https://codeclimate.com/github/stympy/faker/maintainability)
|
9
7
|
|
10
8
|
Faker is a port of [Perl's Data::Faker library](https://metacpan.org/pod/Data::Faker).
|
11
9
|
It's a library for generating fake data such as names, addresses, and phone numbers.
|
@@ -14,7 +12,7 @@ Faker helps you generate realistic test data, and populate your
|
|
14
12
|
database with more than a couple of records while you're doing development.
|
15
13
|
|
16
14
|
It comes in very handy for taking screenshots (taking screenshots for a personal project)
|
17
|
-
and it was the original impetus for the creation of this gem
|
15
|
+
and it was the original impetus for the creation of this gem.
|
18
16
|
|
19
17
|
## Quick links
|
20
18
|
|
@@ -24,6 +22,14 @@ and it was the original impetus for the creation of this gem).
|
|
24
22
|
[rubydocs]: https://www.rubydoc.info/gems/faker/
|
25
23
|
[changelog]: CHANGELOG.md
|
26
24
|
|
25
|
+
## In the media
|
26
|
+
|
27
|
+
- 📰 [With Great Humor Comes Great Developer Engagement] - KTH Royal Institute of Technology research
|
28
|
+
- 🎧 [Computer und Kommunikation 4.5.2024, komplette Sendung] - Deutschland Funk Radio Interview
|
29
|
+
|
30
|
+
[With Great Humor Comes Great Developer Engagement]: https://arxiv.org/pdf/2312.01680
|
31
|
+
[Computer und Kommunikation 4.5.2024, komplette Sendung]: https://www.deutschlandfunk.de/computer-und-kommunikation-4-5-2024-komplette-sendung-dlf-16492b03-100.html
|
32
|
+
|
27
33
|
## Table of Contents
|
28
34
|
|
29
35
|
- [Faker](#faker)
|
@@ -32,7 +38,7 @@ and it was the original impetus for the creation of this gem).
|
|
32
38
|
- [Notes](#notes)
|
33
39
|
- [Getting Started](#getting-started)
|
34
40
|
- [Usage](#usage)
|
35
|
-
|
41
|
+
- [A note about the Generators versions](#a-note-about-the-generators-versions)
|
36
42
|
- [Ensuring unique values](#ensuring-unique-values)
|
37
43
|
- [Deterministic Random](#deterministic-random)
|
38
44
|
- [Customization](#customization)
|
@@ -83,7 +89,7 @@ Faker::ProgrammingLanguage.name #=> "Ruby"
|
|
83
89
|
|
84
90
|
For a complete list of the generators, see [Generators](#generators).
|
85
91
|
|
86
|
-
|
92
|
+
### A note about the Generators versions
|
87
93
|
|
88
94
|
If you get a `uninitialized constant Faker::[some_class]` error, your version of
|
89
95
|
the gem is behind main.
|
@@ -169,9 +175,7 @@ Faker::Config.locale = 'es'
|
|
169
175
|
Faker::Config.locale = :es
|
170
176
|
```
|
171
177
|
|
172
|
-
|
173
|
-
|
174
|
-
To override Faker's locales,
|
178
|
+
To override Faker's locales, and set it on threaded server environments
|
175
179
|
check out the [locales README](lib/locales/README.md).
|
176
180
|
|
177
181
|
### Minitest and Faker >= 2.22
|
@@ -250,7 +254,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
250
254
|
- [Faker::Hipster](doc/default/hipster.md)
|
251
255
|
- [Faker::Hobby](doc/default/hobby.md)
|
252
256
|
- [Faker::House](doc/default/house.md)
|
253
|
-
- [Faker::
|
257
|
+
- [Faker::IdNumber](doc/default/id_number.md)
|
254
258
|
- [Faker::IndustrySegments](doc/default/industry_segments.md)
|
255
259
|
- [Faker::Internet](doc/default/internet.md)
|
256
260
|
- [Faker::Invoice](doc/default/invoice.md)
|
@@ -286,6 +290,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
286
290
|
- [Faker::Superhero](doc/default/superhero.md)
|
287
291
|
- [Faker::Tea](doc/default/tea.md)
|
288
292
|
- [Faker::Team](doc/default/team.md)
|
293
|
+
- [Faker::Theater](doc/default/theater.md)
|
289
294
|
- [Faker::Time](doc/default/time.md)
|
290
295
|
- [Faker::Twitter](doc/default/twitter.md)
|
291
296
|
- [Faker::Types](doc/default/types.md)
|
@@ -325,6 +330,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
325
330
|
<summary>Travel</summary>
|
326
331
|
|
327
332
|
- [Faker:Travel::Airport](doc/travel/airport.md)
|
333
|
+
- [Faker:Travel::TrainStation](doc/travel/train_station.md)
|
328
334
|
</details>
|
329
335
|
|
330
336
|
<details>
|
@@ -346,6 +352,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
346
352
|
- [Faker::Games::Dota](doc/games/dota.md)
|
347
353
|
- [Faker::Games::ElderScrolls](doc/games/elder_scrolls.md)
|
348
354
|
- [Faker::Games::Fallout](doc/games/fallout.md)
|
355
|
+
- [Faker::Games::FinalFantasyXIV](doc/games/final_fantasy_xiv.md)
|
349
356
|
- [Faker::Games::HalfLife](doc/games/half_life.md)
|
350
357
|
- [Faker::Games::Heroes](doc/games/heroes.md)
|
351
358
|
- [Faker::Games::HeroesOfTheStorm](doc/games/heroes_of_the_storm.md)
|
@@ -376,7 +383,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
376
383
|
- [Faker::JapaneseMedia::Naruto](doc/japanese_media/naruto.md)
|
377
384
|
- [Faker::JapaneseMedia::Doraemon](doc/japanese_media/doraemon.md)
|
378
385
|
- [Faker::JapaneseMedia::Conan](doc/japanese_media/conan.md)
|
379
|
-
- [Faker::JapaneseMedia::
|
386
|
+
- [Faker::JapaneseMedia::FullmetalAlchemistBrotherhood](doc/japanese_media/fullmetal_alchemist_brotherhood.md)
|
380
387
|
</details>
|
381
388
|
|
382
389
|
<details>
|
@@ -411,6 +418,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
411
418
|
- [Faker::Music::Prince](doc/music/prince.md)
|
412
419
|
- [Faker::Music::RockBand](doc/music/rock_band.md)
|
413
420
|
- [Faker::Music::Rush](doc/music/rush.md)
|
421
|
+
- [Faker::Music::SmashingPumpkins](doc/music/smashing_pumpkins.md)
|
414
422
|
- [Faker::Music::UmphreysMcgee](doc/music/umphreys_mcgee.md)
|
415
423
|
</details>
|
416
424
|
|
@@ -426,7 +434,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
426
434
|
<details>
|
427
435
|
<summary>Sports</summary>
|
428
436
|
|
429
|
-
- [Faker::
|
437
|
+
- [Faker::Sport](doc/sports/sport.md)
|
430
438
|
- [Faker::Sports::Basketball](doc/sports/basketball.md)
|
431
439
|
- [Faker::Sports::Chess](doc/sports/chess.md)
|
432
440
|
- [Faker::Sports::Football](doc/sports/football.md)
|
@@ -438,6 +446,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
438
446
|
<summary>Tv Shows</summary>
|
439
447
|
|
440
448
|
- [Faker::TvShows::AquaTeenHungerForce](doc/tv_shows/aqua_teen_hunger_force.md)
|
449
|
+
- [Faker::TvShows::Archer](doc/tv_shows/archer.md)
|
441
450
|
- [Faker::TvShows::BigBangTheory](doc/tv_shows/big_bang_theory.md)
|
442
451
|
- [Faker::TvShows::BojackHorseman](doc/tv_shows/bojack_horseman.md)
|
443
452
|
- [Faker::TvShows::BreakingBad](doc/tv_shows/breaking_bad.md)
|
@@ -475,12 +484,18 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
475
484
|
- [Faker::TvShows::VentureBros](doc/tv_shows/venture_bros.md)
|
476
485
|
</details>
|
477
486
|
|
487
|
+
<details>
|
488
|
+
<summary>Locations</summary>
|
489
|
+
|
490
|
+
- [Faker::Locations::Australia](doc/locations/australia.md)
|
491
|
+
</details>
|
492
|
+
|
478
493
|
## Contributing
|
479
494
|
|
480
|
-
|
495
|
+
**Note**: We are not accepting proposals for new generators and locales. The [Contributing](https://github.com/faker-ruby/faker/blob/main/CONTRIBUTING.md) guide has a few notes about this decision.
|
481
496
|
|
482
|
-
Take a look at the [Contributing](CONTRIBUTING.md) document for
|
483
|
-
instructions on setting up the repo on your machine, understanding the codebase,
|
497
|
+
Take a look at the [Contributing](https://github.com/faker-ruby/faker/blob/main/CONTRIBUTING.md) document for
|
498
|
+
instructions on setting up the repo on your machine, opening bug reports, understanding the codebase,
|
484
499
|
and creating a good pull request.
|
485
500
|
|
486
501
|
There is a [Discord channel](https://discord.gg/RMumTwB) to discuss anything
|
@@ -133,10 +133,9 @@ module Faker
|
|
133
133
|
resolved_num = resolve(number)
|
134
134
|
word_list = translate('faker.lovecraft.words')
|
135
135
|
word_list *= ((resolved_num / word_list.length) + 1)
|
136
|
+
words = sample(word_list, resolved_num)
|
137
|
+
return words if spaces_allowed
|
136
138
|
|
137
|
-
return shuffle(word_list)[0, resolved_num] if spaces_allowed
|
138
|
-
|
139
|
-
words = shuffle(word_list)[0, resolved_num]
|
140
139
|
words.each_with_index { |w, i| words[i] = word if w =~ /\s/ }
|
141
140
|
end
|
142
141
|
|