ffaker 2.10.0 → 2.11.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 +11 -0
- data/README.md +13 -1
- data/REFERENCE.md +84 -24
- data/ffaker.gemspec +1 -1
- data/lib/ffaker.rb +13 -1
- data/lib/ffaker/address_in.rb +4 -0
- data/lib/ffaker/animal_pl.rb +17 -0
- data/lib/ffaker/animals.rb +2 -0
- data/lib/ffaker/animals_cn.rb +13 -0
- data/lib/ffaker/animals_us.rb +13 -0
- data/lib/ffaker/data/address_in/city +24 -0
- data/lib/ffaker/data/animal_cn/common_names +141 -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/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/healthcare_ru/doctor_specialization +127 -0
- data/lib/ffaker/data/name/last_names +1 -2
- 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_ru/first_names_female +91 -0
- data/lib/ffaker/data/name_ru/first_names_male +173 -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_tw/first_names +122 -0
- data/lib/ffaker/data/name_tw/last_names +100 -0
- data/lib/ffaker/data/product/noun +4 -1
- data/lib/ffaker/data/sport_us/names +67 -0
- data/lib/ffaker/education_cn.rb +41 -0
- data/lib/ffaker/gender_jp.rb +21 -0
- data/lib/ffaker/gender_pl.rb +21 -0
- data/lib/ffaker/healthcare_ru.rb +13 -0
- data/lib/ffaker/name_in.rb +39 -0
- data/lib/ffaker/name_ru.rb +31 -68
- data/lib/ffaker/name_tw.rb +21 -0
- data/lib/ffaker/phone_number_br.rb +11 -2
- data/lib/ffaker/phone_number_pl.rb +69 -0
- data/lib/ffaker/phone_number_tw.rb +56 -0
- data/lib/ffaker/sport.rb +2 -0
- data/lib/ffaker/sport_us.rb +10 -0
- data/test/test_animal_cn.rb +18 -0
- data/test/test_animal_pl.rb +18 -0
- data/test/test_animal_us.rb +18 -0
- data/test/test_education_cn.rb +30 -0
- data/test/test_gender_jp.rb +28 -0
- data/test/test_gender_pl.rb +28 -0
- data/test/test_healthcare_ru.rb +20 -0
- data/test/test_name_ru.rb +36 -46
- data/test/test_name_tw.rb +29 -0
- data/test/test_phone_number.rb +1 -1
- data/test/test_phone_number_br.rb +9 -0
- data/test/test_phone_number_pl.rb +56 -0
- data/test/test_phone_number_tw.rb +43 -0
- data/test/test_sport_us.rb +18 -0
- metadata +56 -1
@@ -0,0 +1,65 @@
|
|
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
|
+
Фелuксовна
|
61
|
+
Филипповна
|
62
|
+
Эдуардовна
|
63
|
+
Юрьевна
|
64
|
+
Яковлевна
|
65
|
+
Ярославовна
|
@@ -0,0 +1,73 @@
|
|
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
|
+
Ярославович
|
@@ -0,0 +1,122 @@
|
|
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
|
+
詠晴
|
@@ -0,0 +1,100 @@
|
|
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
|
+
邵
|
@@ -0,0 +1,67 @@
|
|
1
|
+
Archery
|
2
|
+
Artistic Gymnastics
|
3
|
+
Athletics
|
4
|
+
BMX
|
5
|
+
Badminton
|
6
|
+
Base jumping
|
7
|
+
Basketball
|
8
|
+
Beach Volleyball
|
9
|
+
Bodyboarding
|
10
|
+
Bodysurfing
|
11
|
+
Boxing
|
12
|
+
Canoe Slalom
|
13
|
+
Canoe Sprint
|
14
|
+
Cycling BMX
|
15
|
+
Cycling Mountain Bike
|
16
|
+
Cycling Road
|
17
|
+
Cycling Track
|
18
|
+
Diving
|
19
|
+
Equestrian
|
20
|
+
Fencing
|
21
|
+
Football
|
22
|
+
Formula Indy
|
23
|
+
Formula One
|
24
|
+
Golf
|
25
|
+
Handball
|
26
|
+
Hockey
|
27
|
+
Jiu Jitsu
|
28
|
+
Judo
|
29
|
+
Karate
|
30
|
+
Kickboxing
|
31
|
+
Kitesurfing
|
32
|
+
Longboard
|
33
|
+
Marathon Swimming
|
34
|
+
Mixed Martial Arts
|
35
|
+
Modern Pentathlon
|
36
|
+
Mountain Bike
|
37
|
+
Muay-Thai
|
38
|
+
Nascar
|
39
|
+
Rafting
|
40
|
+
Rapel
|
41
|
+
Rhythmic Gymnastics
|
42
|
+
Rowing
|
43
|
+
Rugby
|
44
|
+
Rugby Sevens
|
45
|
+
Running
|
46
|
+
Sailing
|
47
|
+
Sandboarding
|
48
|
+
Shooting
|
49
|
+
Skateboarding
|
50
|
+
Ski
|
51
|
+
Skimboarding
|
52
|
+
Snowboarding
|
53
|
+
Soccer
|
54
|
+
Surfing
|
55
|
+
Swimming
|
56
|
+
Synchronised Swimming
|
57
|
+
Table Tennis
|
58
|
+
Taekwondo
|
59
|
+
Tennis
|
60
|
+
Trampoline Gymnastics
|
61
|
+
Triathlon
|
62
|
+
Volleyball
|
63
|
+
Wakeboarding
|
64
|
+
Water Polo
|
65
|
+
Weightlifting
|
66
|
+
Windsurfing
|
67
|
+
Wrestling
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module FFaker
|
5
|
+
module EducationCN
|
6
|
+
extend ModuleUtils
|
7
|
+
extend self
|
8
|
+
|
9
|
+
DEGREE_PREFIX = %w[哲学 经济学 法学 教育学 文学 历史学 理学 工学 农学 医学].freeze
|
10
|
+
DEGREE_SUFFIX = %w[学士 硕士 博士].freeze
|
11
|
+
POSITION = %w[华南 华北 华东 华中 西南 西北 东北 东南 中国].freeze
|
12
|
+
SCHOOL_UNI = %w[大学 学院].freeze
|
13
|
+
|
14
|
+
def degree
|
15
|
+
"#{fetch_sample(DEGREE_PREFIX)}#{fetch_sample(DEGREE_SUFFIX)}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def major
|
19
|
+
fetch_sample(MAJOR)
|
20
|
+
end
|
21
|
+
|
22
|
+
def location
|
23
|
+
case rand(0..2)
|
24
|
+
when 0 then fetch_sample(PROVINCE)
|
25
|
+
when 1 then fetch_sample(CITY)
|
26
|
+
when 2 then fetch_sample(POSITION)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def school
|
31
|
+
case rand(0..2)
|
32
|
+
when 0 then
|
33
|
+
"#{location}#{fetch_sample(SCHOOL_TYPE)}#{fetch_sample(SCHOOL_UNI)}"
|
34
|
+
when 1 then
|
35
|
+
"#{location}#{fetch_sample(SCHOOL_UNI)}"
|
36
|
+
when 2 then
|
37
|
+
"#{location}#{fetch_sample(SCHOOL_TYPE)}#{fetch_sample(SCHOOL_UNI)}#{fetch_sample(CITY)}分校"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|