ffaker 2.22.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +129 -17
- data/Gemfile +15 -0
- data/README.md +3 -2
- data/REFERENCE.md +893 -866
- data/Rakefile +7 -7
- data/ffaker.gemspec +2 -6
- data/lib/ffaker/address.rb +4 -4
- data/lib/ffaker/address_fr.rb +3 -5
- data/lib/ffaker/address_it.rb +1 -4
- data/lib/ffaker/avatar.rb +11 -3
- data/lib/ffaker/bank.rb +1 -1
- data/lib/ffaker/bank_us.rb +37 -0
- data/lib/ffaker/book.rb +10 -2
- data/lib/ffaker/cheesy_lingo.rb +2 -2
- data/lib/ffaker/code.rb +1 -1
- data/lib/ffaker/company.rb +1 -1
- data/lib/ffaker/company_fr.rb +1 -1
- data/lib/ffaker/crypto.rb +14 -0
- data/lib/ffaker/date.rb +9 -0
- data/lib/ffaker/filesystem.rb +12 -2
- data/lib/ffaker/guid.rb +7 -1
- data/lib/ffaker/identification_br.rb +2 -11
- data/lib/ffaker/identification_ec.rb +1 -1
- data/lib/ffaker/identification_es_cl.rb +1 -1
- data/lib/ffaker/identification_kr.rb +10 -3
- data/lib/ffaker/identification_pl.rb +2 -2
- data/lib/ffaker/image.rb +28 -4
- data/lib/ffaker/lorem_ja.rb +1 -1
- data/lib/ffaker/lorem_ru.rb +1 -1
- data/lib/ffaker/movie.rb +1 -1
- data/lib/ffaker/name_fr.rb +4 -3
- data/lib/ffaker/name_pl.rb +2 -2
- data/lib/ffaker/number.rb +4 -0
- data/lib/ffaker/phone_number_de.rb +3 -3
- data/lib/ffaker/skill.rb +1 -1
- data/lib/ffaker/ssn.rb +4 -2
- data/lib/ffaker/string.rb +1 -1
- data/lib/ffaker/utils/module_utils.rb +8 -17
- data/lib/ffaker/utils/unique_utils.rb +9 -5
- data/lib/ffaker/uuid.rb +175 -0
- data/lib/ffaker/version.rb +1 -1
- data/lib/ffaker.rb +61 -191
- data/scripts/reference.rb +8 -10
- data/test/helper.rb +5 -5
- data/test/test_avatar.rb +30 -7
- data/test/test_bank_us.rb +37 -0
- data/test/test_book.rb +29 -0
- data/test/test_crypto.rb +15 -0
- data/test/test_date.rb +11 -1
- data/test/test_filesystem.rb +28 -2
- data/test/test_guid.rb +1 -1
- data/test/test_healthcare_ru.rb +1 -1
- data/test/test_identification.rb +12 -2
- data/test/test_identification_ec.rb +1 -1
- data/test/test_identification_es_mx.rb +3 -1
- data/test/test_identification_it.rb +12 -1
- data/test/test_identification_kr.rb +3 -3
- data/test/test_image.rb +51 -5
- data/test/test_internet.rb +3 -1
- data/test/test_internet_se.rb +3 -1
- data/test/test_lorem_br.rb +1 -1
- data/test/test_lorem_ru.rb +1 -1
- data/test/test_lorem_ua.rb +1 -1
- data/test/test_module_utils.rb +9 -0
- data/test/test_name_ua.rb +1 -1
- data/test/test_number.rb +13 -1
- data/test/test_phone_number_nl.rb +1 -1
- data/test/test_unique_utils.rb +4 -0
- data/test/test_units.rb +6 -6
- data/test/test_units_english.rb +15 -15
- data/test/test_units_metric.rb +15 -15
- data/test/test_uuid.rb +73 -0
- metadata +13 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c8072b526b9b1d423553c5877e7a19d9cbcc03a1bdd10c48f6c5cfe9532262
|
4
|
+
data.tar.gz: 3e4f7fd7370d4945aeb5dbab1897618ac9c29bc67da6f4da75aee4523b078e31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fef600bf5bdd1ef129dab725d3e125cf258add560e199829990001347a2a837e62ecd49b9885eda72d9f95f9be6e4be1ddaacd4f4a1e61bb9a8cb0d3c8aabf
|
7
|
+
data.tar.gz: 0cc71a0457961649effdc6017b4d29ae9230cfad916796acb9f75ef2565635f06c6c9a0b88e371ee84d764cf5ed8c734739a0b5fa9743ff842347e6b4fe44cc8
|
data/Changelog.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|
- Add your change HERE
|
4
4
|
|
5
|
+
# 2.24.0
|
6
|
+
- *BREAKING CHANGE*: Drop support under ruby 3.0 [@marocchino]
|
7
|
+
- Add ruby 3.4 to CI [@marocchino]
|
8
|
+
- Add ruby 3.3 to CI [@boimw]
|
9
|
+
- Fix Luhn algorithm used in french companie's SIRET and sweden SSN [@Krap]
|
10
|
+
- Add `FFaker::UUID` `.uuidv4`, `.uuidv6`, `.uuidv7`, and `.uuidv8` [@stilist]
|
11
|
+
- Deprecate `FFaker::Guid.guid` in favor of `FFaker::UUID` methods [@stilist]
|
12
|
+
- Limit FFaker::BankUS.routing_number first two digits [@professor]
|
13
|
+
|
14
|
+
# 2.23.0
|
15
|
+
- Add FFaker::BankUS.accounting_number [@professor]
|
16
|
+
- Add FFaker::BankUS.routing_number [@professor]
|
17
|
+
- Resolve a lot of RuboCop offenses [@AlexWayfer]
|
18
|
+
- Change `Image.url`, `Image.file`, `Book.cover` and `Avatar.image` arguments to keywords [@AlexWayfer]
|
19
|
+
- Adds FFaker::Date.birthday [@professor]
|
20
|
+
- Adds FFaker::Crypto.sha256 [@professor]
|
21
|
+
- Update README [@professor]
|
22
|
+
- Adds FFaker::Number.between [@professor]
|
23
|
+
- Fixed `FFaker::Number.unique.number(digits: 1)` under Ruby 3 [@simonhildebrandt]
|
24
|
+
|
5
25
|
# 2.22.0
|
6
26
|
- *BREAKING CHANGE*: Drop support under ruby 2.7 [@marocchino]
|
7
27
|
- Correct Vehicle::VIN result [@philippevezina]
|
@@ -21,7 +41,7 @@
|
|
21
41
|
- Add Ruby 3.1 to CI matrix [@petergoldstein]
|
22
42
|
- Add AnimalBr [@thiago-henrique-leite]
|
23
43
|
- Fix rubocop warnings [@mmrshk]
|
24
|
-
- Consistently generate REFERENCE.md [@technicalpickles and @Volosh1n]
|
44
|
+
- Consistently generate REFERENCE.md [@technicalpickles] and [@Volosh1n]
|
25
45
|
|
26
46
|
## 2.20.0
|
27
47
|
- Remove date from gem specification [@AlexWayfer]
|
@@ -44,7 +64,7 @@
|
|
44
64
|
- Test with Github actions & Ruby 3 [@marocchino]
|
45
65
|
- Generate reference by CI [@marocchino]
|
46
66
|
- Change the regex to cover all scenarios in lorem_fr [@abnersajr]
|
47
|
-
- Add "Freedom Ipsum" text generator option [@hmaack and @lynnd335]
|
67
|
+
- Add "Freedom Ipsum" text generator option [@hmaack] and [@lynnd335]
|
48
68
|
- Fix issues with `FFaker::Image` module [@hmaack]
|
49
69
|
- Fix typo in animal.rb module [@renius]
|
50
70
|
|
@@ -207,21 +227,6 @@
|
|
207
227
|
- many internal library and test suite refactorings
|
208
228
|
|
209
229
|
|
210
|
-
[#181]: https://github.com/ffaker/ffaker/issues/181
|
211
|
-
[#191]: https://github.com/ffaker/ffaker/issues/191
|
212
|
-
[#193]: https://github.com/ffaker/ffaker/issues/193
|
213
|
-
[#195]: https://github.com/ffaker/ffaker/issues/195
|
214
|
-
[#196]: https://github.com/ffaker/ffaker/issues/196
|
215
|
-
[#199]: https://github.com/ffaker/ffaker/issues/199
|
216
|
-
[#200]: https://github.com/ffaker/ffaker/issues/200
|
217
|
-
[#203]: https://github.com/ffaker/ffaker/issues/203
|
218
|
-
[#211]: https://github.com/ffaker/ffaker/pull/211
|
219
|
-
[#212]: https://github.com/ffaker/ffaker/pull/212
|
220
|
-
[#213]: https://github.com/ffaker/ffaker/pull/213
|
221
|
-
[@marocchino]: https://github.com/marocchino
|
222
|
-
[@rstacruz]: https://github.com/rstacruz
|
223
|
-
[@anderscarling]: https://github.com/anderscarling
|
224
|
-
|
225
230
|
|
226
231
|
## 2.0.0
|
227
232
|
- switched faker to ffaker namespace, you should now be able to use
|
@@ -431,3 +436,110 @@ Api additions by Rafael Souza
|
|
431
436
|
## 0.1.0 2007-11-22
|
432
437
|
|
433
438
|
* Initial release
|
439
|
+
|
440
|
+
[#181]: https://github.com/ffaker/ffaker/issues/181
|
441
|
+
[#191]: https://github.com/ffaker/ffaker/issues/191
|
442
|
+
[#193]: https://github.com/ffaker/ffaker/issues/193
|
443
|
+
[#195]: https://github.com/ffaker/ffaker/issues/195
|
444
|
+
[#196]: https://github.com/ffaker/ffaker/issues/196
|
445
|
+
[#199]: https://github.com/ffaker/ffaker/issues/199
|
446
|
+
[#200]: https://github.com/ffaker/ffaker/issues/200
|
447
|
+
[#203]: https://github.com/ffaker/ffaker/issues/203
|
448
|
+
[#211]: https://github.com/ffaker/ffaker/pull/211
|
449
|
+
[#212]: https://github.com/ffaker/ffaker/pull/212
|
450
|
+
[#213]: https://github.com/ffaker/ffaker/pull/213
|
451
|
+
[@44uk]: https://github.com/44uk
|
452
|
+
[@AlexAvlonitis]: https://github.com/AlexAvlonitis
|
453
|
+
[@AlexWayfer]: https://github.com/AlexWayfer
|
454
|
+
[@CarlosMouraJR]: https://github.com/CarlosMouraJR
|
455
|
+
[@GuillaumeOcculy]: https://github.com/GuillaumeOcculy
|
456
|
+
[@IgorMarques]: https://github.com/IgorMarques
|
457
|
+
[@Kutomore]: https://github.com/Kutomore
|
458
|
+
[@MQuy]: https://github.com/MQuy
|
459
|
+
[@Moafak]: https://github.com/Moafak
|
460
|
+
[@Phanithism]: https://github.com/Phanithism
|
461
|
+
[@Sephyros]: https://github.com/Sephyros
|
462
|
+
[@SteveRedka]: https://github.com/SteveRedka
|
463
|
+
[@Volosh1n]: https://github.com/Volosh1n
|
464
|
+
[@YutaGoto]: https://github.com/YutaGoto
|
465
|
+
[@aaronsama]: https://github.com/aaronsama
|
466
|
+
[@abnersajr]: https://github.com/abnersajr
|
467
|
+
[@adimircolen]: https://github.com/adimircolen
|
468
|
+
[@alagu]: https://github.com/alagu
|
469
|
+
[@alibby]: https://github.com/alibby
|
470
|
+
[@anderscarling]: https://github.com/anderscarling
|
471
|
+
[@andyklimczak]: https://github.com/andyklimczak
|
472
|
+
[@ar2em1s]: https://github.com/ar2em1s
|
473
|
+
[@artplan1]: https://github.com/artplan1
|
474
|
+
[@az3vedo]: https://github.com/az3vedo
|
475
|
+
[@brain64bit]: https://github.com/brain64bit
|
476
|
+
[@brnrdog]: https://github.com/brnrdog
|
477
|
+
[@brupla6126]: https://github.com/brupla6126
|
478
|
+
[@ckyOL]: https://github.com/ckyOL
|
479
|
+
[@danderozier]: https://github.com/danderozier
|
480
|
+
[@dankimio]: https://github.com/dankimio
|
481
|
+
[@delucas]: https://github.com/delucas
|
482
|
+
[@dimroc]: https://github.com/dimroc
|
483
|
+
[@dphurley]: https://github.com/dphurley
|
484
|
+
[@eikes]: https://github.com/eikes
|
485
|
+
[@falegk]: https://github.com/falegk
|
486
|
+
[@firedev]: https://github.com/firedev
|
487
|
+
[@gabrielcosta42]: https://github.com/gabrielcosta42
|
488
|
+
[@gerard76]: https://github.com/gerard76
|
489
|
+
[@gruz0]: https://github.com/gruz0
|
490
|
+
[@hmaack]: https://github.com/hmaack
|
491
|
+
[@hulous]: https://github.com/hulous
|
492
|
+
[@iamarmanjon]: https://github.com/iamarmanjon
|
493
|
+
[@iiwo]: https://github.com/iiwo
|
494
|
+
[@j0al]: https://github.com/j0al
|
495
|
+
[@jakubm]: https://github.com/jakubm
|
496
|
+
[@jasonleonhard]: https://github.com/jasonleonhard
|
497
|
+
[@joshdvir]: https://github.com/joshdvir
|
498
|
+
[@josieljunior]: https://github.com/josieljunior
|
499
|
+
[@jvanbaarsen]: https://github.com/jvanbaarsen
|
500
|
+
[@kmayer]: https://github.com/kmayer
|
501
|
+
[@kojino]: https://github.com/kojino
|
502
|
+
[@ktroutner]: https://github.com/ktroutner
|
503
|
+
[@lilsweetcaligula]: https://github.com/lilsweetcaligula
|
504
|
+
[@lynnd335]: https://github.com/lynnd335
|
505
|
+
[@makketagg]: https://github.com/makketagg
|
506
|
+
[@marocchino]: https://github.com/marocchino
|
507
|
+
[@max-si-m]: https://github.com/max-si-m
|
508
|
+
[@mechos3d]: https://github.com/mechos3d
|
509
|
+
[@metalelf0]: https://github.com/metalelf0
|
510
|
+
[@miscelatore]: https://github.com/miscelatore
|
511
|
+
[@mklemme]: https://github.com/mklemme
|
512
|
+
[@mmrshk]: https://github.com/mmrshk
|
513
|
+
[@nav16]: https://github.com/nav16
|
514
|
+
[@ni3t]: https://github.com/ni3t
|
515
|
+
[@nicholaskillin]: https://github.com/nicholaskillin
|
516
|
+
[@nicolas-brousse]: https://github.com/nicolas-brousse
|
517
|
+
[@nigelgomesot]: https://github.com/nigelgomesot
|
518
|
+
[@pawelma]: https://github.com/pawelma
|
519
|
+
[@petergoldstein]: https://github.com/petergoldstein
|
520
|
+
[@philippevezina]: https://github.com/philippevezina
|
521
|
+
[@pominx]: https://github.com/pominx
|
522
|
+
[@professor]: https://github.com/professor
|
523
|
+
[@renius]: https://github.com/renius
|
524
|
+
[@rgcamus]: https://github.com/rgcamus
|
525
|
+
[@robin]: https://github.com/robin
|
526
|
+
[@rocknruby]: https://github.com/rocknruby
|
527
|
+
[@rstacruz]: https://github.com/rstacruz
|
528
|
+
[@rvisuvasam]: https://github.com/rvisuvasam
|
529
|
+
[@simonhildebrandt]: https://github.com/simonhildebrandt
|
530
|
+
[@slowjack2k]: https://github.com/slowjack2k
|
531
|
+
[@spheric]: https://github.com/spheric
|
532
|
+
[@steverovsky]: https://github.com/steverovsky
|
533
|
+
[@stilist]: https://github.com/stilist
|
534
|
+
[@tatey]: https://github.com/tatey
|
535
|
+
[@technicalpickles]: https://github.com/technicalpickles
|
536
|
+
[@thiago-henrique-leite]: https://github.com/thiago-henrique-leite
|
537
|
+
[@thilonel]: https://github.com/thilonel
|
538
|
+
[@thutterer]: https://github.com/thutterer
|
539
|
+
[@timfanda35]: https://github.com/timfanda35
|
540
|
+
[@tvarley]: https://github.com/tvarley
|
541
|
+
[@ulzr]: https://github.com/ulzr
|
542
|
+
[@vinhnglx]: https://github.com/vinhnglx
|
543
|
+
[@waldyr]: https://github.com/waldyr
|
544
|
+
[@walerian777]: https://github.com/walerian777
|
545
|
+
[@xunker]: https://github.com/xunker
|
data/Gemfile
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
|
+
|
4
5
|
gemspec
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :development, :lint do
|
12
|
+
gem 'rubocop'
|
13
|
+
gem 'rubocop-performance'
|
14
|
+
gem 'rubocop-rake'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :development, :test do
|
18
|
+
gem 'test-unit'
|
19
|
+
end
|
data/README.md
CHANGED
@@ -105,8 +105,9 @@ FFaker::UniqueUtils.clear # clears the used values for all generators
|
|
105
105
|
|
106
106
|
* Fork the project.
|
107
107
|
* Make your feature addition or bug fix.
|
108
|
-
* Add tests for it. This is important so I don't break it in a
|
109
|
-
|
108
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
109
|
+
* To run all the tests: `rake test`
|
110
|
+
* To run a single test: `rake test TEST=test/test_lorem_br.rb`
|
110
111
|
* Commit, do not mess with rakefile, version, or history.
|
111
112
|
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
112
113
|
* Send me a pull request. Bonus points for topic branches.
|