ffakerTW 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog.md +7 -0
- data/Gemfile +8 -0
- data/LICENSE +17 -0
- data/RANDOM.md +153 -0
- data/README.md +31 -0
- data/REFERENCE.md +2709 -0
- data/Rakefile +152 -0
- data/ffakerTW.gemspec +65 -0
- data/lib/ffakerTW/address.rb +115 -0
- data/lib/ffakerTW/address_au.rb +120 -0
- data/lib/ffakerTW/address_br.rb +57 -0
- data/lib/ffakerTW/address_ca.rb +32 -0
- data/lib/ffakerTW/address_ch.rb +18 -0
- data/lib/ffakerTW/address_ch_de.rb +14 -0
- data/lib/ffakerTW/address_ch_fr.rb +14 -0
- data/lib/ffakerTW/address_ch_it.rb +14 -0
- data/lib/ffakerTW/address_da.rb +49 -0
- data/lib/ffakerTW/address_de.rb +42 -0
- data/lib/ffakerTW/address_fi.rb +44 -0
- data/lib/ffakerTW/address_fr.rb +40 -0
- data/lib/ffakerTW/address_gr.rb +38 -0
- data/lib/ffakerTW/address_id.rb +36 -0
- data/lib/ffakerTW/address_in.rb +56 -0
- data/lib/ffakerTW/address_it.rb +36 -0
- data/lib/ffakerTW/address_ja.rb +83 -0
- data/lib/ffakerTW/address_kr.rb +87 -0
- data/lib/ffakerTW/address_mx.rb +31 -0
- data/lib/ffakerTW/address_nl.rb +43 -0
- data/lib/ffakerTW/address_pl.rb +83 -0
- data/lib/ffakerTW/address_ru.rb +37 -0
- data/lib/ffakerTW/address_se.rb +44 -0
- data/lib/ffakerTW/address_sn.rb +22 -0
- data/lib/ffakerTW/address_ua.rb +56 -0
- data/lib/ffakerTW/address_uk.rb +25 -0
- data/lib/ffakerTW/address_us.rb +58 -0
- data/lib/ffakerTW/airline.rb +16 -0
- data/lib/ffakerTW/animal.rb +14 -0
- data/lib/ffakerTW/animal_br.rb +12 -0
- data/lib/ffakerTW/animal_cn.rb +12 -0
- data/lib/ffakerTW/animal_es.rb +12 -0
- data/lib/ffakerTW/animal_pl.rb +15 -0
- data/lib/ffakerTW/animal_tw.rb +12 -0
- data/lib/ffakerTW/animal_us.rb +12 -0
- data/lib/ffakerTW/avatar.rb +36 -0
- data/lib/ffakerTW/aws.rb +24 -0
- data/lib/ffakerTW/bacon_ipsum.rb +19 -0
- data/lib/ffakerTW/bank.rb +118 -0
- data/lib/ffakerTW/book.rb +56 -0
- data/lib/ffakerTW/boolean.rb +18 -0
- data/lib/ffakerTW/cheesy_lingo.rb +39 -0
- data/lib/ffakerTW/code.rb +37 -0
- data/lib/ffakerTW/color.rb +66 -0
- data/lib/ffakerTW/color_pl.rb +14 -0
- data/lib/ffakerTW/color_ua.rb +12 -0
- data/lib/ffakerTW/company.rb +44 -0
- data/lib/ffakerTW/company_cn.rb +23 -0
- data/lib/ffakerTW/company_fr.rb +35 -0
- data/lib/ffakerTW/company_it.rb +45 -0
- data/lib/ffakerTW/company_ja.rb +24 -0
- data/lib/ffakerTW/company_se.rb +23 -0
- data/lib/ffakerTW/company_tw.rb +23 -0
- data/lib/ffakerTW/conference.rb +12 -0
- data/lib/ffakerTW/courses_fr.rb +23 -0
- data/lib/ffakerTW/currency.rb +20 -0
- data/lib/ffakerTW/data/address/city_suffixes +19 -0
- data/lib/ffakerTW/data/address/country +249 -0
- data/lib/ffakerTW/data/address/country_code +249 -0
- data/lib/ffakerTW/data/address/neighborhood +49 -0
- data/lib/ffakerTW/data/address/street_suffix +195 -0
- data/lib/ffakerTW/data/address/time_zone +130 -0
- data/lib/ffakerTW/data/address_br/city +299 -0
- data/lib/ffakerTW/data/address_br/complement +3 -0
- data/lib/ffakerTW/data/address_br/neighborhood_prefixes +3 -0
- data/lib/ffakerTW/data/address_br/state +27 -0
- data/lib/ffakerTW/data/address_br/state_abbr +27 -0
- data/lib/ffakerTW/data/address_ca/city +181 -0
- data/lib/ffakerTW/data/address_ca/province +13 -0
- data/lib/ffakerTW/data/address_ch/canton_abbr +26 -0
- data/lib/ffakerTW/data/address_chde/canton +26 -0
- data/lib/ffakerTW/data/address_chfr/canton +26 -0
- data/lib/ffakerTW/data/address_chit/canton +26 -0
- data/lib/ffakerTW/data/address_da/city +592 -0
- data/lib/ffakerTW/data/address_da/kommune +88 -0
- data/lib/ffakerTW/data/address_da/street +657 -0
- data/lib/ffakerTW/data/address_de/city +1666 -0
- data/lib/ffakerTW/data/address_de/state +15 -0
- data/lib/ffakerTW/data/address_fi/city +107 -0
- data/lib/ffakerTW/data/address_fi/countries +96 -0
- data/lib/ffakerTW/data/address_fi/street +140 -0
- data/lib/ffakerTW/data/address_fr/city +261 -0
- data/lib/ffakerTW/data/address_fr/region +27 -0
- data/lib/ffakerTW/data/address_gr/city +79 -0
- data/lib/ffakerTW/data/address_gr/region +13 -0
- data/lib/ffakerTW/data/address_gr/street +100 -0
- data/lib/ffakerTW/data/address_id/city +102 -0
- data/lib/ffakerTW/data/address_id/common_street_names +170 -0
- data/lib/ffakerTW/data/address_id/state +33 -0
- data/lib/ffakerTW/data/address_id/state_abbr +33 -0
- data/lib/ffakerTW/data/address_in/city +24 -0
- data/lib/ffakerTW/data/address_in/state +29 -0
- data/lib/ffakerTW/data/address_in/state_abbr +29 -0
- data/lib/ffakerTW/data/address_in/union_territory +7 -0
- data/lib/ffakerTW/data/address_in/union_territory_abbr +7 -0
- data/lib/ffakerTW/data/address_it/city +111 -0
- data/lib/ffakerTW/data/address_it/region +20 -0
- data/lib/ffakerTW/data/address_ja/city +791 -0
- data/lib/ffakerTW/data/address_ja/county +98 -0
- data/lib/ffakerTW/data/address_ja/designated_city +20 -0
- data/lib/ffakerTW/data/address_ja/prefecture +47 -0
- data/lib/ffakerTW/data/address_ja/street +37 -0
- data/lib/ffakerTW/data/address_ja/tokyo_ward +23 -0
- data/lib/ffakerTW/data/address_ja/village +183 -0
- data/lib/ffakerTW/data/address_ja/ward +188 -0
- data/lib/ffakerTW/data/address_kr/boroughs +29 -0
- data/lib/ffakerTW/data/address_kr/cities +51 -0
- data/lib/ffakerTW/data/address_mx/ags +11 -0
- data/lib/ffakerTW/data/address_mx/bc +5 -0
- data/lib/ffakerTW/data/address_mx/bcs +5 -0
- data/lib/ffakerTW/data/address_mx/camp +11 -0
- data/lib/ffakerTW/data/address_mx/chih +67 -0
- data/lib/ffakerTW/data/address_mx/chis +118 -0
- data/lib/ffakerTW/data/address_mx/coah +38 -0
- data/lib/ffakerTW/data/address_mx/col +10 -0
- data/lib/ffakerTW/data/address_mx/df +16 -0
- data/lib/ffakerTW/data/address_mx/dgo +39 -0
- data/lib/ffakerTW/data/address_mx/gro +81 -0
- data/lib/ffakerTW/data/address_mx/gto +46 -0
- data/lib/ffakerTW/data/address_mx/hgo +84 -0
- data/lib/ffakerTW/data/address_mx/jal +125 -0
- data/lib/ffakerTW/data/address_mx/mex +125 -0
- data/lib/ffakerTW/data/address_mx/mich +113 -0
- data/lib/ffakerTW/data/address_mx/mor +33 -0
- data/lib/ffakerTW/data/address_mx/nay +20 -0
- data/lib/ffakerTW/data/address_mx/nl +51 -0
- data/lib/ffakerTW/data/address_mx/oax +570 -0
- data/lib/ffakerTW/data/address_mx/pue +217 -0
- data/lib/ffakerTW/data/address_mx/qr +10 -0
- data/lib/ffakerTW/data/address_mx/qro +18 -0
- data/lib/ffakerTW/data/address_mx/sin +18 -0
- data/lib/ffakerTW/data/address_mx/slp +58 -0
- data/lib/ffakerTW/data/address_mx/son +72 -0
- data/lib/ffakerTW/data/address_mx/state +32 -0
- data/lib/ffakerTW/data/address_mx/state_abbr +32 -0
- data/lib/ffakerTW/data/address_mx/tab +17 -0
- data/lib/ffakerTW/data/address_mx/tamps +43 -0
- data/lib/ffakerTW/data/address_mx/tlax +60 -0
- data/lib/ffakerTW/data/address_mx/ver +212 -0
- data/lib/ffakerTW/data/address_mx/yuc +106 -0
- data/lib/ffakerTW/data/address_mx/zac +58 -0
- data/lib/ffakerTW/data/address_nl/city +2226 -0
- data/lib/ffakerTW/data/address_nl/province +12 -0
- data/lib/ffakerTW/data/address_pl/city +916 -0
- data/lib/ffakerTW/data/address_pl/square +390 -0
- data/lib/ffakerTW/data/address_pl/street +390 -0
- data/lib/ffakerTW/data/address_pl/voivodeship +16 -0
- data/lib/ffakerTW/data/address_pl/voivodeship_abbr +16 -0
- data/lib/ffakerTW/data/address_pl/voivodeship_capital_city +18 -0
- data/lib/ffakerTW/data/address_ru/city +74 -0
- data/lib/ffakerTW/data/address_ru/province +83 -0
- data/lib/ffakerTW/data/address_ru/street +49 -0
- data/lib/ffakerTW/data/address_se/city +154 -0
- data/lib/ffakerTW/data/address_se/countries +250 -0
- data/lib/ffakerTW/data/address_se/street +2887 -0
- data/lib/ffakerTW/data/address_sn/arrondissements +47 -0
- data/lib/ffakerTW/data/address_sn/departements +43 -0
- data/lib/ffakerTW/data/address_sn/regions +14 -0
- data/lib/ffakerTW/data/address_ua/city +57 -0
- data/lib/ffakerTW/data/address_ua/country +193 -0
- data/lib/ffakerTW/data/address_ua/province +27 -0
- data/lib/ffakerTW/data/address_ua/street +13 -0
- data/lib/ffakerTW/data/address_uk/county +70 -0
- data/lib/ffakerTW/data/address_us/state +50 -0
- data/lib/ffakerTW/data/address_us/state_abbr +50 -0
- data/lib/ffakerTW/data/address_us/state_and_territories_abbr +62 -0
- data/lib/ffakerTW/data/airline/codes_list +209 -0
- data/lib/ffakerTW/data/airline/names_list +206 -0
- data/lib/ffakerTW/data/animal/common_names +141 -0
- data/lib/ffakerTW/data/animal_br/common_names +423 -0
- data/lib/ffakerTW/data/animal_cn/common_names +141 -0
- data/lib/ffakerTW/data/animal_es/common_names +135 -0
- data/lib/ffakerTW/data/animal_pl/common_names +256 -0
- data/lib/ffakerTW/data/animal_tw/common_names +141 -0
- data/lib/ffakerTW/data/animal_us/common_names +141 -0
- data/lib/ffakerTW/data/aws/ec2_instance_type +59 -0
- data/lib/ffakerTW/data/aws/ec2_reserved_instance_tenancy +3 -0
- data/lib/ffakerTW/data/aws/ec2_reserved_offering_type +6 -0
- data/lib/ffakerTW/data/aws/ec2_reserved_product_description +14 -0
- data/lib/ffakerTW/data/bacon_ipsum/bacon_words +62 -0
- data/lib/ffakerTW/data/bank/card_types +12 -0
- data/lib/ffakerTW/data/book/adj_and_adv +20 -0
- data/lib/ffakerTW/data/book/genres +369 -0
- data/lib/ffakerTW/data/book/nouns +36 -0
- data/lib/ffakerTW/data/book/prefixes +17 -0
- data/lib/ffakerTW/data/cheesy_lingo/cheesy_phrases +54 -0
- data/lib/ffakerTW/data/cheesy_lingo/cheesy_words +34 -0
- data/lib/ffakerTW/data/color/names_list +147 -0
- data/lib/ffakerTW/data/color_pl/names_list +122 -0
- data/lib/ffakerTW/data/color_ua/names_list +114 -0
- data/lib/ffakerTW/data/company/bs_mid +65 -0
- data/lib/ffakerTW/data/company/bs_pos +44 -0
- data/lib/ffakerTW/data/company/bs_pre +60 -0
- data/lib/ffakerTW/data/company/catch_mid +101 -0
- data/lib/ffakerTW/data/company/catch_pos +104 -0
- data/lib/ffakerTW/data/company/catch_pre +100 -0
- data/lib/ffakerTW/data/company/position_areas +11 -0
- data/lib/ffakerTW/data/company_it/piva_office_codes +99 -0
- data/lib/ffakerTW/data/conference/conference_list +40 -0
- data/lib/ffakerTW/data/currency/currency_code +169 -0
- data/lib/ffakerTW/data/currency/currency_name +169 -0
- data/lib/ffakerTW/data/currency/currency_symbol +8 -0
- data/lib/ffakerTW/data/dizzle_ipsum/dizzle_words +69 -0
- data/lib/ffakerTW/data/education/degree_prefix +274 -0
- data/lib/ffakerTW/data/education/degree_short_prefix +19 -0
- data/lib/ffakerTW/data/education/major_noun +13 -0
- data/lib/ffakerTW/data/education/school_suffix +13 -0
- data/lib/ffakerTW/data/education_cn/city +351 -0
- data/lib/ffakerTW/data/education_cn/major +506 -0
- data/lib/ffakerTW/data/education_cn/province +31 -0
- data/lib/ffakerTW/data/education_cn/school_type +27 -0
- data/lib/ffakerTW/data/education_tw/city +20 -0
- data/lib/ffakerTW/data/education_tw/major +506 -0
- data/lib/ffakerTW/data/education_tw/school_type +27 -0
- data/lib/ffakerTW/data/filesystem/extension +32 -0
- data/lib/ffakerTW/data/filesystem/mime_type +67 -0
- data/lib/ffakerTW/data/food/fruit +82 -0
- data/lib/ffakerTW/data/food/herb_spice +64 -0
- data/lib/ffakerTW/data/food/meat +48 -0
- data/lib/ffakerTW/data/food/vegetable +207 -0
- data/lib/ffakerTW/data/food_pl/diary +14 -0
- data/lib/ffakerTW/data/food_pl/fermented +13 -0
- data/lib/ffakerTW/data/food_pl/fruits +34 -0
- data/lib/ffakerTW/data/food_pl/herbs +20 -0
- data/lib/ffakerTW/data/food_pl/meats +9 -0
- data/lib/ffakerTW/data/food_pl/preserves +10 -0
- data/lib/ffakerTW/data/food_pl/spices +26 -0
- data/lib/ffakerTW/data/food_pl/vegetables +45 -0
- data/lib/ffakerTW/data/freedom_ipsum/freedom_words +161 -0
- data/lib/ffakerTW/data/game/adj_and_adv +18 -0
- data/lib/ffakerTW/data/game/category +84 -0
- data/lib/ffakerTW/data/game/mechanic +182 -0
- data/lib/ffakerTW/data/game/nouns +37 -0
- data/lib/ffakerTW/data/game/prefixes +17 -0
- data/lib/ffakerTW/data/healthcare_ipsum/healthcare_words +193 -0
- data/lib/ffakerTW/data/healthcare_ru/doctor_specialization +127 -0
- data/lib/ffakerTW/data/hipster_ipsum/hipster_words +101 -0
- data/lib/ffakerTW/data/identification_mx/estados_curp +33 -0
- data/lib/ffakerTW/data/job/job_adj +37 -0
- data/lib/ffakerTW/data/job/job_noun +25 -0
- data/lib/ffakerTW/data/job/job_prefix +22 -0
- data/lib/ffakerTW/data/job_br/job_nouns +52 -0
- data/lib/ffakerTW/data/job_cn/job_nouns +300 -0
- data/lib/ffakerTW/data/job_fr/job_nouns +14 -0
- data/lib/ffakerTW/data/job_fr/job_prefixes +15 -0
- data/lib/ffakerTW/data/job_it/job_adj +37 -0
- data/lib/ffakerTW/data/job_it/job_noun +25 -0
- data/lib/ffakerTW/data/job_it/job_prefix +22 -0
- data/lib/ffakerTW/data/job_ja/job_nouns +235 -0
- data/lib/ffakerTW/data/job_kr/job_nouns +1209 -0
- data/lib/ffakerTW/data/job_tw/job_nouns +300 -0
- data/lib/ffakerTW/data/job_vn/job_nouns +191 -0
- data/lib/ffakerTW/data/locale/language +136 -0
- data/lib/ffakerTW/data/locale/language_code +136 -0
- data/lib/ffakerTW/data/lorem/characters +36 -0
- data/lib/ffakerTW/data/lorem/words +182 -0
- data/lib/ffakerTW/data/lorem_ar/words +911 -0
- data/lib/ffakerTW/data/lorem_br/characters +36 -0
- data/lib/ffakerTW/data/lorem_br/words +183 -0
- data/lib/ffakerTW/data/lorem_cn/words +706 -0
- data/lib/ffakerTW/data/lorem_fr/words +229 -0
- data/lib/ffakerTW/data/lorem_ie/characters +5 -0
- data/lib/ffakerTW/data/lorem_ie/paragraphs +2 -0
- data/lib/ffakerTW/data/lorem_ie/questions +1 -0
- data/lib/ffakerTW/data/lorem_ie/sentences +1 -0
- data/lib/ffakerTW/data/lorem_ie/words +107 -0
- data/lib/ffakerTW/data/lorem_it/words +321 -0
- data/lib/ffakerTW/data/lorem_ja/characters +101 -0
- data/lib/ffakerTW/data/lorem_ja/sentences +30 -0
- data/lib/ffakerTW/data/lorem_ja/sentences_end +21 -0
- data/lib/ffakerTW/data/lorem_ja/words +81 -0
- data/lib/ffakerTW/data/lorem_kr/words +47 -0
- data/lib/ffakerTW/data/lorem_pl/characters +32 -0
- data/lib/ffakerTW/data/lorem_pl/words +245 -0
- data/lib/ffakerTW/data/lorem_ru/capital_chars +33 -0
- data/lib/ffakerTW/data/lorem_ru/chars +33 -0
- data/lib/ffakerTW/data/lorem_ru/words +191 -0
- data/lib/ffakerTW/data/lorem_tw/words +706 -0
- data/lib/ffakerTW/data/lorem_ua/capital_chars +33 -0
- data/lib/ffakerTW/data/lorem_ua/chars +33 -0
- data/lib/ffakerTW/data/lorem_ua/words +362 -0
- data/lib/ffakerTW/data/mathematiques/lessons +58 -0
- data/lib/ffakerTW/data/movie/adj_and_adv +20 -0
- data/lib/ffakerTW/data/movie/nouns +36 -0
- data/lib/ffakerTW/data/movie/prefixes +17 -0
- data/lib/ffakerTW/data/music/albums +91 -0
- data/lib/ffakerTW/data/music/artists +100 -0
- data/lib/ffakerTW/data/music/genres +20 -0
- data/lib/ffakerTW/data/music/songs +100 -0
- data/lib/ffakerTW/data/name/first_names_female +4045 -0
- data/lib/ffakerTW/data/name/first_names_male +1182 -0
- data/lib/ffakerTW/data/name/last_names +474 -0
- data/lib/ffakerTW/data/name/pronouns +6 -0
- data/lib/ffakerTW/data/name_ar/first_names_female +250 -0
- data/lib/ffakerTW/data/name_ar/first_names_male +567 -0
- data/lib/ffakerTW/data/name_ar/last_names +357 -0
- data/lib/ffakerTW/data/name_br/first_names_female +1068 -0
- data/lib/ffakerTW/data/name_br/first_names_male +607 -0
- data/lib/ffakerTW/data/name_br/last_names +77 -0
- data/lib/ffakerTW/data/name_cn/first_names +1000 -0
- data/lib/ffakerTW/data/name_cn/last_names +1057 -0
- data/lib/ffakerTW/data/name_cs/female_first_names +40 -0
- data/lib/ffakerTW/data/name_cs/female_last_names +50 -0
- data/lib/ffakerTW/data/name_cs/male_first_names +88 -0
- data/lib/ffakerTW/data/name_cs/male_last_names +49 -0
- data/lib/ffakerTW/data/name_cs/prefixes +16 -0
- data/lib/ffakerTW/data/name_da/female_first_names +303 -0
- data/lib/ffakerTW/data/name_da/last_names +187 -0
- data/lib/ffakerTW/data/name_da/male_first_names +301 -0
- data/lib/ffakerTW/data/name_de/first_names +1166 -0
- data/lib/ffakerTW/data/name_de/last_names +100 -0
- data/lib/ffakerTW/data/name_es/first_names_female +184 -0
- data/lib/ffakerTW/data/name_es/first_names_male +165 -0
- data/lib/ffakerTW/data/name_es/last_names +208 -0
- data/lib/ffakerTW/data/name_fr/first_names +220 -0
- data/lib/ffakerTW/data/name_fr/last_names +408 -0
- data/lib/ffakerTW/data/name_ga/first_names_female +225 -0
- data/lib/ffakerTW/data/name_ga/first_names_male +306 -0
- data/lib/ffakerTW/data/name_gr/female_first_names +80 -0
- data/lib/ffakerTW/data/name_gr/female_last_names +45 -0
- data/lib/ffakerTW/data/name_gr/male_first_names +90 -0
- data/lib/ffakerTW/data/name_gr/male_last_names +57 -0
- data/lib/ffakerTW/data/name_id/first_names_female +267 -0
- data/lib/ffakerTW/data/name_id/first_names_male +312 -0
- data/lib/ffakerTW/data/name_id/last_names +1669 -0
- data/lib/ffakerTW/data/name_in/first_names_female +100 -0
- data/lib/ffakerTW/data/name_in/first_names_male +100 -0
- data/lib/ffakerTW/data/name_in/last_names +100 -0
- data/lib/ffakerTW/data/name_it/first_names +171 -0
- data/lib/ffakerTW/data/name_it/last_names +70 -0
- data/lib/ffakerTW/data/name_ja/first_names +397 -0
- data/lib/ffakerTW/data/name_ja/last_names +1078 -0
- data/lib/ffakerTW/data/name_kh/first_names +64 -0
- data/lib/ffakerTW/data/name_kh/last_names +71 -0
- data/lib/ffakerTW/data/name_kh/nick_names +30 -0
- data/lib/ffakerTW/data/name_kr/first_names +1317 -0
- data/lib/ffakerTW/data/name_kr/last_names +197 -0
- data/lib/ffakerTW/data/name_mx/female_first_names +216 -0
- data/lib/ffakerTW/data/name_mx/last_names +352 -0
- data/lib/ffakerTW/data/name_mx/male_first_names +211 -0
- data/lib/ffakerTW/data/name_nb/first_names_female +50 -0
- data/lib/ffakerTW/data/name_nb/first_names_male +50 -0
- data/lib/ffakerTW/data/name_nb/last_names +100 -0
- data/lib/ffakerTW/data/name_nl/first_names_female +89 -0
- data/lib/ffakerTW/data/name_nl/first_names_male +75 -0
- data/lib/ffakerTW/data/name_nl/last_names +115 -0
- data/lib/ffakerTW/data/name_ph/autochthonous_surnames +217 -0
- data/lib/ffakerTW/data/name_ph/spanish_surnames +300 -0
- data/lib/ffakerTW/data/name_pl/female_first_names +121 -0
- data/lib/ffakerTW/data/name_pl/female_last_names +200 -0
- data/lib/ffakerTW/data/name_pl/male_first_names +121 -0
- data/lib/ffakerTW/data/name_pl/male_last_names +200 -0
- data/lib/ffakerTW/data/name_ru/first_names_female +91 -0
- data/lib/ffakerTW/data/name_ru/first_names_male +172 -0
- data/lib/ffakerTW/data/name_ru/last_names_female +100 -0
- data/lib/ffakerTW/data/name_ru/last_names_male +100 -0
- data/lib/ffakerTW/data/name_ru/middle_names_female +65 -0
- data/lib/ffakerTW/data/name_ru/middle_names_male +73 -0
- data/lib/ffakerTW/data/name_se/first_names_female +110 -0
- data/lib/ffakerTW/data/name_se/first_names_male +110 -0
- data/lib/ffakerTW/data/name_se/last_names +100 -0
- data/lib/ffakerTW/data/name_sn/first_names_female +225 -0
- data/lib/ffakerTW/data/name_sn/first_names_male +304 -0
- data/lib/ffakerTW/data/name_sn/last_names +243 -0
- data/lib/ffakerTW/data/name_th/first_names +360 -0
- data/lib/ffakerTW/data/name_th/last_names +15 -0
- data/lib/ffakerTW/data/name_th/nick_names +74 -0
- data/lib/ffakerTW/data/name_then/first_names +292 -0
- data/lib/ffakerTW/data/name_then/last_names +63 -0
- data/lib/ffakerTW/data/name_then/nick_names +30 -0
- data/lib/ffakerTW/data/name_tw/first_names +122 -0
- data/lib/ffakerTW/data/name_tw/last_names +100 -0
- data/lib/ffakerTW/data/name_tw/name_tw/first_names +1000 -0
- data/lib/ffakerTW/data/name_tw/name_tw/last_names +243 -0
- data/lib/ffakerTW/data/name_ua/first_names_female +193 -0
- data/lib/ffakerTW/data/name_ua/first_names_male +195 -0
- data/lib/ffakerTW/data/name_ua/last_names_female +230 -0
- data/lib/ffakerTW/data/name_ua/last_names_male +239 -0
- data/lib/ffakerTW/data/name_ua/middle_names_female +116 -0
- data/lib/ffakerTW/data/name_ua/middle_names_male +116 -0
- data/lib/ffakerTW/data/name_vn/first_names +6 -0
- data/lib/ffakerTW/data/name_vn/last_names +67 -0
- data/lib/ffakerTW/data/name_vn/middle_names +89 -0
- data/lib/ffakerTW/data/nato_alphabet/alphabet_codes +26 -0
- data/lib/ffakerTW/data/nato_alphabet/numeric_codes +10 -0
- data/lib/ffakerTW/data/philosophie/lessons +17 -0
- data/lib/ffakerTW/data/phone_number/phone_calling_code +205 -0
- data/lib/ffakerTW/data/phone_number_id/home_phone_prefixes +303 -0
- data/lib/ffakerTW/data/phone_number_id/mobile_phone_prefixes +33 -0
- data/lib/ffakerTW/data/phone_number_it/home_phone_prefixes +232 -0
- data/lib/ffakerTW/data/phone_number_it/mobile_phone_prefixes +18 -0
- data/lib/ffakerTW/data/phone_number_ja/four_disit_area_codes +41 -0
- data/lib/ffakerTW/data/phone_number_ja/one_disit_area_codes +3 -0
- data/lib/ffakerTW/data/phone_number_ja/three_disit_area_codes +296 -0
- data/lib/ffakerTW/data/phone_number_ja/two_disit_area_codes +48 -0
- data/lib/ffakerTW/data/phone_number_nl/area_codes +142 -0
- data/lib/ffakerTW/data/phone_number_ru/home_phone_prefixes +107 -0
- data/lib/ffakerTW/data/phone_number_ru/mobile_phone_prefixes +61 -0
- data/lib/ffakerTW/data/phone_number_se/phone_prefix +265 -0
- data/lib/ffakerTW/data/phone_number_ua/home_phone_prefixes +29 -0
- data/lib/ffakerTW/data/phone_number_ua/mobile_phone_prefixes +11 -0
- data/lib/ffakerTW/data/product/adj +19 -0
- data/lib/ffakerTW/data/product/b1 +19 -0
- data/lib/ffakerTW/data/product/noun +19 -0
- data/lib/ffakerTW/data/skill/specialty_end +14 -0
- data/lib/ffakerTW/data/skill/specialty_start +18 -0
- data/lib/ffakerTW/data/skill/tech_skills +52 -0
- data/lib/ffakerTW/data/sport/names +67 -0
- data/lib/ffakerTW/data/sport_pl/summer +53 -0
- data/lib/ffakerTW/data/sport_pl/winter +14 -0
- data/lib/ffakerTW/data/sport_ru/summer +68 -0
- data/lib/ffakerTW/data/sport_ru/winter +20 -0
- data/lib/ffakerTW/data/sport_us/names +67 -0
- data/lib/ffakerTW/data/tweet/hashtag +58 -0
- data/lib/ffakerTW/data/vehicle/color_prefixes +25 -0
- data/lib/ffakerTW/data/vehicle/displacements_list +21 -0
- data/lib/ffakerTW/data/vehicle/fuel_types_list +6 -0
- data/lib/ffakerTW/data/vehicle/makes_list +73 -0
- data/lib/ffakerTW/data/vehicle/models_list +106 -0
- data/lib/ffakerTW/data/vehicle/transmissions_list +4 -0
- data/lib/ffakerTW/data/vehicle/trims_list +13 -0
- data/lib/ffakerTW/data/vehicle/upholstery_list +5 -0
- data/lib/ffakerTW/data/venue/venue_list +33 -0
- data/lib/ffakerTW/data/youtube/video_ids +50 -0
- data/lib/ffakerTW/dizzle_ipsum.rb +19 -0
- data/lib/ffakerTW/education.rb +49 -0
- data/lib/ffakerTW/education_cn.rb +37 -0
- data/lib/ffakerTW/education_tw.rb +37 -0
- data/lib/ffakerTW/filesystem.rb +25 -0
- data/lib/ffakerTW/food.rb +28 -0
- data/lib/ffakerTW/food_pl.rb +65 -0
- data/lib/ffakerTW/freedom_ipsum.rb +20 -0
- data/lib/ffakerTW/game.rb +33 -0
- data/lib/ffakerTW/gender.rb +22 -0
- data/lib/ffakerTW/gender_br.rb +17 -0
- data/lib/ffakerTW/gender_cn.rb +17 -0
- data/lib/ffakerTW/gender_id.rb +17 -0
- data/lib/ffakerTW/gender_it.rb +17 -0
- data/lib/ffakerTW/gender_ja.rb +18 -0
- data/lib/ffakerTW/gender_jp.rb +11 -0
- data/lib/ffakerTW/gender_kr.rb +17 -0
- data/lib/ffakerTW/gender_pl.rb +19 -0
- data/lib/ffakerTW/gender_ru.rb +22 -0
- data/lib/ffakerTW/gender_tw.rb +17 -0
- data/lib/ffakerTW/geolocation.rb +60 -0
- data/lib/ffakerTW/guid.rb +12 -0
- data/lib/ffakerTW/healthcare_ipsum.rb +18 -0
- data/lib/ffakerTW/healthcare_ru.rb +12 -0
- data/lib/ffakerTW/hipster_ipsum.rb +19 -0
- data/lib/ffakerTW/html_ipsum.rb +186 -0
- data/lib/ffakerTW/identification.rb +30 -0
- data/lib/ffakerTW/identification_br.rb +84 -0
- data/lib/ffakerTW/identification_es.rb +14 -0
- data/lib/ffakerTW/identification_es_cl.rb +29 -0
- data/lib/ffakerTW/identification_es_co.rb +39 -0
- data/lib/ffakerTW/identification_in.rb +15 -0
- data/lib/ffakerTW/identification_it.rb +30 -0
- data/lib/ffakerTW/identification_kr.rb +19 -0
- data/lib/ffakerTW/identification_mx.rb +58 -0
- data/lib/ffakerTW/identification_pl.rb +77 -0
- data/lib/ffakerTW/identification_tw.rb +24 -0
- data/lib/ffakerTW/image.rb +48 -0
- data/lib/ffakerTW/internet.rb +90 -0
- data/lib/ffakerTW/internet_se.rb +108 -0
- data/lib/ffakerTW/job.rb +12 -0
- data/lib/ffakerTW/job_br.rb +12 -0
- data/lib/ffakerTW/job_cn.rb +12 -0
- data/lib/ffakerTW/job_fr.rb +18 -0
- data/lib/ffakerTW/job_it.rb +12 -0
- data/lib/ffakerTW/job_ja.rb +12 -0
- data/lib/ffakerTW/job_kr.rb +12 -0
- data/lib/ffakerTW/job_tw.rb +12 -0
- data/lib/ffakerTW/job_vn.rb +12 -0
- data/lib/ffakerTW/locale.rb +22 -0
- data/lib/ffakerTW/lorem.rb +45 -0
- data/lib/ffakerTW/lorem_ar.rb +40 -0
- data/lib/ffakerTW/lorem_br.rb +45 -0
- data/lib/ffakerTW/lorem_cn.rb +40 -0
- data/lib/ffakerTW/lorem_fr.rb +39 -0
- data/lib/ffakerTW/lorem_ie.rb +40 -0
- data/lib/ffakerTW/lorem_it.rb +39 -0
- data/lib/ffakerTW/lorem_ja.rb +40 -0
- data/lib/ffakerTW/lorem_kr.rb +36 -0
- data/lib/ffakerTW/lorem_pl.rb +60 -0
- data/lib/ffakerTW/lorem_ru.rb +57 -0
- data/lib/ffakerTW/lorem_tw.rb +40 -0
- data/lib/ffakerTW/lorem_ua.rb +54 -0
- data/lib/ffakerTW/movie.rb +69 -0
- data/lib/ffakerTW/music.rb +24 -0
- data/lib/ffakerTW/name.rb +121 -0
- data/lib/ffakerTW/name_ar.rb +28 -0
- data/lib/ffakerTW/name_br.rb +62 -0
- data/lib/ffakerTW/name_cn.rb +24 -0
- data/lib/ffakerTW/name_cs.rb +87 -0
- data/lib/ffakerTW/name_da.rb +56 -0
- data/lib/ffakerTW/name_de.rb +31 -0
- data/lib/ffakerTW/name_es.rb +64 -0
- data/lib/ffakerTW/name_fr.rb +34 -0
- data/lib/ffakerTW/name_ga.rb +39 -0
- data/lib/ffakerTW/name_gr.rb +59 -0
- data/lib/ffakerTW/name_id.rb +62 -0
- data/lib/ffakerTW/name_in.rb +39 -0
- data/lib/ffakerTW/name_it.rb +31 -0
- data/lib/ffakerTW/name_ja.rb +22 -0
- data/lib/ffakerTW/name_kh.rb +24 -0
- data/lib/ffakerTW/name_kr.rb +26 -0
- data/lib/ffakerTW/name_mx.rb +101 -0
- data/lib/ffakerTW/name_nb.rb +44 -0
- data/lib/ffakerTW/name_nl.rb +48 -0
- data/lib/ffakerTW/name_ph.rb +25 -0
- data/lib/ffakerTW/name_pl.rb +98 -0
- data/lib/ffakerTW/name_ru.rb +55 -0
- data/lib/ffakerTW/name_se.rb +44 -0
- data/lib/ffakerTW/name_sn.rb +56 -0
- data/lib/ffakerTW/name_th.rb +25 -0
- data/lib/ffakerTW/name_th_en.rb +26 -0
- data/lib/ffakerTW/name_tw.rb +24 -0
- data/lib/ffakerTW/name_ua.rb +57 -0
- data/lib/ffakerTW/name_vn.rb +28 -0
- data/lib/ffakerTW/nato_alphabet.rb +38 -0
- data/lib/ffakerTW/number.rb +26 -0
- data/lib/ffakerTW/phone_number.rb +80 -0
- data/lib/ffakerTW/phone_number_au.rb +76 -0
- data/lib/ffakerTW/phone_number_br.rb +77 -0
- data/lib/ffakerTW/phone_number_ch.rb +46 -0
- data/lib/ffakerTW/phone_number_cu.rb +122 -0
- data/lib/ffakerTW/phone_number_da.rb +43 -0
- data/lib/ffakerTW/phone_number_de.rb +50 -0
- data/lib/ffakerTW/phone_number_fr.rb +65 -0
- data/lib/ffakerTW/phone_number_id.rb +36 -0
- data/lib/ffakerTW/phone_number_it.rb +44 -0
- data/lib/ffakerTW/phone_number_ja.rb +88 -0
- data/lib/ffakerTW/phone_number_kr.rb +50 -0
- data/lib/ffakerTW/phone_number_mx.rb +56 -0
- data/lib/ffakerTW/phone_number_nl.rb +46 -0
- data/lib/ffakerTW/phone_number_pl.rb +68 -0
- data/lib/ffakerTW/phone_number_ru.rb +120 -0
- data/lib/ffakerTW/phone_number_se.rb +88 -0
- data/lib/ffakerTW/phone_number_sg.rb +81 -0
- data/lib/ffakerTW/phone_number_sn.rb +71 -0
- data/lib/ffakerTW/phone_number_tw.rb +49 -0
- data/lib/ffakerTW/phone_number_ua.rb +42 -0
- data/lib/ffakerTW/product.rb +47 -0
- data/lib/ffakerTW/sem_ver.rb +19 -0
- data/lib/ffakerTW/skill.rb +24 -0
- data/lib/ffakerTW/sport.rb +14 -0
- data/lib/ffakerTW/sport_pl.rb +25 -0
- data/lib/ffakerTW/sport_ru.rb +25 -0
- data/lib/ffakerTW/sport_us.rb +12 -0
- data/lib/ffakerTW/ssn.rb +22 -0
- data/lib/ffakerTW/ssn_mx.rb +56 -0
- data/lib/ffakerTW/ssn_se.rb +80 -0
- data/lib/ffakerTW/string.rb +110 -0
- data/lib/ffakerTW/time.rb +65 -0
- data/lib/ffakerTW/tweet.rb +59 -0
- data/lib/ffakerTW/unit.rb +48 -0
- data/lib/ffakerTW/unit_english.rb +107 -0
- data/lib/ffakerTW/unit_metric.rb +98 -0
- data/lib/ffakerTW/utils/array_utils.rb +53 -0
- data/lib/ffakerTW/utils/module_utils.rb +59 -0
- data/lib/ffakerTW/utils/random_utils.rb +37 -0
- data/lib/ffakerTW/utils/unique_utils.rb +44 -0
- data/lib/ffakerTW/vehicle.rb +133 -0
- data/lib/ffakerTW/venue.rb +12 -0
- data/lib/ffakerTW/version.rb +5 -0
- data/lib/ffakerTW/youtube.rb +24 -0
- data/lib/ffakerTW.rb +263 -0
- data/lib/version.rb +5 -0
- data/scripts/benchmark.rb +21 -0
- data/scripts/profile.sh +2 -0
- data/scripts/profiling.rb +9 -0
- data/scripts/reference.rb +96 -0
- data/test/helper.rb +89 -0
- data/test/test_address.rb +109 -0
- data/test/test_address_au.rb +78 -0
- data/test/test_address_br.rb +50 -0
- data/test/test_address_ca.rb +31 -0
- data/test/test_address_ch.rb +17 -0
- data/test/test_address_ch_de.rb +13 -0
- data/test/test_address_ch_fr.rb +13 -0
- data/test/test_address_ch_it.rb +15 -0
- data/test/test_address_da.rb +50 -0
- data/test/test_address_de.rb +32 -0
- data/test/test_address_fi.rb +39 -0
- data/test/test_address_fr.rb +12 -0
- data/test/test_address_gr.rb +43 -0
- data/test/test_address_id.rb +39 -0
- data/test/test_address_in.rb +58 -0
- data/test/test_address_it.rb +12 -0
- data/test/test_address_ja.rb +58 -0
- data/test/test_address_kr.rb +14 -0
- data/test/test_address_mx.rb +32 -0
- data/test/test_address_nl.rb +36 -0
- data/test/test_address_pl.rb +80 -0
- data/test/test_address_ru.rb +36 -0
- data/test/test_address_se.rb +39 -0
- data/test/test_address_sn.rb +28 -0
- data/test/test_address_ua.rb +57 -0
- data/test/test_address_uk.rb +25 -0
- data/test/test_address_us.rb +51 -0
- data/test/test_airline.rb +17 -0
- data/test/test_animal.rb +17 -0
- data/test/test_animal_br.rb +17 -0
- data/test/test_animal_cn.rb +17 -0
- data/test/test_animal_es.rb +17 -0
- data/test/test_animal_pl.rb +17 -0
- data/test/test_animal_us.rb +17 -0
- data/test/test_array_utils.rb +100 -0
- data/test/test_avatar.rb +57 -0
- data/test/test_aws.rb +25 -0
- data/test/test_bacon_ipsum.rb +36 -0
- data/test/test_bank.rb +53 -0
- data/test/test_book.rb +46 -0
- data/test/test_boolean.rb +14 -0
- data/test/test_cheesy_lingo.rb +43 -0
- data/test/test_code.rb +39 -0
- data/test/test_color.rb +134 -0
- data/test/test_color_pl.rb +13 -0
- data/test/test_color_ua.rb +13 -0
- data/test/test_company.rb +32 -0
- data/test/test_company_cn.rb +24 -0
- data/test/test_company_fr.rb +33 -0
- data/test/test_company_it.rb +28 -0
- data/test/test_company_ja.rb +28 -0
- data/test/test_company_se.rb +20 -0
- data/test/test_conference.rb +13 -0
- data/test/test_course_mathematiques.rb +17 -0
- data/test/test_course_philosophie.rb +17 -0
- data/test/test_currency.rb +12 -0
- data/test/test_dizzle_ipsum.rb +36 -0
- data/test/test_education.rb +41 -0
- data/test/test_education_cn.rb +29 -0
- data/test/test_ffaker.rb +41 -0
- data/test/test_filesystem.rb +36 -0
- data/test/test_food.rb +28 -0
- data/test/test_food_pl.rb +61 -0
- data/test/test_freedom_ipsum.rb +21 -0
- data/test/test_game.rb +28 -0
- data/test/test_gender.rb +23 -0
- data/test/test_gender_br.rb +18 -0
- data/test/test_gender_cn.rb +18 -0
- data/test/test_gender_id.rb +18 -0
- data/test/test_gender_it.rb +27 -0
- data/test/test_gender_ja.rb +27 -0
- data/test/test_gender_jp.rb +27 -0
- data/test/test_gender_kr.rb +28 -0
- data/test/test_gender_pl.rb +27 -0
- data/test/test_gender_ru.rb +23 -0
- data/test/test_geolocation.rb +37 -0
- data/test/test_guid.rb +14 -0
- data/test/test_healthcare_ipsum.rb +36 -0
- data/test/test_healthcare_ru.rb +19 -0
- data/test/test_hipster_ipsum.rb +38 -0
- data/test/test_html_ipsum.rb +105 -0
- data/test/test_identification.rb +35 -0
- data/test/test_identification_br.rb +46 -0
- data/test/test_identification_co.rb +41 -0
- data/test/test_identification_es.rb +17 -0
- data/test/test_identification_es_cl.rb +17 -0
- data/test/test_identification_es_mx.rb +28 -0
- data/test/test_identification_in.rb +20 -0
- data/test/test_identification_it.rb +34 -0
- data/test/test_identification_kr.rb +17 -0
- data/test/test_identification_pl.rb +28 -0
- data/test/test_identification_tw.rb +17 -0
- data/test/test_image.rb +51 -0
- data/test/test_internet.rb +132 -0
- data/test/test_internet_se.rb +78 -0
- data/test/test_job.rb +17 -0
- data/test/test_job_br.rb +17 -0
- data/test/test_job_cn.rb +21 -0
- data/test/test_job_fr.rb +23 -0
- data/test/test_job_it.rb +17 -0
- data/test/test_job_ja.rb +21 -0
- data/test/test_job_kr.rb +21 -0
- data/test/test_job_vn.rb +21 -0
- data/test/test_locale.rb +27 -0
- data/test/test_lorem.rb +58 -0
- data/test/test_lorem_ar.rb +44 -0
- data/test/test_lorem_br.rb +62 -0
- data/test/test_lorem_cn.rb +54 -0
- data/test/test_lorem_fr.rb +48 -0
- data/test/test_lorem_ie.rb +52 -0
- data/test/test_lorem_it.rb +51 -0
- data/test/test_lorem_ja.rb +81 -0
- data/test/test_lorem_kr.rb +56 -0
- data/test/test_lorem_pl.rb +51 -0
- data/test/test_lorem_ru.rb +52 -0
- data/test/test_lorem_ua.rb +52 -0
- data/test/test_module_utils.rb +14 -0
- data/test/test_movie.rb +21 -0
- data/test/test_music.rb +28 -0
- data/test/test_name.rb +138 -0
- data/test/test_name_ar.rb +39 -0
- data/test/test_name_br.rb +70 -0
- data/test/test_name_cn.rb +28 -0
- data/test/test_name_cs.rb +73 -0
- data/test/test_name_da.rb +59 -0
- data/test/test_name_de.rb +25 -0
- data/test/test_name_es.rb +70 -0
- data/test/test_name_fr.rb +52 -0
- data/test/test_name_ga.rb +61 -0
- data/test/test_name_gr.rb +70 -0
- data/test/test_name_id.rb +70 -0
- data/test/test_name_it.rb +53 -0
- data/test/test_name_ja.rb +51 -0
- data/test/test_name_kh.rb +34 -0
- data/test/test_name_kr.rb +28 -0
- data/test/test_name_mx.rb +190 -0
- data/test/test_name_nb.rb +43 -0
- data/test/test_name_nl.rb +25 -0
- data/test/test_name_ph.rb +34 -0
- data/test/test_name_pl.rb +111 -0
- data/test/test_name_ru.rb +76 -0
- data/test/test_name_se.rb +43 -0
- data/test/test_name_sn.rb +92 -0
- data/test/test_name_th.rb +34 -0
- data/test/test_name_th_en.rb +35 -0
- data/test/test_name_tw.rb +28 -0
- data/test/test_name_ua.rb +68 -0
- data/test/test_name_vn.rb +42 -0
- data/test/test_nato_alphabet.rb +42 -0
- data/test/test_number.rb +45 -0
- data/test/test_phone_number.rb +46 -0
- data/test/test_phone_number_au.rb +65 -0
- data/test/test_phone_number_br.rb +63 -0
- data/test/test_phone_number_cu.rb +93 -0
- data/test/test_phone_number_da.rb +47 -0
- data/test/test_phone_number_de.rb +53 -0
- data/test/test_phone_number_fr.rb +57 -0
- data/test/test_phone_number_id.rb +57 -0
- data/test/test_phone_number_it.rb +12 -0
- data/test/test_phone_number_ja.rb +63 -0
- data/test/test_phone_number_kr.rb +49 -0
- data/test/test_phone_number_mx.rb +50 -0
- data/test/test_phone_number_nl.rb +36 -0
- data/test/test_phone_number_pl.rb +56 -0
- data/test/test_phone_number_ru.rb +76 -0
- data/test/test_phone_number_se.rb +65 -0
- data/test/test_phone_number_sg.rb +52 -0
- data/test/test_phone_number_sn.rb +41 -0
- data/test/test_phone_number_tw.rb +42 -0
- data/test/test_phone_number_ua.rb +38 -0
- data/test/test_products.rb +22 -0
- data/test/test_sem_ver.rb +18 -0
- data/test/test_skill.rb +30 -0
- data/test/test_sport_pl.rb +30 -0
- data/test/test_sport_ru.rb +30 -0
- data/test/test_sport_us.rb +17 -0
- data/test/test_sports.rb +17 -0
- data/test/test_ssn.rb +27 -0
- data/test/test_ssn_mx.rb +36 -0
- data/test/test_ssn_se.rb +43 -0
- data/test/test_string.rb +114 -0
- data/test/test_time.rb +101 -0
- data/test/test_tweet.rb +59 -0
- data/test/test_unique_utils.rb +54 -0
- data/test/test_units.rb +37 -0
- data/test/test_units_english.rb +63 -0
- data/test/test_units_metric.rb +63 -0
- data/test/test_vehicle.rb +79 -0
- data/test/test_venue.rb +13 -0
- data/test/test_youtube.rb +28 -0
- metadata +1054 -0
@@ -0,0 +1,46 @@
|
|
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
|
@@ -0,0 +1,68 @@
|
|
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
|
@@ -0,0 +1,120 @@
|
|
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
|
@@ -0,0 +1,88 @@
|
|
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
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
# Based on information from http://en.wikipedia.org/wiki/Telephone_numbers_in_Singapore
|
5
|
+
module PhoneNumberSG
|
6
|
+
extend ModuleUtils
|
7
|
+
extend self
|
8
|
+
|
9
|
+
# Number Ranges
|
10
|
+
# 3xxx xxxx - Voice Over IP services
|
11
|
+
# 6xxx xxxx - Fixed Line services inclusive of Fixed Line Voice Over IP services
|
12
|
+
# like StarHub Digital Voice and SingTel mio Voice
|
13
|
+
# 8xxx xxxx - Mobile phone services
|
14
|
+
# 9xxx xxxx - Mobile phone services Includes Paging Services like SUNPAGE
|
15
|
+
# 800 xxx xxxx - Toll-Free International services
|
16
|
+
# 1800 xxx xxxx - Toll-Free line services
|
17
|
+
# 1900 xxx xxxx - Premium Service
|
18
|
+
|
19
|
+
# Generates a voip phone number
|
20
|
+
# 3xxx xxxx
|
21
|
+
#
|
22
|
+
def voip_number
|
23
|
+
FFakerTW.numerify('3### ####')
|
24
|
+
end
|
25
|
+
|
26
|
+
# Generates a fixed line phone number
|
27
|
+
# 6xxx xxxx
|
28
|
+
#
|
29
|
+
def fixed_line_number
|
30
|
+
FFakerTW.numerify('6### ####')
|
31
|
+
end
|
32
|
+
|
33
|
+
# Generates a fixed mobile phone number
|
34
|
+
# 8xxx xxxx
|
35
|
+
#
|
36
|
+
def mobile_number
|
37
|
+
FFakerTW.numerify('8### ####')
|
38
|
+
end
|
39
|
+
|
40
|
+
# Generates a fixed mobile phone number or pager service number
|
41
|
+
# 9xxx xxxx
|
42
|
+
#
|
43
|
+
def mobile_or_pager_number
|
44
|
+
FFakerTW.numerify('9### ####')
|
45
|
+
end
|
46
|
+
|
47
|
+
# Generates an international toll-free number
|
48
|
+
# 800 xxx xxxx
|
49
|
+
#
|
50
|
+
def international_toll_free_number
|
51
|
+
FFakerTW.numerify('800 ### ####')
|
52
|
+
end
|
53
|
+
|
54
|
+
# Generates an toll-free number
|
55
|
+
# 1800 xxx xxxx
|
56
|
+
#
|
57
|
+
def toll_free_number
|
58
|
+
FFakerTW.numerify('1800 ### ####')
|
59
|
+
end
|
60
|
+
|
61
|
+
# Generates a premium service number
|
62
|
+
# (1900) xxx xxxx
|
63
|
+
#
|
64
|
+
def premium_service_number
|
65
|
+
FFakerTW.numerify('1900 ### ####')
|
66
|
+
end
|
67
|
+
|
68
|
+
# generates mobile or home/work number
|
69
|
+
def phone_number
|
70
|
+
case rand(0..2)
|
71
|
+
when 0 then fixed_line_number
|
72
|
+
when 1 then mobile_number
|
73
|
+
when 2 then mobile_or_pager_number
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def country_code
|
78
|
+
'+65'
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module PhoneNumberSN
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
# Mobile Operator prefixes
|
9
|
+
#
|
10
|
+
# 77 => Orange
|
11
|
+
# 76 => Tigo
|
12
|
+
# 70 => Expresso
|
13
|
+
#
|
14
|
+
MOBILE_OPERATORS_PREFIX = %w[70 76 77].freeze
|
15
|
+
|
16
|
+
# Home or Work Operator prefixes
|
17
|
+
#
|
18
|
+
# 33 => Orange
|
19
|
+
#
|
20
|
+
HOME_WORK_OPERATORS_PREFIX = %w[33].freeze
|
21
|
+
|
22
|
+
# Return a prefix in MOBILE_OPERATORS_PREFIX
|
23
|
+
# @see FFakerTW::PhoneNumberSN::MOBILE_OPERATORS_PREFIX
|
24
|
+
#
|
25
|
+
def mobile_phone_prefix
|
26
|
+
fetch_sample(MOBILE_OPERATORS_PREFIX)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Return a prefix in HOME_WORK_OPERATORS_PREFIX
|
30
|
+
# @see FFakerTW::PhoneNumberSN::HOME_WORK_OPERATORS_PREFIX
|
31
|
+
#
|
32
|
+
def homework_phone_prefix
|
33
|
+
fetch_sample(HOME_WORK_OPERATORS_PREFIX)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Pattern that can be combined with a prefix to generate mobile, office phone_numbers
|
37
|
+
# Example 745 77 99
|
38
|
+
# Example 245 07 00
|
39
|
+
# Example 726 29 05
|
40
|
+
#
|
41
|
+
def short_phone_number
|
42
|
+
FFakerTW.numerify('###-##-##')
|
43
|
+
end
|
44
|
+
|
45
|
+
# Generates a mobile phone number
|
46
|
+
# Example 70 745 77 99
|
47
|
+
# Example 76 245 07 00
|
48
|
+
# Example 77 726 29 05
|
49
|
+
#
|
50
|
+
def mobile_number
|
51
|
+
"#{mobile_phone_prefix}-#{short_phone_number}"
|
52
|
+
end
|
53
|
+
|
54
|
+
# Generates a home or work phone number
|
55
|
+
# Example 33 845 77 99
|
56
|
+
# Example 33 945 07 00
|
57
|
+
# Example 33 906 29 05
|
58
|
+
#
|
59
|
+
def homework_number
|
60
|
+
"#{homework_phone_prefix}-#{rand(8..9)}#{FFakerTW.numerify('##-##-##')}"
|
61
|
+
end
|
62
|
+
|
63
|
+
# Generates a random phone number mobile or home or work
|
64
|
+
#
|
65
|
+
def phone_number
|
66
|
+
return homework_number if rand(0..1).zero?
|
67
|
+
|
68
|
+
mobile_number
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module PhoneNumberTW
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
HOME_PHONE_PREFIXES = %w[02 03 04 05 06 07 08].freeze
|
9
|
+
MOBILE_PHONE_PREFIX = '09'
|
10
|
+
|
11
|
+
def phone_number
|
12
|
+
rand(0..1).zero? ? home_work_phone_number : mobile_phone_number
|
13
|
+
end
|
14
|
+
|
15
|
+
def home_work_phone_number
|
16
|
+
prefix = fetch_sample(HOME_PHONE_PREFIXES)
|
17
|
+
case prefix
|
18
|
+
when '02', '04'
|
19
|
+
FFakerTW.numerify("(#{prefix}) ####-####")
|
20
|
+
else
|
21
|
+
FFakerTW.numerify("(#{prefix}) ###-####")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def mobile_phone_number
|
26
|
+
FFakerTW.numerify("#{MOBILE_PHONE_PREFIX}##-###-###")
|
27
|
+
end
|
28
|
+
|
29
|
+
def contry_code
|
30
|
+
'+886'
|
31
|
+
end
|
32
|
+
|
33
|
+
def international_mobile_phone_number
|
34
|
+
number = mobile_phone_number
|
35
|
+
number[0] = "#{contry_code}-"
|
36
|
+
number
|
37
|
+
end
|
38
|
+
|
39
|
+
def international_home_work_phone_number
|
40
|
+
number = home_work_phone_number
|
41
|
+
number[0..4] = "#{contry_code}-#{number[2]}-"
|
42
|
+
number
|
43
|
+
end
|
44
|
+
|
45
|
+
def international_phone_number
|
46
|
+
rand(0..1).zero? ? international_mobile_phone_number : international_home_work_phone_number
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module PhoneNumberUA
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
LOCAL_PREFIX = '0'
|
9
|
+
COUNTRY_PREFIX = '+380 '
|
10
|
+
PHONE_NUMBER = ' ###-####'
|
11
|
+
|
12
|
+
def phone_number
|
13
|
+
rand(0..1).zero? ? home_phone_number : mobile_phone_number
|
14
|
+
end
|
15
|
+
|
16
|
+
def home_phone_number
|
17
|
+
local_number(HOME_PHONE_PREFIXES)
|
18
|
+
end
|
19
|
+
|
20
|
+
def mobile_phone_number
|
21
|
+
local_number(MOBILE_PHONE_PREFIXES)
|
22
|
+
end
|
23
|
+
|
24
|
+
def international_home_phone_number
|
25
|
+
international_number(HOME_PHONE_PREFIXES)
|
26
|
+
end
|
27
|
+
|
28
|
+
def international_mobile_phone_number
|
29
|
+
international_number(MOBILE_PHONE_PREFIXES)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def local_number(prefixes)
|
35
|
+
FFakerTW.numerify([LOCAL_PREFIX, fetch_sample(prefixes), PHONE_NUMBER].join(''))
|
36
|
+
end
|
37
|
+
|
38
|
+
def international_number(prefixes)
|
39
|
+
FFakerTW.numerify([COUNTRY_PREFIX, fetch_sample(prefixes), PHONE_NUMBER].join(''))
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module Product
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
B2 = %w[nix cell sync func balt sche pod].freeze
|
9
|
+
VOWELS = %w[a e i o u ou ie y io].freeze
|
10
|
+
START = %w[tr br p ph].freeze
|
11
|
+
SUFFIX = %w[ck ns nce nt st ne re ffe ph].freeze
|
12
|
+
ADDON = %w[wood forge func].freeze
|
13
|
+
|
14
|
+
def brand
|
15
|
+
case rand(0..11)
|
16
|
+
when (0..4) then fetch_sample(B1) + fetch_sample(B2)
|
17
|
+
when (5..10)
|
18
|
+
[
|
19
|
+
fetch_sample(START), fetch_sample(VOWELS), fetch_sample(SUFFIX),
|
20
|
+
rand(0..1).zero? ? fetch_sample(ADDON) : nil
|
21
|
+
].join.capitalize
|
22
|
+
when 11 then letters(2..3).to_s
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def product_name
|
27
|
+
return "#{fetch_sample(ADJ)} #{fetch_sample(NOUN)}" if rand(0..1).zero?
|
28
|
+
|
29
|
+
"#{[fetch_sample(ADJ), fetch_sample(ADJ)].uniq.join(' ')} #{fetch_sample(NOUN)}"
|
30
|
+
end
|
31
|
+
|
32
|
+
def product
|
33
|
+
"#{brand} #{product_name}"
|
34
|
+
end
|
35
|
+
|
36
|
+
def letters(count)
|
37
|
+
max = count.is_a?(Range) ? fetch_sample(count.to_a) : count
|
38
|
+
(0...max).map { fetch_sample(LETTERS).upcase }.join
|
39
|
+
end
|
40
|
+
|
41
|
+
def model
|
42
|
+
return "#{fetch_sample(LETTERS).upcase}#{rand(90)}" if rand(0..1).zero? # N90
|
43
|
+
|
44
|
+
"#{letters(1..rand(1..2))}-#{rand(9900)}" # N-9400
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module SemVer
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
UPDATE = %w[major minor patch].freeze
|
9
|
+
|
10
|
+
def next(previous_version = '0.0.0')
|
11
|
+
major, minor, patch = previous_version.split('.').map(&:to_i)
|
12
|
+
case fetch_sample(UPDATE)
|
13
|
+
when 'major' then "#{major + 1}.0.0"
|
14
|
+
when 'minor' then "#{major}.#{minor + 1}.0"
|
15
|
+
when 'patch' then "#{major}.#{minor}.#{patch + 1}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module Skill
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
def tech_skill
|
9
|
+
fetch_sample(TECH_SKILLS)
|
10
|
+
end
|
11
|
+
|
12
|
+
def tech_skills(num = 3)
|
13
|
+
fetch_sample(TECH_SKILLS, count: num)
|
14
|
+
end
|
15
|
+
|
16
|
+
def specialty
|
17
|
+
format('%s %s', fetch_sample(SPECIALTY_START), fetch_sample(SPECIALTY_END))
|
18
|
+
end
|
19
|
+
|
20
|
+
def specialties(num = 3)
|
21
|
+
(1..num).map { specialty }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
module Sport
|
5
|
+
extend ModuleUtils
|
6
|
+
extend self
|
7
|
+
|
8
|
+
# @deprecated US sports name. Moved into {SportUS}
|
9
|
+
def name
|
10
|
+
warn '[name] is deprecated. For US sports please use the SportUS module'
|
11
|
+
fetch_sample(NAMES)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FFakerTW
|
4
|
+
# Inspirations:
|
5
|
+
# https://pl.wikipedia.org/wiki/Kategoria:Dyscypliny_sportowe
|
6
|
+
# https://pl.wikipedia.org/wiki/Igrzyska_olimpijskie
|
7
|
+
module SportPL
|
8
|
+
extend ModuleUtils
|
9
|
+
extend self
|
10
|
+
|
11
|
+
ALL = SUMMER + WINTER
|
12
|
+
|
13
|
+
def name
|
14
|
+
fetch_sample(ALL)
|
15
|
+
end
|
16
|
+
|
17
|
+
def summer
|
18
|
+
fetch_sample(SUMMER)
|
19
|
+
end
|
20
|
+
|
21
|
+
def winter
|
22
|
+
fetch_sample(WINTER)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|