ffaker 2.10.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +11 -0
  3. data/README.md +13 -1
  4. data/REFERENCE.md +84 -24
  5. data/ffaker.gemspec +1 -1
  6. data/lib/ffaker.rb +13 -1
  7. data/lib/ffaker/address_in.rb +4 -0
  8. data/lib/ffaker/animal_pl.rb +17 -0
  9. data/lib/ffaker/animals.rb +2 -0
  10. data/lib/ffaker/animals_cn.rb +13 -0
  11. data/lib/ffaker/animals_us.rb +13 -0
  12. data/lib/ffaker/data/address_in/city +24 -0
  13. data/lib/ffaker/data/animal_cn/common_names +141 -0
  14. data/lib/ffaker/data/animal_pl/common_names +256 -0
  15. data/lib/ffaker/data/animal_us/common_names +141 -0
  16. data/lib/ffaker/data/education_cn/city +351 -0
  17. data/lib/ffaker/data/education_cn/major +506 -0
  18. data/lib/ffaker/data/education_cn/province +31 -0
  19. data/lib/ffaker/data/education_cn/school_type +27 -0
  20. data/lib/ffaker/data/healthcare_ru/doctor_specialization +127 -0
  21. data/lib/ffaker/data/name/last_names +1 -2
  22. data/lib/ffaker/data/name_in/first_names_female +100 -0
  23. data/lib/ffaker/data/name_in/first_names_male +100 -0
  24. data/lib/ffaker/data/name_in/last_names +100 -0
  25. data/lib/ffaker/data/name_ru/first_names_female +91 -0
  26. data/lib/ffaker/data/name_ru/first_names_male +173 -0
  27. data/lib/ffaker/data/name_ru/last_names_female +100 -0
  28. data/lib/ffaker/data/name_ru/last_names_male +100 -0
  29. data/lib/ffaker/data/name_ru/middle_names_female +65 -0
  30. data/lib/ffaker/data/name_ru/middle_names_male +73 -0
  31. data/lib/ffaker/data/name_tw/first_names +122 -0
  32. data/lib/ffaker/data/name_tw/last_names +100 -0
  33. data/lib/ffaker/data/product/noun +4 -1
  34. data/lib/ffaker/data/sport_us/names +67 -0
  35. data/lib/ffaker/education_cn.rb +41 -0
  36. data/lib/ffaker/gender_jp.rb +21 -0
  37. data/lib/ffaker/gender_pl.rb +21 -0
  38. data/lib/ffaker/healthcare_ru.rb +13 -0
  39. data/lib/ffaker/name_in.rb +39 -0
  40. data/lib/ffaker/name_ru.rb +31 -68
  41. data/lib/ffaker/name_tw.rb +21 -0
  42. data/lib/ffaker/phone_number_br.rb +11 -2
  43. data/lib/ffaker/phone_number_pl.rb +69 -0
  44. data/lib/ffaker/phone_number_tw.rb +56 -0
  45. data/lib/ffaker/sport.rb +2 -0
  46. data/lib/ffaker/sport_us.rb +10 -0
  47. data/test/test_animal_cn.rb +18 -0
  48. data/test/test_animal_pl.rb +18 -0
  49. data/test/test_animal_us.rb +18 -0
  50. data/test/test_education_cn.rb +30 -0
  51. data/test/test_gender_jp.rb +28 -0
  52. data/test/test_gender_pl.rb +28 -0
  53. data/test/test_healthcare_ru.rb +20 -0
  54. data/test/test_name_ru.rb +36 -46
  55. data/test/test_name_tw.rb +29 -0
  56. data/test/test_phone_number.rb +1 -1
  57. data/test/test_phone_number_br.rb +9 -0
  58. data/test/test_phone_number_pl.rb +56 -0
  59. data/test/test_phone_number_tw.rb +43 -0
  60. data/test/test_sport_us.rb +18 -0
  61. metadata +56 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f532bea3a00e53fb51d207c8ab6475d8bf07491288e6dc0e49019584b2a1d925
