ffakerTW 0.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (597) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +34 -2
  3. data/Gemfile +1 -1
  4. data/RANDOM.md +20 -20
  5. data/README.md +28 -31
  6. data/REFERENCE.md +88 -2660
  7. data/ffakerTW.gemspec +4 -4
  8. data/lib/ffakerTW/address_tw.rb +118 -0
  9. data/lib/ffakerTW/animal_tw.rb +1 -1
  10. data/lib/ffakerTW/company_tw.rb +3 -3
  11. data/lib/ffakerTW/data/address_tw/all +34463 -0
  12. data/lib/ffakerTW/data/address_tw/changhua +2765 -0
  13. data/lib/ffakerTW/data/address_tw/chiayi +1309 -0
  14. data/lib/ffakerTW/data/address_tw/hsinchu +1652 -0
  15. data/lib/ffakerTW/data/address_tw/hualien +1369 -0
  16. data/lib/ffakerTW/data/address_tw/kaohsiung +4603 -0
  17. data/lib/ffakerTW/data/address_tw/keelung +238 -0
  18. data/lib/ffakerTW/data/address_tw/kingmen +200 -0
  19. data/lib/ffakerTW/data/address_tw/miaoli +1133 -0
  20. data/lib/ffakerTW/data/address_tw/nantou +971 -0
  21. data/lib/ffakerTW/data/address_tw/newtaipei +2439 -0
  22. data/lib/ffakerTW/data/address_tw/penghu +197 -0
  23. data/lib/ffakerTW/data/address_tw/pingtung +2343 -0
  24. data/lib/ffakerTW/data/address_tw/taichung +4092 -0
  25. data/lib/ffakerTW/data/address_tw/tainan +2843 -0
  26. data/lib/ffakerTW/data/address_tw/taipei +753 -0
  27. data/lib/ffakerTW/data/address_tw/taitung +649 -0
  28. data/lib/ffakerTW/data/address_tw/taoyuan +3478 -0
  29. data/lib/ffakerTW/data/address_tw/yilan +1506 -0
  30. data/lib/ffakerTW/data/address_tw/yunlin +1923 -0
  31. data/lib/ffakerTW/data/animal_tw/common_names +21 -62
  32. data/lib/ffakerTW/data/job_tw/job_nouns +72 -206
  33. data/lib/ffakerTW/data/name_tw/first_names +178 -117
  34. data/lib/ffakerTW/data/name_tw/first_names.1120319 +122 -0
  35. data/lib/ffakerTW/education_tw.rb +6 -23
  36. data/lib/ffakerTW/gender_tw.rb +1 -4
  37. data/lib/ffakerTW/identification_tw.rb +1 -1
  38. data/lib/ffakerTW/job_tw.rb +1 -1
  39. data/lib/ffakerTW/lorem_tw.rb +2 -0
  40. data/lib/ffakerTW/name_tw.rb +3 -3
  41. data/lib/ffakerTW/phone_number_tw.rb +22 -15
  42. data/lib/ffakerTW/utils/module_utils.rb +1 -1
  43. data/lib/ffakerTW/version.rb +1 -1
  44. data/lib/ffakerTW.rb +2 -137
  45. data/lib/version.rb +2 -2
  46. data/scripts/profiling.rb +2 -2
  47. metadata +34 -689
  48. data/lib/ffakerTW/address.rb +0 -115
  49. data/lib/ffakerTW/address_au.rb +0 -120
  50. data/lib/ffakerTW/address_br.rb +0 -57
  51. data/lib/ffakerTW/address_ca.rb +0 -32
  52. data/lib/ffakerTW/address_ch.rb +0 -18
  53. data/lib/ffakerTW/address_ch_de.rb +0 -14
  54. data/lib/ffakerTW/address_ch_fr.rb +0 -14
  55. data/lib/ffakerTW/address_ch_it.rb +0 -14
  56. data/lib/ffakerTW/address_da.rb +0 -49
  57. data/lib/ffakerTW/address_de.rb +0 -42
  58. data/lib/ffakerTW/address_fi.rb +0 -44
  59. data/lib/ffakerTW/address_fr.rb +0 -40
  60. data/lib/ffakerTW/address_gr.rb +0 -38
  61. data/lib/ffakerTW/address_id.rb +0 -36
  62. data/lib/ffakerTW/address_in.rb +0 -56
  63. data/lib/ffakerTW/address_it.rb +0 -36
  64. data/lib/ffakerTW/address_ja.rb +0 -83
  65. data/lib/ffakerTW/address_kr.rb +0 -87
  66. data/lib/ffakerTW/address_mx.rb +0 -31
  67. data/lib/ffakerTW/address_nl.rb +0 -43
  68. data/lib/ffakerTW/address_pl.rb +0 -83
  69. data/lib/ffakerTW/address_ru.rb +0 -37
  70. data/lib/ffakerTW/address_se.rb +0 -44
  71. data/lib/ffakerTW/address_sn.rb +0 -22
  72. data/lib/ffakerTW/address_ua.rb +0 -56
  73. data/lib/ffakerTW/address_uk.rb +0 -25
  74. data/lib/ffakerTW/address_us.rb +0 -58
  75. data/lib/ffakerTW/animal.rb +0 -14
  76. data/lib/ffakerTW/animal_br.rb +0 -12
  77. data/lib/ffakerTW/animal_cn.rb +0 -12
  78. data/lib/ffakerTW/animal_es.rb +0 -12
  79. data/lib/ffakerTW/animal_pl.rb +0 -15
  80. data/lib/ffakerTW/animal_us.rb +0 -12
  81. data/lib/ffakerTW/color_pl.rb +0 -14
  82. data/lib/ffakerTW/color_ua.rb +0 -12
  83. data/lib/ffakerTW/company.rb +0 -44
  84. data/lib/ffakerTW/company_cn.rb +0 -23
  85. data/lib/ffakerTW/company_fr.rb +0 -35
  86. data/lib/ffakerTW/company_it.rb +0 -45
  87. data/lib/ffakerTW/company_ja.rb +0 -24
  88. data/lib/ffakerTW/company_se.rb +0 -23
  89. data/lib/ffakerTW/data/address/city_suffixes +0 -19
  90. data/lib/ffakerTW/data/address/country +0 -249
  91. data/lib/ffakerTW/data/address/country_code +0 -249
  92. data/lib/ffakerTW/data/address/neighborhood +0 -49
  93. data/lib/ffakerTW/data/address/street_suffix +0 -195
  94. data/lib/ffakerTW/data/address/time_zone +0 -130
  95. data/lib/ffakerTW/data/address_br/city +0 -299
  96. data/lib/ffakerTW/data/address_br/complement +0 -3
  97. data/lib/ffakerTW/data/address_br/neighborhood_prefixes +0 -3
  98. data/lib/ffakerTW/data/address_br/state +0 -27
  99. data/lib/ffakerTW/data/address_br/state_abbr +0 -27
  100. data/lib/ffakerTW/data/address_ca/city +0 -181
  101. data/lib/ffakerTW/data/address_ca/province +0 -13
  102. data/lib/ffakerTW/data/address_ch/canton_abbr +0 -26
  103. data/lib/ffakerTW/data/address_chde/canton +0 -26
  104. data/lib/ffakerTW/data/address_chfr/canton +0 -26
  105. data/lib/ffakerTW/data/address_chit/canton +0 -26
  106. data/lib/ffakerTW/data/address_da/city +0 -592
  107. data/lib/ffakerTW/data/address_da/kommune +0 -88
  108. data/lib/ffakerTW/data/address_da/street +0 -657
  109. data/lib/ffakerTW/data/address_de/city +0 -1666
  110. data/lib/ffakerTW/data/address_de/state +0 -15
  111. data/lib/ffakerTW/data/address_fi/city +0 -107
  112. data/lib/ffakerTW/data/address_fi/countries +0 -96
  113. data/lib/ffakerTW/data/address_fi/street +0 -140
  114. data/lib/ffakerTW/data/address_fr/city +0 -261
  115. data/lib/ffakerTW/data/address_fr/region +0 -27
  116. data/lib/ffakerTW/data/address_gr/city +0 -79
  117. data/lib/ffakerTW/data/address_gr/region +0 -13
  118. data/lib/ffakerTW/data/address_gr/street +0 -100
  119. data/lib/ffakerTW/data/address_id/city +0 -102
  120. data/lib/ffakerTW/data/address_id/common_street_names +0 -170
  121. data/lib/ffakerTW/data/address_id/state +0 -33
  122. data/lib/ffakerTW/data/address_id/state_abbr +0 -33
  123. data/lib/ffakerTW/data/address_in/city +0 -24
  124. data/lib/ffakerTW/data/address_in/state +0 -29
  125. data/lib/ffakerTW/data/address_in/state_abbr +0 -29
  126. data/lib/ffakerTW/data/address_in/union_territory +0 -7
  127. data/lib/ffakerTW/data/address_in/union_territory_abbr +0 -7
  128. data/lib/ffakerTW/data/address_it/city +0 -111
  129. data/lib/ffakerTW/data/address_it/region +0 -20
  130. data/lib/ffakerTW/data/address_ja/city +0 -791
  131. data/lib/ffakerTW/data/address_ja/county +0 -98
  132. data/lib/ffakerTW/data/address_ja/designated_city +0 -20
  133. data/lib/ffakerTW/data/address_ja/prefecture +0 -47
  134. data/lib/ffakerTW/data/address_ja/street +0 -37
  135. data/lib/ffakerTW/data/address_ja/tokyo_ward +0 -23
  136. data/lib/ffakerTW/data/address_ja/village +0 -183
  137. data/lib/ffakerTW/data/address_ja/ward +0 -188
  138. data/lib/ffakerTW/data/address_kr/boroughs +0 -29
  139. data/lib/ffakerTW/data/address_kr/cities +0 -51
  140. data/lib/ffakerTW/data/address_mx/ags +0 -11
  141. data/lib/ffakerTW/data/address_mx/bc +0 -5
  142. data/lib/ffakerTW/data/address_mx/bcs +0 -5
  143. data/lib/ffakerTW/data/address_mx/camp +0 -11
  144. data/lib/ffakerTW/data/address_mx/chih +0 -67
  145. data/lib/ffakerTW/data/address_mx/chis +0 -118
  146. data/lib/ffakerTW/data/address_mx/coah +0 -38
  147. data/lib/ffakerTW/data/address_mx/col +0 -10
  148. data/lib/ffakerTW/data/address_mx/df +0 -16
  149. data/lib/ffakerTW/data/address_mx/dgo +0 -39
  150. data/lib/ffakerTW/data/address_mx/gro +0 -81
  151. data/lib/ffakerTW/data/address_mx/gto +0 -46
  152. data/lib/ffakerTW/data/address_mx/hgo +0 -84
  153. data/lib/ffakerTW/data/address_mx/jal +0 -125
  154. data/lib/ffakerTW/data/address_mx/mex +0 -125
  155. data/lib/ffakerTW/data/address_mx/mich +0 -113
  156. data/lib/ffakerTW/data/address_mx/mor +0 -33
  157. data/lib/ffakerTW/data/address_mx/nay +0 -20
  158. data/lib/ffakerTW/data/address_mx/nl +0 -51
  159. data/lib/ffakerTW/data/address_mx/oax +0 -570
  160. data/lib/ffakerTW/data/address_mx/pue +0 -217
  161. data/lib/ffakerTW/data/address_mx/qr +0 -10
  162. data/lib/ffakerTW/data/address_mx/qro +0 -18
  163. data/lib/ffakerTW/data/address_mx/sin +0 -18
  164. data/lib/ffakerTW/data/address_mx/slp +0 -58
  165. data/lib/ffakerTW/data/address_mx/son +0 -72
  166. data/lib/ffakerTW/data/address_mx/state +0 -32
  167. data/lib/ffakerTW/data/address_mx/state_abbr +0 -32
  168. data/lib/ffakerTW/data/address_mx/tab +0 -17
  169. data/lib/ffakerTW/data/address_mx/tamps +0 -43
  170. data/lib/ffakerTW/data/address_mx/tlax +0 -60
  171. data/lib/ffakerTW/data/address_mx/ver +0 -212
  172. data/lib/ffakerTW/data/address_mx/yuc +0 -106
  173. data/lib/ffakerTW/data/address_mx/zac +0 -58
  174. data/lib/ffakerTW/data/address_nl/city +0 -2226
  175. data/lib/ffakerTW/data/address_nl/province +0 -12
  176. data/lib/ffakerTW/data/address_pl/city +0 -916
  177. data/lib/ffakerTW/data/address_pl/square +0 -390
  178. data/lib/ffakerTW/data/address_pl/street +0 -390
  179. data/lib/ffakerTW/data/address_pl/voivodeship +0 -16
  180. data/lib/ffakerTW/data/address_pl/voivodeship_abbr +0 -16
  181. data/lib/ffakerTW/data/address_pl/voivodeship_capital_city +0 -18
  182. data/lib/ffakerTW/data/address_ru/city +0 -74
  183. data/lib/ffakerTW/data/address_ru/province +0 -83
  184. data/lib/ffakerTW/data/address_ru/street +0 -49
  185. data/lib/ffakerTW/data/address_se/city +0 -154
  186. data/lib/ffakerTW/data/address_se/countries +0 -250
  187. data/lib/ffakerTW/data/address_se/street +0 -2887
  188. data/lib/ffakerTW/data/address_sn/arrondissements +0 -47
  189. data/lib/ffakerTW/data/address_sn/departements +0 -43
  190. data/lib/ffakerTW/data/address_sn/regions +0 -14
  191. data/lib/ffakerTW/data/address_ua/city +0 -57
  192. data/lib/ffakerTW/data/address_ua/country +0 -193
  193. data/lib/ffakerTW/data/address_ua/province +0 -27
  194. data/lib/ffakerTW/data/address_ua/street +0 -13
  195. data/lib/ffakerTW/data/address_uk/county +0 -70
  196. data/lib/ffakerTW/data/address_us/state +0 -50
  197. data/lib/ffakerTW/data/address_us/state_abbr +0 -50
  198. data/lib/ffakerTW/data/address_us/state_and_territories_abbr +0 -62
  199. data/lib/ffakerTW/data/animal/common_names +0 -141
  200. data/lib/ffakerTW/data/animal_br/common_names +0 -423
  201. data/lib/ffakerTW/data/animal_cn/common_names +0 -141
  202. data/lib/ffakerTW/data/animal_es/common_names +0 -135
  203. data/lib/ffakerTW/data/animal_pl/common_names +0 -256
  204. data/lib/ffakerTW/data/animal_us/common_names +0 -141
  205. data/lib/ffakerTW/data/color_pl/names_list +0 -122
  206. data/lib/ffakerTW/data/color_ua/names_list +0 -114
  207. data/lib/ffakerTW/data/company_it/piva_office_codes +0 -99
  208. data/lib/ffakerTW/data/education/degree_prefix +0 -274
  209. data/lib/ffakerTW/data/education/degree_short_prefix +0 -19
  210. data/lib/ffakerTW/data/education/major_noun +0 -13
  211. data/lib/ffakerTW/data/education/school_suffix +0 -13
  212. data/lib/ffakerTW/data/education_cn/city +0 -351
  213. data/lib/ffakerTW/data/education_cn/major +0 -506
  214. data/lib/ffakerTW/data/education_cn/province +0 -31
  215. data/lib/ffakerTW/data/education_cn/school_type +0 -27
  216. data/lib/ffakerTW/data/food_pl/diary +0 -14
  217. data/lib/ffakerTW/data/food_pl/fermented +0 -13
  218. data/lib/ffakerTW/data/food_pl/fruits +0 -34
  219. data/lib/ffakerTW/data/food_pl/herbs +0 -20
  220. data/lib/ffakerTW/data/food_pl/meats +0 -9
  221. data/lib/ffakerTW/data/food_pl/preserves +0 -10
  222. data/lib/ffakerTW/data/food_pl/spices +0 -26
  223. data/lib/ffakerTW/data/food_pl/vegetables +0 -45
  224. data/lib/ffakerTW/data/job/job_adj +0 -37
  225. data/lib/ffakerTW/data/job/job_noun +0 -25
  226. data/lib/ffakerTW/data/job/job_prefix +0 -22
  227. data/lib/ffakerTW/data/job_br/job_nouns +0 -52
  228. data/lib/ffakerTW/data/job_cn/job_nouns +0 -300
  229. data/lib/ffakerTW/data/job_fr/job_nouns +0 -14
  230. data/lib/ffakerTW/data/job_fr/job_prefixes +0 -15
  231. data/lib/ffakerTW/data/job_it/job_adj +0 -37
  232. data/lib/ffakerTW/data/job_it/job_noun +0 -25
  233. data/lib/ffakerTW/data/job_it/job_prefix +0 -22
  234. data/lib/ffakerTW/data/job_ja/job_nouns +0 -235
  235. data/lib/ffakerTW/data/job_kr/job_nouns +0 -1209
  236. data/lib/ffakerTW/data/job_vn/job_nouns +0 -191
  237. data/lib/ffakerTW/data/lorem/characters +0 -36
  238. data/lib/ffakerTW/data/lorem/words +0 -182
  239. data/lib/ffakerTW/data/lorem_ar/words +0 -911
  240. data/lib/ffakerTW/data/lorem_br/characters +0 -36
  241. data/lib/ffakerTW/data/lorem_br/words +0 -183
  242. data/lib/ffakerTW/data/lorem_cn/words +0 -706
  243. data/lib/ffakerTW/data/lorem_fr/words +0 -229
  244. data/lib/ffakerTW/data/lorem_ie/characters +0 -5
  245. data/lib/ffakerTW/data/lorem_ie/paragraphs +0 -2
  246. data/lib/ffakerTW/data/lorem_ie/questions +0 -1
  247. data/lib/ffakerTW/data/lorem_ie/sentences +0 -1
  248. data/lib/ffakerTW/data/lorem_ie/words +0 -107
  249. data/lib/ffakerTW/data/lorem_it/words +0 -321
  250. data/lib/ffakerTW/data/lorem_ja/characters +0 -101
  251. data/lib/ffakerTW/data/lorem_ja/sentences +0 -30
  252. data/lib/ffakerTW/data/lorem_ja/sentences_end +0 -21
  253. data/lib/ffakerTW/data/lorem_ja/words +0 -81
  254. data/lib/ffakerTW/data/lorem_kr/words +0 -47
  255. data/lib/ffakerTW/data/lorem_pl/characters +0 -32
  256. data/lib/ffakerTW/data/lorem_pl/words +0 -245
  257. data/lib/ffakerTW/data/lorem_ru/capital_chars +0 -33
  258. data/lib/ffakerTW/data/lorem_ru/chars +0 -33
  259. data/lib/ffakerTW/data/lorem_ru/words +0 -191
  260. data/lib/ffakerTW/data/lorem_ua/capital_chars +0 -33
  261. data/lib/ffakerTW/data/lorem_ua/chars +0 -33
  262. data/lib/ffakerTW/data/lorem_ua/words +0 -362
  263. data/lib/ffakerTW/data/name_ar/first_names_female +0 -250
  264. data/lib/ffakerTW/data/name_ar/first_names_male +0 -567
  265. data/lib/ffakerTW/data/name_ar/last_names +0 -357
  266. data/lib/ffakerTW/data/name_br/first_names_female +0 -1068
  267. data/lib/ffakerTW/data/name_br/first_names_male +0 -607
  268. data/lib/ffakerTW/data/name_br/last_names +0 -77
  269. data/lib/ffakerTW/data/name_cn/first_names +0 -1000
  270. data/lib/ffakerTW/data/name_cn/last_names +0 -1057
  271. data/lib/ffakerTW/data/name_cs/female_first_names +0 -40
  272. data/lib/ffakerTW/data/name_cs/female_last_names +0 -50
  273. data/lib/ffakerTW/data/name_cs/male_first_names +0 -88
  274. data/lib/ffakerTW/data/name_cs/male_last_names +0 -49
  275. data/lib/ffakerTW/data/name_cs/prefixes +0 -16
  276. data/lib/ffakerTW/data/name_da/female_first_names +0 -303
  277. data/lib/ffakerTW/data/name_da/last_names +0 -187
  278. data/lib/ffakerTW/data/name_da/male_first_names +0 -301
  279. data/lib/ffakerTW/data/name_de/first_names +0 -1166
  280. data/lib/ffakerTW/data/name_de/last_names +0 -100
  281. data/lib/ffakerTW/data/name_es/first_names_female +0 -184
  282. data/lib/ffakerTW/data/name_es/first_names_male +0 -165
  283. data/lib/ffakerTW/data/name_es/last_names +0 -208
  284. data/lib/ffakerTW/data/name_fr/first_names +0 -220
  285. data/lib/ffakerTW/data/name_fr/last_names +0 -408
  286. data/lib/ffakerTW/data/name_ga/first_names_female +0 -225
  287. data/lib/ffakerTW/data/name_ga/first_names_male +0 -306
  288. data/lib/ffakerTW/data/name_gr/female_first_names +0 -80
  289. data/lib/ffakerTW/data/name_gr/female_last_names +0 -45
  290. data/lib/ffakerTW/data/name_gr/male_first_names +0 -90
  291. data/lib/ffakerTW/data/name_gr/male_last_names +0 -57
  292. data/lib/ffakerTW/data/name_id/first_names_female +0 -267
  293. data/lib/ffakerTW/data/name_id/first_names_male +0 -312
  294. data/lib/ffakerTW/data/name_id/last_names +0 -1669
  295. data/lib/ffakerTW/data/name_in/first_names_female +0 -100
  296. data/lib/ffakerTW/data/name_in/first_names_male +0 -100
  297. data/lib/ffakerTW/data/name_in/last_names +0 -100
  298. data/lib/ffakerTW/data/name_it/first_names +0 -171
  299. data/lib/ffakerTW/data/name_it/last_names +0 -70
  300. data/lib/ffakerTW/data/name_ja/first_names +0 -397
  301. data/lib/ffakerTW/data/name_ja/last_names +0 -1078
  302. data/lib/ffakerTW/data/name_kh/first_names +0 -64
  303. data/lib/ffakerTW/data/name_kh/last_names +0 -71
  304. data/lib/ffakerTW/data/name_kh/nick_names +0 -30
  305. data/lib/ffakerTW/data/name_kr/first_names +0 -1317
  306. data/lib/ffakerTW/data/name_kr/last_names +0 -197
  307. data/lib/ffakerTW/data/name_mx/female_first_names +0 -216
  308. data/lib/ffakerTW/data/name_mx/last_names +0 -352
  309. data/lib/ffakerTW/data/name_mx/male_first_names +0 -211
  310. data/lib/ffakerTW/data/name_nb/first_names_female +0 -50
  311. data/lib/ffakerTW/data/name_nb/first_names_male +0 -50
  312. data/lib/ffakerTW/data/name_nb/last_names +0 -100
  313. data/lib/ffakerTW/data/name_nl/first_names_female +0 -89
  314. data/lib/ffakerTW/data/name_nl/first_names_male +0 -75
  315. data/lib/ffakerTW/data/name_nl/last_names +0 -115
  316. data/lib/ffakerTW/data/name_ph/autochthonous_surnames +0 -217
  317. data/lib/ffakerTW/data/name_ph/spanish_surnames +0 -300
  318. data/lib/ffakerTW/data/name_pl/female_first_names +0 -121
  319. data/lib/ffakerTW/data/name_pl/female_last_names +0 -200
  320. data/lib/ffakerTW/data/name_pl/male_first_names +0 -121
  321. data/lib/ffakerTW/data/name_pl/male_last_names +0 -200
  322. data/lib/ffakerTW/data/name_ru/first_names_female +0 -91
  323. data/lib/ffakerTW/data/name_ru/first_names_male +0 -172
  324. data/lib/ffakerTW/data/name_ru/last_names_female +0 -100
  325. data/lib/ffakerTW/data/name_ru/last_names_male +0 -100
  326. data/lib/ffakerTW/data/name_ru/middle_names_female +0 -65
  327. data/lib/ffakerTW/data/name_ru/middle_names_male +0 -73
  328. data/lib/ffakerTW/data/name_se/first_names_female +0 -110
  329. data/lib/ffakerTW/data/name_se/first_names_male +0 -110
  330. data/lib/ffakerTW/data/name_se/last_names +0 -100
  331. data/lib/ffakerTW/data/name_sn/first_names_female +0 -225
  332. data/lib/ffakerTW/data/name_sn/first_names_male +0 -304
  333. data/lib/ffakerTW/data/name_sn/last_names +0 -243
  334. data/lib/ffakerTW/data/name_th/first_names +0 -360
  335. data/lib/ffakerTW/data/name_th/last_names +0 -15
  336. data/lib/ffakerTW/data/name_th/nick_names +0 -74
  337. data/lib/ffakerTW/data/name_then/first_names +0 -292
  338. data/lib/ffakerTW/data/name_then/last_names +0 -63
  339. data/lib/ffakerTW/data/name_then/nick_names +0 -30
  340. data/lib/ffakerTW/data/name_ua/first_names_female +0 -193
  341. data/lib/ffakerTW/data/name_ua/first_names_male +0 -195
  342. data/lib/ffakerTW/data/name_ua/last_names_female +0 -230
  343. data/lib/ffakerTW/data/name_ua/last_names_male +0 -239
  344. data/lib/ffakerTW/data/name_ua/middle_names_female +0 -116
  345. data/lib/ffakerTW/data/name_ua/middle_names_male +0 -116
  346. data/lib/ffakerTW/data/name_vn/first_names +0 -6
  347. data/lib/ffakerTW/data/name_vn/last_names +0 -67
  348. data/lib/ffakerTW/data/name_vn/middle_names +0 -89
  349. data/lib/ffakerTW/data/phone_number_id/home_phone_prefixes +0 -303
  350. data/lib/ffakerTW/data/phone_number_id/mobile_phone_prefixes +0 -33
  351. data/lib/ffakerTW/data/phone_number_it/home_phone_prefixes +0 -232
  352. data/lib/ffakerTW/data/phone_number_it/mobile_phone_prefixes +0 -18
  353. data/lib/ffakerTW/data/phone_number_ja/four_disit_area_codes +0 -41
  354. data/lib/ffakerTW/data/phone_number_ja/one_disit_area_codes +0 -3
  355. data/lib/ffakerTW/data/phone_number_ja/three_disit_area_codes +0 -296
  356. data/lib/ffakerTW/data/phone_number_ja/two_disit_area_codes +0 -48
  357. data/lib/ffakerTW/data/phone_number_nl/area_codes +0 -142
  358. data/lib/ffakerTW/data/phone_number_ru/home_phone_prefixes +0 -107
  359. data/lib/ffakerTW/data/phone_number_ru/mobile_phone_prefixes +0 -61
  360. data/lib/ffakerTW/data/phone_number_se/phone_prefix +0 -265
  361. data/lib/ffakerTW/data/phone_number_ua/home_phone_prefixes +0 -29
  362. data/lib/ffakerTW/data/phone_number_ua/mobile_phone_prefixes +0 -11
  363. data/lib/ffakerTW/data/sport_pl/summer +0 -53
  364. data/lib/ffakerTW/data/sport_pl/winter +0 -14
  365. data/lib/ffakerTW/data/sport_ru/summer +0 -68
  366. data/lib/ffakerTW/data/sport_ru/winter +0 -20
  367. data/lib/ffakerTW/data/sport_us/names +0 -67
  368. data/lib/ffakerTW/education.rb +0 -49
  369. data/lib/ffakerTW/education_cn.rb +0 -37
  370. data/lib/ffakerTW/food_pl.rb +0 -65
  371. data/lib/ffakerTW/gender.rb +0 -22
  372. data/lib/ffakerTW/gender_br.rb +0 -17
  373. data/lib/ffakerTW/gender_cn.rb +0 -17
  374. data/lib/ffakerTW/gender_id.rb +0 -17
  375. data/lib/ffakerTW/gender_it.rb +0 -17
  376. data/lib/ffakerTW/gender_ja.rb +0 -18
  377. data/lib/ffakerTW/gender_jp.rb +0 -11
  378. data/lib/ffakerTW/gender_kr.rb +0 -17
  379. data/lib/ffakerTW/gender_pl.rb +0 -19
  380. data/lib/ffakerTW/gender_ru.rb +0 -22
  381. data/lib/ffakerTW/healthcare_ru.rb +0 -12
  382. data/lib/ffakerTW/identification.rb +0 -30
  383. data/lib/ffakerTW/identification_br.rb +0 -84
  384. data/lib/ffakerTW/identification_es.rb +0 -14
  385. data/lib/ffakerTW/identification_es_cl.rb +0 -29
  386. data/lib/ffakerTW/identification_es_co.rb +0 -39
  387. data/lib/ffakerTW/identification_in.rb +0 -15
  388. data/lib/ffakerTW/identification_it.rb +0 -30
  389. data/lib/ffakerTW/identification_kr.rb +0 -19
  390. data/lib/ffakerTW/identification_mx.rb +0 -58
  391. data/lib/ffakerTW/identification_pl.rb +0 -77
  392. data/lib/ffakerTW/internet_se.rb +0 -108
  393. data/lib/ffakerTW/job.rb +0 -12
  394. data/lib/ffakerTW/job_br.rb +0 -12
  395. data/lib/ffakerTW/job_cn.rb +0 -12
  396. data/lib/ffakerTW/job_fr.rb +0 -18
  397. data/lib/ffakerTW/job_it.rb +0 -12
  398. data/lib/ffakerTW/job_ja.rb +0 -12
  399. data/lib/ffakerTW/job_kr.rb +0 -12
  400. data/lib/ffakerTW/job_vn.rb +0 -12
  401. data/lib/ffakerTW/lorem.rb +0 -45
  402. data/lib/ffakerTW/lorem_ar.rb +0 -40
  403. data/lib/ffakerTW/lorem_br.rb +0 -45
  404. data/lib/ffakerTW/lorem_cn.rb +0 -40
  405. data/lib/ffakerTW/lorem_fr.rb +0 -39
  406. data/lib/ffakerTW/lorem_ie.rb +0 -40
  407. data/lib/ffakerTW/lorem_it.rb +0 -39
  408. data/lib/ffakerTW/lorem_ja.rb +0 -40
  409. data/lib/ffakerTW/lorem_kr.rb +0 -36
  410. data/lib/ffakerTW/lorem_pl.rb +0 -60
  411. data/lib/ffakerTW/lorem_ru.rb +0 -57
  412. data/lib/ffakerTW/lorem_ua.rb +0 -54
  413. data/lib/ffakerTW/name_ar.rb +0 -28
  414. data/lib/ffakerTW/name_br.rb +0 -62
  415. data/lib/ffakerTW/name_cn.rb +0 -24
  416. data/lib/ffakerTW/name_cs.rb +0 -87
  417. data/lib/ffakerTW/name_da.rb +0 -56
  418. data/lib/ffakerTW/name_de.rb +0 -31
  419. data/lib/ffakerTW/name_es.rb +0 -64
  420. data/lib/ffakerTW/name_fr.rb +0 -34
  421. data/lib/ffakerTW/name_ga.rb +0 -39
  422. data/lib/ffakerTW/name_gr.rb +0 -59
  423. data/lib/ffakerTW/name_id.rb +0 -62
  424. data/lib/ffakerTW/name_in.rb +0 -39
  425. data/lib/ffakerTW/name_it.rb +0 -31
  426. data/lib/ffakerTW/name_ja.rb +0 -22
  427. data/lib/ffakerTW/name_kh.rb +0 -24
  428. data/lib/ffakerTW/name_kr.rb +0 -26
  429. data/lib/ffakerTW/name_mx.rb +0 -101
  430. data/lib/ffakerTW/name_nb.rb +0 -44
  431. data/lib/ffakerTW/name_nl.rb +0 -48
  432. data/lib/ffakerTW/name_ph.rb +0 -25
  433. data/lib/ffakerTW/name_pl.rb +0 -98
  434. data/lib/ffakerTW/name_ru.rb +0 -55
  435. data/lib/ffakerTW/name_se.rb +0 -44
  436. data/lib/ffakerTW/name_sn.rb +0 -56
  437. data/lib/ffakerTW/name_th.rb +0 -25
  438. data/lib/ffakerTW/name_th_en.rb +0 -26
  439. data/lib/ffakerTW/name_ua.rb +0 -57
  440. data/lib/ffakerTW/name_vn.rb +0 -28
  441. data/lib/ffakerTW/phone_number.rb +0 -80
  442. data/lib/ffakerTW/phone_number_au.rb +0 -76
  443. data/lib/ffakerTW/phone_number_br.rb +0 -77
  444. data/lib/ffakerTW/phone_number_ch.rb +0 -46
  445. data/lib/ffakerTW/phone_number_cu.rb +0 -122
  446. data/lib/ffakerTW/phone_number_da.rb +0 -43
  447. data/lib/ffakerTW/phone_number_de.rb +0 -50
  448. data/lib/ffakerTW/phone_number_fr.rb +0 -65
  449. data/lib/ffakerTW/phone_number_id.rb +0 -36
  450. data/lib/ffakerTW/phone_number_it.rb +0 -44
  451. data/lib/ffakerTW/phone_number_ja.rb +0 -88
  452. data/lib/ffakerTW/phone_number_kr.rb +0 -50
  453. data/lib/ffakerTW/phone_number_mx.rb +0 -56
  454. data/lib/ffakerTW/phone_number_nl.rb +0 -46
  455. data/lib/ffakerTW/phone_number_pl.rb +0 -68
  456. data/lib/ffakerTW/phone_number_ru.rb +0 -120
  457. data/lib/ffakerTW/phone_number_se.rb +0 -88
  458. data/lib/ffakerTW/phone_number_sg.rb +0 -81
  459. data/lib/ffakerTW/phone_number_sn.rb +0 -71
  460. data/lib/ffakerTW/phone_number_ua.rb +0 -42
  461. data/lib/ffakerTW/sport_pl.rb +0 -25
  462. data/lib/ffakerTW/sport_ru.rb +0 -25
  463. data/lib/ffakerTW/sport_us.rb +0 -12
  464. data/lib/ffakerTW/ssn_mx.rb +0 -56
  465. data/lib/ffakerTW/ssn_se.rb +0 -80
  466. data/lib/ffakerTW/unit_english.rb +0 -107
  467. data/test/test_address_au.rb +0 -78
  468. data/test/test_address_br.rb +0 -50
  469. data/test/test_address_ca.rb +0 -31
  470. data/test/test_address_ch.rb +0 -17
  471. data/test/test_address_ch_de.rb +0 -13
  472. data/test/test_address_ch_fr.rb +0 -13
  473. data/test/test_address_ch_it.rb +0 -15
  474. data/test/test_address_da.rb +0 -50
  475. data/test/test_address_de.rb +0 -32
  476. data/test/test_address_fi.rb +0 -39
  477. data/test/test_address_fr.rb +0 -12
  478. data/test/test_address_gr.rb +0 -43
  479. data/test/test_address_id.rb +0 -39
  480. data/test/test_address_in.rb +0 -58
  481. data/test/test_address_it.rb +0 -12
  482. data/test/test_address_ja.rb +0 -58
  483. data/test/test_address_kr.rb +0 -14
  484. data/test/test_address_mx.rb +0 -32
  485. data/test/test_address_nl.rb +0 -36
  486. data/test/test_address_pl.rb +0 -80
  487. data/test/test_address_ru.rb +0 -36
  488. data/test/test_address_se.rb +0 -39
  489. data/test/test_address_sn.rb +0 -28
  490. data/test/test_address_ua.rb +0 -57
  491. data/test/test_address_uk.rb +0 -25
  492. data/test/test_address_us.rb +0 -51
  493. data/test/test_animal_br.rb +0 -17
  494. data/test/test_animal_cn.rb +0 -17
  495. data/test/test_animal_es.rb +0 -17
  496. data/test/test_animal_pl.rb +0 -17
  497. data/test/test_animal_us.rb +0 -17
  498. data/test/test_color_pl.rb +0 -13
  499. data/test/test_color_ua.rb +0 -13
  500. data/test/test_company_cn.rb +0 -24
  501. data/test/test_company_fr.rb +0 -33
  502. data/test/test_company_it.rb +0 -28
  503. data/test/test_company_ja.rb +0 -28
  504. data/test/test_company_se.rb +0 -20
  505. data/test/test_education_cn.rb +0 -29
  506. data/test/test_food_pl.rb +0 -61
  507. data/test/test_gender_br.rb +0 -18
  508. data/test/test_gender_cn.rb +0 -18
  509. data/test/test_gender_id.rb +0 -18
  510. data/test/test_gender_it.rb +0 -27
  511. data/test/test_gender_ja.rb +0 -27
  512. data/test/test_gender_jp.rb +0 -27
  513. data/test/test_gender_kr.rb +0 -28
  514. data/test/test_gender_pl.rb +0 -27
  515. data/test/test_gender_ru.rb +0 -23
  516. data/test/test_healthcare_ru.rb +0 -19
  517. data/test/test_identification_br.rb +0 -46
  518. data/test/test_identification_co.rb +0 -41
  519. data/test/test_identification_es.rb +0 -17
  520. data/test/test_identification_es_cl.rb +0 -17
  521. data/test/test_identification_es_mx.rb +0 -28
  522. data/test/test_identification_in.rb +0 -20
  523. data/test/test_identification_it.rb +0 -34
  524. data/test/test_identification_kr.rb +0 -17
  525. data/test/test_identification_pl.rb +0 -28
  526. data/test/test_identification_tw.rb +0 -17
  527. data/test/test_internet_se.rb +0 -78
  528. data/test/test_job_br.rb +0 -17
  529. data/test/test_job_cn.rb +0 -21
  530. data/test/test_job_fr.rb +0 -23
  531. data/test/test_job_it.rb +0 -17
  532. data/test/test_job_ja.rb +0 -21
  533. data/test/test_job_kr.rb +0 -21
  534. data/test/test_job_vn.rb +0 -21
  535. data/test/test_lorem_ar.rb +0 -44
  536. data/test/test_lorem_br.rb +0 -62
  537. data/test/test_lorem_cn.rb +0 -54
  538. data/test/test_lorem_fr.rb +0 -48
  539. data/test/test_lorem_ie.rb +0 -52
  540. data/test/test_lorem_it.rb +0 -51
  541. data/test/test_lorem_ja.rb +0 -81
  542. data/test/test_lorem_kr.rb +0 -56
  543. data/test/test_lorem_pl.rb +0 -51
  544. data/test/test_lorem_ru.rb +0 -52
  545. data/test/test_lorem_ua.rb +0 -52
  546. data/test/test_name_ar.rb +0 -39
  547. data/test/test_name_br.rb +0 -70
  548. data/test/test_name_cn.rb +0 -28
  549. data/test/test_name_cs.rb +0 -73
  550. data/test/test_name_da.rb +0 -59
  551. data/test/test_name_de.rb +0 -25
  552. data/test/test_name_es.rb +0 -70
  553. data/test/test_name_fr.rb +0 -52
  554. data/test/test_name_ga.rb +0 -61
  555. data/test/test_name_gr.rb +0 -70
  556. data/test/test_name_id.rb +0 -70
  557. data/test/test_name_it.rb +0 -53
  558. data/test/test_name_ja.rb +0 -51
  559. data/test/test_name_kh.rb +0 -34
  560. data/test/test_name_kr.rb +0 -28
  561. data/test/test_name_mx.rb +0 -190
  562. data/test/test_name_nb.rb +0 -43
  563. data/test/test_name_nl.rb +0 -25
  564. data/test/test_name_ph.rb +0 -34
  565. data/test/test_name_pl.rb +0 -111
  566. data/test/test_name_ru.rb +0 -76
  567. data/test/test_name_se.rb +0 -43
  568. data/test/test_name_sn.rb +0 -92
  569. data/test/test_name_th.rb +0 -34
  570. data/test/test_name_th_en.rb +0 -35
  571. data/test/test_name_tw.rb +0 -28
  572. data/test/test_name_ua.rb +0 -68
  573. data/test/test_name_vn.rb +0 -42
  574. data/test/test_phone_number_au.rb +0 -65
  575. data/test/test_phone_number_br.rb +0 -63
  576. data/test/test_phone_number_cu.rb +0 -93
  577. data/test/test_phone_number_da.rb +0 -47
  578. data/test/test_phone_number_de.rb +0 -53
  579. data/test/test_phone_number_fr.rb +0 -57
  580. data/test/test_phone_number_id.rb +0 -57
  581. data/test/test_phone_number_it.rb +0 -12
  582. data/test/test_phone_number_ja.rb +0 -63
  583. data/test/test_phone_number_kr.rb +0 -49
  584. data/test/test_phone_number_mx.rb +0 -50
  585. data/test/test_phone_number_nl.rb +0 -36
  586. data/test/test_phone_number_pl.rb +0 -56
  587. data/test/test_phone_number_ru.rb +0 -76
  588. data/test/test_phone_number_se.rb +0 -65
  589. data/test/test_phone_number_sg.rb +0 -52
  590. data/test/test_phone_number_sn.rb +0 -41
  591. data/test/test_phone_number_tw.rb +0 -42
  592. data/test/test_phone_number_ua.rb +0 -38
  593. data/test/test_sport_pl.rb +0 -30
  594. data/test/test_sport_ru.rb +0 -30
  595. data/test/test_sport_us.rb +0 -17
  596. /data/lib/ffakerTW/data/name_tw/{name_tw/first_names → first_names.1120318} +0 -0
  597. /data/lib/ffakerTW/data/name_tw/{name_tw/last_names → last_names.1120318} +0 -0
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- # The names & first names in this module were found at this url:
5
- # http://www.senegalaisement.com/senegal/noms_et_prenoms.html
6
- module NameSN
7
- extend ModuleUtils
8
- extend self
9
-
10
- PREFIX_FEMALE = %w[adja adjaratou mame ndeye].freeze
11
- PREFIX_MALE = %w[pape eladji mame serigne].freeze
12
-
13
- def last_name
14
- fetch_sample(LAST_NAMES)
15
- end
16
-
17
- def first_name_male
18
- fetch_sample(FIRST_NAMES_MALE)
19
- end
20
-
21
- def first_name_female
22
- fetch_sample(FIRST_NAMES_FEMALE)
23
- end
24
-
25
- def prefix_male
26
- fetch_sample(PREFIX_MALE)
27
- end
28
-
29
- def prefix_female
30
- fetch_sample(PREFIX_FEMALE)
31
- end
32
-
33
- def name_male
34
- case rand(0..9)
35
- when 5, 7 then "#{prefix_male} #{first_name_male} #{last_name}"
36
- else "#{first_name_male} #{last_name}"
37
- end
38
- end
39
-
40
- def name_female
41
- case rand(0..9)
42
- when 5, 7 then "#{prefix_female} #{first_name_female} #{last_name}"
43
- else "#{first_name_female} #{last_name}"
44
- end
45
- end
46
-
47
- def name_sn
48
- case rand(0..5)
49
- when 0 then "#{prefix_female} #{first_name_female} #{last_name}"
50
- when 1 then "#{prefix_male} #{first_name_male} #{last_name}"
51
- when 2, 4 then "#{first_name_male} #{last_name}"
52
- when 3, 5 then "#{first_name_female} #{last_name}"
53
- end
54
- end
55
- end
56
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- # Source: http://www.thai-language.com/
5
- module NameTH
6
- extend ModuleUtils
7
- extend self
8
-
9
- def first_name
10
- fetch_sample(FIRST_NAMES)
11
- end
12
-
13
- def last_name
14
- fetch_sample(LAST_NAMES)
15
- end
16
-
17
- def nick_name
18
- fetch_sample(NICK_NAMES)
19
- end
20
-
21
- def name
22
- "#{first_name} #{last_name}"
23
- end
24
- end
25
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'name_th'
4
-
5
- module FFakerTW
6
- module NameTHEN
7
- extend ModuleUtils
8
- extend self
9
-
10
- def first_name
11
- fetch_sample(FIRST_NAMES)
12
- end
13
-
14
- def last_name
15
- fetch_sample(LAST_NAMES)
16
- end
17
-
18
- def nick_name
19
- fetch_sample(NICK_NAMES)
20
- end
21
-
22
- def name
23
- "#{first_name} #{last_name}"
24
- end
25
- end
26
- end
@@ -1,57 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module NameUA
5
- extend ModuleUtils
6
- extend self
7
-
8
- FIRST_NAMES = FIRST_NAMES_MALE + FIRST_NAMES_FEMALE
9
- LAST_NAMES = LAST_NAMES_MALE + LAST_NAMES_FEMALE
10
- MIDDLE_NAMES = MIDDLE_NAMES_MALE + MIDDLE_NAMES_FEMALE
11
-
12
- def first_name_female
13
- fetch_sample(FIRST_NAMES_FEMALE)
14
- end
15
-
16
- def first_name_male
17
- fetch_sample(FIRST_NAMES_MALE)
18
- end
19
-
20
- def middle_name_female
21
- fetch_sample(MIDDLE_NAMES_FEMALE)
22
- end
23
-
24
- def middle_name_male
25
- fetch_sample(MIDDLE_NAMES_MALE)
26
- end
27
-
28
- def last_name_female
29
- fetch_sample(LAST_NAMES_FEMALE)
30
- end
31
-
32
- def last_name_male
33
- fetch_sample(LAST_NAMES_MALE)
34
- end
35
-
36
- def first_name
37
- fetch_sample(FIRST_NAMES)
38
- end
39
-
40
- def last_name
41
- fetch_sample(LAST_NAMES)
42
- end
43
-
44
- def name
45
- case rand(0..7)
46
- when 0 then first_name_male
47
- when 1 then first_name_female
48
- when 2 then "#{first_name_male} #{middle_name_male}"
49
- when 3 then "#{first_name_female} #{middle_name_male}"
50
- when 4 then "#{last_name_male} #{first_name_male}"
51
- when 5 then "#{last_name_female} #{first_name_female}"
52
- when 6 then "#{last_name_male} #{first_name_male} #{middle_name_male}"
53
- when 7 then "#{last_name_female} #{first_name_female} #{middle_name_female}"
54
- end
55
- end
56
- end
57
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module NameVN
5
- extend ModuleUtils
6
- extend self
7
-
8
- def name
9
- "#{middle_name} #{first_name} #{last_name}"
10
- end
11
-
12
- def first_name
13
- fetch_sample(FIRST_NAMES)
14
- end
15
-
16
- def last_name
17
- fetch_sample(LAST_NAMES)
18
- end
19
-
20
- def middle_name
21
- fetch_sample(MIDDLE_NAMES)
22
- end
23
-
24
- def last_first
25
- "#{last_name} #{middle_name} #{first_name}"
26
- end
27
- end
28
- end
@@ -1,80 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module PhoneNumber
5
- extend ModuleUtils
6
- extend self
7
-
8
- def phone_number
9
- FFakerTW.numerify case rand(0..19)
10
- when 0 then "#{area_code}-#{exchange_code}-#### x#####"
11
- when 1 then "#{area_code}-#{exchange_code}-#### x####"
12
- when 2 then "#{area_code}-#{exchange_code}-#### x###"
13
- when 3..4 then "#{area_code}-#{exchange_code}-####"
14
- when 5 then "#{area_code}.#{exchange_code}.#### x#####"
15
- when 6 then "#{area_code}.#{exchange_code}.#### x####"
16
- when 7 then "#{area_code}.#{exchange_code}.#### x###"
17
- when 8..9 then "#{area_code}.#{exchange_code}.####"
18
- when 10 then "(#{area_code})#{exchange_code}-#### x#####"
19
- when 11 then "(#{area_code})#{exchange_code}-#### x####"
20
- when 12 then "(#{area_code})#{exchange_code}-#### x###"
21
- when 13..14 then "(#{area_code})#{exchange_code}-####"
22
- when 15 then "1-#{area_code}-#{exchange_code}-#### x#####"
23
- when 16 then "1-#{area_code}-#{exchange_code}-#### x####"
24
- when 17 then "1-#{area_code}-#{exchange_code}-#### x###"
25
- when 18..19 then "1-#{area_code}-#{exchange_code}-####"
26
- end
27
- end
28
-
29
- def area_code
30
- # The North American Numbering Plan (NANP) does not permit the digits 0
31
- # and 1 as the leading digit of an area code.
32
- # https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes
33
- loop do
34
- rand_area_code = rand(201..999)
35
- return rand_area_code unless rand_area_code % 100 == 11
36
- end
37
- end
38
-
39
- def exchange_code
40
- # The North American Numbering Plan (NANP) does not permit the digits 0
41
- # and 1 as the leading digit of the exchange code.
42
- # https://en.wikipedia.org/wiki/North_American_Numbering_Plan#Numbering_system
43
- area_code
44
- end
45
-
46
- def short_phone_number
47
- FFakerTW.numerify("#{area_code}-#{exchange_code}-####")
48
- end
49
-
50
- def phone_calling_code
51
- fetch_sample(PHONE_CALLING_CODE)
52
- end
53
-
54
- def imei(serial_number = nil)
55
- # IMEI Format:
56
- # AA-BBBBBB-CCCCCC-D
57
- characters = Array.new(15, 0)
58
- rbi_codes = %w[01 10 30 33 35 44 45 49 50 51 52 53 54 86 91 98 99]
59
- serial_number ||= rand(0...1_000_000)
60
- serial_number = format('%06d', serial_number).chars.map(&:to_i)
61
- first_two_chars = fetch_sample(rbi_codes)
62
- characters[0, 2] = first_two_chars.chars.map(&:to_i)
63
- # serial number part
64
- 2.upto(7) do |current_position|
65
- characters[current_position] = fetch_sample((0..9).to_a)
66
- end
67
- 8.upto(13) do |current_position|
68
- characters[current_position] = serial_number[current_position - 8]
69
- end
70
- current_checksum = characters.reverse.each_with_index.inject(0) do |sum, (digit, i)|
71
- digit *= 2 if i.odd?
72
- digit -= 9 if digit > 9
73
- sum + digit
74
- end
75
- final_digit = (10 - (current_checksum % 10)) % 10
76
- characters[14] = final_digit
77
- characters.join
78
- end
79
- end
80
- end
@@ -1,76 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- # Based on information from http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia
5
- module PhoneNumberAU
6
- extend ModuleUtils
7
- extend self
8
-
9
- # Mobile prefixes
10
- MOBILE_OPERATORS_PREFIX = %w[04 05].freeze
11
-
12
- # Home or Work Operator prefixes
13
- HOME_WORK_OPERATORS_PREFIX = %w[02 03 07 08].freeze
14
-
15
- OPERATORS_PREFIX = MOBILE_OPERATORS_PREFIX + HOME_WORK_OPERATORS_PREFIX
16
-
17
- # Return a prefix in MOBILE_OPERATORS_PREFIX
18
- # @see FFakerTW::PhoneNumberAU::MOBILE_OPERATORS_PREFIX
19
- #
20
- def mobile_phone_prefix
21
- fetch_sample(MOBILE_OPERATORS_PREFIX)
22
- end
23
-
24
- # Return a prefix in HOME_WORK_OPERATORS_PREFIX
25
- # @see FFakerTW::PhoneNumberAU::HOME_WORK_OPERATORS_PREFIX
26
- #
27
- def home_work_phone_prefix
28
- fetch_sample(HOME_WORK_OPERATORS_PREFIX)
29
- end
30
-
31
- def phone_prefix
32
- fetch_sample(OPERATORS_PREFIX)
33
- end
34
-
35
- # Generates a general phone number
36
- # (0x) xxxx xxxx
37
- #
38
- def home_work_phone_number
39
- FFakerTW.numerify("(#{home_work_phone_prefix}) #### ####")
40
- end
41
-
42
- # Generates a mobile phone number
43
- # 04xx xxx xxx
44
- #
45
- def mobile_phone_number
46
- FFakerTW.numerify("#{mobile_phone_prefix}## ### ###")
47
- end
48
-
49
- # generates mobile or home/work number
50
- def phone_number
51
- case rand(0..1)
52
- when 0 then home_work_phone_number
53
- when 1 then mobile_phone_number
54
- end
55
- end
56
-
57
- def country_code
58
- '+61'
59
- end
60
-
61
- def international_mobile_phone_number
62
- FFakerTW.numerify("#{country_code} #{mobile_phone_prefix[1]} #### ####")
63
- end
64
-
65
- def international_home_work_phone_number
66
- FFakerTW.numerify("#{country_code} #{home_work_phone_prefix[1]} #### ####")
67
- end
68
-
69
- def international_phone_number
70
- case rand(0..1)
71
- when 0 then international_mobile_phone_number
72
- when 1 then international_home_work_phone_number
73
- end
74
- end
75
- end
76
- end
@@ -1,77 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- # Sources:
5
- # - https://en.wikipedia.org/wiki/Telephone_numbers_in_Brazil
6
- # - http://www.teleco.com.br/num_cel.asp
7
- # - http://ddd.online24hs.com.br/
8
- # - https://tecnoblog.net/24850/prefixo-10-para-grande-sao-paulo-deve-comecar-a-funcionar-em-outubro/
9
- # - http://agenciabrasil.ebc.com.br/geral/noticia/2016-10/numeros-de-celulares-de-todo-o-pais-terao-nove-digitos-partir-do-dia-6
10
- #
11
- module PhoneNumberBR
12
- extend ModuleUtils
13
- extend self
14
-
15
- COUNTRY_PREFIX = '+55'
16
- AREA_CODE = [
17
- 11..19, 21..22, 24, 27..28, 31..35, 37..38, 41..49,
18
- 51, 53..55, 61..69, 71, 73..75, 77, 79, 81..89, 91..99
19
- ].flat_map { |x| Array(x) }.map(&:to_s).freeze
20
-
21
- HOME_WORK_PHONE_PREFIX = %w[2 3 4 5].freeze
22
- MOBILE_PHONE_PREFIX = %w[96 97 98 99].freeze
23
- PHONE_NUMBER = %w[####### ###-####].freeze
24
-
25
- # generate a random phone number
26
- #
27
- def phone_number
28
- rand(0..1).zero? ? home_work_phone_number : mobile_phone_number
29
- end
30
-
31
- def home_work_phone_number
32
- number HOME_WORK_PHONE_PREFIX
33
- end
34
-
35
- def mobile_phone_number
36
- number MOBILE_PHONE_PREFIX
37
- end
38
-
39
- # pick a random phone number with the international prefix code
40
- #
41
- def international_phone_number
42
- rand(0..1).zero? ? international_mobile_phone_number : international_home_work_phone_number
43
- end
44
-
45
- def international_mobile_phone_number
46
- number MOBILE_PHONE_PREFIX, COUNTRY_PREFIX
47
- end
48
-
49
- def international_home_work_phone_number
50
- number HOME_WORK_PHONE_PREFIX, COUNTRY_PREFIX
51
- end
52
-
53
- def country_code
54
- COUNTRY_PREFIX
55
- end
56
-
57
- private
58
-
59
- def number(prefixes, country_prefix = '')
60
- space = random_space
61
- p = [
62
- country_prefix,
63
- space,
64
- fetch_sample(AREA_CODE),
65
- space,
66
- fetch_sample(prefixes),
67
- fetch_sample(PHONE_NUMBER)
68
- ].join('').strip
69
-
70
- FFakerTW.numerify p
71
- end
72
-
73
- def random_space
74
- rand(0..1) == 1 ? ' ' : ''
75
- end
76
- end
77
- end
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module PhoneNumberCH
5
- extend ModuleUtils
6
- extend self
7
-
8
- COUNTRY_PREFIX = %w[+41 0041 0].freeze
9
- AREA_PREFIX = %w[21 22 24 26 27 31 32 33 34 41 43 44 51 52 56 58 61 62 71 81 91].freeze
10
- MOBILE_PREFIX = %w[74 75 76 77 78 79].freeze
11
- FREE_PHONE_PREFIX = %w[800].freeze
12
- SHARED_COST_PREFIX = %w[840 842 844 848].freeze
13
- PREMIUM_RATE_PREFIX = %w[900 901 906].freeze
14
- PHONE_NUMBER = ['#######', ' ### ## ##'].freeze
15
-
16
- def phone_number
17
- case rand(0..4)
18
- when 0 then home_work_phone_number
19
- when 1 then mobile_phone_number
20
- when 2 then free_phone_number
21
- when 3 then shared_cost_phone_number
22
- when 4 then premium_rate_phone_number
23
- end
24
- end
25
-
26
- def home_work_phone_number
27
- FFakerTW.numerify "#{COUNTRY_PREFIX.sample}#{AREA_PREFIX.sample}#{PHONE_NUMBER.sample}"
28
- end
29
-
30
- def mobile_phone_number
31
- FFakerTW.numerify "#{COUNTRY_PREFIX.sample}#{MOBILE_PREFIX.sample}#{PHONE_NUMBER.sample}"
32
- end
33
-
34
- def free_phone_number
35
- FFakerTW.numerify "#{COUNTRY_PREFIX.sample}#{FREE_PHONE_PREFIX.sample}#{PHONE_NUMBER.sample}"
36
- end
37
-
38
- def shared_cost_phone_number
39
- FFakerTW.numerify "#{COUNTRY_PREFIX.sample}#{SHARED_COST_PREFIX.sample}#{PHONE_NUMBER.sample}"
40
- end
41
-
42
- def premium_rate_phone_number
43
- FFakerTW.numerify "#{COUNTRY_PREFIX.sample}#{PREMIUM_RATE_PREFIX.sample}#{PHONE_NUMBER.sample}"
44
- end
45
- end
46
- end
@@ -1,122 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- # Based on information from http://en.wikipedia.org/wiki/Telephone_numbers_in_Cuba
5
- module PhoneNumberCU
6
- extend ModuleUtils
7
- extend self
8
-
9
- # Mobile prefixes
10
- MOBILE_OPERATORS_PREFIX = %w[05].freeze
11
-
12
- # Home or Work Operator prefixes
13
- HOME_WORK_OPERATORS_PREFIX = %w[
14
- 021 022 023 024 031 032 033 041 042 043 045 046 047 048 07
15
- ].freeze
16
-
17
- OPERATORS_PREFIX = MOBILE_OPERATORS_PREFIX + HOME_WORK_OPERATORS_PREFIX
18
-
19
- # Return a prefix in MOBILE_OPERATORS_PREFIX
20
- # @see FFakerTW::PhoneNumberCU::MOBILE_OPERATORS_PREFIX
21
- #
22
- def mobile_phone_prefix
23
- fetch_sample(MOBILE_OPERATORS_PREFIX)
24
- end
25
-
26
- # Return a prefix in HOME_WORK_OPERATORS_PREFIX
27
- # @see FFakerTW::PhoneNumberCU::HOME_WORK_OPERATORS_PREFIX
28
- #
29
- def home_work_phone_prefix
30
- fetch_sample(HOME_WORK_OPERATORS_PREFIX)
31
- end
32
-
33
- def phone_prefix
34
- fetch_sample(OPERATORS_PREFIX)
35
- end
36
-
37
- # Generates a general phone number
38
- # (0x) xxx xxxx or (0xx) xx xxxx
39
- #
40
- def home_work_phone_number
41
- phone_prefix = home_work_phone_prefix
42
- case phone_prefix.size
43
- when 2 then FFakerTW.numerify("(#{phone_prefix}) ### ####")
44
- when 3 then FFakerTW.numerify("(#{phone_prefix}) ## ####")
45
- end
46
- end
47
-
48
- # Generates a mobile phone number
49
- # 05 xxx xxxx
50
- #
51
- def mobile_phone_number
52
- FFakerTW.numerify("#{mobile_phone_prefix} ### ####")
53
- end
54
-
55
- # Generates general number
56
- #
57
- def general_phone_number
58
- rand(0..1).zero? ? home_work_phone_number : mobile_phone_number
59
- end
60
-
61
- # Country Code is E.164 Country Code
62
- #
63
- def country_code
64
- e164_country_code
65
- end
66
-
67
- # International formats
68
- #
69
- def international_country_code
70
- rand(0..1).zero? ? "00#{country_code}" : "+#{country_code}"
71
- end
72
-
73
- def international_mobile_phone_number
74
- FFakerTW.numerify("#{international_country_code}#{mobile_phone_prefix[1]} ### ####")
75
- end
76
-
77
- def international_home_work_phone_number
78
- phone_prefix = home_work_phone_prefix
79
- case phone_prefix.size
80
- when 2 then FFakerTW.numerify("#{international_country_code}#{phone_prefix[1]} ### ####")
81
- when 3 then FFakerTW.numerify("#{international_country_code}#{phone_prefix[1, 2]} ## ####")
82
- end
83
- end
84
-
85
- def international_phone_number
86
- rand(0..1).zero? ? international_mobile_phone_number : international_home_work_phone_number
87
- end
88
-
89
- # E.164 formats
90
- # Based on information from http://en.wikipedia.org/wiki/E.164
91
- #
92
- def e164_country_code
93
- '53'
94
- end
95
-
96
- def e164_mobile_phone_number
97
- FFakerTW.numerify("#{country_code}#{mobile_phone_prefix[1]}#######")
98
- end
99
-
100
- def e164_home_work_phone_number
101
- phone_prefix = home_work_phone_prefix
102
- case phone_prefix.size
103
- when 2 then FFakerTW.numerify("#{e164_country_code}#{phone_prefix[1]}#######")
104
- when 3 then FFakerTW.numerify("#{e164_country_code}#{phone_prefix[1, 2]}######")
105
- end
106
- end
107
-
108
- def e164_phone_number
109
- rand(0..1).zero? ? e164_mobile_phone_number : e164_home_work_phone_number
110
- end
111
-
112
- # Generates phone number
113
- #
114
- def phone_number
115
- case rand(0..2)
116
- when 0 then general_phone_number
117
- when 1 then international_phone_number
118
- when 2 then e164_phone_number
119
- end
120
- end
121
- end
122
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module PhoneNumberDA
5
- extend ModuleUtils
6
- extend self
7
-
8
- # Generates a general phone number
9
- # xxxxxxxx
10
- #
11
- def home_work_phone_number
12
- phone_number
13
- end
14
-
15
- # Generates a mobile phone number
16
- # xxxxxxxxx
17
- #
18
- def mobile_phone_number
19
- phone_number
20
- end
21
-
22
- # generates mobile or home/work number
23
- def phone_number
24
- FFakerTW.numerify('########')
25
- end
26
-
27
- def country_code
28
- '+45'
29
- end
30
-
31
- def international_mobile_phone_number
32
- international_phone_number
33
- end
34
-
35
- def international_home_work_phone_number
36
- international_phone_number
37
- end
38
-
39
- def international_phone_number
40
- "#{country_code} #{phone_number}"
41
- end
42
- end
43
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module FFakerTW
4
- module PhoneNumberDE
5
- extend ModuleUtils
6
- extend self
7
-
8
- # Mobile prefixes are in the 015x, 016x, 017x ranges
9
- def mobile_prefix(leading_zero = true)
10
- mobile_prefix = '1' + rand(5..7).to_s + rand(0..9).to_s
11
- mobile_prefix = '0' + mobile_prefix if leading_zero
12
- mobile_prefix
13
- end
14
-
15
- # Region prefixes are in range 02..09 with length of 3 to 5 digits
16
- def region_prefix(leading_zero = true)
17
- region_prefix = rand(2..9).to_s + FFakerTW.numerify('#' * rand(1..3)).to_s
18
- region_prefix = '0' + region_prefix if leading_zero
19
- region_prefix
20
- end
21
-
22
- def phone_number
23
- home_work_phone_number
24
- end
25
-
26
- def mobile_phone_number(leading_zero = true)
27
- [mobile_prefix(leading_zero), FFakerTW.numerify('#######')].join(' ')
28
- end
29
-
30
- def home_work_phone_number(leading_zero = true)
31
- [region_prefix(leading_zero), FFakerTW.numerify('#######')].join(' ')
32
- end
33
-
34
- def country_code
35
- '+49'
36
- end
37
-
38
- def international_mobile_phone_number
39
- [country_code, mobile_phone_number(false)].join(' ')
40
- end
41
-
42
- def international_home_work_phone_number
43
- [country_code, home_work_phone_number(false)].join(' ')
44
- end
45
-
46
- def international_phone_number
47
- international_home_work_phone_number
48
- end
49
- end
50
- end