ffaker 2.21.0 → 2.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +131 -17
  3. data/Gemfile +15 -0
  4. data/README.md +18 -6
  5. data/REFERENCE.md +1012 -969
  6. data/Rakefile +16 -47
  7. data/bin/console +9 -0
  8. data/ffaker.gemspec +9 -23
  9. data/lib/ffaker/address.rb +4 -4
  10. data/lib/ffaker/address_fr.rb +3 -5
  11. data/lib/ffaker/address_it.rb +1 -4
  12. data/lib/ffaker/address_ua.rb +1 -1
  13. data/lib/ffaker/avatar.rb +11 -3
  14. data/lib/ffaker/bank.rb +1 -1
  15. data/lib/ffaker/bank_us.rb +33 -0
  16. data/lib/ffaker/book.rb +15 -7
  17. data/lib/ffaker/cheesy_lingo.rb +2 -2
  18. data/lib/ffaker/code.rb +1 -1
  19. data/lib/ffaker/company.rb +2 -2
  20. data/lib/ffaker/company_fr.rb +2 -2
  21. data/lib/ffaker/crypto.rb +14 -0
  22. data/lib/ffaker/data/address_de/state +1 -0
  23. data/lib/ffaker/data/jo_jo/first_names +356 -0
  24. data/lib/ffaker/data/jo_jo/full_names +225 -0
  25. data/lib/ffaker/data/jo_jo/last_names +153 -0
  26. data/lib/ffaker/data/jo_jo/stands +149 -0
  27. data/lib/ffaker/date.rb +40 -0
  28. data/lib/ffaker/filesystem.rb +12 -2
  29. data/lib/ffaker/geolocation.rb +2 -2
  30. data/lib/ffaker/identification_br.rb +3 -12
  31. data/lib/ffaker/identification_ec.rb +39 -0
  32. data/lib/ffaker/identification_es_cl.rb +2 -2
  33. data/lib/ffaker/identification_es_co.rb +1 -1
  34. data/lib/ffaker/identification_kr.rb +11 -4
  35. data/lib/ffaker/identification_pl.rb +6 -6
  36. data/lib/ffaker/identification_tw.rb +1 -1
  37. data/lib/ffaker/image.rb +28 -4
  38. data/lib/ffaker/jo_jo.rb +24 -0
  39. data/lib/ffaker/lorem_ja.rb +1 -1
  40. data/lib/ffaker/lorem_ru.rb +1 -1
  41. data/lib/ffaker/movie.rb +1 -1
  42. data/lib/ffaker/name_fr.rb +4 -3
  43. data/lib/ffaker/name_pl.rb +1 -1
  44. data/lib/ffaker/number.rb +6 -2
  45. data/lib/ffaker/phone_number_de.rb +3 -3
  46. data/lib/ffaker/skill.rb +1 -1
  47. data/lib/ffaker/ssn.rb +4 -2
  48. data/lib/ffaker/ssn_se.rb +2 -2
  49. data/lib/ffaker/string.rb +1 -1
  50. data/lib/ffaker/time.rb +3 -3
  51. data/lib/ffaker/utils/module_utils.rb +5 -6
  52. data/lib/ffaker/utils/unique_utils.rb +33 -21
  53. data/lib/ffaker/vehicle.rb +2 -2
  54. data/lib/{version.rb → ffaker/version.rb} +1 -1
  55. data/lib/ffaker.rb +63 -191
  56. data/scripts/reference.rb +8 -10
  57. data/test/helper.rb +3 -5
  58. data/test/test_address_da.rb +3 -3
  59. data/test/test_address_fi.rb +2 -2
  60. data/test/test_address_se.rb +2 -2
  61. data/test/test_avatar.rb +30 -7
  62. data/test/test_bank_us.rb +35 -0
  63. data/test/test_book.rb +29 -0
  64. data/test/test_cheesy_lingo.rb +1 -1
  65. data/test/test_color.rb +3 -3
  66. data/test/test_crypto.rb +15 -0
  67. data/test/test_date.rb +47 -0
  68. data/test/test_filesystem.rb +30 -4
  69. data/test/test_freedom_ipsum.rb +1 -1
  70. data/test/test_gender_it.rb +1 -1
  71. data/test/test_gender_ja.rb +1 -1
  72. data/test/test_gender_jp.rb +1 -1
  73. data/test/test_gender_pl.rb +1 -1
  74. data/test/test_healthcare_ru.rb +1 -1
  75. data/test/test_hipster_ipsum.rb +1 -1
  76. data/test/test_html_ipsum.rb +2 -2
  77. data/test/test_identification.rb +12 -2
  78. data/test/test_identification_ec.rb +33 -0
  79. data/test/test_identification_es_mx.rb +3 -1
  80. data/test/test_identification_it.rb +12 -1
  81. data/test/test_identification_kr.rb +3 -3
  82. data/test/test_image.rb +51 -5
  83. data/test/test_internet.rb +3 -1
  84. data/test/test_internet_se.rb +5 -2
  85. data/test/test_jo_jo.rb +29 -0
  86. data/test/test_lorem_br.rb +2 -2
  87. data/test/test_lorem_cn.rb +3 -3
  88. data/test/test_lorem_fr.rb +3 -3
  89. data/test/test_lorem_ie.rb +2 -2
  90. data/test/test_lorem_kr.rb +3 -3
  91. data/test/test_lorem_pl.rb +2 -2
  92. data/test/test_lorem_ru.rb +3 -3
  93. data/test/test_lorem_ua.rb +3 -3
  94. data/test/test_module_utils.rb +33 -0
  95. data/test/test_name_da.rb +1 -1
  96. data/test/test_name_ph.rb +1 -1
  97. data/test/test_name_ru.rb +2 -2
  98. data/test/test_name_ua.rb +2 -2
  99. data/test/test_number.rb +13 -1
  100. data/test/test_phone_number_nl.rb +1 -1
  101. data/test/test_phone_number_se.rb +1 -1
  102. data/test/test_phone_number_sg.rb +8 -8
  103. data/test/test_unique_utils.rb +29 -5
  104. data/test/test_units.rb +6 -6
  105. data/test/test_units_english.rb +15 -15
  106. data/test/test_units_metric.rb +15 -15
  107. data/test/test_vehicle.rb +22 -0
  108. metadata +24 -241
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/ffaker/ffaker/graphs/contributors
@@ -9,50 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-08 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '13.0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: '13.0'
28
- - !ruby/object:Gem::Dependency
29
- name: rubocop
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: test-unit
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
12
+ date: 2023-09-19 00:00:00.000000000 Z
13
+ dependencies: []
56
14
  description: Ffaker generates dummy data.
