ffaker 2.22.0 → 2.23.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 +120 -17
- data/Gemfile +15 -0
- data/README.md +3 -2
- data/REFERENCE.md +885 -868
- 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 +33 -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/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/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 +2 -2
- data/lib/ffaker/utils/unique_utils.rb +9 -5
- data/lib/ffaker/version.rb +1 -1
- data/lib/ffaker.rb +60 -191
- data/scripts/reference.rb +8 -10
- data/test/helper.rb +1 -1
- data/test/test_avatar.rb +30 -7
- data/test/test_bank_us.rb +35 -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_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_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
- metadata +7 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f45921dd1eae37420883610af8fa98376812b220f8bb19d15ad418eeeaf3926b
|
4
|
+
data.tar.gz: 3a05c27b2457b4920993430a334534a0b41f2b92d4b5b5f99de8ab8ba4b69ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba901db425ebad3cf7755b83ff07f81da266d63ae3370448ed473653fcdbad7b12585c5e6c2675be8f14db49e00b68fad19ceb30ea7af0147b817c02184ce1d6
|
7
|
+
data.tar.gz: de56b8153970b889b4a56ebec2662ef8a7eff9378a69fe4164c3cd2393f02e71b7ddcc0c396bcdd94978d6a4d2e67ce3bf65c7fcce3c6626e5733c493b24ba0a
|
data/Changelog.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
- Add your change HERE
|
4
4
|
|
5
|
+
# 2.23.0
|
6
|
+
- Add FFaker::BankUS.accounting_number [@professor]
|
7
|
+
- Add FFaker::BankUS.routing_number [@professor]
|
8
|
+
- Resolve a lot of RuboCop offenses [@AlexWayfer]
|
9
|
+
- Change `Image.url`, `Image.file`, `Book.cover` and `Avatar.image` arguments to keywords [@AlexWayfer]
|
10
|
+
- Adds FFaker::Date.birthday [@professor]
|
11
|
+
- Adds FFaker::Crypto.sha256 [@professor]
|
12
|
+
- Update README [@professor]
|
13
|
+
- Adds FFaker::Number.between [@professor]
|
14
|
+
- Fixed `FFaker::Number.unique.number(digits: 1)` under Ruby 3 [@simonhildebrandt]
|
15
|
+
|
5
16
|
# 2.22.0
|
6
17
|
- *BREAKING CHANGE*: Drop support under ruby 2.7 [@marocchino]
|
7
18
|
- Correct Vehicle::VIN result [@philippevezina]
|
@@ -21,7 +32,7 @@
|
|
21
32
|
- Add Ruby 3.1 to CI matrix [@petergoldstein]
|
22
33
|
- Add AnimalBr [@thiago-henrique-leite]
|
23
34
|
- Fix rubocop warnings [@mmrshk]
|
24
|
-
- Consistently generate REFERENCE.md [@technicalpickles and @Volosh1n]
|
35
|
+
- Consistently generate REFERENCE.md [@technicalpickles] and [@Volosh1n]
|
25
36
|
|
26
37
|
## 2.20.0
|
27
38
|
- Remove date from gem specification [@AlexWayfer]
|
@@ -44,7 +55,7 @@
|
|
44
55
|
- Test with Github actions & Ruby 3 [@marocchino]
|
45
56
|
- Generate reference by CI [@marocchino]
|
46
57
|
- Change the regex to cover all scenarios in lorem_fr [@abnersajr]
|
47
|
-
- Add "Freedom Ipsum" text generator option [@hmaack and @lynnd335]
|
58
|
+
- Add "Freedom Ipsum" text generator option [@hmaack] and [@lynnd335]
|
48
59
|
- Fix issues with `FFaker::Image` module [@hmaack]
|
49
60
|
- Fix typo in animal.rb module [@renius]
|
50
61
|
|
@@ -207,21 +218,6 @@
|
|
207
218
|
- many internal library and test suite refactorings
|
208
219
|
|
209
220
|
|
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
221
|
|
226
222
|
## 2.0.0
|
227
223
|
- switched faker to ffaker namespace, you should now be able to use
|
@@ -431,3 +427,110 @@ Api additions by Rafael Souza
|
|
431
427
|
## 0.1.0 2007-11-22
|
432
428
|
|
433
429
|
* Initial release
|
430
|
+
|
431
|
+
[#181]: https://github.com/ffaker/ffaker/issues/181
|
432
|
+
[#191]: https://github.com/ffaker/ffaker/issues/191
|
433
|
+
[#193]: https://github.com/ffaker/ffaker/issues/193
|
434
|
+
[#195]: https://github.com/ffaker/ffaker/issues/195
|
435
|
+
[#196]: https://github.com/ffaker/ffaker/issues/196
|
436
|
+
[#199]: https://github.com/ffaker/ffaker/issues/199
|
437
|
+
[#200]: https://github.com/ffaker/ffaker/issues/200
|
438
|
+
[#203]: https://github.com/ffaker/ffaker/issues/203
|
439
|
+
[#211]: https://github.com/ffaker/ffaker/pull/211
|
440
|
+
[#212]: https://github.com/ffaker/ffaker/pull/212
|
441
|
+
[#213]: https://github.com/ffaker/ffaker/pull/213
|
442
|
+
[@44uk]: https://github.com/44uk
|
443
|
+
[@AlexAvlonitis]: https://github.com/AlexAvlonitis
|
444
|
+
[@AlexWayfer]: https://github.com/AlexWayfer
|
445
|
+
[@CarlosMouraJR]: https://github.com/CarlosMouraJR
|
446
|
+
[@GuillaumeOcculy]: https://github.com/GuillaumeOcculy
|
447
|
+
[@IgorMarques]: https://github.com/IgorMarques
|
448
|
+
[@Kutomore]: https://github.com/Kutomore
|
449
|
+
[@MQuy]: https://github.com/MQuy
|
450
|
+
[@Moafak]: https://github.com/Moafak
|
451
|
+
[@Phanithism]: https://github.com/Phanithism
|
452
|
+
[@Sephyros]: https://github.com/Sephyros
|
453
|
+
[@SteveRedka]: https://github.com/SteveRedka
|
454
|
+
[@Volosh1n]: https://github.com/Volosh1n
|
455
|
+
[@YutaGoto]: https://github.com/YutaGoto
|
456
|
+
[@aaronsama]: https://github.com/aaronsama
|
457
|
+
[@abnersajr]: https://github.com/abnersajr
|
458
|
+
[@adimircolen]: https://github.com/adimircolen
|
459
|
+
[@alagu]: https://github.com/alagu
|
460
|
+
[@alibby]: https://github.com/alibby
|
461
|
+
[@anderscarling]: https://github.com/anderscarling
|
462
|
+
[@andyklimczak]: https://github.com/andyklimczak
|
463
|
+
[@ar2em1s]: https://github.com/ar2em1s
|
464
|
+
[@artplan1]: https://github.com/artplan1
|
465
|
+
[@az3vedo]: https://github.com/az3vedo
|
466
|
+
[@brain64bit]: https://github.com/brain64bit
|
467
|
+
[@brnrdog]: https://github.com/brnrdog
|
468
|
+
[@brupla6126]: https://github.com/brupla6126
|
469
|
+
[@ckyOL]: https://github.com/ckyOL
|
470
|
+
[@danderozier]: https://github.com/danderozier
|
471
|
+
[@dankimio]: https://github.com/dankimio
|
472
|
+
[@delucas]: https://github.com/delucas
|
473
|
+
[@dimroc]: https://github.com/dimroc
|
474
|
+
[@dphurley]: https://github.com/dphurley
|
475
|
+
[@eikes]: https://github.com/eikes
|
476
|
+
[@falegk]: https://github.com/falegk
|
477
|
+
[@firedev]: https://github.com/firedev
|
478
|
+
[@gabrielcosta42]: https://github.com/gabrielcosta42
|
479
|
+
[@gerard76]: https://github.com/gerard76
|
480
|
+
[@gruz0]: https://github.com/gruz0
|
481
|
+
[@hmaack]: https://github.com/hmaack
|
482
|
+
[@hulous]: https://github.com/hulous
|
483
|
+
[@iamarmanjon]: https://github.com/iamarmanjon
|
484
|
+
[@iiwo]: https://github.com/iiwo
|
485
|
+
[@j0al]: https://github.com/j0al
|
486
|
+
[@jakubm]: https://github.com/jakubm
|
487
|
+
[@jasonleonhard]: https://github.com/jasonleonhard
|
488
|
+
[@joshdvir]: https://github.com/joshdvir
|
489
|
+
[@josieljunior]: https://github.com/josieljunior
|
490
|
+
[@jvanbaarsen]: https://github.com/jvanbaarsen
|
491
|
+
[@kmayer]: https://github.com/kmayer
|
492
|
+
[@kojino]: https://github.com/kojino
|
493
|
+
[@ktroutner]: https://github.com/ktroutner
|
494
|
+
[@lilsweetcaligula]: https://github.com/lilsweetcaligula
|
495
|
+
[@lynnd335]: https://github.com/lynnd335
|
496
|
+
[@makketagg]: https://github.com/makketagg
|
497
|
+
[@marocchino]: https://github.com/marocchino
|
498
|
+
[@max-si-m]: https://github.com/max-si-m
|
499
|
+
[@mechos3d]: https://github.com/mechos3d
|
500
|
+
[@metalelf0]: https://github.com/metalelf0
|
501
|
+
[@miscelatore]: https://github.com/miscelatore
|
502
|
+
[@mklemme]: https://github.com/mklemme
|
503
|
+
[@mmrshk]: https://github.com/mmrshk
|
504
|
+
[@nav16]: https://github.com/nav16
|
505
|
+
[@ni3t]: https://github.com/ni3t
|
506
|
+
[@nicholaskillin]: https://github.com/nicholaskillin
|
507
|
+
[@nicolas-brousse]: https://github.com/nicolas-brousse
|
508
|
+
[@nigelgomesot]: https://github.com/nigelgomesot
|
509
|
+
[@pawelma]: https://github.com/pawelma
|
510
|
+
[@petergoldstein]: https://github.com/petergoldstein
|
511
|
+
[@philippevezina]: https://github.com/philippevezina
|
512
|
+
[@pominx]: https://github.com/pominx
|
513
|
+
[@professor]: https://github.com/professor
|
514
|
+
[@renius]: https://github.com/renius
|
515
|
+
[@rgcamus]: https://github.com/rgcamus
|
516
|
+
[@robin]: https://github.com/robin
|
517
|
+
[@rocknruby]: https://github.com/rocknruby
|
518
|
+
[@rstacruz]: https://github.com/rstacruz
|
519
|
+
[@rvisuvasam]: https://github.com/rvisuvasam
|
520
|
+
[@simonhildebrandt]: https://github.com/simonhildebrandt
|
521
|
+
[@slowjack2k]: https://github.com/slowjack2k
|
522
|
+
[@spheric]: https://github.com/spheric
|
523
|
+
[@steverovsky]: https://github.com/steverovsky
|
524
|
+
[@stilist]: https://github.com/stilist
|
525
|
+
[@tatey]: https://github.com/tatey
|
526
|
+
[@technicalpickles]: https://github.com/technicalpickles
|
527
|
+
[@thiago-henrique-leite]: https://github.com/thiago-henrique-leite
|
528
|
+
[@thilonel]: https://github.com/thilonel
|
529
|
+
[@thutterer]: https://github.com/thutterer
|
530
|
+
[@timfanda35]: https://github.com/timfanda35
|
531
|
+
[@tvarley]: https://github.com/tvarley
|
532
|
+
[@ulzr]: https://github.com/ulzr
|
533
|
+
[@vinhnglx]: https://github.com/vinhnglx
|
534
|
+
[@waldyr]: https://github.com/waldyr
|
535
|
+
[@walerian777]: https://github.com/walerian777
|
536
|
+
[@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.
|