ffaker 2.10.0 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +217 -15
- data/Gemfile +17 -0
- data/README.md +43 -10
- data/REFERENCE.md +1681 -1241
- data/Rakefile +20 -55
- data/bin/console +9 -0
- data/ffaker.gemspec +17 -23
- data/lib/ffaker/address.rb +7 -7
- data/lib/ffaker/address_au.rb +8 -10
- data/lib/ffaker/address_br.rb +16 -4
- data/lib/ffaker/address_ca.rb +3 -3
- data/lib/ffaker/address_ch.rb +1 -3
- data/lib/ffaker/address_ch_de.rb +1 -3
- data/lib/ffaker/address_ch_fr.rb +1 -3
- data/lib/ffaker/address_ch_it.rb +1 -3
- data/lib/ffaker/address_da.rb +1 -3
- data/lib/ffaker/address_de.rb +1 -3
- data/lib/ffaker/address_fi.rb +1 -3
- data/lib/ffaker/address_fr.rb +9 -9
- data/lib/ffaker/address_gr.rb +1 -3
- data/lib/ffaker/address_id.rb +0 -3
- data/lib/ffaker/address_in.rb +5 -3
- data/lib/ffaker/address_it.rb +33 -0
- data/lib/ffaker/address_ja.rb +0 -3
- data/lib/ffaker/address_kr.rb +0 -1
- data/lib/ffaker/address_mx.rb +3 -471
- data/lib/ffaker/address_nl.rb +2 -6
- data/lib/ffaker/address_pl.rb +0 -2
- data/lib/ffaker/address_ru.rb +1 -3
- data/lib/ffaker/address_se.rb +1 -3
- data/lib/ffaker/address_sn.rb +1 -4
- data/lib/ffaker/address_ua.rb +3 -5
- data/lib/ffaker/address_uk.rb +1 -3
- data/lib/ffaker/address_us.rb +23 -5
- data/lib/ffaker/airline.rb +1 -1
- data/lib/ffaker/animal.rb +14 -0
- data/lib/ffaker/{animals.rb → animal_br.rb} +2 -2
- data/lib/ffaker/animal_cn.rb +12 -0
- data/lib/ffaker/animal_es.rb +12 -0
- data/lib/ffaker/animal_pl.rb +15 -0
- data/lib/ffaker/animal_us.rb +12 -0
- data/lib/ffaker/avatar.rb +32 -6
- data/lib/ffaker/aws.rb +1 -1
- data/lib/ffaker/bacon_ipsum.rb +1 -3
- data/lib/ffaker/bank.rb +118 -0
- data/lib/ffaker/bank_us.rb +33 -0
- data/lib/ffaker/book.rb +16 -8
- data/lib/ffaker/boolean.rb +1 -1
- data/lib/ffaker/cheesy_lingo.rb +5 -8
- data/lib/ffaker/code.rb +17 -1
- data/lib/ffaker/color.rb +7 -7
- data/lib/ffaker/color_pl.rb +14 -0
- data/lib/ffaker/color_ua.rb +1 -1
- data/lib/ffaker/company.rb +6 -9
- data/lib/ffaker/company_cn.rb +1 -1
- data/lib/ffaker/company_fr.rb +35 -0
- data/lib/ffaker/company_it.rb +4 -2
- data/lib/ffaker/company_ja.rb +24 -0
- data/lib/ffaker/company_se.rb +1 -1
- data/lib/ffaker/conference.rb +1 -1
- data/lib/ffaker/{courses.rb → courses_fr.rb} +3 -1
- data/lib/ffaker/crypto.rb +14 -0
- data/lib/ffaker/currency.rb +1 -1
- data/lib/ffaker/data/address/city_suffixes +1 -1
- data/lib/ffaker/data/address/country +1 -1
- data/lib/ffaker/data/address/country_code +1 -1
- data/lib/ffaker/data/address/neighborhood +1 -1
- data/lib/ffaker/data/address/street_suffix +1 -1
- data/lib/ffaker/data/address_br/city +0 -1
- data/lib/ffaker/data/address_br/complement +3 -0
- data/lib/ffaker/data/address_br/neighborhood_prefixes +3 -0
- data/lib/ffaker/data/address_br/state +1 -1
- data/lib/ffaker/data/address_ca/city +99 -99
- data/lib/ffaker/data/address_ca/province +1 -1
- data/lib/ffaker/data/address_de/city +1 -1
- data/lib/ffaker/data/address_de/state +2 -1
- data/lib/ffaker/data/address_fr/city +1 -1
- data/lib/ffaker/data/address_fr/region +27 -0
- data/lib/ffaker/data/address_gr/city +1 -1
- data/lib/ffaker/data/address_gr/region +1 -1
- data/lib/ffaker/data/address_gr/street +1 -1
- data/lib/ffaker/data/address_in/city +24 -0
- data/lib/ffaker/data/address_it/city +111 -0
- data/lib/ffaker/data/address_it/region +20 -0
- data/lib/ffaker/data/address_ja/city +0 -23
- data/lib/ffaker/data/address_mx/ags +11 -0
- data/lib/ffaker/data/address_mx/bc +5 -0
- data/lib/ffaker/data/address_mx/bcs +5 -0
- data/lib/ffaker/data/address_mx/camp +11 -0
- data/lib/ffaker/data/address_mx/chih +67 -0
- data/lib/ffaker/data/address_mx/chis +118 -0
- data/lib/ffaker/data/address_mx/coah +38 -0
- data/lib/ffaker/data/address_mx/col +10 -0
- data/lib/ffaker/data/address_mx/df +16 -0
- data/lib/ffaker/data/address_mx/dgo +39 -0
- data/lib/ffaker/data/address_mx/gro +81 -0
- data/lib/ffaker/data/address_mx/gto +46 -0
- data/lib/ffaker/data/address_mx/hgo +84 -0
- data/lib/ffaker/data/address_mx/jal +125 -0
- data/lib/ffaker/data/address_mx/mex +125 -0
- data/lib/ffaker/data/address_mx/mich +113 -0
- data/lib/ffaker/data/address_mx/mor +33 -0
- data/lib/ffaker/data/address_mx/nay +20 -0
- data/lib/ffaker/data/address_mx/nl +51 -0
- data/lib/ffaker/data/address_mx/oax +570 -0
- data/lib/ffaker/data/address_mx/pue +217 -0
- data/lib/ffaker/data/address_mx/qr +10 -0
- data/lib/ffaker/data/address_mx/qro +18 -0
- data/lib/ffaker/data/address_mx/sin +18 -0
- data/lib/ffaker/data/address_mx/slp +58 -0
- data/lib/ffaker/data/address_mx/son +72 -0
- data/lib/ffaker/data/address_mx/state +1 -1
- data/lib/ffaker/data/address_mx/state_abbr +1 -1
- data/lib/ffaker/data/address_mx/tab +17 -0
- data/lib/ffaker/data/address_mx/tamps +43 -0
- data/lib/ffaker/data/address_mx/tlax +60 -0
- data/lib/ffaker/data/address_mx/ver +212 -0
- data/lib/ffaker/data/address_mx/yuc +106 -0
- data/lib/ffaker/data/address_mx/zac +58 -0
- data/lib/ffaker/data/address_ru/city +1 -1
- data/lib/ffaker/data/address_se/city +1 -1
- data/lib/ffaker/data/address_se/countries +1 -1
- data/lib/ffaker/data/address_se/street +1 -1
- data/lib/ffaker/data/address_sn/arrondissements +1 -1
- data/lib/ffaker/data/address_sn/departements +1 -1
- data/lib/ffaker/data/address_sn/regions +1 -1
- data/lib/ffaker/data/address_uk/county +1 -1
- data/lib/ffaker/data/address_us/state +1 -1
- data/lib/ffaker/data/address_us/state_abbr +1 -2
- data/lib/ffaker/data/address_us/state_and_territories_abbr +1 -1
- data/lib/ffaker/data/animal_br/common_names +423 -0
- data/lib/ffaker/data/animal_cn/common_names +141 -0
- data/lib/ffaker/data/animal_es/common_names +135 -0
- data/lib/ffaker/data/animal_pl/common_names +256 -0
- data/lib/ffaker/data/animal_us/common_names +141 -0
- data/lib/ffaker/data/aws/ec2_reserved_instance_tenancy +1 -1
- data/lib/ffaker/data/aws/ec2_reserved_offering_type +1 -1
- data/lib/ffaker/data/aws/ec2_reserved_product_description +1 -1
- data/lib/ffaker/data/bank/card_types +12 -0
- data/lib/ffaker/data/book/nouns +2 -2
- data/lib/ffaker/data/cheesy_lingo/cheesy_phrases +1 -1
- data/lib/ffaker/data/cheesy_lingo/cheesy_words +1 -1
- data/lib/ffaker/data/color/names_list +1 -1
- data/lib/ffaker/data/color_pl/names_list +122 -0
- data/lib/ffaker/data/company/bs_mid +1 -1
- data/lib/ffaker/data/company/bs_pos +1 -1
- data/lib/ffaker/data/company/bs_pre +1 -1
- data/lib/ffaker/data/company/catch_mid +1 -1
- data/lib/ffaker/data/company/catch_pos +1 -1
- data/lib/ffaker/data/company/catch_pre +1 -1
- data/lib/ffaker/data/company/position_areas +1 -1
- data/lib/ffaker/data/conference/conference_list +1 -1
- data/lib/ffaker/data/currency/currency_code +1 -1
- data/lib/ffaker/data/currency/currency_name +1 -1
- data/lib/ffaker/data/currency/currency_symbol +0 -1
- data/lib/ffaker/data/dizzle_ipsum/dizzle_words +1 -1
- data/lib/ffaker/data/education/major_noun +1 -1
- data/lib/ffaker/data/education/school_suffix +1 -1
- data/lib/ffaker/data/education_cn/city +351 -0
- data/lib/ffaker/data/education_cn/major +506 -0
- data/lib/ffaker/data/education_cn/province +31 -0
- data/lib/ffaker/data/education_cn/school_type +27 -0
- data/lib/ffaker/data/filesystem/extension +31 -31
- data/lib/ffaker/data/food/fruit +1 -1
- data/lib/ffaker/data/food/herb_spice +1 -1
- data/lib/ffaker/data/food/meat +1 -1
- data/lib/ffaker/data/food/vegetable +1 -1
- data/lib/ffaker/data/food_pl/diary +14 -0
- data/lib/ffaker/data/food_pl/fermented +13 -0
- data/lib/ffaker/data/food_pl/fruits +34 -0
- data/lib/ffaker/data/food_pl/herbs +20 -0
- data/lib/ffaker/data/food_pl/meats +9 -0
- data/lib/ffaker/data/food_pl/preserves +10 -0
- data/lib/ffaker/data/food_pl/spices +26 -0
- data/lib/ffaker/data/food_pl/vegetables +45 -0
- data/lib/ffaker/data/freedom_ipsum/freedom_words +161 -0
- data/lib/ffaker/data/game/adj_and_adv +18 -0
- data/lib/ffaker/data/game/category +84 -0
- data/lib/ffaker/data/game/mechanic +182 -0
- data/lib/ffaker/data/game/nouns +37 -0
- data/lib/ffaker/data/game/prefixes +17 -0
- data/lib/ffaker/data/healthcare_ru/doctor_specialization +127 -0
- data/lib/ffaker/data/hipster_ipsum/hipster_words +1 -1
- data/lib/ffaker/data/identification_mx/estados_curp +1 -1
- data/lib/ffaker/data/jo_jo/first_names +356 -0
- data/lib/ffaker/data/jo_jo/full_names +225 -0
- data/lib/ffaker/data/jo_jo/last_names +153 -0
- data/lib/ffaker/data/jo_jo/stands +149 -0
- data/lib/ffaker/data/job/job_adj +1 -1
- data/lib/ffaker/data/job/job_noun +1 -1
- data/lib/ffaker/data/job/job_prefix +1 -1
- data/lib/ffaker/data/job_fr/job_prefixes +1 -1
- data/lib/ffaker/data/job_it/job_adj +37 -0
- data/lib/ffaker/data/job_it/job_noun +25 -0
- data/lib/ffaker/data/job_it/job_prefix +22 -0
- data/lib/ffaker/data/locale/language +1 -1
- data/lib/ffaker/data/locale/language_code +1 -1
- data/lib/ffaker/data/lorem/characters +1 -1
- data/lib/ffaker/data/lorem/words +1 -68
- data/lib/ffaker/data/lorem_ar/words +1 -1
- data/lib/ffaker/data/lorem_br/characters +36 -0
- data/lib/ffaker/data/lorem_br/words +183 -0
- data/lib/ffaker/data/lorem_cn/words +1 -1
- data/lib/ffaker/data/lorem_fr/words +1 -1
- data/lib/ffaker/data/lorem_it/words +321 -0
- data/lib/ffaker/data/movie/adj_and_adv +1 -1
- data/lib/ffaker/data/movie/nouns +3 -3
- data/lib/ffaker/data/movie/prefixes +1 -1
- data/lib/ffaker/data/name/first_names_female +0 -230
- data/lib/ffaker/data/name/first_names_male +0 -37
- data/lib/ffaker/data/name/last_names +1 -2
- data/lib/ffaker/data/name/pronouns +6 -0
- data/lib/ffaker/data/name_ar/first_names_female +1 -1
- data/lib/ffaker/data/name_ar/first_names_male +1 -1
- data/lib/ffaker/data/name_ar/last_names +1 -1
- data/lib/ffaker/data/name_cn/first_names +1 -1
- data/lib/ffaker/data/name_cn/last_names +1 -1
- data/lib/ffaker/data/name_cs/female_first_names +40 -0
- data/lib/ffaker/data/name_cs/female_last_names +50 -0
- data/lib/ffaker/data/name_cs/male_first_names +88 -0
- data/lib/ffaker/data/name_cs/male_last_names +49 -0
- data/lib/ffaker/data/name_cs/prefixes +4 -4
- data/lib/ffaker/data/name_de/first_names +1 -1
- data/lib/ffaker/data/name_de/last_names +1 -1
- data/lib/ffaker/data/name_fr/first_names +1 -1
- data/lib/ffaker/data/name_fr/last_names +1 -1
- data/lib/ffaker/data/name_ga/first_names_female +1 -1
- data/lib/ffaker/data/name_ga/first_names_male +287 -287
- data/lib/ffaker/data/name_gr/female_first_names +1 -1
- data/lib/ffaker/data/name_gr/female_last_names +1 -1
- data/lib/ffaker/data/name_gr/male_first_names +1 -1
- data/lib/ffaker/data/name_gr/male_last_names +1 -1
- data/lib/ffaker/data/name_in/first_names_female +100 -0
- data/lib/ffaker/data/name_in/first_names_male +100 -0
- data/lib/ffaker/data/name_in/last_names +100 -0
- data/lib/ffaker/data/name_it/first_names +1 -1
- data/lib/ffaker/data/name_it/last_names +1 -1
- data/lib/ffaker/data/name_ja/first_names +1 -1
- data/lib/ffaker/data/name_ja/last_names +1 -1
- data/lib/ffaker/data/name_kh/first_names +1 -1
- data/lib/ffaker/data/name_kh/nick_names +1 -1
- data/lib/ffaker/data/name_kr/first_names +1 -1
- data/lib/ffaker/data/name_kr/last_names +1 -1
- data/lib/ffaker/data/name_mx/female_first_names +1 -1
- data/lib/ffaker/data/name_mx/last_names +1 -1
- data/lib/ffaker/data/name_mx/male_first_names +1 -1
- data/lib/ffaker/data/name_ph/autochthonous_surnames +1 -1
- data/lib/ffaker/data/name_ph/spanish_surnames +1 -1
- data/lib/ffaker/data/name_ru/first_names_female +91 -0
- data/lib/ffaker/data/name_ru/first_names_male +172 -0
- data/lib/ffaker/data/name_ru/last_names_female +100 -0
- data/lib/ffaker/data/name_ru/last_names_male +100 -0
- data/lib/ffaker/data/name_ru/middle_names_female +65 -0
- data/lib/ffaker/data/name_ru/middle_names_male +73 -0
- data/lib/ffaker/data/name_se/first_names_female +1 -1
- data/lib/ffaker/data/name_se/first_names_male +1 -1
- data/lib/ffaker/data/name_se/last_names +1 -1
- data/lib/ffaker/data/name_sn/first_names_female +1 -1
- data/lib/ffaker/data/name_sn/first_names_male +1 -1
- data/lib/ffaker/data/name_sn/last_names +1 -1
- data/lib/ffaker/data/name_th/first_names +1 -1
- data/lib/ffaker/data/name_th/last_names +1 -1
- data/lib/ffaker/data/name_th/nick_names +1 -1
- data/lib/ffaker/data/name_tw/first_names +122 -0
- data/lib/ffaker/data/name_tw/last_names +100 -0
- data/lib/ffaker/data/nato_alphabet/alphabet_codes +26 -0
- data/lib/ffaker/data/nato_alphabet/numeric_codes +10 -0
- data/lib/ffaker/data/phone_number_ja/four_disit_area_codes +41 -0
- data/lib/ffaker/data/phone_number_ja/one_disit_area_codes +3 -0
- data/lib/ffaker/data/phone_number_ja/three_disit_area_codes +296 -0
- data/lib/ffaker/data/phone_number_ja/two_disit_area_codes +48 -0
- data/lib/ffaker/data/phone_number_nl/area_codes +142 -0
- data/lib/ffaker/data/phone_number_ru/home_phone_prefixes +107 -0
- data/lib/ffaker/data/phone_number_ru/mobile_phone_prefixes +61 -0
- data/lib/ffaker/data/phone_number_se/phone_prefix +1 -1
- data/lib/ffaker/data/phone_number_ua/home_phone_prefixes +29 -0
- data/lib/ffaker/data/phone_number_ua/mobile_phone_prefixes +11 -0
- data/lib/ffaker/data/product/adj +1 -1
- data/lib/ffaker/data/product/b1 +1 -1
- data/lib/ffaker/data/product/noun +4 -1
- data/lib/ffaker/data/skill/specialty_end +1 -1
- data/lib/ffaker/data/skill/specialty_start +1 -1
- data/lib/ffaker/data/skill/tech_skills +1 -1
- data/lib/ffaker/data/sport_pl/summer +53 -0
- data/lib/ffaker/data/sport_pl/winter +14 -0
- data/lib/ffaker/data/sport_ru/summer +68 -0
- data/lib/ffaker/data/sport_ru/winter +20 -0
- data/lib/ffaker/data/sport_us/names +67 -0
- data/lib/ffaker/data/vehicle/color_prefixes +25 -0
- data/lib/ffaker/data/vehicle/displacements_list +1 -1
- data/lib/ffaker/data/vehicle/fuel_types_list +1 -1
- data/lib/ffaker/data/vehicle/makes_list +1 -1
- data/lib/ffaker/data/vehicle/transmissions_list +1 -1
- data/lib/ffaker/data/vehicle/upholstery_list +1 -1
- data/lib/ffaker/data/venue/venue_list +1 -1
- data/lib/ffaker/date.rb +40 -0
- data/lib/ffaker/dizzle_ipsum.rb +1 -3
- data/lib/ffaker/education.rb +9 -10
- data/lib/ffaker/education_cn.rb +37 -0
- data/lib/ffaker/filesystem.rb +18 -8
- data/lib/ffaker/food.rb +2 -0
- data/lib/ffaker/food_pl.rb +65 -0
- data/lib/ffaker/freedom_ipsum.rb +20 -0
- data/lib/ffaker/game.rb +33 -0
- data/lib/ffaker/gender.rb +1 -1
- data/lib/ffaker/gender_br.rb +1 -1
- data/lib/ffaker/gender_cn.rb +1 -1
- data/lib/ffaker/gender_id.rb +0 -1
- data/lib/ffaker/gender_it.rb +17 -0
- data/lib/ffaker/gender_ja.rb +18 -0
- data/lib/ffaker/gender_jp.rb +11 -0
- data/lib/ffaker/gender_kr.rb +1 -1
- data/lib/ffaker/gender_pl.rb +19 -0
- data/lib/ffaker/gender_ru.rb +22 -0
- data/lib/ffaker/geolocation.rb +34 -24
- data/lib/ffaker/guid.rb +1 -1
- data/lib/ffaker/healthcare_ipsum.rb +1 -3
- data/lib/ffaker/healthcare_ru.rb +12 -0
- data/lib/ffaker/hipster_ipsum.rb +1 -3
- data/lib/ffaker/html_ipsum.rb +10 -4
- data/lib/ffaker/identification.rb +5 -2
- data/lib/ffaker/identification_br.rb +4 -13
- data/lib/ffaker/identification_ec.rb +39 -0
- data/lib/ffaker/identification_es.rb +1 -1
- data/lib/ffaker/identification_es_cl.rb +7 -6
- data/lib/ffaker/identification_es_co.rb +3 -4
- data/lib/ffaker/identification_in.rb +15 -0
- data/lib/ffaker/identification_it.rb +30 -0
- data/lib/ffaker/identification_kr.rb +13 -6
- data/lib/ffaker/identification_mx.rb +14 -20
- data/lib/ffaker/identification_pl.rb +77 -0
- data/lib/ffaker/identification_tw.rb +24 -0
- data/lib/ffaker/image.rb +37 -14
- data/lib/ffaker/internet.rb +18 -25
- data/lib/ffaker/internet_se.rb +8 -10
- data/lib/ffaker/jo_jo.rb +24 -0
- data/lib/ffaker/job.rb +1 -1
- data/lib/ffaker/job_br.rb +1 -1
- data/lib/ffaker/job_cn.rb +1 -1
- data/lib/ffaker/job_fr.rb +1 -1
- data/lib/ffaker/job_it.rb +12 -0
- data/lib/ffaker/job_ja.rb +0 -1
- data/lib/ffaker/job_kr.rb +1 -1
- data/lib/ffaker/job_vn.rb +0 -1
- data/lib/ffaker/locale.rb +8 -12
- data/lib/ffaker/lorem.rb +6 -7
- data/lib/ffaker/lorem_ar.rb +1 -1
- data/lib/ffaker/lorem_br.rb +45 -0
- data/lib/ffaker/lorem_cn.rb +1 -2
- data/lib/ffaker/lorem_fr.rb +1 -1
- data/lib/ffaker/lorem_ie.rb +0 -1
- data/lib/ffaker/lorem_it.rb +39 -0
- data/lib/ffaker/lorem_ja.rb +2 -2
- data/lib/ffaker/lorem_kr.rb +1 -1
- data/lib/ffaker/lorem_pl.rb +0 -2
- data/lib/ffaker/lorem_ru.rb +1 -2
- data/lib/ffaker/lorem_ua.rb +3 -5
- data/lib/ffaker/movie.rb +8 -5
- data/lib/ffaker/music.rb +1 -1
- data/lib/ffaker/name.rb +5 -1
- data/lib/ffaker/name_ar.rb +0 -1
- data/lib/ffaker/name_br.rb +1 -1
- data/lib/ffaker/name_cn.rb +1 -1
- data/lib/ffaker/name_cs.rb +7 -9
- data/lib/ffaker/name_da.rb +2 -4
- data/lib/ffaker/name_de.rb +1 -3
- data/lib/ffaker/name_es.rb +0 -2
- data/lib/ffaker/name_fr.rb +5 -5
- data/lib/ffaker/name_ga.rb +1 -1
- data/lib/ffaker/name_gr.rb +2 -3
- data/lib/ffaker/name_id.rb +0 -1
- data/lib/ffaker/name_in.rb +39 -0
- data/lib/ffaker/name_it.rb +2 -3
- data/lib/ffaker/name_ja.rb +1 -1
- data/lib/ffaker/name_kh.rb +2 -0
- data/lib/ffaker/name_kr.rb +1 -1
- data/lib/ffaker/name_mx.rb +4 -6
- data/lib/ffaker/name_nb.rb +1 -3
- data/lib/ffaker/name_nl.rb +1 -3
- data/lib/ffaker/name_ph.rb +1 -3
- data/lib/ffaker/name_pl.rb +2 -3
- data/lib/ffaker/name_ru.rb +32 -71
- data/lib/ffaker/name_se.rb +1 -3
- data/lib/ffaker/name_sn.rb +3 -6
- data/lib/ffaker/name_th.rb +1 -1
- data/lib/ffaker/name_th_en.rb +2 -2
- data/lib/ffaker/name_tw.rb +20 -0
- data/lib/ffaker/name_ua.rb +1 -3
- data/lib/ffaker/name_vn.rb +1 -1
- data/lib/ffaker/nato_alphabet.rb +2 -4
- data/lib/ffaker/number.rb +30 -0
- data/lib/ffaker/phone_number.rb +1 -1
- data/lib/ffaker/phone_number_au.rb +11 -12
- data/lib/ffaker/phone_number_br.rb +16 -14
- data/lib/ffaker/phone_number_ch.rb +1 -1
- data/lib/ffaker/phone_number_cu.rb +18 -27
- data/lib/ffaker/phone_number_da.rb +1 -3
- data/lib/ffaker/phone_number_de.rb +4 -5
- data/lib/ffaker/phone_number_fr.rb +3 -12
- data/lib/ffaker/phone_number_id.rb +2 -6
- data/lib/ffaker/phone_number_it.rb +9 -7
- data/lib/ffaker/phone_number_ja.rb +88 -0
- data/lib/ffaker/phone_number_kr.rb +1 -1
- data/lib/ffaker/phone_number_mx.rb +1 -2
- data/lib/ffaker/phone_number_nl.rb +9 -12
- data/lib/ffaker/phone_number_pl.rb +68 -0
- data/lib/ffaker/phone_number_ru.rb +120 -0
- data/lib/ffaker/phone_number_se.rb +1 -1
- data/lib/ffaker/phone_number_sg.rb +1 -1
- data/lib/ffaker/phone_number_sn.rb +12 -19
- data/lib/ffaker/phone_number_tw.rb +49 -0
- data/lib/ffaker/phone_number_ua.rb +42 -0
- data/lib/ffaker/product.rb +10 -12
- data/lib/ffaker/sem_ver.rb +19 -0
- data/lib/ffaker/skill.rb +2 -2
- data/lib/ffaker/sport.rb +4 -0
- data/lib/ffaker/sport_pl.rb +25 -0
- data/lib/ffaker/sport_ru.rb +25 -0
- data/lib/ffaker/sport_us.rb +12 -0
- data/lib/ffaker/ssn.rb +5 -5
- data/lib/ffaker/ssn_mx.rb +1 -2
- data/lib/ffaker/ssn_se.rb +16 -44
- data/lib/ffaker/string.rb +18 -17
- data/lib/ffaker/time.rb +12 -11
- data/lib/ffaker/tweet.rb +4 -4
- data/lib/ffaker/unit.rb +10 -11
- data/lib/ffaker/unit_english.rb +19 -22
- data/lib/ffaker/unit_metric.rb +16 -19
- data/lib/ffaker/utils/array_utils.rb +8 -5
- data/lib/ffaker/utils/module_utils.rb +27 -6
- data/lib/ffaker/utils/random_utils.rb +4 -0
- data/lib/ffaker/utils/unique_utils.rb +32 -21
- data/lib/ffaker/vehicle.rb +67 -9
- data/lib/ffaker/venue.rb +1 -1
- data/lib/ffaker/version.rb +5 -0
- data/lib/ffaker/youtube.rb +1 -1
- data/lib/ffaker.rb +74 -164
- data/scripts/benchmark.rb +12 -11
- data/scripts/profiling.rb +3 -1
- data/scripts/reference.rb +26 -24
- data/test/helper.rb +41 -6
- data/test/test_address.rb +2 -2
- data/test/test_address_au.rb +7 -8
- data/test/test_address_br.rb +17 -4
- data/test/test_address_ca.rb +2 -2
- data/test/test_address_ch.rb +2 -2
- data/test/test_address_ch_de.rb +2 -2
- data/test/test_address_ch_fr.rb +2 -2
- data/test/test_address_ch_it.rb +2 -2
- data/test/test_address_da.rb +5 -5
- data/test/test_address_de.rb +2 -2
- data/test/test_address_fi.rb +4 -5
- data/test/test_address_fr.rb +3 -4
- data/test/test_address_gr.rb +2 -2
- data/test/test_address_id.rb +2 -3
- data/test/test_address_in.rb +2 -2
- data/test/test_address_it.rb +12 -0
- data/test/test_address_ja.rb +2 -3
- data/test/test_address_kr.rb +1 -2
- data/test/test_address_mx.rb +2 -3
- data/test/test_address_nl.rb +3 -3
- data/test/test_address_pl.rb +1 -2
- data/test/test_address_ru.rb +2 -2
- data/test/test_address_se.rb +4 -4
- data/test/test_address_sn.rb +2 -5
- data/test/test_address_ua.rb +2 -2
- data/test/test_address_uk.rb +2 -2
- data/test/test_address_us.rb +11 -2
- data/test/test_airline.rb +2 -2
- data/test/test_animal.rb +2 -2
- 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 +3 -3
- data/test/test_avatar.rb +35 -10
- data/test/test_aws.rb +3 -3
- data/test/test_bacon_ipsum.rb +2 -2
- data/test/test_bank.rb +53 -0
- data/test/test_bank_us.rb +35 -0
- data/test/test_book.rb +35 -6
- data/test/test_boolean.rb +3 -3
- data/test/test_cheesy_lingo.rb +4 -2
- data/test/test_code.rb +23 -3
- data/test/test_color.rb +2 -2
- data/test/test_color_pl.rb +13 -0
- data/test/test_color_ua.rb +2 -2
- data/test/test_company.rb +4 -4
- data/test/test_company_cn.rb +2 -2
- data/test/test_company_fr.rb +33 -0
- data/test/test_company_it.rb +2 -2
- data/test/test_company_ja.rb +28 -0
- data/test/test_company_se.rb +2 -2
- data/test/test_conference.rb +2 -2
- data/test/test_course_mathematiques.rb +3 -1
- data/test/test_course_philosophie.rb +3 -1
- data/test/test_crypto.rb +15 -0
- data/test/test_currency.rb +2 -2
- data/test/test_date.rb +47 -0
- data/test/test_dizzle_ipsum.rb +2 -2
- data/test/test_education.rb +2 -2
- data/test/test_education_cn.rb +29 -0
- data/test/{test_faker.rb → test_ffaker.rb} +7 -3
- data/test/test_filesystem.rb +39 -5
- data/test/test_food.rb +3 -3
- 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 +3 -3
- data/test/test_gender_br.rb +2 -2
- data/test/test_gender_cn.rb +2 -2
- data/test/test_gender_id.rb +1 -2
- 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 +2 -2
- data/test/test_gender_pl.rb +27 -0
- data/test/test_gender_ru.rb +23 -0
- data/test/test_geolocation.rb +4 -4
- data/test/test_guid.rb +2 -2
- data/test/test_healthcare_ipsum.rb +3 -1
- data/test/test_healthcare_ru.rb +19 -0
- data/test/test_hipster_ipsum.rb +2 -2
- data/test/test_html_ipsum.rb +20 -14
- data/test/test_identification.rb +14 -4
- data/test/test_identification_br.rb +2 -2
- data/test/test_identification_co.rb +5 -3
- data/test/test_identification_ec.rb +33 -0
- data/test/test_identification_es.rb +2 -2
- data/test/test_identification_es_cl.rb +3 -3
- data/test/test_identification_es_mx.rb +5 -4
- data/test/test_identification_in.rb +20 -0
- data/test/test_identification_it.rb +45 -0
- data/test/test_identification_kr.rb +5 -5
- data/test/test_identification_pl.rb +28 -0
- data/test/test_identification_tw.rb +17 -0
- data/test/test_image.rb +56 -10
- data/test/test_internet.rb +18 -16
- data/test/test_internet_se.rb +12 -9
- data/test/test_jo_jo.rb +29 -0
- data/test/test_job.rb +2 -2
- data/test/test_job_br.rb +2 -2
- data/test/test_job_cn.rb +3 -3
- data/test/test_job_fr.rb +2 -2
- data/test/test_job_it.rb +17 -0
- data/test/test_job_ja.rb +3 -3
- data/test/test_job_kr.rb +3 -3
- data/test/test_job_vn.rb +2 -3
- data/test/test_locale.rb +2 -2
- data/test/test_lorem.rb +6 -2
- data/test/test_lorem_ar.rb +3 -4
- data/test/test_lorem_br.rb +62 -0
- data/test/test_lorem_cn.rb +11 -11
- data/test/test_lorem_fr.rb +14 -12
- data/test/test_lorem_ie.rb +1 -2
- data/test/test_lorem_it.rb +51 -0
- data/test/test_lorem_ja.rb +5 -5
- data/test/test_lorem_kr.rb +2 -2
- data/test/test_lorem_pl.rb +2 -3
- data/test/test_lorem_ru.rb +3 -4
- data/test/test_lorem_ua.rb +4 -4
- data/test/test_module_utils.rb +35 -2
- data/test/test_movie.rb +2 -2
- data/test/test_music.rb +6 -6
- data/test/test_name.rb +7 -3
- data/test/test_name_ar.rb +1 -2
- data/test/test_name_br.rb +2 -2
- data/test/test_name_cn.rb +2 -2
- data/test/test_name_cs.rb +3 -4
- data/test/test_name_da.rb +5 -5
- data/test/test_name_de.rb +2 -2
- data/test/test_name_es.rb +1 -2
- data/test/test_name_fr.rb +2 -3
- data/test/test_name_ga.rb +2 -2
- data/test/test_name_gr.rb +2 -2
- data/test/test_name_id.rb +1 -2
- data/test/test_name_it.rb +2 -3
- data/test/test_name_ja.rb +2 -2
- data/test/test_name_kh.rb +10 -8
- data/test/test_name_kr.rb +2 -2
- data/test/test_name_mx.rb +2 -3
- data/test/test_name_nb.rb +2 -2
- data/test/test_name_nl.rb +2 -2
- data/test/test_name_ph.rb +2 -2
- data/test/test_name_pl.rb +1 -2
- data/test/test_name_ru.rb +38 -48
- data/test/test_name_se.rb +2 -2
- data/test/test_name_sn.rb +2 -3
- data/test/test_name_th.rb +2 -2
- data/test/test_name_th_en.rb +2 -2
- data/test/test_name_tw.rb +28 -0
- data/test/test_name_ua.rb +3 -3
- data/test/test_name_vn.rb +2 -2
- data/test/test_nato_alphabet.rb +2 -2
- data/test/test_number.rb +57 -0
- data/test/test_phone_number.rb +3 -3
- data/test/test_phone_number_au.rb +5 -6
- data/test/test_phone_number_br.rb +12 -5
- data/test/test_phone_number_cu.rb +5 -12
- data/test/test_phone_number_da.rb +2 -3
- data/test/test_phone_number_de.rb +2 -3
- data/test/test_phone_number_fr.rb +1 -2
- data/test/test_phone_number_id.rb +1 -2
- 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 +2 -2
- data/test/test_phone_number_mx.rb +2 -3
- data/test/test_phone_number_nl.rb +3 -4
- 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 +4 -4
- data/test/test_phone_number_sg.rb +10 -10
- data/test/test_phone_number_sn.rb +4 -5
- data/test/test_phone_number_tw.rb +42 -0
- data/test/test_phone_number_ua.rb +38 -0
- data/test/test_products.rb +2 -2
- data/test/test_sem_ver.rb +18 -0
- data/test/test_skill.rb +2 -2
- 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 +2 -2
- data/test/test_ssn.rb +2 -2
- data/test/test_ssn_mx.rb +2 -3
- data/test/test_ssn_se.rb +10 -12
- data/test/test_string.rb +8 -8
- data/test/test_time.rb +14 -8
- data/test/test_tweet.rb +11 -11
- data/test/test_unique_utils.rb +31 -7
- data/test/test_units.rb +9 -9
- data/test/test_units_english.rb +17 -18
- data/test/test_units_metric.rb +17 -18
- data/test/test_vehicle.rb +32 -5
- data/test/test_venue.rb +2 -2
- data/test/test_youtube.rb +2 -2
- metadata +211 -198
- data/lib/ffaker/data/address_jp/city +0 -127
- data/lib/ffaker/data/address_jp/designated_city +0 -20
- data/lib/ffaker/data/address_jp/street +0 -37
- data/lib/ffaker/data/address_jp/tokyo_ward +0 -23
- data/lib/ffaker/data/address_jp/village +0 -183
- data/lib/ffaker/data/address_jp/ward +0 -188
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f45921dd1eae37420883610af8fa98376812b220f8bb19d15ad418eeeaf3926b
|
4
|
+
data.tar.gz: 3a05c27b2457b4920993430a334534a0b41f2b92d4b5b5f99de8ab8ba4b69ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba901db425ebad3cf7755b83ff07f81da266d63ae3370448ed473653fcdbad7b12585c5e6c2675be8f14db49e00b68fad19ceb30ea7af0147b817c02184ce1d6
|
7
|
+
data.tar.gz: de56b8153970b889b4a56ebec2662ef8a7eff9378a69fe4164c3cd2393f02e71b7ddcc0c396bcdd94978d6a4d2e67ce3bf65c7fcce3c6626e5733c493b24ba0a
|
data/Changelog.md
CHANGED
@@ -1,3 +1,113 @@
|
|
1
|
+
## development
|
2
|
+
|
3
|
+
- Add your change HERE
|
4
|
+
|
5
|
+
# 2.23.0
|
6
|
+
- Add FFaker::BankUS.accounting_number [@professor]
|
7
|
+
- Add FFaker::BankUS.routing_number [@professor]
|
8
|
+
- Resolve a lot of RuboCop offenses [@AlexWayfer]
|
9
|
+
- Change `Image.url`, `Image.file`, `Book.cover` and `Avatar.image` arguments to keywords [@AlexWayfer]
|
10
|
+
- Adds FFaker::Date.birthday [@professor]
|
11
|
+
- Adds FFaker::Crypto.sha256 [@professor]
|
12
|
+
- Update README [@professor]
|
13
|
+
- Adds FFaker::Number.between [@professor]
|
14
|
+
- Fixed `FFaker::Number.unique.number(digits: 1)` under Ruby 3 [@simonhildebrandt]
|
15
|
+
|
16
|
+
# 2.22.0
|
17
|
+
- *BREAKING CHANGE*: Drop support under ruby 2.7 [@marocchino]
|
18
|
+
- Correct Vehicle::VIN result [@philippevezina]
|
19
|
+
- Improve performance unique [@iiwo]
|
20
|
+
- Drop gemspec generation in rake [@technicalpickles]
|
21
|
+
- Add identification EC [@josieljunior]
|
22
|
+
- Update data for AddressDE [@slowjack2k]
|
23
|
+
- Add ruby 3.2 to CI [@petergoldstein]
|
24
|
+
- Add JoJo module [@ar2em1s]
|
25
|
+
- Fix crash in FFaker::Time#datetime when defining FFaker::Date module [@brupla6126]
|
26
|
+
|
27
|
+
## 2.21.0
|
28
|
+
- Generate valid VINs [@xunker]
|
29
|
+
- Add neighborhood and address complement to AddressBR [@az3vedo]
|
30
|
+
- Ensure FFaker::HTMLIpsum.fancy_string return includes at least one tag [@gabrielcosta42]
|
31
|
+
- Fix IdentificationTW area code [@timfanda35]
|
32
|
+
- Add Ruby 3.1 to CI matrix [@petergoldstein]
|
33
|
+
- Add AnimalBr [@thiago-henrique-leite]
|
34
|
+
- Fix rubocop warnings [@mmrshk]
|
35
|
+
- Consistently generate REFERENCE.md [@technicalpickles] and [@Volosh1n]
|
36
|
+
|
37
|
+
## 2.20.0
|
38
|
+
- Remove date from gem specification [@AlexWayfer]
|
39
|
+
- Add Number module [@Volosh1n]
|
40
|
+
- Make Italian Phone number deterministic [@Volosh1n]
|
41
|
+
|
42
|
+
## 2.19.0
|
43
|
+
- Added Lorem BR [@abnersajr]
|
44
|
+
- Added french company siret and siren generator [@hulous]
|
45
|
+
- Added Games generator [@nicholaskillin]
|
46
|
+
- Added EditorConfig file [@AlexWayfer]
|
47
|
+
- Fixed loadError on scripts/reference.rb [@marocchino]
|
48
|
+
- Removed trailing comma from NameGA first_names_male [@stilist]
|
49
|
+
- Localized Gender and Sport to Russian [@SteveRedka]
|
50
|
+
- Added more italian data [@miscelatore]
|
51
|
+
|
52
|
+
## 2.18.0
|
53
|
+
- Remove unneeded 'require' statements [@Volosh1n]
|
54
|
+
- Add PhoneNumberJA [@YutaGoto]
|
55
|
+
- Test with Github actions & Ruby 3 [@marocchino]
|
56
|
+
- Generate reference by CI [@marocchino]
|
57
|
+
- Change the regex to cover all scenarios in lorem_fr [@abnersajr]
|
58
|
+
- Add "Freedom Ipsum" text generator option [@hmaack] and [@lynnd335]
|
59
|
+
- Fix issues with `FFaker::Image` module [@hmaack]
|
60
|
+
- Fix typo in animal.rb module [@renius]
|
61
|
+
|
62
|
+
## 2.17.0
|
63
|
+
- Apply Rubocop's autocorrect [@marocchino]
|
64
|
+
- Remove Ruby-2.4 support [@marocchino]
|
65
|
+
- Remove OpenStruct [@Volosh1n]
|
66
|
+
- Fix PhoneNumberBR Area Codes [@CarlosMouraJR]
|
67
|
+
- More minor fixes [@marocchino]
|
68
|
+
|
69
|
+
## 2.16.0
|
70
|
+
- Add IdentificationIN [@nigelgomesot]
|
71
|
+
- Improved NL zipcode generation [@gerard76]
|
72
|
+
|
73
|
+
## 2.15.0
|
74
|
+
- Add `IdentificationTW` [@pominx]
|
75
|
+
- Add `CompanyJA` [@ktroutner]
|
76
|
+
- Add `AddressFR.region` [@GuillaumeOcculy]
|
77
|
+
- Add `AnimalES` [@delucas]
|
78
|
+
- Fix `AddressNL.postal_code` [@gerard76]
|
79
|
+
|
80
|
+
## 2.14.0
|
81
|
+
- Add `Code.npi` [@alibby]
|
82
|
+
|
83
|
+
## 2.13.0
|
84
|
+
- Add `Bank.card_number`, `.card_expiry_date` and `.card_type` [@AlexWayfer]
|
85
|
+
- Add `Bank.iban` [@Volosh1n]
|
86
|
+
- Add optional argument to `AddressUS.state_abbr` to determine state's abbreviation [@Volosh1n]
|
87
|
+
- Add `Name.pronouns` [@danderozier]
|
88
|
+
- Add `FFaker::ColorPL`, `FFaker::IdentificationPL`, `FFaker::SportPL` [@walerian777]
|
89
|
+
|
90
|
+
## 2.12.0
|
91
|
+
- Add Russian Phone Numbers [@steverovsky]
|
92
|
+
- Remove invalid example from NameRU.first_name_male [@steverovsky]
|
93
|
+
- *BREAKING CHANGE*: Drop support of under 2.3 [@marocchino]
|
94
|
+
- Add PhoneNumberUA [@Volosh1n]
|
95
|
+
- Add SemVer [@marocchino]
|
96
|
+
- Remove some obselated prefix from PhoneNumberBR.mobile_phone_prefix
|
97
|
+
[@Kutomore]
|
98
|
+
- Add Book.iban [@Volosh1n]
|
99
|
+
- Add Name.pronouns [@danderozier]
|
100
|
+
- Add PhoneNumberRU [@steverovsky]
|
101
|
+
|
102
|
+
## 2.11.0
|
103
|
+
- Add HealthcareRU [@gruz0]
|
104
|
+
- Removing potentially offensive name [@rvisuvasam]
|
105
|
+
- Add NameTW, PhoneNumberTW [@pominx]
|
106
|
+
- Add AnimalCN, EducationCN [@ckyOL]
|
107
|
+
- Add NameIN [@alagu]
|
108
|
+
- Add AnimalPL, GenderPL, GenderJP, PhoneNumberPL [@walerian777]
|
109
|
+
- Now PhoneNumberBR returns only valid area_code
|
110
|
+
|
1
111
|
## 2.10.0
|
2
112
|
- Add Image [@nicolas-brousse]
|
3
113
|
- Add LoremPL (Polish) [@walerian777]
|
@@ -108,21 +218,6 @@
|
|
108
218
|
- many internal library and test suite refactorings
|
109
219
|
|
110
220
|
|
111
|
-
[#181]: https://github.com/ffaker/ffaker/issues/181
|
112
|
-
[#191]: https://github.com/ffaker/ffaker/issues/191
|
113
|
-
[#193]: https://github.com/ffaker/ffaker/issues/193
|
114
|
-
[#195]: https://github.com/ffaker/ffaker/issues/195
|
115
|
-
[#196]: https://github.com/ffaker/ffaker/issues/196
|
116
|
-
[#199]: https://github.com/ffaker/ffaker/issues/199
|
117
|
-
[#200]: https://github.com/ffaker/ffaker/issues/200
|
118
|
-
[#203]: https://github.com/ffaker/ffaker/issues/203
|
119
|
-
[#211]: https://github.com/ffaker/ffaker/pull/211
|
120
|
-
[#212]: https://github.com/ffaker/ffaker/pull/212
|
121
|
-
[#213]: https://github.com/ffaker/ffaker/pull/213
|
122
|
-
[@marocchino]: https://github.com/marocchino
|
123
|
-
[@rstacruz]: https://github.com/rstacruz
|
124
|
-
[@anderscarling]: https://github.com/anderscarling
|
125
|
-
|
126
221
|
|
127
222
|
## 2.0.0
|
128
223
|
- switched faker to ffaker namespace, you should now be able to use
|
@@ -332,3 +427,110 @@ Api additions by Rafael Souza
|
|
332
427
|
## 0.1.0 2007-11-22
|
333
428
|
|
334
429
|
* Initial release
|
430
|
+
|
431
|
+
[#181]: https://github.com/ffaker/ffaker/issues/181
|
432
|
+
[#191]: https://github.com/ffaker/ffaker/issues/191
|
433
|
+
[#193]: https://github.com/ffaker/ffaker/issues/193
|
434
|
+
[#195]: https://github.com/ffaker/ffaker/issues/195
|
435
|
+
[#196]: https://github.com/ffaker/ffaker/issues/196
|
436
|
+
[#199]: https://github.com/ffaker/ffaker/issues/199
|
437
|
+
[#200]: https://github.com/ffaker/ffaker/issues/200
|
438
|
+
[#203]: https://github.com/ffaker/ffaker/issues/203
|
439
|
+
[#211]: https://github.com/ffaker/ffaker/pull/211
|
440
|
+
[#212]: https://github.com/ffaker/ffaker/pull/212
|
441
|
+
[#213]: https://github.com/ffaker/ffaker/pull/213
|
442
|
+
[@44uk]: https://github.com/44uk
|
443
|
+
[@AlexAvlonitis]: https://github.com/AlexAvlonitis
|
444
|
+
[@AlexWayfer]: https://github.com/AlexWayfer
|
445
|
+
[@CarlosMouraJR]: https://github.com/CarlosMouraJR
|
446
|
+
[@GuillaumeOcculy]: https://github.com/GuillaumeOcculy
|
447
|
+
[@IgorMarques]: https://github.com/IgorMarques
|
448
|
+
[@Kutomore]: https://github.com/Kutomore
|
449
|
+
[@MQuy]: https://github.com/MQuy
|
450
|
+
[@Moafak]: https://github.com/Moafak
|
451
|
+
[@Phanithism]: https://github.com/Phanithism
|
452
|
+
[@Sephyros]: https://github.com/Sephyros
|
453
|
+
[@SteveRedka]: https://github.com/SteveRedka
|
454
|
+
[@Volosh1n]: https://github.com/Volosh1n
|
455
|
+
[@YutaGoto]: https://github.com/YutaGoto
|
456
|
+
[@aaronsama]: https://github.com/aaronsama
|
457
|
+
[@abnersajr]: https://github.com/abnersajr
|
458
|
+
[@adimircolen]: https://github.com/adimircolen
|
459
|
+
[@alagu]: https://github.com/alagu
|
460
|
+
[@alibby]: https://github.com/alibby
|
461
|
+
[@anderscarling]: https://github.com/anderscarling
|
462
|
+
[@andyklimczak]: https://github.com/andyklimczak
|
463
|
+
[@ar2em1s]: https://github.com/ar2em1s
|
464
|
+
[@artplan1]: https://github.com/artplan1
|
465
|
+
[@az3vedo]: https://github.com/az3vedo
|
466
|
+
[@brain64bit]: https://github.com/brain64bit
|
467
|
+
[@brnrdog]: https://github.com/brnrdog
|
468
|
+
[@brupla6126]: https://github.com/brupla6126
|
469
|
+
[@ckyOL]: https://github.com/ckyOL
|
470
|
+
[@danderozier]: https://github.com/danderozier
|
471
|
+
[@dankimio]: https://github.com/dankimio
|
472
|
+
[@delucas]: https://github.com/delucas
|
473
|
+
[@dimroc]: https://github.com/dimroc
|
474
|
+
[@dphurley]: https://github.com/dphurley
|
475
|
+
[@eikes]: https://github.com/eikes
|
476
|
+
[@falegk]: https://github.com/falegk
|
477
|
+
[@firedev]: https://github.com/firedev
|
478
|
+
[@gabrielcosta42]: https://github.com/gabrielcosta42
|
479
|
+
[@gerard76]: https://github.com/gerard76
|
480
|
+
[@gruz0]: https://github.com/gruz0
|
481
|
+
[@hmaack]: https://github.com/hmaack
|
482
|
+
[@hulous]: https://github.com/hulous
|
483
|
+
[@iamarmanjon]: https://github.com/iamarmanjon
|
484
|
+
[@iiwo]: https://github.com/iiwo
|
485
|
+
[@j0al]: https://github.com/j0al
|
486
|
+
[@jakubm]: https://github.com/jakubm
|
487
|
+
[@jasonleonhard]: https://github.com/jasonleonhard
|
488
|
+
[@joshdvir]: https://github.com/joshdvir
|
489
|
+
[@josieljunior]: https://github.com/josieljunior
|
490
|
+
[@jvanbaarsen]: https://github.com/jvanbaarsen
|
491
|
+
[@kmayer]: https://github.com/kmayer
|
492
|
+
[@kojino]: https://github.com/kojino
|
493
|
+
[@ktroutner]: https://github.com/ktroutner
|
494
|
+
[@lilsweetcaligula]: https://github.com/lilsweetcaligula
|
495
|
+
[@lynnd335]: https://github.com/lynnd335
|
496
|
+
[@makketagg]: https://github.com/makketagg
|
497
|
+
[@marocchino]: https://github.com/marocchino
|
498
|
+
[@max-si-m]: https://github.com/max-si-m
|
499
|
+
[@mechos3d]: https://github.com/mechos3d
|
500
|
+
[@metalelf0]: https://github.com/metalelf0
|
501
|
+
[@miscelatore]: https://github.com/miscelatore
|
502
|
+
[@mklemme]: https://github.com/mklemme
|
503
|
+
[@mmrshk]: https://github.com/mmrshk
|
504
|
+
[@nav16]: https://github.com/nav16
|
505
|
+
[@ni3t]: https://github.com/ni3t
|
506
|
+
[@nicholaskillin]: https://github.com/nicholaskillin
|
507
|
+
[@nicolas-brousse]: https://github.com/nicolas-brousse
|
508
|
+
[@nigelgomesot]: https://github.com/nigelgomesot
|
509
|
+
[@pawelma]: https://github.com/pawelma
|
510
|
+
[@petergoldstein]: https://github.com/petergoldstein
|
511
|
+
[@philippevezina]: https://github.com/philippevezina
|
512
|
+
[@pominx]: https://github.com/pominx
|
513
|
+
[@professor]: https://github.com/professor
|
514
|
+
[@renius]: https://github.com/renius
|
515
|
+
[@rgcamus]: https://github.com/rgcamus
|
516
|
+
[@robin]: https://github.com/robin
|
517
|
+
[@rocknruby]: https://github.com/rocknruby
|
518
|
+
[@rstacruz]: https://github.com/rstacruz
|
519
|
+
[@rvisuvasam]: https://github.com/rvisuvasam
|
520
|
+
[@simonhildebrandt]: https://github.com/simonhildebrandt
|
521
|
+
[@slowjack2k]: https://github.com/slowjack2k
|
522
|
+
[@spheric]: https://github.com/spheric
|
523
|
+
[@steverovsky]: https://github.com/steverovsky
|
524
|
+
[@stilist]: https://github.com/stilist
|
525
|
+
[@tatey]: https://github.com/tatey
|
526
|
+
[@technicalpickles]: https://github.com/technicalpickles
|
527
|
+
[@thiago-henrique-leite]: https://github.com/thiago-henrique-leite
|
528
|
+
[@thilonel]: https://github.com/thilonel
|
529
|
+
[@thutterer]: https://github.com/thutterer
|
530
|
+
[@timfanda35]: https://github.com/timfanda35
|
531
|
+
[@tvarley]: https://github.com/tvarley
|
532
|
+
[@ulzr]: https://github.com/ulzr
|
533
|
+
[@vinhnglx]: https://github.com/vinhnglx
|
534
|
+
[@waldyr]: https://github.com/waldyr
|
535
|
+
[@walerian777]: https://github.com/walerian777
|
536
|
+
[@xunker]: https://github.com/xunker
|
data/Gemfile
CHANGED
@@ -1,2 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
4
|
+
|
2
5
|
gemspec
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :development, :lint do
|
12
|
+
gem 'rubocop'
|
13
|
+
gem 'rubocop-performance'
|
14
|
+
gem 'rubocop-rake'
|
15
|
+
end
|
16
|
+
|
17
|
+
group :development, :test do
|
18
|
+
gem 'test-unit'
|
19
|
+
end
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
[![Build Status](https://
|
1
|
+
[![Build Status](https://github.com/ffaker/ffaker/workflows/Test/badge.svg)](https://github.com/ffaker/ffaker/actions?query=workflow%3ATest)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/EmmanuelOga/ffaker/badges/gpa.svg)](https://codeclimate.com/github/EmmanuelOga/ffaker)
|
3
|
+
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
|
2
4
|
# ffaker
|
3
5
|
|
4
6
|
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ffaker/ffaker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -28,6 +30,18 @@ and then
|
|
28
30
|
|
29
31
|
require 'ffaker'
|
30
32
|
|
33
|
+
### Rails
|
34
|
+
|
35
|
+
1. If using rails then add the gem to your development and test environments:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
group :development, :test do
|
39
|
+
gem 'ffaker'
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
2. and then run `bundle install` in your terminal/BASH/command line.
|
44
|
+
|
31
45
|
## Why ffaker?
|
32
46
|
|
33
47
|
ffaker is a fork of faker, and was initially written in an effort to speed up
|
@@ -47,14 +61,14 @@ Hopefully some day faker and ffaker will join forces!
|
|
47
61
|
A lot of people have contributed to ffaker. Check [this list](https://github.com/ffaker/ffaker/graphs/contributors).
|
48
62
|
|
49
63
|
If you want to add new modules or localization data, use one of the
|
50
|
-
[directories for data files](https://github.com/ffaker/ffaker/tree/
|
64
|
+
[directories for data files](https://github.com/ffaker/ffaker/tree/main/lib/ffaker/data)
|
51
65
|
(or create a new one!).
|
52
66
|
|
53
67
|
**const_missing** is
|
54
|
-
[overriden](https://github.com/ffaker/ffaker/blob/
|
68
|
+
[overriden](https://github.com/ffaker/ffaker/blob/main/lib/ffaker/utils/module_utils.rb#L9)
|
55
69
|
for Faker modules, so if you try to use a constant that is not defined
|
56
70
|
in the module, the
|
57
|
-
[override](https://github.com/ffaker/ffaker/blob/
|
71
|
+
[override](https://github.com/ffaker/ffaker/blob/main/lib/ffaker/utils/module_utils.rb#L9)
|
58
72
|
will look for a data file matching the name of the constant. E.G.: the
|
59
73
|
first time someone accesses `FFaker::Name::FIRST_NAMES`, a const of that
|
60
74
|
name will be set with data from `ffaker/data/name/first_names`.
|
@@ -63,12 +77,23 @@ name will be set with data from `ffaker/data/name/first_names`.
|
|
63
77
|
|
64
78
|
To get repeatable results in Minitest or Rspec, follow [these instructions](RANDOM.md#using-the-same-random-seed-as-your-tests).
|
65
79
|
|
66
|
-
## Unique
|
80
|
+
## Unique values
|
67
81
|
|
68
|
-
You can
|
82
|
+
You can ensure unique values are generated using the `unique` method. `ffaker` will retry the generation
|
83
|
+
until an unique value if found.
|
69
84
|
|
70
|
-
|
71
|
-
|
85
|
+
Example:
|
86
|
+
```ruby
|
87
|
+
FFaker::Name.unique.name # ensures an unique value is returned for FFaker::Name
|
88
|
+
```
|
89
|
+
|
90
|
+
If an unique value cannot be generated within a maximum limit of retries for a generator
|
91
|
+
a `FFaker::UniqueUtils::RetryLimitExceeded` error will be raised.
|
92
|
+
|
93
|
+
You can prevent exceeding the limit by clearing the record of used values (e.g. between tests):
|
94
|
+
```ruby
|
95
|
+
FFaker::Name.unique.clear # clears the used values for FFaker::Name
|
96
|
+
FFaker::UniqueUtils.clear # clears the used values for all generators
|
72
97
|
```
|
73
98
|
|
74
99
|
## TODO
|
@@ -80,12 +105,20 @@ FFaker::Name.unique.name
|
|
80
105
|
|
81
106
|
* Fork the project.
|
82
107
|
* Make your feature addition or bug fix.
|
83
|
-
* Add tests for it. This is important so I don't break it in a
|
84
|
-
|
108
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
109
|
+
* To run all the tests: `rake test`
|
110
|
+
* To run a single test: `rake test TEST=test/test_lorem_br.rb`
|
85
111
|
* Commit, do not mess with rakefile, version, or history.
|
86
112
|
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
87
113
|
* Send me a pull request. Bonus points for topic branches.
|
88
114
|
|
115
|
+
## Release
|
116
|
+
|
117
|
+
* Bump version in `lib/version.rb`.
|
118
|
+
* Update `Changelog.md`.
|
119
|
+
* Tag with `v<major>.<minor>.<patch>`.
|
120
|
+
* Push it.
|
121
|
+
|
89
122
|
## Copyright
|
90
123
|
|
91
124
|
Copyright (c) 2013 Emmanuel Oga. See LICENSE for details.
|