57
15
  email: EmmanuelOga@gmail.com
58
16
  executables: []
@@ -69,6 +27,7 @@ files:
69
27
  - README.md
70
28
  - REFERENCE.md
71
29
  - Rakefile
30
+ - bin/console
72
31
  - ffaker.gemspec
73
32
  - lib/ffaker.rb
74
33
  - lib/ffaker/address.rb
@@ -109,6 +68,7 @@ files:
109
68
  - lib/ffaker/aws.rb
110
69
  - lib/ffaker/bacon_ipsum.rb
111
70
  - lib/ffaker/bank.rb
71
+ - lib/ffaker/bank_us.rb
112
72
  - lib/ffaker/book.rb
113
73
  - lib/ffaker/boolean.rb
114
74
  - lib/ffaker/cheesy_lingo.rb
@@ -124,6 +84,7 @@ files:
124
84
  - lib/ffaker/company_se.rb
125
85
  - lib/ffaker/conference.rb
126
86
  - lib/ffaker/courses_fr.rb
87
+ - lib/ffaker/crypto.rb
127
88
  - lib/ffaker/currency.rb
128
89
  - lib/ffaker/data/address/city_suffixes
129
90
  - lib/ffaker/data/address/country
@@ -303,6 +264,10 @@ files:
303
264
  - lib/ffaker/data/healthcare_ru/doctor_specialization
304
265
  - lib/ffaker/data/hipster_ipsum/hipster_words
305
266
  - lib/ffaker/data/identification_mx/estados_curp
267
+ - lib/ffaker/data/jo_jo/first_names
268
+ - lib/ffaker/data/jo_jo/full_names
269
+ - lib/ffaker/data/jo_jo/last_names
270
+ - lib/ffaker/data/jo_jo/stands
306
271
  - lib/ffaker/data/job/job_adj