4
- data.tar.gz: 86d4914bdfaceb6216c585b84e716e6483c2d98f0252c09666fdbc81ddef331d
3
+ metadata.gz: f366dde086cc46ad09555acd61abfa1144c771de3c40554c9ccbf1f85f994985
4
+ data.tar.gz: 2262aa05f0ab6ce2023dbf097be5bf4583a20ed309b287a752c337a631c5cd0d
5
5
  SHA512:
6
- metadata.gz: 92ddfa13cfff6caee03ab7c8b0209f83cb4062cfa851afcf7db8b44b2bdab88548e65b374098c35c443d7e1d91629113e6e5724284ea28e0686255d636c90557
7
- data.tar.gz: 781d78136e6a5acb0de5f6c201c25e092f14a52116db2dd1bf73aaae84b04904d9cc68240483f284e45b37d22fc8e89a83517dfe41940f2cd272394fa53de9ee
6
+ metadata.gz: f9cc0306313586864a21614b42041ef33d456c53b920a6995988e358f1646986269746fb07de9eb8ffbdb6be910ed653ccce403a9dfd0d2c13dc67bf7f7c50fc
7
+ data.tar.gz: db65ea237e6ddde6a55354832805c02f1bf955641ec76390856eb551a16d2d32909ad0940da1167126a0365b13a4d328b0e0889349af311eb5c42e36f6286d02
data/Changelog.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## development
2
+
3
+ ## 2.11.0
4
+ - Add HealthcareRU [@gruz0]
5
+ - Removing potentially offensive name [@rvisuvasam]
6
+ - Add NameTW, PhoneNumberTW [@pominx]
7
+ - Add AnimalCN, EducationCN [@ckyOL]
8
+ - Add NameIN [@alagu]
9
+ - Add AnimalPL, GenderPL, GenderJP, PhoneNumberPL [@walerian777]
10
+ - Now PhoneNumberBR returns only valid area_code
11
+
1
12
  ## 2.10.0
2
13
  - Add Image [@nicolas-brousse]
