faker 3.5.2 → 3.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc659ae3f4a2f8e2d7f7fc3a22903c5a1e81138110b8ddeced3b6969ad92e22d
4
- data.tar.gz: a0370b7a158c4fe7a40b3a32500e45997cb0fa5b753e507f65cbbebe66523c2a
3
+ metadata.gz: 1451a74f2ed552404727bf2dfe6711edcdd7c6231cb1780a0d99050324b7b448
4
+ data.tar.gz: 63bdcd753bb373c03dc1f43e36a9fd79622ffe09c9a2c5748759475901b251e1
5
5
  SHA512:
6
- metadata.gz: fa3feb382544da65be21255d723278ef89ba1c470a572267b61c5adb9c4e5b171668356bd30f339be12a735d605722118ad0e6d302b3c3774e987cd76bdc3763
7
- data.tar.gz: 031cadfc32e4f3faaf68d971a18cda06caa01a610da3449a4fe3d5fe9c0523979b4426b9fbb699a6a6f2511958223875d783e7b792aebb390a4d871bbbbae59d
6
+ metadata.gz: eca06030ce6ac8b3000d35df1214b262cd929964ab0c4fc23c5501ff0f6d5ed2717361bc61f7da2be2edc909cae5a1c17f762f2df1a2a2c77250c98db7167ab6
7
+ data.tar.gz: 49effb24c9837d69685458f9763cde1194164466c3adc73851ec8cbba680804def10fe8e94d6f89acf7ef7e2e6503a74905ef76302521d80adf548ab88c88879
data/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.5.3](https://github.com/faker-ruby/faker/tree/v3.5.3) (2025-12-02)
4
+
5
+ Wishing you a cozy and calm Holiday season ☃️
6
+
7
+ This version adds and improves some locales, fixes some bugs, and deprecates some generators.
8
+
9
+ Thanks to all contributors!
10
+
11
+ ### Deprecated generators
12
+ * Refactor: move `Faker::BossaNova` under `Faker::Music::BossaNova` by @thdaraujo in https://github.com/faker-ruby/faker/pull/3140
13
+ * Deprecate `Faker::Twitter` in favor of `Faker::X` and update attributes by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3138
14
+
15
+ ### Improvements & Bug Fixes
16
+ * Remove duplicate entry `amateur radio` from `locales/en/hobby.yml` by @Leenday in https://github.com/faker-ruby/faker/pull/3099
17
+ * fix #3114: prevent scientific notation when generating bank account number by @AhmedHisham552 in https://github.com/faker-ruby/faker/pull/3118
18
+ * Fix: typos in locales for `overwatch.yml`, `rajnikanth.yml` and `street_fighter.ym` by @smorttey in https://github.com/faker-ruby/faker/pull/3106
19
+ * Add `Artist` translations for the japanese locale by @neco-nico in https://github.com/faker-ruby/faker/pull/3110
20
+ * Add `country_code` to Estonia locale (`locales/ee.yml`) by @HassanAkbar in https://github.com/faker-ruby/faker/pull/3111
21
+ * Reformat Arabic locale (`locales/ar.yml`) by @ramzieus in https://github.com/faker-ruby/faker/pull/3130
22
+ * Refactor: Improve UK Phone number false failure hit-rate by @luke-hill in https://github.com/faker-ruby/faker/pull/3136
23
+ * Improvements and fixes for Elder Scrolls locale (`elder_scrolls.yml`) by @SleekMutt in https://github.com/faker-ruby/faker/pull/3129
24
+ * Add en-GB ID Numbers (aka National Insurance Numbers) by @stefanjcollier in https://github.com/faker-ruby/faker/pull/3032
25
+ * Update ukrainian city locales to the modern ones by @SleekMutt in https://github.com/faker-ruby/faker/pull/3127
26
+ * Revamp the docs to make them easier to find by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3151
27
+
28
+ ### Chores
29
+ * test: fix flaky test on `Faker::IdNumber` by @thdaraujo in https://github.com/faker-ruby/faker/pull/3126
30
+ * Remove minitest dependency on i18n reload test by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3149
31
+ * Remove unused release workflow by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3133
32
+
33
+ ### Update local dependencies
34
+ * Bump benchmark from 0.4.1 to 0.5.0 by @dependabot[bot] in https://github.com/faker-ruby/faker/pull/3122
35
+ * Bump rake from 13.3.0 to 13.3.1 by @dependabot[bot] in https://github.com/faker-ruby/faker/pull/3124
36
+ * Bump test-unit from 3.7.0 to 3.7.1 by @dependabot[bot] in https://github.com/faker-ruby/faker/pull/3128
37
+ * Bump rubocop-minitest from 0.38.1 to 0.38.2 by @dependabot[bot] in https://github.com/faker-ruby/faker/pull/3116
38
+ * deps: bump dependencies by @thdaraujo in https://github.com/faker-ruby/faker/pull/3141
39
+ * deps: bump Minitest version to `v5.26.1` and fix issues by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3144
40
+ * deps: bump rubocop version to `v1.81.7` by @thdaraujo in https://github.com/faker-ruby/faker/pull/3143
41
+
42
+ ### New Contributors
43
+ * @Leenday made their first contribution in https://github.com/faker-ruby/faker/pull/3099
44
+ * @AhmedHisham552 made their first contribution in https://github.com/faker-ruby/faker/pull/3118
45
+ * @smorttey made their first contribution in https://github.com/faker-ruby/faker/pull/3106
46
+ * @neco-nico made their first contribution in https://github.com/faker-ruby/faker/pull/3110
47
+ * @HassanAkbar made their first contribution in https://github.com/faker-ruby/faker/pull/3111
48
+ * @ramzieus made their first contribution in https://github.com/faker-ruby/faker/pull/3130
49
+ * @luke-hill made their first contribution in https://github.com/faker-ruby/faker/pull/3136
50
+ * @SleekMutt made their first contribution in https://github.com/faker-ruby/faker/pull/3129
51
+ * @stefanjcollier made their first contribution in https://github.com/faker-ruby/faker/pull/3032
52
+
53
+ **Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.5.2...v3.5.3
54
+
55
+ ---------------------------------
56
+
3
57
  ## [v3.5.2](https://github.com/faker-ruby/faker/tree/v3.5.2) (2025-07-01)
4
58
 
5
59
  Happy Canada Day! 🍁
data/README.md CHANGED
@@ -1,18 +1,17 @@
1
- ![logotype a happy-07](https://user-images.githubusercontent.com/36028424/40263395-4318481e-5b44-11e8-92e5-3dcc1ce169b3.png)
1
+ # Faker [![Gem Version][version-badge]][rubygems] [![Build Status][github-actions-badge]][github-actions] [![Total Downloads][downloads-total]][rubygems] [![Downloads][downloads-badge]][rubygems]
2
2
 
3
- # Faker
4
- [![Tests](https://github.com/faker-ruby/faker/workflows/Tests/badge.svg)](https://github.com/faker-ruby/faker/actions?query=workflow%3ATests)
5
- [![Gem Version](https://badge.fury.io/rb/faker.svg)](https://badge.fury.io/rb/faker)
6
- [![Inline docs](https://inch-ci.org/github/faker-ruby/faker.svg?branch=main)](https://inch-ci.org/github/faker-ruby/faker)
3
+ <div align="center">
4
+ <img src="https://user-images.githubusercontent.com/36028424/40263395-4318481e-5b44-11e8-92e5-3dcc1ce169b3.png" width="400"/>
5
+ <p>Generate (almost) realistic fake data for testing, demos, and populating your database during development.</p>
6
+ </div>
7
7
 
8
- Faker is a port of [Perl's Data::Faker library](https://metacpan.org/pod/Data::Faker).
9
- It's a library for generating fake data such as names, addresses, and phone numbers.
10
-
11
- Faker helps you generate realistic test data, and populate your
12
- database with more than a couple of records while you're doing development.
13
-
14
- It comes in very handy for taking screenshots (taking screenshots for a personal project)
15
- and it was the original impetus for the creation of this gem.
8
+ [version-badge]: https://img.shields.io/gem/v/faker.svg
9
+ [rubygems]: https://rubygems.org/gems/faker
10
+ [github-actions-badge]: https://img.shields.io/github/actions/workflow/status/faker-ruby/faker/.github/workflows/ruby.yml?branch=main
11
+ [github-actions]: https://github.com/faker-ruby/faker/actions
12
+ [downloads-total]: https://img.shields.io/gem/dt/faker.svg
13
+ [downloads-badge]: https://img.shields.io/gem/dtv/faker.svg
14
+ [downloads-badge]: https://img.shields.io/gem/dtv/faker.svg
16
15
 
17
16
  ## Quick links
18
17
 
@@ -22,40 +21,19 @@ and it was the original impetus for the creation of this gem.
22
21
  [rubydocs]: https://www.rubydoc.info/gems/faker/
23
22
  [changelog]: CHANGELOG.md
24
23
 
25
- ## In the media
24
+ ## Features
26
25
 
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
26
+ - Internet: Email addresses, Passwords, Domains, etc.
27
+ - Date and Time: Travel back in time or to the future.
28
+ - Person: Names, Genders, Bios, Job titles, and more.
29
+ - Number add String: Random numbers and strings.
30
+ - Location: Addresses, Zip Codes, Street Names, States, and Countries.
31
+ - Finance: Account Details, Transactions, and Crypto Addresses.
32
+ - Localization - Customize faker with over 40 locales to generate realistic-looking Names, Addresses, and Phone Numbers.
29
33
 
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
34
+ > **Note** The generated names, addresses, emails, phone numbers, and/or other data might return valid information. Please be careful when using faker in your tests.
32
35
 
33
- ## Table of Contents
34
-
35
- - [Faker](#faker)
36
- - [Quick links](#quick-links)
37
- - [Table of Contents](#table-of-contents)
38
- - [Notes](#notes)
39
- - [Getting Started](#getting-started)
40
- - [Usage](#usage)
41
- - [A note about the Generators versions](#a-note-about-the-generators-versions)
42
- - [Ensuring unique values](#ensuring-unique-values)
43
- - [Deterministic Random](#deterministic-random)
44
- - [Customization](#customization)
45
- - [Minitest and Faker \>= 2.22](#minitest-and-faker--222)
46
- - [Generators](#generators)
47
- - [Contributing](#contributing)
48
- - [Versioning](#versioning)
49
- - [License](#license)
50
-
51
- ### Notes
52
-
53
- * While Faker generates data at random, returned values are not guaranteed to be unique by default.
54
- To explicitly specify when you require unique values, see [Ensuring Unique Values](#ensuring-unique-values).
55
- Values also can be deterministic if you use the deterministic feature, see [Deterministic Random](#deterministic-random)
56
- * This is the `main` branch of Faker and may contain changes that are not yet released.
57
- Please refer to the README of your version for the available methods.
58
- The list of all versions is [available here](https://github.com/stympy/faker/releases).
36
+ For a complete list of the generators, see [Generators](./GENERATORS.md).
59
37
 
60
38
  ## Getting Started
61
39
 
@@ -69,49 +47,44 @@ Then run `bundle install`.
69
47
 
70
48
  ## Usage
71
49
 
72
- Here are some examples of how to use Faker:
73
-
74
50
  ```ruby
75
51
  require 'faker'
76
52
 
77
- Faker::Name.name #=> "Christophe Bartell"
78
-
79
- Faker::Address.full_address #=> "5479 William Way, East Sonnyhaven, LA 63637"
80
-
81
- Faker::Markdown.emphasis #=> "Quo qui aperiam. Amet corrupti distinctio. Sit quia *dolor.*"
82
-
83
- Faker::TvShows::RuPaul.queen #=> "Violet Chachki"
84
-
53
+ Faker::Name.name #=> "Christophe Bartell"
54
+ Faker::Internet.password #=> "Vg5mSvY1UeRg7"
55
+ Faker::Internet.email #=> "eliza@mann.test"
56
+ Faker::Address.full_address #=> "5479 William Way, East Sonnyhaven, LA 63637"
57
+ Faker::Markdown.emphasis #=> "Quo qui aperiam. Amet corrupti distinctio. Sit quia *dolor.*"
58
+ Faker::Lorem.paragraph #=> "Recusandae minima consequatur. Expedita sequi blanditiis. Ut fuga et."
85
59
  Faker::Alphanumeric.alpha(number: 10) #=> "zlvubkrwga"
86
-
87
- Faker::ProgrammingLanguage.name #=> "Ruby"
60
+ Faker::ProgrammingLanguage.name #=> "Ruby"
88
61
  ```
89
62
 
90
- For a complete list of the generators, see [Generators](#generators).
91
-
92
- ### A note about the Generators versions
93
-
94
- If you get a `uninitialized constant Faker::[some_class]` error, your version of
95
- the gem is behind main.
96
-
97
- To make sure that your gem is the one
98
- documented here, change the line in your Gemfile to:
99
-
100
- ```ruby
101
- gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main'
102
- ```
63
+ ## Table of Contents
103
64
 
104
- The generators have the `@faker.version` tag on top of their implementation.
105
- From the tags, you can identify the version the generator was added:
65
+ - [Faker ](#faker----)
66
+ - [Quick links](#quick-links)
67
+ - [Features](#features)
68
+ - [Getting Started](#getting-started)
69
+ - [Usage](#usage)
70
+ - [Table of Contents](#table-of-contents)
71
+ - [Notes](#notes)
72
+ - [Ensuring unique values](#ensuring-unique-values)
73
+ - [Deterministic Random](#deterministic-random)
74
+ - [Localization](#localization)
75
+ - [Minitest and Faker \>= 2.22](#minitest-and-faker--222)
76
+ - [Generators](#generators)
77
+ - [Contributing](#contributing)
78
+ - [Versioning](#versioning)
79
+ - [Inspiration](#inspiration)
80
+ - [In the media](#in-the-media)
81
+ - [License](#license)
106
82
 
107
- ```ruby
108
- # Faker::TvShows::ParksAndRec.character
83
+ ### Notes
109
84
 
110
- # @faker.version 1.9.0
111
- def character
112
- fetch('parks_and_rec.characters')
113
- end
114
- ```
85
+ * While Faker generates data at random, returned values are not guaranteed to be unique by default. To explicitly specify when you require unique values, see [Ensuring Unique Values](#ensuring-unique-values).
86
+ * Values also can be deterministic if you use the deterministic feature, see [Deterministic Random](#deterministic-random).
87
+ * This is the `main` branch of Faker and may contain changes that are not yet released. The list of all versions is [available here](https://github.com/stympy/faker/releases).
115
88
 
116
89
  ### Ensuring unique values
117
90
 
@@ -127,7 +100,7 @@ exception may be raised. It is possible to clear the record of unique values
127
100
  that have been returned, for example between tests.
128
101
 
129
102
  ```ruby
130
- Faker::Name.unique.clear # Clears used values for Faker::Name
103
+ Faker::Name.unique.clear # Clears used values for Faker::Name
131
104
  Faker::UniqueGenerator.clear # Clears used values for all generators
132
105
  ```
133
106
 
@@ -136,7 +109,6 @@ collisions with the generated data (i.e: using FactoryBot with random and
136
109
  manually set values).
137
110
 
138
111
  ```ruby
139
- # Usage:
140
112
  # Faker::<generator>.unique.exclude(method, arguments, list)
141
113
 
142
114
  # Add 'azerty' and 'wxcvbn' to the string generator with 6 char length
@@ -150,18 +122,19 @@ to provide deterministic output of repeated method calls.
150
122
 
151
123
  ```ruby
152
124
  Faker::Config.random = Random.new(42)
153
- Faker::Company.bs #=> "seize collaborative mindshare"
154
- Faker::Company.bs #=> "engage strategic platforms"
125
+ Faker::Lorem.word #=> "velit"
126
+ Faker::Lorem.word #=> "quisquam"
127
+
155
128
  Faker::Config.random = Random.new(42)
156
- Faker::Company.bs #=> "seize collaborative mindshare"
157
- Faker::Company.bs #=> "engage strategic platforms"
129
+ Faker::Lorem.word #=> "velit"
130
+ Faker::Lorem.word #=> "quisquam"
158
131
 
159
- Faker::Config.random = nil # seeds the PRNG using default entropy sources
160
- Faker::Config.random.seed #=> 185180369676275068918401850258677722187
161
- Faker::Company.bs #=> "cultivate viral synergies"
132
+ Faker::Config.random = nil # seeds the PRNG using default entropy sources
133
+ Faker::Config.random.seed #=> 185180369676275068918401850258677722187
134
+ Faker::Lorem.word #=> "ipsam"
162
135
  ```
163
136
 
164
- ### Customization
137
+ ### Localization
165
138
 
166
139
  You may want Faker to print information depending on your location in the world.
167
140
  To assist you in this, Faker uses the `I18n` gem to store strings and formats to
@@ -180,315 +153,16 @@ check out the [locales README](lib/locales/README.md).
180
153
 
181
154
  ### Minitest and Faker >= 2.22
182
155
 
183
- To prevent Faker (version >= 2.22) from generating duplicate values when using Minitest,
156
+ To prevent Faker (version >= 2.22) from [generating duplicate values]((https://github.com/faker-ruby/faker/issues/2534)) when using Minitest,
184
157
  you might need to add the following to the `test_helper.rb` or `rails_helper.rb` file:
185
158
 
186
159
  ```ruby
187
160
  Faker::Config.random = Random.new
188
161
  ```
189
162
 
190
- See [Issue #2534](https://github.com/faker-ruby/faker/issues/2534) for more details.
191
-
192
163
  ## Generators
193
164
 
194
- This is the full list of generators available with this gem. If you need details about any of them, make sure to consult the documentation.
195
-
196
- **NOTE: Some of the generators below aren't released yet. If you want to use them, change the line in your gemfile to:**
197
-
198
- ```ruby
199
- gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main'
200
- ```
201
-
202
- <details>
203
- <summary>Default</summary>
204
-
205
- - [Faker::Address](doc/default/address.md)
206
- - [Faker::Alphanumeric](doc/default/alphanumeric.md)
207
- - [Faker::Ancient](doc/default/ancient.md)
208
- - [Faker::App](doc/default/app.md)
209
- - [Faker::Appliance](doc/default/appliance.md)
210
- - [Faker::Artist](doc/default/artist.md)
211
- - [Faker::Avatar](doc/default/avatar.md)
212
- - [Faker::Bank](doc/default/bank.md)
213
- - [Faker::Barcode](doc/default/barcode.md)
214
- - [Faker::Beer](doc/default/beer.md)
215
- - [Faker::Blood](doc/default/blood.md)
216
- - [Faker::Boolean](doc/default/boolean.md)
217
- - [Faker::BossaNova](doc/default/bossa_nova.md)
218
- - [Faker::Business](doc/default/business.md)
219
- - [Faker::Camera](doc/default/camera.md)
220
- - [Faker::Cannabis](doc/default/cannabis.md)
221
- - [Faker::ChileRut](doc/default/chile_rut.md)
222
- - [Faker::ChuckNorris](doc/default/chuck_norris.md)
223
- - [Faker::Code](doc/default/code.md)
224
- - [Faker::Coffee](doc/default/coffee.md)
225
- - [Faker::Coin](doc/default/coin.md)
226
- - [Faker::Color](doc/default/color.md)
227
- - [Faker::Commerce](doc/default/commerce.md)
228
- - [Faker::Company](doc/default/company.md)
229
- - [Faker::Compass](doc/default/compass.md)
230
- - [Faker::Computer](doc/default/computer.md)
231
- - [Faker::Construction](doc/default/construction.md)
232
- - [Faker::Cosmere](doc/default/cosmere.md)
233
- - [Faker::Crypto](doc/default/crypto.md)
234
- - [Faker::CryptoCoin](doc/default/crypto_coin.md)
235
- - [Faker::Currency](doc/default/currency.md)
236
- - [Faker::Date](doc/default/date.md)
237
- - [Faker::DcComics](doc/default/dc_comics.md)
238
- - [Faker::Demographic](doc/default/demographic.md)
239
- - [Faker::Dessert](doc/default/dessert.md)
240
- - [Faker::Device](doc/default/device.md)
241
- - [Faker::DrivingLicence](doc/default/driving_licence.md)
242
- - [Faker::Drone](doc/drone/drone.md)
243
- - [Faker::Educator](doc/default/educator.md)
244
- - [Faker::ElectricalComponents](doc/default/electrical_components.md)
245
- - [Faker::Emotion](doc/default/emotion.md)
246
- - [Faker::Esport](doc/default/esport.md)
247
- - [Faker::File](doc/default/file.md)
248
- - [Faker::Finance](doc/default/finance.md)
249
- - [Faker::Food](doc/default/food.md)
250
- - [Faker::FunnyName](doc/default/funny_name.md)
251
- - [Faker::Gender](doc/default/gender.md)
252
- - [Faker::GreekPhilosophers](doc/default/greek_philosophers.md)
253
- - [Faker::Hacker](doc/default/hacker.md)
254
- - [Faker::Hipster](doc/default/hipster.md)
255
- - [Faker::Hobby](doc/default/hobby.md)
256
- - [Faker::House](doc/default/house.md)
257
- - [Faker::IdNumber](doc/default/id_number.md)
258
- - [Faker::IndustrySegments](doc/default/industry_segments.md)
259
- - [Faker::Internet](doc/default/internet.md)
260
- - [Faker::Invoice](doc/default/invoice.md)
261
- - [Faker::Job](doc/default/job.md)
262
- - [Faker::Json](doc/default/json.md)
263
- - [Faker::Kpop](doc/default/kpop.md)
264
- - [Faker::Lorem](doc/default/lorem.md)
265
- - [Faker::LoremFlickr](doc/default/lorem_flickr.md)
266
- - [Faker::Markdown](doc/default/markdown.md)
267
- - [Faker::Marketing](doc/default/marketing.md)
268
- - [Faker::Measurement](doc/default/measurement.md)
269
- - [Faker::Military](doc/default/military.md)
270
- - [Faker::Mountain](doc/default/mountain.md)
271
- - [Faker::Name](doc/default/name.md)
272
- - [Faker::Nation](doc/default/nation.md)
273
- - [Faker::NatoPhoneticAlphabet](doc/default/nato_phonetic_alphabet.md)
274
- - [Faker::NationalHealthService](doc/default/national_health_service.md)
275
- - [Faker::Number](doc/default/number.md)
276
- - [Faker::Omniauth](doc/default/omniauth.md)
277
- - [Faker::PhoneNumber](doc/default/phone_number.md)
278
- - [Faker::Placeholdit](doc/default/placeholdit.md)
279
- - [Faker::ProgrammingLanguage](doc/default/programming_language.md)
280
- - [Faker::Relationship](doc/default/relationship.md)
281
- - [Faker::Restaurant](doc/default/restaurant.md)
282
- - [Faker::Science](doc/default/science.md)
283
- - [Faker::SlackEmoji](doc/default/slack_emoji.md)
284
- - [Faker::Source](doc/default/source.md)
285
- - [Faker::SouthAfrica](doc/default/south_africa.md)
286
- - [Faker::Space](doc/default/space.md)
287
- - [Faker::String](doc/default/string.md)
288
- - [Faker::Stripe](doc/default/stripe.md)
289
- - [Faker::Subscription](doc/default/subscription.md)
290
- - [Faker::Superhero](doc/default/superhero.md)
291
- - [Faker::Tea](doc/default/tea.md)
292
- - [Faker::Team](doc/default/team.md)
293
- - [Faker::Theater](doc/default/theater.md)
294
- - [Faker::Time](doc/default/time.md)
295
- - [Faker::Twitter](doc/default/twitter.md)
296
- - [Faker::Types](doc/default/types.md)
297
- - [Faker::University](doc/default/university.md)
298
- - [Faker::Vehicle](doc/default/vehicle.md)
299
- - [Faker::Verbs](doc/default/verbs.md)
300
- - [Faker::VulnerabilityIdentifier](doc/default/vulnerability_identifier.md)
301
- - [Faker::WorldCup](doc/default/world_cup.md)
302
- </details>
303
-
304
- <details>
305
- <summary>Blockchain</summary>
306
-
307
- - [Faker::Blockchain::Aeternity](doc/blockchain/aeternity.md)
308
- - [Faker::Blockchain::Bitcoin](doc/blockchain/bitcoin.md)
309
- - [Faker::Blockchain::Ethereum](doc/blockchain/ethereum.md)
310
- - [Faker::Blockchain::Tezos](doc/blockchain/tezos.md)
311
- </details>
312
-
313
- <details>
314
- <summary>Books</summary>
315
-
316
- - [Faker::Book](doc/books/book.md)
317
- - [Faker::Books::CultureSeries](doc/books/culture_series.md)
318
- - [Faker::Books::Dune](doc/books/dune.md)
319
- - [Faker::Books::Lovecraft](doc/books/lovecraft.md)
320
- - [Faker::Books::TheKingkillerChronicle](doc/books/the_kingkiller_chronicle.md)
321
- </details>
322
-
323
- <details>
324
- <summary>Fantasy</summary>
325
-
326
- - [Faker::Fantasy::Tolkien](doc/fantasy/tolkien.md)
327
- </details>
328
-
329
- <details>
330
- <summary>Travel</summary>
331
-
332
- - [Faker:Travel::Airport](doc/travel/airport.md)
333
- - [Faker:Travel::TrainStation](doc/travel/train_station.md)
334
- </details>
335
-
336
- <details>
337
- <summary>Creature</summary>
338
-
339
- - [Faker::Creature::Animal](doc/creature/animal.md)
340
- - [Faker::Creature::Bird](doc/creature/bird.md)
341
- - [Faker::Creature::Cat](doc/creature/cat.md)
342
- - [Faker::Creature::Dog](doc/creature/dog.md)
343
- - [Faker::Creature::Horse](doc/creature/horse.md)
344
- </details>
345
-
346
- <details>
347
- <summary>Games</summary>
348
-
349
- - [Faker::Game](doc/games/game.md)
350
- - [Faker::Games::ClashOfClans](doc/games/clash_of_clans.md)
351
- - [Faker::Games::DnD](doc/games/dnd.md)
352
- - [Faker::Games::Dota](doc/games/dota.md)
353
- - [Faker::Games::ElderScrolls](doc/games/elder_scrolls.md)
354
- - [Faker::Games::Fallout](doc/games/fallout.md)
355
- - [Faker::Games::FinalFantasyXIV](doc/games/final_fantasy_xiv.md)
356
- - [Faker::Games::HalfLife](doc/games/half_life.md)
357
- - [Faker::Games::Heroes](doc/games/heroes.md)
358
- - [Faker::Games::HeroesOfTheStorm](doc/games/heroes_of_the_storm.md)
359
- - [Faker::Games::LeagueOfLegends](doc/games/league_of_legends.md)
360
- - [Faker::Games::Minecraft](doc/games/minecraft.md)
361
- - [Faker::Games::Myst](doc/games/myst.md)
362
- - [Faker::Games::Overwatch](doc/games/overwatch.md)
363
- - [Faker::Games::Pokemon](doc/games/pokemon.md)
364
- - [Faker::Games::SonicTheHedgehog](doc/games/sonic_the_hedgehog.md)
365
- - [Faker::Games::StreetFighter](doc/games/street_fighter.md)
366
- - [Faker::Games::SuperMario](doc/games/super_mario.md)
367
- - [Faker::Games::SuperSmashBros](doc/games/super_smash_bros.md)
368
- - [Faker::Games::Touhou](doc/games/touhou.md)
369
- - [Faker::Games::WarhammerFantasy](doc/games/warhammer_fantasy.md)
370
- - [Faker::Games::Witcher](doc/games/witcher.md)
371
- - [Faker::Games::WorldOfWarcraft](doc/games/world_of_warcraft.md)
372
- - [Faker::Games::Zelda](doc/games/zelda.md)
373
- </details>
374
-
375
- <details>
376
- <summary>Japanese Media</summary>
377
-
378
- - [Faker::JapaneseMedia::CowboyBebop](doc/japanese_media/cowboy_bebop.md)
379
- - [Faker::JapaneseMedia::DragonBall](doc/japanese_media/dragon_ball.md)
380
- - [Faker::JapaneseMedia::OnePiece](doc/japanese_media/one_piece.md)
381
- - [Faker::JapaneseMedia::StudioGhibli](doc/japanese_media/studio_ghibli.md)
382
- - [Faker::JapaneseMedia::SwordArtOnline](doc/japanese_media/sword_art_online.md)
383
- - [Faker::JapaneseMedia::Naruto](doc/japanese_media/naruto.md)
384
- - [Faker::JapaneseMedia::Doraemon](doc/japanese_media/doraemon.md)
385
- - [Faker::JapaneseMedia::Conan](doc/japanese_media/conan.md)
386
- - [Faker::JapaneseMedia::FullmetalAlchemistBrotherhood](doc/japanese_media/fullmetal_alchemist_brotherhood.md)
387
- </details>
388
-
389
- <details>
390
- <summary>Movies</summary>
391
-
392
- - [Faker::Movie](doc/movies/movie.md)
393
- - [Faker::Movies::Avatar](doc/movies/avatar.md)
394
- - [Faker::Movies::BackToTheFuture](doc/movies/back_to_the_future.md)
395
- - [Faker::Movies::Departed](doc/movies/departed.md)
396
- - [Faker::Movies::Ghostbusters](doc/movies/ghostbusters.md)
397
- - [Faker::Movies::HarryPotter](doc/movies/harry_potter.md)
398
- - [Faker::Movies::HitchhikersGuideToTheGalaxy](doc/movies/hitchhikers_guide_to_the_galaxy.md)
399
- - [Faker::Movies::Hobbit](doc/movies/hobbit.md)
400
- - [Faker::Movies::HowToTrainYourDragon](doc/movies/how_to_train_your_dragon.md)
401
- - [Faker::Movies::Lebowski](doc/movies/lebowski.md)
402
- - [Faker::Movies::LordOfTheRings](doc/movies/lord_of_the_rings.md)
403
- - [Faker::Movies::PrincessBride](doc/movies/princess_bride.md)
404
- - [Faker::Movies::StarWars](doc/movies/star_wars.md)
405
- - [Faker::Movies::TRON](doc/movies/tron.md)
406
- - [Faker::Movies::VForVendetta](doc/movies/v_for_vendetta.md)
407
- </details>
408
-
409
- <details>
410
- <summary>Music</summary>
411
-
412
- - [Faker::Music](doc/music/music.md)
413
- - [Faker::Music::GratefulDead](doc/music/grateful_dead.md)
414
- - [Faker::Music::Hiphop](doc/music/hiphop.md)
415
- - [Faker::Music::Opera](doc/music/opera.md)
416
- - [Faker::Music::PearlJam](doc/music/pearl_jam.md)
417
- - [Faker::Music::Phish](doc/music/phish.md)
418
- - [Faker::Music::Prince](doc/music/prince.md)
419
- - [Faker::Music::RockBand](doc/music/rock_band.md)
420
- - [Faker::Music::Rush](doc/music/rush.md)
421
- - [Faker::Music::SmashingPumpkins](doc/music/smashing_pumpkins.md)
422
- - [Faker::Music::UmphreysMcgee](doc/music/umphreys_mcgee.md)
423
- </details>
424
-
425
- <details>
426
- <summary>Quotes</summary>
427
-
428
- - [Faker::Quote](doc/quotes/quote.md)
429
- - [Faker::Quotes::Chiquito](doc/quotes/chiquito.md)
430
- - [Faker::Quotes::Rajnikanth](doc/quotes/rajnikanth.md)
431
- - [Faker::Quotes::Shakespeare](doc/quotes/shakespeare.md)
432
- </details>
433
-
434
- <details>
435
- <summary>Sports</summary>
436
-
437
- - [Faker::Sport](doc/sports/sport.md)
438
- - [Faker::Sports::Basketball](doc/sports/basketball.md)
439
- - [Faker::Sports::Chess](doc/sports/chess.md)
440
- - [Faker::Sports::Football](doc/sports/football.md)
441
- - [Faker::Sports::Mountaineering](doc/sports/mountaineering.md)
442
- - [Faker::Sports::Volleyball](doc/sports/volleyball.md)
443
- </details>
444
-
445
- <details>
446
- <summary>Tv Shows</summary>
447
-
448
- - [Faker::TvShows::AquaTeenHungerForce](doc/tv_shows/aqua_teen_hunger_force.md)
449
- - [Faker::TvShows::Archer](doc/tv_shows/archer.md)
450
- - [Faker::TvShows::BigBangTheory](doc/tv_shows/big_bang_theory.md)
451
- - [Faker::TvShows::BojackHorseman](doc/tv_shows/bojack_horseman.md)
452
- - [Faker::TvShows::BreakingBad](doc/tv_shows/breaking_bad.md)
453
- - [Faker::TvShows::BrooklynNineNine](doc/tv_shows/brooklyn_nine_nine.md)
454
- - [Faker::TvShows::Buffy](doc/tv_shows/buffy.md)
455
- - [Faker::TvShows::Community](doc/tv_shows/community.md)
456
- - [Faker::TvShows::DrWho](doc/tv_shows/dr_who.md)
457
- - [Faker::TvShows::DumbAndDumber](doc/tv_shows/dumb_and_dumber.md)
458
- - [Faker::TvShows::FamilyGuy](doc/tv_shows/family_guy.md)
459
- - [Faker::TvShows::FinalSpace](doc/tv_shows/final_space.md)
460
- - [Faker::TvShows::Friends](doc/tv_shows/friends.md)
461
- - [Faker::TvShows::GameOfThrones](doc/tv_shows/game_of_thrones.md)
462
- - [Faker::TvShows::HeyArnold](doc/tv_shows/hey_arnold.md)
463
- - [Faker::TvShows::HowIMetYourMother](doc/tv_shows/how_i_met_your_mother.md)
464
- - [Faker::TvShows::MichaelScott](doc/tv_shows/michael_scott.md)
465
- - [Faker::TvShows::NewGirl](doc/tv_shows/new_girl.md)
466
- - [Faker::TvShows::ParksAndRec](doc/tv_shows/parks_and_rec.md)
467
- - [Faker::TvShows::RickAndMorty](doc/tv_shows/rick_and_morty.md)
468
- - [Faker::TvShows::RuPaul](doc/tv_shows/rupaul.md)
469
- - [Faker::TvShows::Seinfeld](doc/tv_shows/seinfeld.md)
470
- - [Faker::TvShows::SiliconValley](doc/tv_shows/silicon_valley.md)
471
- - [Faker::TvShows::Simpsons](doc/tv_shows/simpsons.md)
472
- - [Faker::TvShows::SouthPark](doc/tv_shows/south_park.md)
473
- - [Faker::TvShows::Spongebob](doc/tv_shows/spongebob.md)
474
- - [Faker::TvShows::StarTrek](doc/tv_shows/star_trek.md)
475
- - [Faker::TvShows::Stargate](doc/tv_shows/stargate.md)
476
- - [Faker::TvShows::StrangerThings](doc/tv_shows/stranger_things.md)
477
- - [Faker::TvShows::Suits](doc/tv_shows/suits.md)
478
- - [Faker::TvShows::Supernatural](doc/tv_shows/supernatural.md)
479
- - [Faker::TvShows::TheExpanse](doc/tv_shows/the_expanse.md)
480
- - [Faker::TvShows::TheFreshPrinceOfBelAir](doc/tv_shows/the_fresh_prince_of_bel_air.md)
481
- - [Faker::TvShows::TheITCrowd](doc/tv_shows/the_it_crowd.md)
482
- - [Faker::TvShows::TheThickOfIt](doc/tv_shows/the_thick_of_it.md)
483
- - [Faker::TvShows::TwinPeaks](doc/tv_shows/twin_peaks.md)
484
- - [Faker::TvShows::VentureBros](doc/tv_shows/venture_bros.md)
485
- </details>
486
-
487
- <details>
488
- <summary>Locations</summary>
489
-
490
- - [Faker::Locations::Australia](doc/locations/australia.md)
491
- </details>
165
+ To see the full list, check out the [GENERATORS](./GENERATORS.md) document.
492
166
 
493
167
  ## Contributing
494
168
 
@@ -499,7 +173,7 @@ instructions on setting up the repo on your machine, opening bug reports, unders
499
173
  and creating a good pull request.
500
174
 
501
175
  There is a [Discord channel](https://discord.gg/RMumTwB) to discuss anything
502
- regarding improvements or feature requests.
176
+ regarding improvements or feature requests. This is not actively monitored by the current maintainers.
503
177
 
504
178
  Thank you, contributors!
505
179
 
@@ -507,6 +181,18 @@ Thank you, contributors!
507
181
 
508
182
  Faker follows Semantic Versioning 2.0 as defined at https://semver.org.
509
183
 
184
+ ## Inspiration
185
+
186
+ Faker was inspired by [Perl's Data::Faker library](https://metacpan.org/pod/Data::Faker).
187
+
188
+ ## In the media
189
+
190
+ - 📰 [With Great Humor Comes Great Developer Engagement] - KTH Royal Institute of Technology research
191
+ - 🎧 [Computer und Kommunikation 4.5.2024, komplette Sendung] - Deutschland Funk Radio Interview
192
+
193
+ [With Great Humor Comes Great Developer Engagement]: https://arxiv.org/pdf/2312.01680
194
+ [Computer und Kommunikation 4.5.2024, komplette Sendung]: https://www.deutschlandfunk.de/computer-und-kommunikation-4-5-2024-komplette-sendung-dlf-16492b03-100.html
195
+
510
196
  ## License
511
197
 
512
198
  This code is free to use under the terms of the MIT license.
@@ -240,7 +240,7 @@ module Faker
240
240
 
241
241
  paragraph += " #{paragraph(sentence_count: 3)}" while paragraph.length < characters
242
242
 
243
- "#{paragraph[0...characters - 1]}."
243
+ "#{paragraph[0...(characters - 1)]}."
244
244
  end
245
245
  end
246
246
  end
@@ -17,11 +17,7 @@ module Faker
17
17
  #
18
18
  # @faker.version 1.9.1
19
19
  def account_number(digits: 10)
20
- output = ''
21
-
22
- output += rand.to_s[2..] while output.length < digits
23
-
24
- output[0...digits]
20
+ Array.new(digits) { rand(10) }.join
25
21
  end
26
22
 
27
23
  ##
@@ -15,7 +15,8 @@ module Faker
15
15
  # Faker::Boolean.boolean(true_ratio: 0.2) #=> false
16
16
  #
17
17
  # @faker.version 1.6.2
18
- def boolean(true_ratio: 0.5)
18
+ #
19
+ def boolean(true_ratio: 0.5) # rubocop:disable Naming/PredicateMethod
19
20
  (rand < true_ratio)
20
21
  end
21
22
  end