307
272
  - lib/ffaker/data/job/job_noun
308
273
  - lib/ffaker/data/job/job_prefix
@@ -485,6 +450,7 @@ files:
485
450
  - lib/ffaker/data/vehicle/upholstery_list
486
451
  - lib/ffaker/data/venue/venue_list
487
452
  - lib/ffaker/data/youtube/video_ids
453
+ - lib/ffaker/date.rb
488
454
  - lib/ffaker/dizzle_ipsum.rb
489
455
  - lib/ffaker/education.rb
490
456
  - lib/ffaker/education_cn.rb
@@ -511,6 +477,7 @@ files:
511
477
  - lib/ffaker/html_ipsum.rb
512
478
  - lib/ffaker/identification.rb
513
479
  - lib/ffaker/identification_br.rb
480
+ - lib/ffaker/identification_ec.rb
514
481
  - lib/ffaker/identification_es.rb
515
482
  - lib/ffaker/identification_es_cl.rb
516
483
  - lib/ffaker/identification_es_co.rb
@@ -523,6 +490,7 @@ files:
523
490
  - lib/ffaker/image.rb
524
491
  - lib/ffaker/internet.rb
525
492
  - lib/ffaker/internet_se.rb
493
+ - lib/ffaker/jo_jo.rb
526
494
  - lib/ffaker/job.rb
527
495
  - lib/ffaker/job_br.rb
528
496
  - lib/ffaker/job_cn.rb
@@ -621,8 +589,8 @@ files:
621
589
  - lib/ffaker/utils/unique_utils.rb
622
590
  - lib/ffaker/vehicle.rb
623
591
  - lib/ffaker/venue.rb
592
+ - lib/ffaker/version.rb
624
593
  - lib/ffaker/youtube.rb
625
- - lib/version.rb
626
594
  - scripts/benchmark.rb
627
595
  - scripts/profile.sh
628
596
  - scripts/profiling.rb
@@ -667,6 +635,7 @@ files:
667
635
  - test/test_aws.rb
668
636
  - test/test_bacon_ipsum.rb
669
637
  - test/test_bank.rb
638
+ - test/test_bank_us.rb
670
639
  - test/test_book.rb
671
640
  - test/test_boolean.rb
672
641
  - test/test_cheesy_lingo.rb
@@ -683,7 +652,9 @@ files:
683
652
  - test/test_conference.rb
684
653
  - test/test_course_mathematiques.rb
685
654
  - test/test_course_philosophie.rb
655
+ - test/test_crypto.rb
686
656
  - test/test_currency.rb
657
+ - test/test_date.rb
687
658
  - test/test_dizzle_ipsum.rb
688
659
  - test/test_education.rb
689
660
  - test/test_education_cn.rb
@@ -712,6 +683,7 @@ files:
712
683
  - test/test_identification.rb
713
684
  - test/test_identification_br.rb
714
685
  - test/test_identification_co.rb
686
+ - test/test_identification_ec.rb
715
687
  - test/test_identification_es.rb
716
688
  - test/test_identification_es_cl.rb
717
689
  - test/test_identification_es_mx.rb
@@ -723,6 +695,7 @@ files:
723
695
  - test/test_image.rb
724
696
  - test/test_internet.rb
725
697
  - test/test_internet_se.rb
698
+ - test/test_jo_jo.rb
726
699
  - test/test_job.rb
727
700
  - test/test_job_br.rb
728
701
  - test/test_job_cn.rb
@@ -824,6 +797,7 @@ licenses:
824
797
  metadata:
825
798
  changelog_uri: https://github.com/ffaker/ffaker/blob/main/Changelog.md
826
799
  documentation_uri: https://github.com/ffaker/ffaker/blob/main/REFERENCE.md
800
+ rubygems_mfa_required: 'true'
827
801
  post_install_message:
828
802
  rdoc_options:
829
803
  - "--charset=UTF-8"
@@ -833,206 +807,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
833
807
  requirements:
834
808
  - - ">="
835
809
  - !ruby/object:Gem::Version