3
14
  - Add LoremPL (Polish) [@walerian777]
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/ffaker/ffaker.svg?branch=master)](https://travis-ci.org/ffaker/ffaker) [![Code Climate](https://codeclimate.com/github/EmmanuelOga/ffaker/badges/gpa.svg)](https://codeclimate.com/github/EmmanuelOga/ffaker)
1
+ [![Build Status](https://travis-ci.org/ffaker/ffaker.svg?branch=master)](https://travis-ci.org/ffaker/ffaker) [![Code Climate](https://codeclimate.com/github/EmmanuelOga/ffaker/badges/gpa.svg)](https://codeclimate.com/github/EmmanuelOga/ffaker) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
2
2
  # ffaker
3
3
 
4
4
  [![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)
@@ -27,6 +27,18 @@ need to:
27
27
  and then
28
28
 
29
29
  require 'ffaker'
30
+
31
+ ### Rails
32
+
33
+ 1. If using rails then add the gem to your development and test environments:
34
+
35
+ ```ruby
36
+ group :development, :test do
37
+ gem 'ffaker'
38
+ end
39
+ ```
40
+
41
+ 2. and then run `bundle install` in your terminal/BASH/command line.
30
42
 
31
43
  ## Why ffaker?
32
44
 
data/REFERENCE.md CHANGED
@@ -29,6 +29,8 @@
29
29
  * [FFaker::AddressUS](#ffakeraddressus)
30
30
  * [FFaker::Airline](#ffakerairline)
31
31
  * [FFaker::Animal](#ffakeranimal)
32
+ * [FFaker::AnimalCN](#ffakeranimalcn)
33
+ * [FFaker::AnimalUS](#ffakeranimalus)
32
34
  * [FFaker::Avatar](#ffakeravatar)
33
35
  * [FFaker::BaconIpsum](#ffakerbaconipsum)
34
36
  * [FFaker::Book](#ffakerbook)
@@ -46,6 +48,7 @@
46
48
  * [FFaker::Currency](#ffakercurrency)
47
49
  * [FFaker::DizzleIpsum](#ffakerdizzleipsum)
48
50
  * [FFaker::Education](#ffakereducation)
51
+ * [FFaker::EducationCN](#ffakereducationcn)
49
52
  * [FFaker::Filesystem](#ffakerfilesystem)
50
53
  * [FFaker::Food](#ffakerfood)
51
54
  * [FFaker::Gender](#ffakergender)
@@ -57,6 +60,7 @@
57
60
  * [FFaker::Guid](#ffakerguid)
58
61
  * [FFaker::HTMLIpsum](#ffakerhtmlipsum)
59
62
  * [FFaker::HealthcareIpsum](#ffakerhealthcareipsum)
63
+ * [FFaker::HealthcareRU](#ffakerhealthcareru)
60
64
  * [FFaker::HipsterIpsum](#ffakerhipsteripsum)
61
65
  * [FFaker::Identification](#ffakeridentification)
62
66
  * [FFaker::IdentificationBR](#ffakeridentificationbr)
@@ -99,6 +103,7 @@
99
103
  * [FFaker::NameGA](#ffakernamega)
100
104
  * [FFaker::NameGR](#ffakernamegr)
101
105
  * [FFaker::NameID](#ffakernameid)
106
+ * [FFaker::NameIN](#ffakernamein)
102
107
  * [FFaker::NameIT](#ffakernameit)
103
108
  * [FFaker::NameJA](#ffakernameja)
104
109
  * [FFaker::NameKH](#ffakernamekh)
@@ -113,6 +118,7 @@
113
118
  * [FFaker::NameSN](#ffakernamesn)
114
119
  * [FFaker::NameTH](#ffakernameth)
115
120
  * [FFaker::NameTHEN](#ffakernamethen)
121
+ * [FFaker::NameTW](#ffakernametw)
116
122
  * [FFaker::NameUA](#ffakernameua)
117
123
  * [FFaker::NameVN](#ffakernamevn)
118
124
  * [FFaker::NatoAlphabet](#ffakernatoalphabet)
@@ -132,12 +138,14 @@
132
138
  * [FFaker::PhoneNumberSE](#ffakerphonenumberse)
133
139
  * [FFaker::PhoneNumberSG](#ffakerphonenumbersg)
134
140
  * [FFaker::PhoneNumberSN](#ffakerphonenumbersn)
141
+ * [FFaker::PhoneNumberTW](#ffakerphonenumbertw)
135
142
  * [FFaker::Product](#ffakerproduct)
136
143
  * [FFaker::SSN](#ffakerssn)
137
144
  * [FFaker::SSNMX](#ffakerssnmx)
138
145
  * [FFaker::SSNSE](#ffakerssnse)
139
146
  * [FFaker::Skill](#ffakerskill)
140
147
  * [FFaker::Sport](#ffakersport)
148
+ * [FFaker::SportUS](#ffakersportus)
141
149
  * [FFaker::String](#ffakerstring)
142
150
  * [FFaker::Time](#ffakertime)
143
151
  * [FFaker::Tweet](#ffakertweet)
@@ -526,7 +534,7 @@
526
534
  | Method | Example |
527
535
  | ------ | ------- |
528
536
  | `building_number` | 7028, 42724, 35719 |
529
- | `city` | Port Gabriella, Baileyburgh, West Jenisemouth |
537
+ | `city` | Mumbai, Delhi, Bangalore |
530
538
  | `city_prefix` | North, East, East |
531
539
  | `city_suffix` | fort, bury, bury |
532
540
  | `country` | India, India, India |
@@ -814,6 +822,18 @@
814
822
 
815
823
  ## FFaker::Animal
816
824
 
825
+ | Method | Example |
826
+ | ------ | ------- |
827
+ | `common_name` | ❗ *[common_name] is deprecated. For animal names in english please use the AnimalUS module* |
828
+
829
+ ## FFaker::AnimalCN
830
+
831
+ | Method | Example |
832
+ | ------ | ------- |
833
+ | `common_name` | 蝾螈, 兔子, 青蛙 |
834
+
835
+ ## FFaker::AnimalUS
836
+
817
837
  | Method | Example |
818
838
  | ------ | ------- |
819
839
  | `common_name` | Newt, Rabbit, Frog |
@@ -973,6 +993,15 @@
973
993
  | `school_generic_name` | Northside, Lakeside, Larkridge |
974
994
  | `school_name` | Larkdale, Larkwell, Lakewood |
975
995
 
996
+ ## FFaker::EducationCN
997
+
998
+ | Method | Example |
999
+ | ------ | ------- |
1000
+ | `degree` | 法学硕士, 经济学硕士, 哲学学士 |
1001
+ | `major` | 信息管理与信息系统, 微电子科学与工程, 海洋科学 |
1002
+ | `school` | 中国林业大学, 临汾医科大学, 钦州学院 |
1003
+ | `location` | 华南, 福建, 集宁 |
1004
+
976
1005
  ## FFaker::Filesystem
977
1006
 
978
1007
  | Method | Example |
@@ -1075,6 +1104,12 @@
1075
1104
  | `word` | reasonable and customary, evidence of insurability, free-look period |
1076
1105
  | `words` | usual and customary charge, second surgical opinion, underwriting, noncancellable policy, IPA, credentialing, discharge planning, creditable coverage, medigap |
1077
1106
 
1107
+ ## FFaker::HealthcareRU
1108
+
1109
+ | Method | Example |
1110
+ | ------ | ------- |
1111
+ | `doctor_specialization` | Терапевт, Хирург, Стоматолог |
1112
+
1078
1113
  ## FFaker::HipsterIpsum
1079
1114
 
1080
1115
  | Method | Example |
@@ -1594,6 +1629,17 @@
1594
1629
  | `name_with_prefix` | Tn. Priadi Riyadi, Ny. Juminten Juniarto, Tn. Adam Purwaningsih |
1595
1630
  | `prefix` | Nn., Nn., Nn. |
1596
1631
 
1632
+ ## FFaker::NameIN
1633
+
1634
+ | Method | Example |
1635
+ | ------ | ------- |
1636
+ | `first_name_female` | Yazhini,Aradhana,Naira |
1637
+ | `first_name_male` | Rudra,Ivaan,Arnav |
1638
+ | `last_name` | Gupta,Ghosh,Shah |
1639
+ | `name_male` | Vedansh Acharya,Arnav Haldar,Darsh Burman |
1640
+ | `name_female` | Mahira Dhawan,Anshika Goswami,Samaira Pandey |
1641
+ | `name` | Vedant Deshpande,Divija Dixit,Shreyan Madan |
1642
+
1597
1643
  ## FFaker::NameIT
1598
1644
 
1599
1645
  | Method | Example |
@@ -1768,29 +1814,17 @@
1768
1814
 
1769
1815
  | Method | Example |
1770
1816
  | ------ | ------- |
1771
- | `female_name_with_prefix` | Miss. Krystyna Толманов, Miss. Mariah Щиконикова, Mrs. Shizue Куприн |
1772
- | `female_name_with_prefix_suffix` | Miss. Asia Монин DVM, Miss. Lila Томинов DVM, Miss. Cari Жеребченко Sr. |
1773
- | `female_name_with_suffix` | Toccara Потакина III, Latisha Турлакова PhD, Lisbeth Волочаева DVM |
1774
- | `female_prefix` | Mrs., Mrs., Mrs. |
1775
- | `first_name` | Модест, Калерия, Руслана |
1776
- | `first_name_female` | Keli, Brynn, Roxana |
1777
- | `first_name_male` | Ivan, Erick, Alberto |
1778
- | `html_safe_last_name` | Bednar, Auer, Morissette |
1779
- | `html_safe_name` | Мария Rogahn, Демид Eichmann, Емельян Casper |
1780
- | `last_name` | Анисимович, Штенников, Камышкина |
1781
- | `male_name_with_prefix` | Mr. Galen Шишкова, Mr. Antwan Милославов, Mr. Titus Манукиан |
1782
- | `male_name_with_prefix_suffix` | Mr. Millard Черноиванова PhD, Mr. Tracy Арисанова V, Mr. Dillon Иванова Jr. |
1783
- | `male_name_with_suffix` | Horace Хрусткова V, Luis Ланятина Jr., Dewitt Цымбаева Jr. |
1784
- | `male_prefix` | Mr., Mr., Mr. |
1785
- | `name` | Балабанцев Семен Георгиевич, Битлер Евгений Мерабович, Дарина Барьзева |
1786
- | `name_with_prefix` | Mrs. Lynsey Бахонов, Miss. Sade Арлушкина, Mr. Damien Хабайлова |
1787
- | `name_with_prefix_suffix` | Miss. Elizbeth Пигулова DVM, Mr. Mac Подорожний DDS, Mr. Sammie Сеуткина V |
1788
- | `name_with_suffix` | Terrence Коротько V, Lin Мирсианов MD, Tammie Цымбаева III |
1789
- | `other_prefix` | Dr., Ms., Dr. |
1790
- | `patronymic` | Павлович, Титович, Юлиановна |
1791
- | `prefix` | Mrs., Miss., Miss. |
1792
- | `suffix` | III, DVM, MD |
1793
- | `with_same_sex` | ‼️ LocalJumpError: no block given (yield) |
1817
+ | `name` | Светлана Борисовна, Валентина Евгеньевна, Родион Родионович |
1818
+ | `first_name` | Венедикт, Игнатий, Елизавета |
1819
+ | `last_name` | Колесников, Щербаков, Медведева |
1820
+ | `female_name` | Маргарита Андреева, Антонина Морозова, Александра Александрова |
1821
+ | `male_name` | Иакинф Григорьев, Лукий Титов, Яков Васильев |
1822
+ | `first_name_female` | Анна, Мирослава, Любовь |
1823
+ | `first_name_male` | Никифор, Руслан, Макар |
1824
+ | `middle_name_female` | Матвеевна, Даниловна, Юрьевна |
1825
+ | `middle_name_male` | Станиславович, Ярославович, Антонович |
1826
+ | `last_name_female` | Никитина, Комарова, Белова |
1827
+ | `last_name_male` | Громов, Журавлев, Белов |
1794
1828
 
1795
1829
  ## FFaker::NameSE
1796
1830
 
@@ -1849,6 +1883,14 @@
1849
1883
  | `name` | Pricha Leelapun, Chaiyo Jetatikarn, Chompoo Narkbunnum |
1850
1884
  | `nick_name` | Kan, Mee, Uan |
1851
1885
 
1886
+ ## FFaker::NameTW
1887
+
1888
+ | Method | Example |
1889
+ | ------ | ------- |
1890
+ | `first_name` | 柏睿, 淑芬, 子涵 |
1891
+ | `last_name` | 施, 朱, 劉 |
1892
+ | `name` | 黃詠晴, 江承瀚, 簡柏宇 |
1893
+
1852
1894
  ## FFaker::NameUA
1853
1895
 
1854
1896
  | Method | Example |
@@ -2089,6 +2131,18 @@
2089
2131
  | `phone_number` | 33-805-75-51, 33-897-96-92, 33-942-26-08 |
2090
2132
  | `short_phone_number` | 969-63-70, 407-46-54, 955-99-86 |
2091
2133
 
2134
+ ## FFaker::PhoneNumberTW
2135
+
2136
+ | Method | Example |
2137
+ | ------ | ------- |
2138
+ | `contry_code` | +886, +886, +886 |
2139
+ | `home_work_phone_number` | (06) 975-9084, (04) 2928-0197, (02) 3243-7078 |
2140
+ | `international_home_work_phone_number` | +82 63 2861 5413, +82 62 2927 0741, +82 2 9216 4856 |
2141
+ | `international_mobile_phone_number` | +886-3-969-7763, +886-6-785-5357, +886-4-7143-3921 |
2142
+ | `international_phone_number` | +886-971-985-461, +886-8-693-5563, +886-2-8909-8603 |
2143
+ | `mobile_phone_number` | 0907-951-170, 0919-897-665, 0958-737-927 |
2144
+ | `phone_number` | 0930-232-944, (02) 3660-6071, (07) 599-7345 |
2145
+
2092
2146
  ## FFaker::Product
2093
2147
 
2094
2148
  | Method | Example |
@@ -2133,6 +2187,12 @@
2133
2187
 
2134
2188
  ## FFaker::Sport
2135
2189
 
2190
+ | Method | Example |
2191
+ | ------ | ------- |
2192
+ | `name` | ❗ *[name] is deprecated. For US sports please use the SportUS module* |
2193
+
2194
+ ## FFaker::SportUS
2195
+
2136
2196
  | Method | Example |
2137
2197
  | ------ | ------- |
2138
2198
  | `name` | Mixed Martial Arts, Judo, Kitesurfing |
data/ffaker.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'ffaker'
7
- s.version = '2.10.0'
7
+ s.version = '2.11.0'
8
8
  s.date = '2018-01-04'
9
9
  s.rubyforge_project = 'ffaker'
10
10
  s.required_ruby_version = '>= 2.0'
data/lib/ffaker.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module FFaker
2
- VERSION = '2.10.0'.freeze
2
+ VERSION = '2.11.0'.freeze
3
3
 
4
4
  require 'ffaker/utils/array_utils'
5
5
  require 'ffaker/utils/module_utils'
@@ -56,6 +56,9 @@ module FFaker
56
56
  autoload :AddressUS, 'ffaker/address_us'
57
57
  autoload :Airline, 'ffaker/airline'
58
58
  autoload :Animal, 'ffaker/animals'
59
+ autoload :AnimalCN, 'ffaker/animals_cn'
60
+ autoload :AnimalPL, 'ffaker/animal_pl'
61
+ autoload :AnimalUS, 'ffaker/animals_us'
59
62
  autoload :Avatar, 'ffaker/avatar'
60
63
  autoload :AWS, 'ffaker/aws'
61
64
  autoload :BaconIpsum, 'ffaker/bacon_ipsum'
@@ -74,16 +77,20 @@ module FFaker
74
77
  autoload :Currency, 'ffaker/currency'
75
78
  autoload :DizzleIpsum, 'ffaker/dizzle_ipsum'
76
79
  autoload :Education, 'ffaker/education'
80
+ autoload :EducationCN, 'ffaker/education_cn'
77
81
  autoload :Filesystem, 'ffaker/filesystem'
78
82
  autoload :Food, 'ffaker/food'
79
83
  autoload :Gender, 'ffaker/gender'
80
84
  autoload :GenderBR, 'ffaker/gender_br'
81
85
  autoload :GenderCN, 'ffaker/gender_cn'
82
86
  autoload :GenderID, 'ffaker/gender_id'
87
+ autoload :GenderJP, 'ffaker/gender_jp'
83
88
  autoload :GenderKR, 'ffaker/gender_kr'
89
+ autoload :GenderPL, 'ffaker/gender_pl'
84
90
  autoload :Geolocation, 'ffaker/geolocation'
85
91
  autoload :Guid, 'ffaker/guid'
86
92
  autoload :HealthcareIpsum, 'ffaker/healthcare_ipsum'
93
+ autoload :HealthcareRU, 'ffaker/healthcare_ru'
87
94
  autoload :HipsterIpsum, 'ffaker/hipster_ipsum'
88
95
  autoload :HTMLIpsum, 'ffaker/html_ipsum'
89
96
  autoload :Identification, 'ffaker/identification'
@@ -128,6 +135,7 @@ module FFaker
128
135
  autoload :NameGA, 'ffaker/name_ga'
129
136
  autoload :NameGR, 'ffaker/name_gr'
130
137
  autoload :NameID, 'ffaker/name_id'
138
+ autoload :NameIN, 'ffaker/name_in'
131
139
  autoload :NameIT, 'ffaker/name_it'
132
140
  autoload :NameJA, 'ffaker/name_ja'
133
141
  autoload :NameKH, 'ffaker/name_kh'
@@ -141,6 +149,7 @@ module FFaker
141
149
  autoload :NameSE, 'ffaker/name_se'
142
150
  autoload :NameSN, 'ffaker/name_sn'
143
151
  autoload :NameTH, 'ffaker/name_th'
152
+ autoload :NameTW, 'ffaker/name_tw'
144
153
  autoload :NameTHEN, 'ffaker/name_th_en'
145
154
  autoload :NameUA, 'ffaker/name_ua'
146
155
  autoload :NameVN, 'ffaker/name_vn'
@@ -158,12 +167,15 @@ module FFaker
158
167
  autoload :PhoneNumberKR, 'ffaker/phone_number_kr'
159
168
  autoload :PhoneNumberMX, 'ffaker/phone_number_mx'
160
169
  autoload :PhoneNumberNL, 'ffaker/phone_number_nl'
170
+ autoload :PhoneNumberPL, 'ffaker/phone_number_pl'
161
171
  autoload :PhoneNumberSE, 'ffaker/phone_number_se'
162
172
  autoload :PhoneNumberSG, 'ffaker/phone_number_sg'
163
173
  autoload :PhoneNumberSN, 'ffaker/phone_number_sn'
174
+ autoload :PhoneNumberTW, 'ffaker/phone_number_tw'
164
175
  autoload :Product, 'ffaker/product'
165
176
  autoload :Skill, 'ffaker/skill'
166
177
  autoload :Sport, 'ffaker/sport'
178
+ autoload :SportUS, 'ffaker/sport_us'
167
179
  autoload :SSN, 'ffaker/ssn'
168
180
  autoload :SSNMX, 'ffaker/ssn_mx'
169
181
  autoload :SSNSE, 'ffaker/ssn_se'
@@ -14,6 +14,10 @@ module FFaker
14
14
  end
15
15
 
16
16
  alias pincode zip_code
17
+
18
+ def city
19
+ fetch_sample(CITY)
20
+ end
17
21
 
18
22
  def state
19
23
  fetch_sample(STATE)
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module FFaker
5
+ # Author Walerian Sobczak <walerian.sobczak@gmail.com> github.com/walerian777
6
+ # Inspirations:
7
+ # https://www.ekologia.pl/wiedza/zwierzeta/
8
+ module AnimalPL
9
+ extend ModuleUtils
10
+
11
+ module_function
12
+
13
+ def common_name
14
+ fetch_sample(COMMON_NAMES)
15
+ end
16
+ end
17
+ end
@@ -5,7 +5,9 @@ module FFaker
5
5
  extend ModuleUtils
6
6
  extend self
7
7
 
8
+ # @deprecated US animals name. Moved into {AnimalUS}
8
9
  def common_name
10
+ warn '[common_name] is deprecated. For animal name in english please use the AnimalsUS module'
9
11
  fetch_sample(COMMON_NAMES)
10
12
  end
11
13
  end
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module FFaker
5
+ module AnimalCN
6
+ extend ModuleUtils
7
+ extend self
8
+
9
+ def common_name
10
+ fetch_sample(COMMON_NAMES)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module FFaker
5
+ module AnimalUS
6
+ extend ModuleUtils
7
+ extend self
8
+
9
+ def common_name
10
+ fetch_sample(COMMON_NAMES)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,24 @@
1
+ Mumbai
2
+ Delhi
3
+ Bangalore
4
+ Hyderabad
5
+ Ahmedabad
6
+ Chennai
7
+ Kolkata
8
+ Surat
9
+ Pune
10
+ Jaipur
11
+ Lucknow
12
+ Kanpur
13
+ Nagpur
14
+ Visakhapatnam
15
+ Indore
16
+ Thane
17
+ Bhopal
18
+ Patna
19
+ Vadodara
20
+ Ghaziabad
21
+ Ludhiana
22
+ Coimbatore
23
+ Agra
24
+ Madurai
@@ -0,0 +1,141 @@
1
+ 土豚
2
+ 信天翁
3
+ 鳄鱼
4
+ 羊驼
5
+ 蚂蚁
6
+ 食蚁兽
7
+ 羚羊
8
+
9
+ 犰狳
10
+ 狒狒
11
+ 梭子鱼
12
+ 蝙蝠
13
+
14
+ 海狸
15
+
16
+ 野牛
17
+ 野猪
18
+ 水牛
19
+ 蝴蝶
20
+ 骆驼
21
+ 驯鹿
22
+
23
+ 猎豹
24
+
25
+ 黑猩猩
26
+ 眼镜蛇
27
+ 鳕鱼
28
+
29
+ 螃蟹
30
+
31
+ 鳄鱼
32
+ 乌鸦
33
+
34
+ 角鲨
35
+ 海豚
36
+
37
+ 鸽子
38
+
39
+ 儒艮
40
+
41
+ 鳗鱼
42
+
43
+ 麋鹿
44
+
45
+
46
+ 蒙眼貂
47
+
48
+
49
+ 火烈鸟
50
+ 狐狸
51
+ 青蛙
52
+ 羚羊
53
+ 牛羚
54
+ 山羊
55
+
56
+ 大猩猩
57
+ 豚鼠
58
+ 仓鼠
59
+ 野兔
60
+
61
+
62
+ 苍鹭
63
+
64
+ 蜂鸟
65
+ 鬣狗
66
+ 北山羊
67
+ 狐狼
68
+ 美洲豹
69
+ 松鸦
70
+ 袋鼠
71
+ 考拉
72
+ 狐猴
73
+
74
+ 狮子
75
+ 骆驼
76
+ 龙虾
77
+
78
+ 长毛象
79
+ 海牛
80
+ 鼹鼠
81
+
82
+
83
+ 驼鹿
84
+ 老鼠
85
+ 独角鲸
86
+ 蝾螈
87
+ 章鱼
88
+ 负鼠
89
+ 鸵鸟
90
+
91
+ 猫头鹰
92
+
93
+ 黑豹
94
+ 鹦鹉
95
+ 熊猫
96
+ 鹧鸪
97
+
98
+ 企鹅
99
+ 野鸡
100
+
101
+ 鸽子
102
+ 北极熊
103
+ 小马
104
+ 豪猪
105
+ 鼠海豚
106
+ 土拨鼠
107
+ 鹌鹑
108
+ 兔子
109
+ 浣熊
110
+ 公羊
111
+
112
+ 渡鸦
113
+ 驯鹿
114
+
115
+ 三文鱼
116
+ 海狮
117
+ 海马
118
+ 海豹
119
+ 鲨鱼
120
+
121
+ 鼩鼱
122
+ 臭鼬
123
+ 树懒
124
+ 蜗牛
125
+
126
+ 松鼠
127
+ 天鹅
128
+
129
+ 蟾蜍
130
+ 火鸡
131
+
132
+ 袋鼠
133
+ 海象
134
+ 水牛
135
+ 黄鼠狼
136
+
137
+
138
+ 狼獾
139
+ 袋熊
140
+
141
+ 斑马