ffakerTW 0.1.0 → 1.2.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 +34 -2
- data/Gemfile +1 -1
- data/RANDOM.md +20 -20
- data/README.md +28 -31
- data/REFERENCE.md +88 -2660
- data/ffakerTW.gemspec +4 -4
- data/lib/ffakerTW/address_tw.rb +118 -0
- data/lib/ffakerTW/animal_tw.rb +1 -1
- data/lib/ffakerTW/company_tw.rb +3 -3
- data/lib/ffakerTW/data/address_tw/all +34463 -0
- data/lib/ffakerTW/data/address_tw/changhua +2765 -0
- data/lib/ffakerTW/data/address_tw/chiayi +1309 -0
- data/lib/ffakerTW/data/address_tw/hsinchu +1652 -0
- data/lib/ffakerTW/data/address_tw/hualien +1369 -0
- data/lib/ffakerTW/data/address_tw/kaohsiung +4603 -0
- data/lib/ffakerTW/data/address_tw/keelung +238 -0
- data/lib/ffakerTW/data/address_tw/kingmen +200 -0
- data/lib/ffakerTW/data/address_tw/miaoli +1133 -0
- data/lib/ffakerTW/data/address_tw/nantou +971 -0
- data/lib/ffakerTW/data/address_tw/newtaipei +2439 -0
- data/lib/ffakerTW/data/address_tw/penghu +197 -0
- data/lib/ffakerTW/data/address_tw/pingtung +2343 -0
- data/lib/ffakerTW/data/address_tw/taichung +4092 -0
- data/lib/ffakerTW/data/address_tw/tainan +2843 -0
- data/lib/ffakerTW/data/address_tw/taipei +753 -0
- data/lib/ffakerTW/data/address_tw/taitung +649 -0
- data/lib/ffakerTW/data/address_tw/taoyuan +3478 -0
- data/lib/ffakerTW/data/address_tw/yilan +1506 -0
- data/lib/ffakerTW/data/address_tw/yunlin +1923 -0
- data/lib/ffakerTW/data/animal_tw/common_names +21 -62
- data/lib/ffakerTW/data/job_tw/job_nouns +72 -206
- data/lib/ffakerTW/data/name_tw/first_names +178 -117
- data/lib/ffakerTW/data/name_tw/first_names.1120319 +122 -0
- data/lib/ffakerTW/education_tw.rb +6 -23
- data/lib/ffakerTW/gender_tw.rb +1 -4
- data/lib/ffakerTW/identification_tw.rb +1 -1
- data/lib/ffakerTW/job_tw.rb +1 -1
- data/lib/ffakerTW/lorem_tw.rb +2 -0
- data/lib/ffakerTW/name_tw.rb +3 -3
- data/lib/ffakerTW/phone_number_tw.rb +22 -15
- data/lib/ffakerTW/utils/module_utils.rb +1 -1
- data/lib/ffakerTW/version.rb +1 -1
- data/lib/ffakerTW.rb +2 -137
- data/lib/version.rb +2 -2
- data/scripts/profiling.rb +2 -2
- metadata +34 -689
- data/lib/ffakerTW/address.rb +0 -115
- data/lib/ffakerTW/address_au.rb +0 -120
- data/lib/ffakerTW/address_br.rb +0 -57
- data/lib/ffakerTW/address_ca.rb +0 -32
- data/lib/ffakerTW/address_ch.rb +0 -18
- data/lib/ffakerTW/address_ch_de.rb +0 -14
- data/lib/ffakerTW/address_ch_fr.rb +0 -14
- data/lib/ffakerTW/address_ch_it.rb +0 -14
- data/lib/ffakerTW/address_da.rb +0 -49
- data/lib/ffakerTW/address_de.rb +0 -42
- data/lib/ffakerTW/address_fi.rb +0 -44
- data/lib/ffakerTW/address_fr.rb +0 -40
- data/lib/ffakerTW/address_gr.rb +0 -38
- data/lib/ffakerTW/address_id.rb +0 -36
- data/lib/ffakerTW/address_in.rb +0 -56
- data/lib/ffakerTW/address_it.rb +0 -36
- data/lib/ffakerTW/address_ja.rb +0 -83
- data/lib/ffakerTW/address_kr.rb +0 -87
- data/lib/ffakerTW/address_mx.rb +0 -31
- data/lib/ffakerTW/address_nl.rb +0 -43
- data/lib/ffakerTW/address_pl.rb +0 -83
- data/lib/ffakerTW/address_ru.rb +0 -37
- data/lib/ffakerTW/address_se.rb +0 -44
- data/lib/ffakerTW/address_sn.rb +0 -22
- data/lib/ffakerTW/address_ua.rb +0 -56
- data/lib/ffakerTW/address_uk.rb +0 -25
- data/lib/ffakerTW/address_us.rb +0 -58
- data/lib/ffakerTW/animal.rb +0 -14
- data/lib/ffakerTW/animal_br.rb +0 -12
- data/lib/ffakerTW/animal_cn.rb +0 -12
- data/lib/ffakerTW/animal_es.rb +0 -12
- data/lib/ffakerTW/animal_pl.rb +0 -15
- data/lib/ffakerTW/animal_us.rb +0 -12
- data/lib/ffakerTW/color_pl.rb +0 -14
- data/lib/ffakerTW/color_ua.rb +0 -12
- data/lib/ffakerTW/company.rb +0 -44
- data/lib/ffakerTW/company_cn.rb +0 -23
- data/lib/ffakerTW/company_fr.rb +0 -35
- data/lib/ffakerTW/company_it.rb +0 -45
- data/lib/ffakerTW/company_ja.rb +0 -24
- data/lib/ffakerTW/company_se.rb +0 -23
- data/lib/ffakerTW/data/address/city_suffixes +0 -19
- data/lib/ffakerTW/data/address/country +0 -249
- data/lib/ffakerTW/data/address/country_code +0 -249
- data/lib/ffakerTW/data/address/neighborhood +0 -49
- data/lib/ffakerTW/data/address/street_suffix +0 -195
- data/lib/ffakerTW/data/address/time_zone +0 -130
- data/lib/ffakerTW/data/address_br/city +0 -299
- data/lib/ffakerTW/data/address_br/complement +0 -3
- data/lib/ffakerTW/data/address_br/neighborhood_prefixes +0 -3
- data/lib/ffakerTW/data/address_br/state +0 -27
- data/lib/ffakerTW/data/address_br/state_abbr +0 -27
- data/lib/ffakerTW/data/address_ca/city +0 -181
- data/lib/ffakerTW/data/address_ca/province +0 -13
- data/lib/ffakerTW/data/address_ch/canton_abbr +0 -26
- data/lib/ffakerTW/data/address_chde/canton +0 -26
- data/lib/ffakerTW/data/address_chfr/canton +0 -26
- data/lib/ffakerTW/data/address_chit/canton +0 -26
- data/lib/ffakerTW/data/address_da/city +0 -592
- data/lib/ffakerTW/data/address_da/kommune +0 -88
- data/lib/ffakerTW/data/address_da/street +0 -657
- data/lib/ffakerTW/data/address_de/city +0 -1666
- data/lib/ffakerTW/data/address_de/state +0 -15
- data/lib/ffakerTW/data/address_fi/city +0 -107
- data/lib/ffakerTW/data/address_fi/countries +0 -96
- data/lib/ffakerTW/data/address_fi/street +0 -140
- data/lib/ffakerTW/data/address_fr/city +0 -261
- data/lib/ffakerTW/data/address_fr/region +0 -27
- data/lib/ffakerTW/data/address_gr/city +0 -79
- data/lib/ffakerTW/data/address_gr/region +0 -13
- data/lib/ffakerTW/data/address_gr/street +0 -100
- data/lib/ffakerTW/data/address_id/city +0 -102
- data/lib/ffakerTW/data/address_id/common_street_names +0 -170
- data/lib/ffakerTW/data/address_id/state +0 -33
- data/lib/ffakerTW/data/address_id/state_abbr +0 -33
- data/lib/ffakerTW/data/address_in/city +0 -24
- data/lib/ffakerTW/data/address_in/state +0 -29
- data/lib/ffakerTW/data/address_in/state_abbr +0 -29
- data/lib/ffakerTW/data/address_in/union_territory +0 -7
- data/lib/ffakerTW/data/address_in/union_territory_abbr +0 -7
- data/lib/ffakerTW/data/address_it/city +0 -111
- data/lib/ffakerTW/data/address_it/region +0 -20
- data/lib/ffakerTW/data/address_ja/city +0 -791
- data/lib/ffakerTW/data/address_ja/county +0 -98
- data/lib/ffakerTW/data/address_ja/designated_city +0 -20
- data/lib/ffakerTW/data/address_ja/prefecture +0 -47
- data/lib/ffakerTW/data/address_ja/street +0 -37
- data/lib/ffakerTW/data/address_ja/tokyo_ward +0 -23
- data/lib/ffakerTW/data/address_ja/village +0 -183
- data/lib/ffakerTW/data/address_ja/ward +0 -188
- data/lib/ffakerTW/data/address_kr/boroughs +0 -29
- data/lib/ffakerTW/data/address_kr/cities +0 -51
- data/lib/ffakerTW/data/address_mx/ags +0 -11
- data/lib/ffakerTW/data/address_mx/bc +0 -5
- data/lib/ffakerTW/data/address_mx/bcs +0 -5
- data/lib/ffakerTW/data/address_mx/camp +0 -11
- data/lib/ffakerTW/data/address_mx/chih +0 -67
- data/lib/ffakerTW/data/address_mx/chis +0 -118
- data/lib/ffakerTW/data/address_mx/coah +0 -38
- data/lib/ffakerTW/data/address_mx/col +0 -10
- data/lib/ffakerTW/data/address_mx/df +0 -16
- data/lib/ffakerTW/data/address_mx/dgo +0 -39
- data/lib/ffakerTW/data/address_mx/gro +0 -81
- data/lib/ffakerTW/data/address_mx/gto +0 -46
- data/lib/ffakerTW/data/address_mx/hgo +0 -84
- data/lib/ffakerTW/data/address_mx/jal +0 -125
- data/lib/ffakerTW/data/address_mx/mex +0 -125
- data/lib/ffakerTW/data/address_mx/mich +0 -113
- data/lib/ffakerTW/data/address_mx/mor +0 -33
- data/lib/ffakerTW/data/address_mx/nay +0 -20
- data/lib/ffakerTW/data/address_mx/nl +0 -51
- data/lib/ffakerTW/data/address_mx/oax +0 -570
- data/lib/ffakerTW/data/address_mx/pue +0 -217
- data/lib/ffakerTW/data/address_mx/qr +0 -10
- data/lib/ffakerTW/data/address_mx/qro +0 -18
- data/lib/ffakerTW/data/address_mx/sin +0 -18
- data/lib/ffakerTW/data/address_mx/slp +0 -58
- data/lib/ffakerTW/data/address_mx/son +0 -72
- data/lib/ffakerTW/data/address_mx/state +0 -32
- data/lib/ffakerTW/data/address_mx/state_abbr +0 -32
- data/lib/ffakerTW/data/address_mx/tab +0 -17
- data/lib/ffakerTW/data/address_mx/tamps +0 -43
- data/lib/ffakerTW/data/address_mx/tlax +0 -60
- data/lib/ffakerTW/data/address_mx/ver +0 -212
- data/lib/ffakerTW/data/address_mx/yuc +0 -106
- data/lib/ffakerTW/data/address_mx/zac +0 -58
- data/lib/ffakerTW/data/address_nl/city +0 -2226
- data/lib/ffakerTW/data/address_nl/province +0 -12
- data/lib/ffakerTW/data/address_pl/city +0 -916
- data/lib/ffakerTW/data/address_pl/square +0 -390
- data/lib/ffakerTW/data/address_pl/street +0 -390
- data/lib/ffakerTW/data/address_pl/voivodeship +0 -16
- data/lib/ffakerTW/data/address_pl/voivodeship_abbr +0 -16
- data/lib/ffakerTW/data/address_pl/voivodeship_capital_city +0 -18
- data/lib/ffakerTW/data/address_ru/city +0 -74
- data/lib/ffakerTW/data/address_ru/province +0 -83
- data/lib/ffakerTW/data/address_ru/street +0 -49
- data/lib/ffakerTW/data/address_se/city +0 -154
- data/lib/ffakerTW/data/address_se/countries +0 -250
- data/lib/ffakerTW/data/address_se/street +0 -2887
- data/lib/ffakerTW/data/address_sn/arrondissements +0 -47
- data/lib/ffakerTW/data/address_sn/departements +0 -43
- data/lib/ffakerTW/data/address_sn/regions +0 -14
- data/lib/ffakerTW/data/address_ua/city +0 -57
- data/lib/ffakerTW/data/address_ua/country +0 -193
- data/lib/ffakerTW/data/address_ua/province +0 -27
- data/lib/ffakerTW/data/address_ua/street +0 -13
- data/lib/ffakerTW/data/address_uk/county +0 -70
- data/lib/ffakerTW/data/address_us/state +0 -50
- data/lib/ffakerTW/data/address_us/state_abbr +0 -50
- data/lib/ffakerTW/data/address_us/state_and_territories_abbr +0 -62
- data/lib/ffakerTW/data/animal/common_names +0 -141
- data/lib/ffakerTW/data/animal_br/common_names +0 -423
- data/lib/ffakerTW/data/animal_cn/common_names +0 -141
- data/lib/ffakerTW/data/animal_es/common_names +0 -135
- data/lib/ffakerTW/data/animal_pl/common_names +0 -256
- data/lib/ffakerTW/data/animal_us/common_names +0 -141
- data/lib/ffakerTW/data/color_pl/names_list +0 -122
- data/lib/ffakerTW/data/color_ua/names_list +0 -114
- data/lib/ffakerTW/data/company_it/piva_office_codes +0 -99
- data/lib/ffakerTW/data/education/degree_prefix +0 -274
- data/lib/ffakerTW/data/education/degree_short_prefix +0 -19
- data/lib/ffakerTW/data/education/major_noun +0 -13
- data/lib/ffakerTW/data/education/school_suffix +0 -13
- data/lib/ffakerTW/data/education_cn/city +0 -351
- data/lib/ffakerTW/data/education_cn/major +0 -506
- data/lib/ffakerTW/data/education_cn/province +0 -31
- data/lib/ffakerTW/data/education_cn/school_type +0 -27
- data/lib/ffakerTW/data/food_pl/diary +0 -14
- data/lib/ffakerTW/data/food_pl/fermented +0 -13
- data/lib/ffakerTW/data/food_pl/fruits +0 -34
- data/lib/ffakerTW/data/food_pl/herbs +0 -20
- data/lib/ffakerTW/data/food_pl/meats +0 -9
- data/lib/ffakerTW/data/food_pl/preserves +0 -10
- data/lib/ffakerTW/data/food_pl/spices +0 -26
- data/lib/ffakerTW/data/food_pl/vegetables +0 -45
- data/lib/ffakerTW/data/job/job_adj +0 -37
- data/lib/ffakerTW/data/job/job_noun +0 -25
- data/lib/ffakerTW/data/job/job_prefix +0 -22
- data/lib/ffakerTW/data/job_br/job_nouns +0 -52
- data/lib/ffakerTW/data/job_cn/job_nouns +0 -300
- data/lib/ffakerTW/data/job_fr/job_nouns +0 -14
- data/lib/ffakerTW/data/job_fr/job_prefixes +0 -15
- data/lib/ffakerTW/data/job_it/job_adj +0 -37
- data/lib/ffakerTW/data/job_it/job_noun +0 -25
- data/lib/ffakerTW/data/job_it/job_prefix +0 -22
- data/lib/ffakerTW/data/job_ja/job_nouns +0 -235
- data/lib/ffakerTW/data/job_kr/job_nouns +0 -1209
- data/lib/ffakerTW/data/job_vn/job_nouns +0 -191
- data/lib/ffakerTW/data/lorem/characters +0 -36
- data/lib/ffakerTW/data/lorem/words +0 -182
- data/lib/ffakerTW/data/lorem_ar/words +0 -911
- data/lib/ffakerTW/data/lorem_br/characters +0 -36
- data/lib/ffakerTW/data/lorem_br/words +0 -183
- data/lib/ffakerTW/data/lorem_cn/words +0 -706
- data/lib/ffakerTW/data/lorem_fr/words +0 -229
- data/lib/ffakerTW/data/lorem_ie/characters +0 -5
- data/lib/ffakerTW/data/lorem_ie/paragraphs +0 -2
- data/lib/ffakerTW/data/lorem_ie/questions +0 -1
- data/lib/ffakerTW/data/lorem_ie/sentences +0 -1
- data/lib/ffakerTW/data/lorem_ie/words +0 -107
- data/lib/ffakerTW/data/lorem_it/words +0 -321
- data/lib/ffakerTW/data/lorem_ja/characters +0 -101
- data/lib/ffakerTW/data/lorem_ja/sentences +0 -30
- data/lib/ffakerTW/data/lorem_ja/sentences_end +0 -21
- data/lib/ffakerTW/data/lorem_ja/words +0 -81
- data/lib/ffakerTW/data/lorem_kr/words +0 -47
- data/lib/ffakerTW/data/lorem_pl/characters +0 -32
- data/lib/ffakerTW/data/lorem_pl/words +0 -245
- data/lib/ffakerTW/data/lorem_ru/capital_chars +0 -33
- data/lib/ffakerTW/data/lorem_ru/chars +0 -33
- data/lib/ffakerTW/data/lorem_ru/words +0 -191
- data/lib/ffakerTW/data/lorem_ua/capital_chars +0 -33
- data/lib/ffakerTW/data/lorem_ua/chars +0 -33
- data/lib/ffakerTW/data/lorem_ua/words +0 -362
- data/lib/ffakerTW/data/name_ar/first_names_female +0 -250
- data/lib/ffakerTW/data/name_ar/first_names_male +0 -567
- data/lib/ffakerTW/data/name_ar/last_names +0 -357
- data/lib/ffakerTW/data/name_br/first_names_female +0 -1068
- data/lib/ffakerTW/data/name_br/first_names_male +0 -607
- data/lib/ffakerTW/data/name_br/last_names +0 -77
- data/lib/ffakerTW/data/name_cn/first_names +0 -1000
- data/lib/ffakerTW/data/name_cn/last_names +0 -1057
- data/lib/ffakerTW/data/name_cs/female_first_names +0 -40
- data/lib/ffakerTW/data/name_cs/female_last_names +0 -50
- data/lib/ffakerTW/data/name_cs/male_first_names +0 -88
- data/lib/ffakerTW/data/name_cs/male_last_names +0 -49
- data/lib/ffakerTW/data/name_cs/prefixes +0 -16
- data/lib/ffakerTW/data/name_da/female_first_names +0 -303
- data/lib/ffakerTW/data/name_da/last_names +0 -187
- data/lib/ffakerTW/data/name_da/male_first_names +0 -301
- data/lib/ffakerTW/data/name_de/first_names +0 -1166
- data/lib/ffakerTW/data/name_de/last_names +0 -100
- data/lib/ffakerTW/data/name_es/first_names_female +0 -184
- data/lib/ffakerTW/data/name_es/first_names_male +0 -165
- data/lib/ffakerTW/data/name_es/last_names +0 -208
- data/lib/ffakerTW/data/name_fr/first_names +0 -220
- data/lib/ffakerTW/data/name_fr/last_names +0 -408
- data/lib/ffakerTW/data/name_ga/first_names_female +0 -225
- data/lib/ffakerTW/data/name_ga/first_names_male +0 -306
- data/lib/ffakerTW/data/name_gr/female_first_names +0 -80
- data/lib/ffakerTW/data/name_gr/female_last_names +0 -45
- data/lib/ffakerTW/data/name_gr/male_first_names +0 -90
- data/lib/ffakerTW/data/name_gr/male_last_names +0 -57
- data/lib/ffakerTW/data/name_id/first_names_female +0 -267
- data/lib/ffakerTW/data/name_id/first_names_male +0 -312
- data/lib/ffakerTW/data/name_id/last_names +0 -1669
- data/lib/ffakerTW/data/name_in/first_names_female +0 -100
- data/lib/ffakerTW/data/name_in/first_names_male +0 -100
- data/lib/ffakerTW/data/name_in/last_names +0 -100
- data/lib/ffakerTW/data/name_it/first_names +0 -171
- data/lib/ffakerTW/data/name_it/last_names +0 -70
- data/lib/ffakerTW/data/name_ja/first_names +0 -397
- data/lib/ffakerTW/data/name_ja/last_names +0 -1078
- data/lib/ffakerTW/data/name_kh/first_names +0 -64
- data/lib/ffakerTW/data/name_kh/last_names +0 -71
- data/lib/ffakerTW/data/name_kh/nick_names +0 -30
- data/lib/ffakerTW/data/name_kr/first_names +0 -1317
- data/lib/ffakerTW/data/name_kr/last_names +0 -197
- data/lib/ffakerTW/data/name_mx/female_first_names +0 -216
- data/lib/ffakerTW/data/name_mx/last_names +0 -352
- data/lib/ffakerTW/data/name_mx/male_first_names +0 -211
- data/lib/ffakerTW/data/name_nb/first_names_female +0 -50
- data/lib/ffakerTW/data/name_nb/first_names_male +0 -50
- data/lib/ffakerTW/data/name_nb/last_names +0 -100
- data/lib/ffakerTW/data/name_nl/first_names_female +0 -89
- data/lib/ffakerTW/data/name_nl/first_names_male +0 -75
- data/lib/ffakerTW/data/name_nl/last_names +0 -115
- data/lib/ffakerTW/data/name_ph/autochthonous_surnames +0 -217
- data/lib/ffakerTW/data/name_ph/spanish_surnames +0 -300
- data/lib/ffakerTW/data/name_pl/female_first_names +0 -121
- data/lib/ffakerTW/data/name_pl/female_last_names +0 -200
- data/lib/ffakerTW/data/name_pl/male_first_names +0 -121
- data/lib/ffakerTW/data/name_pl/male_last_names +0 -200
- data/lib/ffakerTW/data/name_ru/first_names_female +0 -91
- data/lib/ffakerTW/data/name_ru/first_names_male +0 -172
- data/lib/ffakerTW/data/name_ru/last_names_female +0 -100
- data/lib/ffakerTW/data/name_ru/last_names_male +0 -100
- data/lib/ffakerTW/data/name_ru/middle_names_female +0 -65
- data/lib/ffakerTW/data/name_ru/middle_names_male +0 -73
- data/lib/ffakerTW/data/name_se/first_names_female +0 -110
- data/lib/ffakerTW/data/name_se/first_names_male +0 -110
- data/lib/ffakerTW/data/name_se/last_names +0 -100
- data/lib/ffakerTW/data/name_sn/first_names_female +0 -225
- data/lib/ffakerTW/data/name_sn/first_names_male +0 -304
- data/lib/ffakerTW/data/name_sn/last_names +0 -243
- data/lib/ffakerTW/data/name_th/first_names +0 -360
- data/lib/ffakerTW/data/name_th/last_names +0 -15
- data/lib/ffakerTW/data/name_th/nick_names +0 -74
- data/lib/ffakerTW/data/name_then/first_names +0 -292
- data/lib/ffakerTW/data/name_then/last_names +0 -63
- data/lib/ffakerTW/data/name_then/nick_names +0 -30
- data/lib/ffakerTW/data/name_ua/first_names_female +0 -193
- data/lib/ffakerTW/data/name_ua/first_names_male +0 -195
- data/lib/ffakerTW/data/name_ua/last_names_female +0 -230
- data/lib/ffakerTW/data/name_ua/last_names_male +0 -239
- data/lib/ffakerTW/data/name_ua/middle_names_female +0 -116
- data/lib/ffakerTW/data/name_ua/middle_names_male +0 -116
- data/lib/ffakerTW/data/name_vn/first_names +0 -6
- data/lib/ffakerTW/data/name_vn/last_names +0 -67
- data/lib/ffakerTW/data/name_vn/middle_names +0 -89
- data/lib/ffakerTW/data/phone_number_id/home_phone_prefixes +0 -303
- data/lib/ffakerTW/data/phone_number_id/mobile_phone_prefixes +0 -33
- data/lib/ffakerTW/data/phone_number_it/home_phone_prefixes +0 -232
- data/lib/ffakerTW/data/phone_number_it/mobile_phone_prefixes +0 -18
- data/lib/ffakerTW/data/phone_number_ja/four_disit_area_codes +0 -41
- data/lib/ffakerTW/data/phone_number_ja/one_disit_area_codes +0 -3
- data/lib/ffakerTW/data/phone_number_ja/three_disit_area_codes +0 -296
- data/lib/ffakerTW/data/phone_number_ja/two_disit_area_codes +0 -48
- data/lib/ffakerTW/data/phone_number_nl/area_codes +0 -142
- data/lib/ffakerTW/data/phone_number_ru/home_phone_prefixes +0 -107
- data/lib/ffakerTW/data/phone_number_ru/mobile_phone_prefixes +0 -61
- data/lib/ffakerTW/data/phone_number_se/phone_prefix +0 -265
- data/lib/ffakerTW/data/phone_number_ua/home_phone_prefixes +0 -29
- data/lib/ffakerTW/data/phone_number_ua/mobile_phone_prefixes +0 -11
- data/lib/ffakerTW/data/sport_pl/summer +0 -53
- data/lib/ffakerTW/data/sport_pl/winter +0 -14
- data/lib/ffakerTW/data/sport_ru/summer +0 -68
- data/lib/ffakerTW/data/sport_ru/winter +0 -20
- data/lib/ffakerTW/data/sport_us/names +0 -67
- data/lib/ffakerTW/education.rb +0 -49
- data/lib/ffakerTW/education_cn.rb +0 -37
- data/lib/ffakerTW/food_pl.rb +0 -65
- data/lib/ffakerTW/gender.rb +0 -22
- data/lib/ffakerTW/gender_br.rb +0 -17
- data/lib/ffakerTW/gender_cn.rb +0 -17
- data/lib/ffakerTW/gender_id.rb +0 -17
- data/lib/ffakerTW/gender_it.rb +0 -17
- data/lib/ffakerTW/gender_ja.rb +0 -18
- data/lib/ffakerTW/gender_jp.rb +0 -11
- data/lib/ffakerTW/gender_kr.rb +0 -17
- data/lib/ffakerTW/gender_pl.rb +0 -19
- data/lib/ffakerTW/gender_ru.rb +0 -22
- data/lib/ffakerTW/healthcare_ru.rb +0 -12
- data/lib/ffakerTW/identification.rb +0 -30
- data/lib/ffakerTW/identification_br.rb +0 -84
- data/lib/ffakerTW/identification_es.rb +0 -14
- data/lib/ffakerTW/identification_es_cl.rb +0 -29
- data/lib/ffakerTW/identification_es_co.rb +0 -39
- data/lib/ffakerTW/identification_in.rb +0 -15
- data/lib/ffakerTW/identification_it.rb +0 -30
- data/lib/ffakerTW/identification_kr.rb +0 -19
- data/lib/ffakerTW/identification_mx.rb +0 -58
- data/lib/ffakerTW/identification_pl.rb +0 -77
- data/lib/ffakerTW/internet_se.rb +0 -108
- data/lib/ffakerTW/job.rb +0 -12
- data/lib/ffakerTW/job_br.rb +0 -12
- data/lib/ffakerTW/job_cn.rb +0 -12
- data/lib/ffakerTW/job_fr.rb +0 -18
- data/lib/ffakerTW/job_it.rb +0 -12
- data/lib/ffakerTW/job_ja.rb +0 -12
- data/lib/ffakerTW/job_kr.rb +0 -12
- data/lib/ffakerTW/job_vn.rb +0 -12
- data/lib/ffakerTW/lorem.rb +0 -45
- data/lib/ffakerTW/lorem_ar.rb +0 -40
- data/lib/ffakerTW/lorem_br.rb +0 -45
- data/lib/ffakerTW/lorem_cn.rb +0 -40
- data/lib/ffakerTW/lorem_fr.rb +0 -39
- data/lib/ffakerTW/lorem_ie.rb +0 -40
- data/lib/ffakerTW/lorem_it.rb +0 -39
- data/lib/ffakerTW/lorem_ja.rb +0 -40
- data/lib/ffakerTW/lorem_kr.rb +0 -36
- data/lib/ffakerTW/lorem_pl.rb +0 -60
- data/lib/ffakerTW/lorem_ru.rb +0 -57
- data/lib/ffakerTW/lorem_ua.rb +0 -54
- data/lib/ffakerTW/name_ar.rb +0 -28
- data/lib/ffakerTW/name_br.rb +0 -62
- data/lib/ffakerTW/name_cn.rb +0 -24
- data/lib/ffakerTW/name_cs.rb +0 -87
- data/lib/ffakerTW/name_da.rb +0 -56
- data/lib/ffakerTW/name_de.rb +0 -31
- data/lib/ffakerTW/name_es.rb +0 -64
- data/lib/ffakerTW/name_fr.rb +0 -34
- data/lib/ffakerTW/name_ga.rb +0 -39
- data/lib/ffakerTW/name_gr.rb +0 -59
- data/lib/ffakerTW/name_id.rb +0 -62
- data/lib/ffakerTW/name_in.rb +0 -39
- data/lib/ffakerTW/name_it.rb +0 -31
- data/lib/ffakerTW/name_ja.rb +0 -22
- data/lib/ffakerTW/name_kh.rb +0 -24
- data/lib/ffakerTW/name_kr.rb +0 -26
- data/lib/ffakerTW/name_mx.rb +0 -101
- data/lib/ffakerTW/name_nb.rb +0 -44
- data/lib/ffakerTW/name_nl.rb +0 -48
- data/lib/ffakerTW/name_ph.rb +0 -25
- data/lib/ffakerTW/name_pl.rb +0 -98
- data/lib/ffakerTW/name_ru.rb +0 -55
- data/lib/ffakerTW/name_se.rb +0 -44
- data/lib/ffakerTW/name_sn.rb +0 -56
- data/lib/ffakerTW/name_th.rb +0 -25
- data/lib/ffakerTW/name_th_en.rb +0 -26
- data/lib/ffakerTW/name_ua.rb +0 -57
- data/lib/ffakerTW/name_vn.rb +0 -28
- data/lib/ffakerTW/phone_number.rb +0 -80
- data/lib/ffakerTW/phone_number_au.rb +0 -76
- data/lib/ffakerTW/phone_number_br.rb +0 -77
- data/lib/ffakerTW/phone_number_ch.rb +0 -46
- data/lib/ffakerTW/phone_number_cu.rb +0 -122
- data/lib/ffakerTW/phone_number_da.rb +0 -43
- data/lib/ffakerTW/phone_number_de.rb +0 -50
- data/lib/ffakerTW/phone_number_fr.rb +0 -65
- data/lib/ffakerTW/phone_number_id.rb +0 -36
- data/lib/ffakerTW/phone_number_it.rb +0 -44
- data/lib/ffakerTW/phone_number_ja.rb +0 -88
- data/lib/ffakerTW/phone_number_kr.rb +0 -50
- data/lib/ffakerTW/phone_number_mx.rb +0 -56
- data/lib/ffakerTW/phone_number_nl.rb +0 -46
- data/lib/ffakerTW/phone_number_pl.rb +0 -68
- data/lib/ffakerTW/phone_number_ru.rb +0 -120
- data/lib/ffakerTW/phone_number_se.rb +0 -88
- data/lib/ffakerTW/phone_number_sg.rb +0 -81
- data/lib/ffakerTW/phone_number_sn.rb +0 -71
- data/lib/ffakerTW/phone_number_ua.rb +0 -42
- data/lib/ffakerTW/sport_pl.rb +0 -25
- data/lib/ffakerTW/sport_ru.rb +0 -25
- data/lib/ffakerTW/sport_us.rb +0 -12
- data/lib/ffakerTW/ssn_mx.rb +0 -56
- data/lib/ffakerTW/ssn_se.rb +0 -80
- data/lib/ffakerTW/unit_english.rb +0 -107
- data/test/test_address_au.rb +0 -78
- data/test/test_address_br.rb +0 -50
- data/test/test_address_ca.rb +0 -31
- data/test/test_address_ch.rb +0 -17
- data/test/test_address_ch_de.rb +0 -13
- data/test/test_address_ch_fr.rb +0 -13
- data/test/test_address_ch_it.rb +0 -15
- data/test/test_address_da.rb +0 -50
- data/test/test_address_de.rb +0 -32
- data/test/test_address_fi.rb +0 -39
- data/test/test_address_fr.rb +0 -12
- data/test/test_address_gr.rb +0 -43
- data/test/test_address_id.rb +0 -39
- data/test/test_address_in.rb +0 -58
- data/test/test_address_it.rb +0 -12
- data/test/test_address_ja.rb +0 -58
- data/test/test_address_kr.rb +0 -14
- data/test/test_address_mx.rb +0 -32
- data/test/test_address_nl.rb +0 -36
- data/test/test_address_pl.rb +0 -80
- data/test/test_address_ru.rb +0 -36
- data/test/test_address_se.rb +0 -39
- data/test/test_address_sn.rb +0 -28
- data/test/test_address_ua.rb +0 -57
- data/test/test_address_uk.rb +0 -25
- data/test/test_address_us.rb +0 -51
- data/test/test_animal_br.rb +0 -17
- data/test/test_animal_cn.rb +0 -17
- data/test/test_animal_es.rb +0 -17
- data/test/test_animal_pl.rb +0 -17
- data/test/test_animal_us.rb +0 -17
- data/test/test_color_pl.rb +0 -13
- data/test/test_color_ua.rb +0 -13
- data/test/test_company_cn.rb +0 -24
- data/test/test_company_fr.rb +0 -33
- data/test/test_company_it.rb +0 -28
- data/test/test_company_ja.rb +0 -28
- data/test/test_company_se.rb +0 -20
- data/test/test_education_cn.rb +0 -29
- data/test/test_food_pl.rb +0 -61
- data/test/test_gender_br.rb +0 -18
- data/test/test_gender_cn.rb +0 -18
- data/test/test_gender_id.rb +0 -18
- data/test/test_gender_it.rb +0 -27
- data/test/test_gender_ja.rb +0 -27
- data/test/test_gender_jp.rb +0 -27
- data/test/test_gender_kr.rb +0 -28
- data/test/test_gender_pl.rb +0 -27
- data/test/test_gender_ru.rb +0 -23
- data/test/test_healthcare_ru.rb +0 -19
- data/test/test_identification_br.rb +0 -46
- data/test/test_identification_co.rb +0 -41
- data/test/test_identification_es.rb +0 -17
- data/test/test_identification_es_cl.rb +0 -17
- data/test/test_identification_es_mx.rb +0 -28
- data/test/test_identification_in.rb +0 -20
- data/test/test_identification_it.rb +0 -34
- data/test/test_identification_kr.rb +0 -17
- data/test/test_identification_pl.rb +0 -28
- data/test/test_identification_tw.rb +0 -17
- data/test/test_internet_se.rb +0 -78
- data/test/test_job_br.rb +0 -17
- data/test/test_job_cn.rb +0 -21
- data/test/test_job_fr.rb +0 -23
- data/test/test_job_it.rb +0 -17
- data/test/test_job_ja.rb +0 -21
- data/test/test_job_kr.rb +0 -21
- data/test/test_job_vn.rb +0 -21
- data/test/test_lorem_ar.rb +0 -44
- data/test/test_lorem_br.rb +0 -62
- data/test/test_lorem_cn.rb +0 -54
- data/test/test_lorem_fr.rb +0 -48
- data/test/test_lorem_ie.rb +0 -52
- data/test/test_lorem_it.rb +0 -51
- data/test/test_lorem_ja.rb +0 -81
- data/test/test_lorem_kr.rb +0 -56
- data/test/test_lorem_pl.rb +0 -51
- data/test/test_lorem_ru.rb +0 -52
- data/test/test_lorem_ua.rb +0 -52
- data/test/test_name_ar.rb +0 -39
- data/test/test_name_br.rb +0 -70
- data/test/test_name_cn.rb +0 -28
- data/test/test_name_cs.rb +0 -73
- data/test/test_name_da.rb +0 -59
- data/test/test_name_de.rb +0 -25
- data/test/test_name_es.rb +0 -70
- data/test/test_name_fr.rb +0 -52
- data/test/test_name_ga.rb +0 -61
- data/test/test_name_gr.rb +0 -70
- data/test/test_name_id.rb +0 -70
- data/test/test_name_it.rb +0 -53
- data/test/test_name_ja.rb +0 -51
- data/test/test_name_kh.rb +0 -34
- data/test/test_name_kr.rb +0 -28
- data/test/test_name_mx.rb +0 -190
- data/test/test_name_nb.rb +0 -43
- data/test/test_name_nl.rb +0 -25
- data/test/test_name_ph.rb +0 -34
- data/test/test_name_pl.rb +0 -111
- data/test/test_name_ru.rb +0 -76
- data/test/test_name_se.rb +0 -43
- data/test/test_name_sn.rb +0 -92
- data/test/test_name_th.rb +0 -34
- data/test/test_name_th_en.rb +0 -35
- data/test/test_name_tw.rb +0 -28
- data/test/test_name_ua.rb +0 -68
- data/test/test_name_vn.rb +0 -42
- data/test/test_phone_number_au.rb +0 -65
- data/test/test_phone_number_br.rb +0 -63
- data/test/test_phone_number_cu.rb +0 -93
- data/test/test_phone_number_da.rb +0 -47
- data/test/test_phone_number_de.rb +0 -53
- data/test/test_phone_number_fr.rb +0 -57
- data/test/test_phone_number_id.rb +0 -57
- data/test/test_phone_number_it.rb +0 -12
- data/test/test_phone_number_ja.rb +0 -63
- data/test/test_phone_number_kr.rb +0 -49
- data/test/test_phone_number_mx.rb +0 -50
- data/test/test_phone_number_nl.rb +0 -36
- data/test/test_phone_number_pl.rb +0 -56
- data/test/test_phone_number_ru.rb +0 -76
- data/test/test_phone_number_se.rb +0 -65
- data/test/test_phone_number_sg.rb +0 -52
- data/test/test_phone_number_sn.rb +0 -41
- data/test/test_phone_number_tw.rb +0 -42
- data/test/test_phone_number_ua.rb +0 -38
- data/test/test_sport_pl.rb +0 -30
- data/test/test_sport_ru.rb +0 -30
- data/test/test_sport_us.rb +0 -17
- /data/lib/ffakerTW/data/name_tw/{name_tw/first_names → first_names.1120318} +0 -0
- /data/lib/ffakerTW/data/name_tw/{name_tw/last_names → last_names.1120318} +0 -0
@@ -1,65 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
# Source: https://en.wikipedia.org/wiki/Telephone_numbers_in_France
|
5
|
-
module PhoneNumberFR
|
6
|
-
extend ModuleUtils
|
7
|
-
extend self
|
8
|
-
|
9
|
-
COUNTRY_CODE = '33'
|
10
|
-
AREA_PREFIX = %w[01 02 03 04 05].freeze
|
11
|
-
NON_AREA_PREFIX = %w[09].freeze
|
12
|
-
HOME_WORK_PHONE_PREFIX = AREA_PREFIX + NON_AREA_PREFIX
|
13
|
-
MOBILE_PHONE_PREFIX = %w[06 07].freeze
|
14
|
-
PHONE_PREFIX = HOME_WORK_PHONE_PREFIX + MOBILE_PHONE_PREFIX
|
15
|
-
PHONE_NUMBER = ['########', ' ## ## ## ##'].freeze
|
16
|
-
|
17
|
-
def home_work_phone_number
|
18
|
-
number HOME_WORK_PHONE_PREFIX
|
19
|
-
end
|
20
|
-
|
21
|
-
def mobile_phone_number
|
22
|
-
number MOBILE_PHONE_PREFIX
|
23
|
-
end
|
24
|
-
|
25
|
-
# generates mobile or home/work number
|
26
|
-
def phone_number
|
27
|
-
rand(0..1).zero? ? home_work_phone_number : mobile_phone_number
|
28
|
-
end
|
29
|
-
|
30
|
-
def country_code
|
31
|
-
"#{fetch_sample(['+', '00'])}#{COUNTRY_CODE}"
|
32
|
-
end
|
33
|
-
|
34
|
-
def international_mobile_phone_number
|
35
|
-
number MOBILE_PHONE_PREFIX, country_code
|
36
|
-
end
|
37
|
-
|
38
|
-
def international_home_work_phone_number
|
39
|
-
number HOME_WORK_PHONE_PREFIX, country_code
|
40
|
-
end
|
41
|
-
|
42
|
-
def international_phone_number
|
43
|
-
rand(0..1).zero? ? international_mobile_phone_number : international_home_work_phone_number
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def number(prefixes, country_prefix = '')
|
49
|
-
space = random_space
|
50
|
-
prefix = fetch_sample(prefixes)
|
51
|
-
prefix = prefix[1] unless country_prefix == ''
|
52
|
-
|
53
|
-
FFakerTW.numerify [
|
54
|
-
country_prefix,
|
55
|
-
space,
|
56
|
-
prefix,
|
57
|
-
fetch_sample(PHONE_NUMBER)
|
58
|
-
].join.strip
|
59
|
-
end
|
60
|
-
|
61
|
-
def random_space
|
62
|
-
rand(0..1).zero? ? '' : ' '
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberID
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
COUNTRY_CODE = '+62'
|
9
|
-
|
10
|
-
def mobile_phone_number
|
11
|
-
"#{fetch_sample(MOBILE_PHONE_PREFIXES)}-#{FFakerTW.numerify('########')}"
|
12
|
-
end
|
13
|
-
|
14
|
-
def home_phone_number
|
15
|
-
digit_nums = '#' * rand(7..8)
|
16
|
-
|
17
|
-
"#{fetch_sample(HOME_PHONE_PREFIXES)}-#{FFakerTW.numerify(digit_nums)}"
|
18
|
-
end
|
19
|
-
|
20
|
-
def phone_number
|
21
|
-
rand(0..1).zero? ? home_phone_number : mobile_phone_number
|
22
|
-
end
|
23
|
-
|
24
|
-
def international_mobile_phone_number
|
25
|
-
mobile_phone_number.sub('0', COUNTRY_CODE)
|
26
|
-
end
|
27
|
-
|
28
|
-
def international_home_phone_number
|
29
|
-
home_phone_number.sub('0', COUNTRY_CODE)
|
30
|
-
end
|
31
|
-
|
32
|
-
def international_phone_number
|
33
|
-
phone_number.sub('0', COUNTRY_CODE)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberIT
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
COUNTRY_PREFIX = ['+39', '0039', '+39 ', '0039 '].freeze
|
9
|
-
PHONE_NUMBER = ['######', '########'].freeze
|
10
|
-
|
11
|
-
def phone_number
|
12
|
-
if rand(0..1) == 1
|
13
|
-
home_phone_number
|
14
|
-
else
|
15
|
-
mobile_phone_number
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def home_phone_number
|
20
|
-
number HOME_PHONE_PREFIXES
|
21
|
-
end
|
22
|
-
|
23
|
-
def mobile_phone_number
|
24
|
-
number MOBILE_PHONE_PREFIXES
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def number(prefixes)
|
30
|
-
pattern = [
|
31
|
-
fetch_sample(COUNTRY_PREFIX),
|
32
|
-
fetch_sample(prefixes),
|
33
|
-
random_space,
|
34
|
-
fetch_sample(PHONE_NUMBER)
|
35
|
-
].join
|
36
|
-
|
37
|
-
FFakerTW.numerify(pattern)
|
38
|
-
end
|
39
|
-
|
40
|
-
def random_space
|
41
|
-
rand(0..1) == 1 ? ' ' : ''
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# sourse: https://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html#kotei-denwa
|
4
|
-
|
5
|
-
module FFakerTW
|
6
|
-
module PhoneNumberJA
|
7
|
-
extend ModuleUtils
|
8
|
-
extend self
|
9
|
-
|
10
|
-
JAPAN_PREFIX = '0'
|
11
|
-
JAPAN_COUNTRY_CODE = '+81'
|
12
|
-
|
13
|
-
ONE_DISIT_FORMAT = '%s #### ####'
|
14
|
-
TWO_DISIT_FORMAT = '%s ### ####'
|
15
|
-
THREE_DISIT_FORMAT = '%s ## ####'
|
16
|
-
FOUR_DISIT_FORMAT = '%s # ####'
|
17
|
-
|
18
|
-
MOBILE_PHONE_PREFIXES = %w[90 80 70].freeze
|
19
|
-
IP_PHONE_PREFIX = '50'
|
20
|
-
MOBILE_NUMBER_FORMAT = '%s #### ####'
|
21
|
-
|
22
|
-
def home_phone_number
|
23
|
-
disit = rand(1..4)
|
24
|
-
FFakerTW.numerify("#{JAPAN_PREFIX}#{home_phone_number_format(disit)}")
|
25
|
-
end
|
26
|
-
|
27
|
-
def mobile_phone_number
|
28
|
-
FFakerTW.numerify("#{JAPAN_PREFIX}#{mobile_phone_number_format}")
|
29
|
-
end
|
30
|
-
|
31
|
-
def phone_number
|
32
|
-
case rand(0..1)
|
33
|
-
when 0 then home_phone_number
|
34
|
-
when 1 then mobile_phone_number
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def international_home_phone_number
|
39
|
-
disit = rand(1..4)
|
40
|
-
FFakerTW.numerify("#{JAPAN_COUNTRY_CODE} #{home_phone_number_format(disit)}")
|
41
|
-
end
|
42
|
-
|
43
|
-
def international_mobile_phone_number
|
44
|
-
FFakerTW.numerify("#{JAPAN_COUNTRY_CODE} #{mobile_phone_number_format}")
|
45
|
-
end
|
46
|
-
|
47
|
-
def international_phone_number
|
48
|
-
case rand(0..1)
|
49
|
-
when 0 then international_mobile_phone_number
|
50
|
-
when 1 then international_home_phone_number
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def home_phone_prefix(disit = nil)
|
55
|
-
case disit
|
56
|
-
when 1 then fetch_sample(ONE_DISIT_AREA_CODES)
|
57
|
-
when 2 then fetch_sample(TWO_DISIT_AREA_CODES)
|
58
|
-
when 3 then fetch_sample(THREE_DISIT_AREA_CODES)
|
59
|
-
when 4 then fetch_sample(FOUR_DISIT_AREA_CODES)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
def home_phone_number_format(disit)
|
64
|
-
prefix = home_phone_prefix(disit)
|
65
|
-
select_home_phone_format(disit) % prefix
|
66
|
-
end
|
67
|
-
|
68
|
-
def mobile_prefix
|
69
|
-
fetch_sample(MOBILE_PHONE_PREFIXES)
|
70
|
-
end
|
71
|
-
|
72
|
-
def mobile_phone_number_format
|
73
|
-
prefix = mobile_prefix
|
74
|
-
MOBILE_NUMBER_FORMAT % prefix
|
75
|
-
end
|
76
|
-
|
77
|
-
private
|
78
|
-
|
79
|
-
def select_home_phone_format(disit)
|
80
|
-
case disit
|
81
|
-
when 1 then ONE_DISIT_FORMAT
|
82
|
-
when 2 then TWO_DISIT_FORMAT
|
83
|
-
when 3 then THREE_DISIT_FORMAT
|
84
|
-
when 4 then FOUR_DISIT_FORMAT
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberKR
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
HOME_PHONE_PREFIXES =
|
9
|
-
%w[02 031 032 033 041 042 043 044 049 051 052 053 054 055 061 062 063 064].freeze
|
10
|
-
MOBILE_PHONE_PREFIXES = %w[010 011 016 019].freeze
|
11
|
-
|
12
|
-
def phone_number
|
13
|
-
case rand(0..1)
|
14
|
-
when 0 then home_work_phone_number
|
15
|
-
when 1 then mobile_phone_number
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def home_work_phone_number
|
20
|
-
FFakerTW.numerify("#{fetch_sample(HOME_PHONE_PREFIXES)} #### ####")
|
21
|
-
end
|
22
|
-
|
23
|
-
def mobile_phone_number
|
24
|
-
FFakerTW.numerify("#{fetch_sample(MOBILE_PHONE_PREFIXES)} #### ####")
|
25
|
-
end
|
26
|
-
|
27
|
-
def contry_code
|
28
|
-
'+82'
|
29
|
-
end
|
30
|
-
|
31
|
-
def international_mobile_phone_number
|
32
|
-
number = mobile_phone_number
|
33
|
-
number[0] = "#{contry_code} "
|
34
|
-
number
|
35
|
-
end
|
36
|
-
|
37
|
-
def international_home_work_phone_number
|
38
|
-
number = home_work_phone_number
|
39
|
-
number[0] = "#{contry_code} "
|
40
|
-
number
|
41
|
-
end
|
42
|
-
|
43
|
-
def international_phone_number
|
44
|
-
case rand(0..1)
|
45
|
-
when 0 then international_mobile_phone_number
|
46
|
-
when 1 then international_home_work_phone_number
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberMX
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
# Generates a general phone number
|
9
|
-
# xx xxxx xxxx
|
10
|
-
#
|
11
|
-
def home_work_phone_number
|
12
|
-
FFakerTW.numerify('## #### ####')
|
13
|
-
end
|
14
|
-
|
15
|
-
# Generates a mobile phone number
|
16
|
-
# 044 xx xxxx xxxx
|
17
|
-
#
|
18
|
-
def mobile_phone_number
|
19
|
-
FFakerTW.numerify('044 ## #### ####')
|
20
|
-
end
|
21
|
-
|
22
|
-
# generates mobile or home/work number
|
23
|
-
def phone_number
|
24
|
-
case rand(0..1)
|
25
|
-
when 0 then home_work_phone_number
|
26
|
-
when 1 then mobile_phone_number
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def country_code
|
31
|
-
'+52'
|
32
|
-
end
|
33
|
-
|
34
|
-
def international_mobile_phone_number
|
35
|
-
FFakerTW.numerify("#{country_code} 1 ## #### ####")
|
36
|
-
end
|
37
|
-
|
38
|
-
def international_home_work_phone_number
|
39
|
-
FFakerTW.numerify("#{country_code} ## #### ####")
|
40
|
-
end
|
41
|
-
|
42
|
-
def international_phone_number
|
43
|
-
case rand(0..1)
|
44
|
-
when 0 then international_mobile_phone_number
|
45
|
-
when 1 then international_home_work_phone_number
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
# Generates a toll-free number
|
50
|
-
# 01 800 xxx xxxx
|
51
|
-
#
|
52
|
-
def toll_free_number
|
53
|
-
FFakerTW.numerify('01 800 ### ####')
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberNL
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
COUNTRY_CODE = '+31'
|
9
|
-
AREA_CODE_PREFIX = '0'
|
10
|
-
PHONE_NUMBER = {
|
11
|
-
2 => ['#######', '### ####', '#### ###'],
|
12
|
-
3 => ['######', '#### ##', '## ## ##']
|
13
|
-
}.freeze
|
14
|
-
MOBILE_PHONE_NUMBER = ['########', ' ## ## ## ##', ' ### ### ##', ' #### ####'].freeze
|
15
|
-
|
16
|
-
def phone_number
|
17
|
-
return home_work_phone_number if rand(0..1).zero?
|
18
|
-
|
19
|
-
mobile_phone_number
|
20
|
-
end
|
21
|
-
|
22
|
-
def home_work_phone_number
|
23
|
-
area = fetch_sample(AREA_CODES)
|
24
|
-
FFakerTW.numerify "#{AREA_CODE_PREFIX}#{area}-#{fetch_sample(PHONE_NUMBER[area.size])}"
|
25
|
-
end
|
26
|
-
|
27
|
-
def mobile_phone_number
|
28
|
-
FFakerTW.numerify "#{AREA_CODE_PREFIX}6#{fetch_sample(MOBILE_PHONE_NUMBER)}"
|
29
|
-
end
|
30
|
-
|
31
|
-
def international_phone_number
|
32
|
-
return international_mobile_phone_number if rand(0..1).zero?
|
33
|
-
|
34
|
-
international_home_work_phone_number
|
35
|
-
end
|
36
|
-
|
37
|
-
def international_home_work_phone_number
|
38
|
-
area = fetch_sample(AREA_CODES)
|
39
|
-
FFakerTW.numerify("#{COUNTRY_CODE} #{area}-#{fetch_sample(PHONE_NUMBER[area.size])}")
|
40
|
-
end
|
41
|
-
|
42
|
-
def international_mobile_phone_number
|
43
|
-
FFakerTW.numerify("#{COUNTRY_CODE} 6#{fetch_sample(MOBILE_PHONE_NUMBER)}")
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
# Inspirations:
|
5
|
-
# https://pl.wikipedia.org/wiki/Numery_telefoniczne_w_Polsce
|
6
|
-
# https://pl.wikipedia.org/wiki/Plan_numeracji_krajowej
|
7
|
-
module PhoneNumberPL
|
8
|
-
extend ModuleUtils
|
9
|
-
|
10
|
-
module_function
|
11
|
-
|
12
|
-
PHONE_NUMBER_FORMAT = '%s#######'
|
13
|
-
COUNTRY_CODE = '+48'
|
14
|
-
MOBILE_PREFIXES = %w[50 51 53 57 60 66 69 72 73 78 79 88].freeze
|
15
|
-
AREA_CODES = %w[12 13 14 15 16 17 18 22 23 24 25 29 32 33
|
16
|
-
34 41 42 43 44 46 48 52 54 55 56 58 59 61
|
17
|
-
62 63 65 67 68 71 74 75 76 77 81 82 83 84
|
18
|
-
85 86 87 89 91 94 95].freeze
|
19
|
-
|
20
|
-
def phone_number
|
21
|
-
case rand(0..1)
|
22
|
-
when 0 then home_work_phone_number
|
23
|
-
when 1 then mobile_phone_number
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def home_work_phone_number
|
28
|
-
FFakerTW.numerify(phone_number_format)
|
29
|
-
end
|
30
|
-
|
31
|
-
def mobile_phone_number
|
32
|
-
FFakerTW.numerify(mobile_phone_number_format)
|
33
|
-
end
|
34
|
-
|
35
|
-
def international_phone_number
|
36
|
-
case rand(0..1)
|
37
|
-
when 0 then international_mobile_phone_number
|
38
|
-
when 1 then international_home_work_phone_number
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def international_mobile_phone_number
|
43
|
-
FFakerTW.numerify("#{COUNTRY_CODE} #{mobile_phone_number_format}")
|
44
|
-
end
|
45
|
-
|
46
|
-
def international_home_work_phone_number
|
47
|
-
FFakerTW.numerify("#{COUNTRY_CODE} #{phone_number_format}")
|
48
|
-
end
|
49
|
-
|
50
|
-
def area_code
|
51
|
-
fetch_sample(AREA_CODES)
|
52
|
-
end
|
53
|
-
|
54
|
-
def mobile_prefix
|
55
|
-
fetch_sample(MOBILE_PREFIXES)
|
56
|
-
end
|
57
|
-
|
58
|
-
def phone_number_format
|
59
|
-
prefix = area_code
|
60
|
-
PHONE_NUMBER_FORMAT % prefix
|
61
|
-
end
|
62
|
-
|
63
|
-
def mobile_phone_number_format
|
64
|
-
prefix = mobile_prefix
|
65
|
-
PHONE_NUMBER_FORMAT % prefix
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
@@ -1,120 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
module PhoneNumberRU
|
5
|
-
extend ModuleUtils
|
6
|
-
extend self
|
7
|
-
|
8
|
-
INTERNATIONAL_COUNTRY_PREFIX = '+7'
|
9
|
-
COUNTRY_PREFIX = '8'
|
10
|
-
TOLL_FREE_PREFIX = '800'
|
11
|
-
|
12
|
-
# Generate general phone number with international country code
|
13
|
-
# +7 929 933 24 99
|
14
|
-
# +7 851 921 35 92
|
15
|
-
#
|
16
|
-
def international_phone_number
|
17
|
-
case rand(0..1)
|
18
|
-
when 0 then international_mobile_phone_number
|
19
|
-
when 1 then international_home_work_phone_number
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# Generate mobile phone number with international country code
|
24
|
-
# +7 929 933 24 99
|
25
|
-
# +7 978 921 35 92
|
26
|
-
#
|
27
|
-
def international_mobile_phone_number
|
28
|
-
build_phone_number(international_country_code, mobile_phone_prefix)
|
29
|
-
end
|
30
|
-
|
31
|
-
# Generate home or work phone number with international country code
|
32
|
-
# +7 842 933 24 99
|
33
|
-
# +7 851 921 35 92
|
34
|
-
#
|
35
|
-
def international_home_work_phone_number
|
36
|
-
build_phone_number(international_country_code, home_work_phone_prefix)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Generate toll free phone number with international country code
|
40
|
-
# +7 800 413 01 33
|
41
|
-
# +7 800 153 55 22
|
42
|
-
#
|
43
|
-
def international_toll_free_number
|
44
|
-
build_phone_number(international_country_code, TOLL_FREE_PREFIX)
|
45
|
-
end
|
46
|
-
|
47
|
-
# Generate general phone number with internal country code
|
48
|
-
# 8 999 044 31 33
|
49
|
-
# 8 843 944 33 33
|
50
|
-
#
|
51
|
-
def phone_number
|
52
|
-
case rand(0..1)
|
53
|
-
when 0 then mobile_phone_number
|
54
|
-
when 1 then home_work_phone_number
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# Generate mobile phone number with internal country code
|
59
|
-
# 8 949 232 22 22
|
60
|
-
# 8 999 331 23 12
|
61
|
-
#
|
62
|
-
def mobile_phone_number
|
63
|
-
build_phone_number(country_code, mobile_phone_prefix)
|
64
|
-
end
|
65
|
-
|
66
|
-
# Generate home or work phone number with internal country code
|
67
|
-
# 8 011 232 22 22
|
68
|
-
# 8 836 331 23 12
|
69
|
-
#
|
70
|
-
def home_work_phone_number
|
71
|
-
build_phone_number(country_code, home_work_phone_prefix)
|
72
|
-
end
|
73
|
-
|
74
|
-
# Generate toll free phone number with internal country code
|
75
|
-
# 8 800 413 01 33
|
76
|
-
# 8 800 153 55 22
|
77
|
-
#
|
78
|
-
def toll_free_number
|
79
|
-
build_phone_number(country_code, TOLL_FREE_PREFIX)
|
80
|
-
end
|
81
|
-
|
82
|
-
# International country code
|
83
|
-
# +7
|
84
|
-
#
|
85
|
-
def international_country_code
|
86
|
-
INTERNATIONAL_COUNTRY_PREFIX
|
87
|
-
end
|
88
|
-
|
89
|
-
# Internal country code
|
90
|
-
# 8
|
91
|
-
#
|
92
|
-
def country_code
|
93
|
-
COUNTRY_PREFIX
|
94
|
-
end
|
95
|
-
|
96
|
-
# Home or work phone prefix
|
97
|
-
# 081
|
98
|
-
# 301
|
99
|
-
#
|
100
|
-
def home_work_phone_prefix
|
101
|
-
fetch_sample(HOME_PHONE_PREFIXES)
|
102
|
-
end
|
103
|
-
|
104
|
-
# Mobile phone prefix
|
105
|
-
# 929
|
106
|
-
# 978
|
107
|
-
#
|
108
|
-
def mobile_phone_prefix
|
109
|
-
fetch_sample(MOBILE_PHONE_PREFIXES)
|
110
|
-
end
|
111
|
-
|
112
|
-
private
|
113
|
-
|
114
|
-
# Build phone number by country_code and prefix
|
115
|
-
#
|
116
|
-
def build_phone_number(country_code, prefix)
|
117
|
-
"#{country_code} #{prefix} #{FFakerTW.numerify('###-##-##')}"
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module FFakerTW
|
4
|
-
# Format for swedish numbers, from here
|
5
|
-
# from http://sv.wikipedia.org/wiki/Telefonnummer
|
6
|
-
#
|
7
|
-
# All area codes are from this list
|
8
|
-
# http://sv.wikipedia.org/wiki/Lista_%C3%B6ver_svenska_riktnummer
|
9
|
-
#
|
10
|
-
# - Length 9
|
11
|
-
# 08-xxx xxx xx, 0xx-xxx xx xx, 0xxx-xx xx xx
|
12
|
-
# - Length 8
|
13
|
-
# 08-xxx xx xx, 0xx-xx xx xx, 0xxx-xxx xx
|
14
|
-
# - Length 7
|
15
|
-
# 08-xx xx xx, 0xx-xxx xx
|
16
|
-
#
|
17
|
-
module PhoneNumberSE
|
18
|
-
extend ModuleUtils
|
19
|
-
extend self
|
20
|
-
|
21
|
-
PHONE_FORMAT_PREFIX_2 = ['%s-### ### ##',
|
22
|
-
'%s-### ## ##',
|
23
|
-
'%s-## ## ##'].freeze
|
24
|
-
PHONE_FORMAT_PREFIX_3 = ['%s-### ## ##',
|
25
|
-
'%s-## ## ##',
|
26
|
-
'%s-## ###'].freeze
|
27
|
-
PHONE_FORMAT_PREFIX_4 = ['%s-## ## ##',
|
28
|
-
'%s-### ##'].freeze
|
29
|
-
MOBILE_PHONE_FORMAT = ['%s#-## ## ##', '%s#-######'].freeze
|
30
|
-
COUNTRY_PREFIX = ['+46', '0046'].freeze
|
31
|
-
MOBILE_PHONE_PREFIX = %w[70 72 73 76 74].freeze
|
32
|
-
|
33
|
-
def phone_number
|
34
|
-
case rand(0..1)
|
35
|
-
when 0 then home_work_phone_number
|
36
|
-
when 1 then mobile_phone_number
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def home_work_phone_number
|
41
|
-
FFakerTW.numerify("0#{phone_number_format}")
|
42
|
-
end
|
43
|
-
|
44
|
-
def mobile_phone_number
|
45
|
-
FFakerTW.numerify("0#{mobile_phone_number_format}")
|
46
|
-
end
|
47
|
-
|
48
|
-
def international_phone_number
|
49
|
-
case rand(0..1)
|
50
|
-
when 0 then international_mobile_phone_number
|
51
|
-
when 1 then international_home_work_phone_number
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def country_prefix
|
56
|
-
fetch_sample(COUNTRY_PREFIX)
|
57
|
-
end
|
58
|
-
|
59
|
-
def international_mobile_phone_number
|
60
|
-
FFakerTW.numerify("#{country_prefix} (0)#{mobile_phone_number_format}")
|
61
|
-
end
|
62
|
-
|
63
|
-
def international_home_work_phone_number
|
64
|
-
FFakerTW.numerify("#{country_prefix} (0)#{phone_number_format}")
|
65
|
-
end
|
66
|
-
|
67
|
-
def area_prefix
|
68
|
-
fetch_sample(PHONE_PREFIX)
|
69
|
-
end
|
70
|
-
|
71
|
-
def phone_number_format
|
72
|
-
prefix = area_prefix
|
73
|
-
case prefix.length
|
74
|
-
when 1 then fetch_sample(PHONE_FORMAT_PREFIX_2)
|
75
|
-
when 2 then fetch_sample(PHONE_FORMAT_PREFIX_3)
|
76
|
-
when 3 then fetch_sample(PHONE_FORMAT_PREFIX_4)
|
77
|
-
end % prefix
|
78
|
-
end
|
79
|
-
|
80
|
-
def mobile_prefix
|
81
|
-
fetch_sample(MOBILE_PHONE_PREFIX)
|
82
|
-
end
|
83
|
-
|
84
|
-
def mobile_phone_number_format
|
85
|
-
fetch_sample(MOBILE_PHONE_FORMAT) % mobile_prefix
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|