836
- version: '2.5'
810
+ version: '3.0'
837
811
  required_rubygems_version: !ruby/object:Gem::Requirement
838
812
  requirements:
839
813
  - - ">="
840
814
  - !ruby/object:Gem::Version
841
815
  version: '0'
842
816
  requirements: []
843
- rubygems_version: 3.0.3.1
817
+ rubygems_version: 3.4.10
844
818
  signing_key:
845
- specification_version: 2
819
+ specification_version: 4
846
820
  summary: Ffaker generates dummy data.
847
- test_files:
848
- - test/test_internet_se.rb
849
- - test/test_phone_number_br.rb
850
- - test/test_game.rb
851
- - test/test_lorem_ie.rb
852
- - test/test_job_cn.rb
853
- - test/test_unique_utils.rb
854
- - test/helper.rb
855
- - test/test_animal_br.rb
856
- - test/test_phone_number_ua.rb
857
- - test/test_healthcare_ipsum.rb
858
- - test/test_animal_us.rb
859
- - test/test_address_ru.rb
860
- - test/test_dizzle_ipsum.rb
861
- - test/test_lorem.rb
862
- - test/test_name_ph.rb
863
- - test/test_name_br.rb
864
- - test/test_identification.rb
865
- - test/test_phone_number_mx.rb
866
- - test/test_identification_co.rb
867
- - test/test_address_in.rb
868
- - test/test_job_br.rb
869
- - test/test_lorem_it.rb
870
- - test/test_company_fr.rb
871
- - test/test_address_uk.rb
872
- - test/test_skill.rb
873
- - test/test_job_ja.rb
874
- - test/test_conference.rb
875
- - test/test_name_mx.rb
876
- - test/test_book.rb
877
- - test/test_phone_number_nl.rb
878
- - test/test_identification_br.rb
879
- - test/test_module_utils.rb
880
- - test/test_address_id.rb
881
- - test/test_course_philosophie.rb
882
- - test/test_address_au.rb
883
- - test/test_name_nl.rb
884
- - test/test_movie.rb
885
- - test/test_address_it.rb
886
- - test/test_bank.rb
887
- - test/test_nato_alphabet.rb
888
- - test/test_education.rb
889
- - test/test_color.rb
890
- - test/test_avatar.rb
891
- - test/test_sport_pl.rb
892
- - test/test_phone_number_au.rb
893
- - test/test_identification_es_mx.rb
894
- - test/test_venue.rb
895
- - test/test_gender_pl.rb
896
- - test/test_address_kr.rb
897
- - test/test_name_nb.rb
898
- - test/test_identification_kr.rb
899
- - test/test_company_ja.rb
900
- - test/test_address_ch_it.rb
901
- - test/test_address.rb
902
- - test/test_code.rb
903
- - test/test_name.rb
904
- - test/test_animal_cn.rb
905
- - test/test_identification_pl.rb
906
- - test/test_address_ca.rb
907
- - test/test_identification_it.rb
908
- - test/test_animal.rb
909
- - test/test_identification_es_cl.rb
910
- - test/test_gender_kr.rb
911
- - test/test_identification_es.rb
912
- - test/test_name_gr.rb
913
- - test/test_name_cn.rb
914
- - test/test_gender_id.rb
915
- - test/test_job_fr.rb
916
- - test/test_company_cn.rb
917
- - test/test_ssn_mx.rb
918
- - test/test_phone_number_sg.rb
919
- - test/test_boolean.rb
920
- - test/test_phone_number_cu.rb
921
- - test/test_music.rb
922
- - test/test_sports.rb
923
- - test/test_name_pl.rb
924
- - test/test_currency.rb
925
- - test/test_guid.rb
926
- - test/test_address_ja.rb
927
- - test/test_address_br.rb
928
- - test/test_phone_number_de.rb
929
- - test/test_aws.rb
930
- - test/test_phone_number_da.rb
931
- - test/test_internet.rb
932
- - test/test_address_fr.rb
933
- - test/test_phone_number_ja.rb
934
- - test/test_name_ar.rb
935
- - test/test_gender_br.rb
936
- - test/test_products.rb
937
- - test/test_name_id.rb
938
- - test/test_name_kh.rb
939
- - test/test_animal_es.rb
940
- - test/test_array_utils.rb
941
- - test/test_animal_pl.rb
942
- - test/test_time.rb
943
- - test/test_phone_number_it.rb
944
- - test/test_job_it.rb
945
- - test/test_name_th_en.rb
946
- - test/test_phone_number_ru.rb
947
- - test/test_food.rb
948
- - test/test_sport_ru.rb
949
- - test/test_identification_tw.rb
950
- - test/test_education_cn.rb
951
- - test/test_image.rb
952
- - test/test_lorem_kr.rb
953
- - test/test_identification_in.rb
954
- - test/test_address_pl.rb
955
- - test/test_name_es.rb
956
- - test/test_airline.rb
957
- - test/test_phone_number_sn.rb
958
- - test/test_vehicle.rb
959
- - test/test_job_vn.rb
960
- - test/test_gender_cn.rb
961
- - test/test_lorem_ar.rb
962
- - test/test_html_ipsum.rb
963
- - test/test_name_da.rb
964
- - test/test_name_ru.rb
965
- - test/test_units_metric.rb
966
- - test/test_address_mx.rb
967
- - test/test_phone_number_id.rb
968
- - test/test_number.rb
969
- - test/test_phone_number_se.rb
970
- - test/test_ssn.rb
971
- - test/test_lorem_ru.rb
972
- - test/test_gender.rb
973
- - test/test_address_ua.rb
974
- - test/test_address_gr.rb
975
- - test/test_color_pl.rb
976
- - test/test_name_ja.rb
977
- - test/test_job.rb
978
- - test/test_healthcare_ru.rb
979
- - test/test_tweet.rb
980
- - test/test_color_ua.rb
981
- - test/test_name_cs.rb
982
- - test/test_course_mathematiques.rb
983
- - test/test_lorem_ja.rb
984
- - test/test_name_tw.rb
985
- - test/test_job_kr.rb
986
- - test/test_address_ch.rb
987
- - test/test_name_sn.rb
988
- - test/test_ssn_se.rb
989
- - test/test_bacon_ipsum.rb
990
- - test/test_address_fi.rb
991
- - test/test_phone_number.rb
992
- - test/test_company_it.rb
993
- - test/test_sem_ver.rb
994
- - test/test_address_us.rb
995
- - test/test_address_ch_fr.rb
996
- - test/test_lorem_br.rb
997
- - test/test_units_english.rb
998
- - test/test_phone_number_pl.rb
999
- - test/test_name_vn.rb
1000
- - test/test_gender_ru.rb
1001
- - test/test_address_ch_de.rb
1002
- - test/test_filesystem.rb
1003
- - test/test_freedom_ipsum.rb
1004
- - test/test_name_it.rb
1005
- - test/test_name_th.rb
1006
- - test/test_gender_it.rb
1007
- - test/test_address_se.rb
1008
- - test/test_lorem_fr.rb
1009
- - test/test_string.rb
1010
- - test/test_locale.rb
1011
- - test/test_company.rb
1012
- - test/test_lorem_cn.rb
1013
- - test/test_sport_us.rb
1014
- - test/test_name_de.rb
1015
- - test/test_address_de.rb
1016
- - test/test_gender_ja.rb
1017
- - test/test_phone_number_fr.rb
1018
- - test/test_name_ga.rb
1019
- - test/test_hipster_ipsum.rb
1020
- - test/test_phone_number_tw.rb
1021
- - test/test_lorem_pl.rb
1022
- - test/test_units.rb
1023
- - test/test_address_nl.rb
1024
- - test/test_geolocation.rb
1025
- - test/test_address_sn.rb
1026
- - test/test_food_pl.rb
1027
- - test/test_ffaker.rb
1028
- - test/test_lorem_ua.rb
1029
- - test/test_company_se.rb
1030
- - test/test_name_fr.rb
1031
- - test/test_name_kr.rb
1032
- - test/test_cheesy_lingo.rb
1033
- - test/test_name_ua.rb
1034
- - test/test_gender_jp.rb
1035
- - test/test_name_se.rb
1036
- - test/test_phone_number_kr.rb
1037
- - test/test_address_da.rb
1038
- - test/test_youtube.rb
821
+ test_files: []