ffaker 2.2.0 → 2.3.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 +34 -0
- data/README.md +4 -0
- data/REFERENCE.md +1153 -800
- data/Rakefile +23 -24
- data/ffaker.gemspec +12 -420
- data/lib/ffaker.rb +47 -7
- data/lib/ffaker/address.rb +11 -11
- data/lib/ffaker/address_au.rb +60 -60
- data/lib/ffaker/address_br.rb +5 -5
- data/lib/ffaker/address_ca.rb +7 -7
- data/lib/ffaker/address_ch.rb +1 -2
- data/lib/ffaker/address_ch_de.rb +1 -1
- data/lib/ffaker/address_ch_fr.rb +1 -1
- data/lib/ffaker/address_ch_it.rb +1 -1
- data/lib/ffaker/address_da.rb +5 -5
- data/lib/ffaker/address_de.rb +16 -12
- data/lib/ffaker/address_fi.rb +7 -8
- data/lib/ffaker/address_fr.rb +13 -13
- data/lib/ffaker/address_gr.rb +40 -0
- data/lib/ffaker/address_in.rb +12 -12
- data/lib/ffaker/address_kr.rb +87 -0
- data/lib/ffaker/address_mx.rb +409 -409
- data/lib/ffaker/address_nl.rb +17 -13
- data/lib/ffaker/address_ru.rb +6 -6
- data/lib/ffaker/address_se.rb +7 -8
- data/lib/ffaker/address_sn.rb +3 -3
- data/lib/ffaker/address_ua.rb +8 -8
- data/lib/ffaker/address_uk.rb +5 -5
- data/lib/ffaker/address_us.rb +9 -9
- data/lib/ffaker/airline.rb +16 -0
- data/lib/ffaker/avatar.rb +3 -3
- data/lib/ffaker/aws.rb +24 -0
- data/lib/ffaker/bacon_ipsum.rb +2 -2
- data/lib/ffaker/book.rb +45 -0
- data/lib/ffaker/boolean.rb +2 -2
- data/lib/ffaker/cheesy_lingo.rb +15 -12
- data/lib/ffaker/color.rb +54 -1
- data/lib/ffaker/color_ua.rb +1 -1
- data/lib/ffaker/company.rb +13 -11
- data/lib/ffaker/company_cn.rb +23 -0
- data/lib/ffaker/company_it.rb +4 -4
- data/lib/ffaker/company_se.rb +2 -2
- data/lib/ffaker/conference.rb +1 -1
- data/lib/ffaker/courses.rb +2 -3
- data/lib/ffaker/currency.rb +2 -2
- data/lib/ffaker/data/address_gr/city +79 -0
- data/lib/ffaker/data/address_gr/region +13 -0
- data/lib/ffaker/data/address_gr/street +100 -0
- data/lib/ffaker/data/address_kr/boroughs +29 -0
- data/lib/ffaker/data/address_kr/cities +51 -0
- data/lib/ffaker/data/airline/codes_list +209 -0
- data/lib/ffaker/data/airline/names_list +206 -0
- data/lib/ffaker/data/aws/ec2_instance_type +59 -0
- data/lib/ffaker/data/aws/ec2_reserved_instance_tenancy +3 -0
- data/lib/ffaker/data/aws/ec2_reserved_offering_type +6 -0
- data/lib/ffaker/data/aws/ec2_reserved_product_description +14 -0
- data/lib/ffaker/data/book/adj_and_adv +20 -0
- data/lib/ffaker/data/book/genres +369 -0
- data/lib/ffaker/data/book/nouns +36 -0
- data/lib/ffaker/data/book/prefixes +17 -0
- data/lib/ffaker/data/color/names_list +128 -0
- data/lib/ffaker/data/education/degree_prefix +274 -0
- data/lib/ffaker/data/education/degree_short_prefix +19 -0
- data/lib/ffaker/data/job_br/job_nouns +52 -0
- data/lib/ffaker/data/job_vn/job_nouns +191 -0
- data/lib/ffaker/data/lorem_ja/characters +101 -0
- data/lib/ffaker/data/lorem_ja/sentences +30 -0
- data/lib/ffaker/data/lorem_ja/sentences_end +21 -0
- data/lib/ffaker/data/lorem_ja/words +81 -0
- data/lib/ffaker/data/name/first_names_female +4275 -0
- data/lib/ffaker/data/name/first_names_male +1219 -0
- data/lib/ffaker/data/name_br/first_names_female +1068 -0
- data/lib/ffaker/data/name_br/first_names_male +607 -0
- data/lib/ffaker/data/name_br/last_names +52 -0
- data/lib/ffaker/data/name_gr/female_first_names +80 -0
- data/lib/ffaker/data/name_gr/female_last_names +45 -0
- data/lib/ffaker/data/name_gr/male_first_names +90 -0
- data/lib/ffaker/data/name_gr/male_last_names +57 -0
- data/lib/ffaker/data/name_kh/first_names +64 -0
- data/lib/ffaker/data/name_kh/last_names +71 -0
- data/lib/ffaker/data/name_kh/nick_names +30 -0
- data/lib/ffaker/data/name_then/first_names +292 -0
- data/lib/ffaker/data/name_then/last_names +63 -0
- data/lib/ffaker/data/name_then/nick_names +30 -0
- data/lib/ffaker/data/phone_number/phone_calling_code +205 -0
- data/lib/ffaker/data/sport/names +57 -24
- data/lib/ffaker/data/tweet/hashtag +58 -0
- data/lib/ffaker/data/youtube/video_ids +50 -0
- data/lib/ffaker/dizzle_ipsum.rb +2 -2
- data/lib/ffaker/education.rb +17 -16
- data/lib/ffaker/food.rb +5 -6
- data/lib/ffaker/gender.rb +4 -4
- data/lib/ffaker/gender_br.rb +17 -0
- data/lib/ffaker/gender_cn.rb +4 -4
- data/lib/ffaker/gender_kr.rb +4 -4
- data/lib/ffaker/geolocation.rb +26 -26
- data/lib/ffaker/healthcare_ipsum.rb +2 -2
- data/lib/ffaker/hipster_ipsum.rb +2 -2
- data/lib/ffaker/html_ipsum.rb +101 -81
- data/lib/ffaker/identification.rb +4 -4
- data/lib/ffaker/identification_br.rb +84 -0
- data/lib/ffaker/identification_es.rb +2 -2
- data/lib/ffaker/identification_es_cl.rb +7 -5
- data/lib/ffaker/identification_es_co.rb +9 -10
- data/lib/ffaker/identification_kr.rb +3 -4
- data/lib/ffaker/identification_mx.rb +27 -11
- data/lib/ffaker/internet.rb +26 -23
- data/lib/ffaker/internet_se.rb +21 -21
- data/lib/ffaker/job.rb +1 -1
- data/lib/ffaker/job_br.rb +12 -0
- data/lib/ffaker/job_cn.rb +1 -1
- data/lib/ffaker/job_fr.rb +3 -3
- data/lib/ffaker/job_ja.rb +2 -1
- data/lib/ffaker/job_kr.rb +1 -1
- data/lib/ffaker/job_vn.rb +13 -0
- data/lib/ffaker/locale.rb +2 -3
- data/lib/ffaker/lorem.rb +5 -5
- data/lib/ffaker/lorem_ar.rb +4 -4
- data/lib/ffaker/lorem_cn.rb +3 -3
- data/lib/ffaker/lorem_fr.rb +4 -4
- data/lib/ffaker/lorem_ja.rb +40 -0
- data/lib/ffaker/lorem_kr.rb +4 -4
- data/lib/ffaker/lorem_ua.rb +8 -11
- data/lib/ffaker/movie.rb +18 -20
- data/lib/ffaker/music.rb +4 -4
- data/lib/ffaker/name.rb +100 -11
- data/lib/ffaker/name_br.rb +37 -6
- data/lib/ffaker/name_cn.rb +2 -2
- data/lib/ffaker/name_cs.rb +10 -10
- data/lib/ffaker/name_da.rb +6 -6
- data/lib/ffaker/name_de.rb +5 -5
- data/lib/ffaker/name_fr.rb +4 -4
- data/lib/ffaker/name_ga.rb +4 -5
- data/lib/ffaker/name_gr.rb +60 -0
- data/lib/ffaker/name_it.rb +4 -4
- data/lib/ffaker/name_ja.rb +3 -3
- data/lib/ffaker/name_kh.rb +22 -0
- data/lib/ffaker/name_kr.rb +3 -3
- data/lib/ffaker/name_mx.rb +14 -14
- data/lib/ffaker/name_nb.rb +5 -5
- data/lib/ffaker/name_nl.rb +7 -7
- data/lib/ffaker/name_ph.rb +2 -2
- data/lib/ffaker/name_ru.rb +7 -8
- data/lib/ffaker/name_se.rb +5 -5
- data/lib/ffaker/name_sn.rb +23 -23
- data/lib/ffaker/name_th.rb +3 -3
- data/lib/ffaker/name_th_en.rb +26 -0
- data/lib/ffaker/name_ua.rb +8 -8
- data/lib/ffaker/name_vn.rb +4 -4
- data/lib/ffaker/nato_alphabet.rb +10 -10
- data/lib/ffaker/phone_number.rb +31 -21
- data/lib/ffaker/phone_number_au.rb +3 -3
- data/lib/ffaker/phone_number_br.rb +9 -8
- data/lib/ffaker/phone_number_ch.rb +7 -7
- data/lib/ffaker/phone_number_cu.rb +5 -5
- data/lib/ffaker/phone_number_de.rb +1 -1
- data/lib/ffaker/phone_number_fr.rb +4 -4
- data/lib/ffaker/phone_number_it.rb +2 -2
- data/lib/ffaker/phone_number_kr.rb +4 -4
- data/lib/ffaker/phone_number_mx.rb +4 -5
- data/lib/ffaker/phone_number_nl.rb +13 -13
- data/lib/ffaker/phone_number_se.rb +18 -19
- data/lib/ffaker/phone_number_sg.rb +8 -8
- data/lib/ffaker/phone_number_sn.rb +2 -2
- data/lib/ffaker/product.rb +18 -14
- data/lib/ffaker/skill.rb +3 -3
- data/lib/ffaker/sport.rb +1 -1
- data/lib/ffaker/ssn_se.rb +19 -20
- data/lib/ffaker/string.rb +21 -23
- data/lib/ffaker/time.rb +19 -7
- data/lib/ffaker/tweet.rb +59 -0
- data/lib/ffaker/unit.rb +12 -12
- data/lib/ffaker/unit_english.rb +34 -35
- data/lib/ffaker/unit_metric.rb +25 -25
- data/lib/ffaker/utils/array_utils.rb +12 -9
- data/lib/ffaker/utils/module_utils.rb +9 -6
- data/lib/ffaker/utils/random_utils.rb +33 -0
- data/lib/ffaker/vehicle.rb +21 -21
- data/lib/ffaker/venue.rb +1 -1
- data/lib/ffaker/youtube.rb +24 -0
- data/scripts/benchmark.rb +3 -3
- data/scripts/reference.rb +26 -23
- data/test/helper.rb +50 -0
- data/test/test_address.rb +40 -21
- data/test/test_address_au.rb +19 -9
- data/test/test_address_br.rb +9 -2
- data/test/test_address_ca.rb +7 -0
- data/test/test_address_ch.rb +6 -2
- data/test/test_address_ch_de.rb +7 -3
- data/test/test_address_ch_fr.rb +7 -3
- data/test/test_address_ch_it.rb +5 -1
- data/test/test_address_da.rb +18 -9
- data/test/test_address_de.rb +12 -5
- data/test/test_address_fi.rb +10 -3
- data/test/test_address_fr.rb +13 -0
- data/test/test_address_gr.rb +43 -0
- data/test/test_address_in.rb +20 -12
- data/test/test_address_kr.rb +14 -0
- data/test/test_address_mx.rb +12 -5
- data/test/test_address_nl.rb +11 -5
- data/test/test_address_ru.rb +11 -5
- data/test/test_address_se.rb +9 -3
- data/test/test_address_sn.rb +7 -1
- data/test/test_address_ua.rb +17 -10
- data/test/test_address_uk.rb +11 -3
- data/test/test_address_us.rb +15 -6
- data/test/test_airline.rb +17 -0
- data/test/test_array_utils.rb +51 -3
- data/test/test_avatar.rb +5 -1
- data/test/test_aws.rb +25 -0
- data/test/test_bacon_ipsum.rb +12 -6
- data/test/test_book.rb +41 -0
- data/test/test_boolean.rb +4 -0
- data/test/test_cheesy_lingo.rb +14 -10
- data/test/test_color.rb +126 -1
- data/test/test_color_ua.rb +5 -1
- data/test/test_company.rb +7 -0
- data/test/test_company_cn.rb +24 -0
- data/test/test_company_it.rb +7 -1
- data/test/test_company_se.rb +6 -0
- data/test/test_conference.rb +5 -2
- data/test/test_course_mathematiques.rb +5 -1
- data/test/test_course_philosophie.rb +5 -1
- data/test/test_currency.rb +12 -0
- data/test/test_dizzle_ipsum.rb +12 -6
- data/test/test_education.rb +9 -2
- data/test/test_faker.rb +8 -1
- data/test/test_food.rb +11 -4
- data/test/test_gender.rb +5 -1
- data/test/test_gender_br.rb +18 -0
- data/test/test_gender_cn.rb +5 -2
- data/test/test_gender_kr.rb +7 -3
- data/test/test_geolocation.rb +11 -8
- data/test/test_guid.rb +6 -1
- data/test/test_healthcare_ipsum.rb +13 -6
- data/test/test_hipster_ipsum.rb +13 -6
- data/test/test_html_ipsum.rb +28 -20
- data/test/test_identification.rb +9 -2
- data/test/test_identification_br.rb +46 -0
- data/test/test_identification_co.rb +7 -0
- data/test/test_identification_es.rb +5 -1
- data/test/test_identification_es_cl.rb +5 -1
- data/test/test_identification_es_mx.rb +7 -2
- data/test/test_identification_kr.rb +4 -0
- data/test/test_internet.rb +36 -5
- data/test/test_internet_se.rb +12 -4
- data/test/test_job.rb +4 -0
- data/test/test_job_br.rb +17 -0
- data/test/test_job_cn.rb +4 -0
- data/test/test_job_fr.rb +4 -0
- data/test/test_job_ja.rb +4 -0
- data/test/test_job_kr.rb +4 -0
- data/test/test_job_vn.rb +22 -0
- data/test/test_locale.rb +10 -4
- data/test/test_lorem.rb +18 -11
- data/test/test_lorem_ar.rb +16 -8
- data/test/test_lorem_cn.rb +9 -2
- data/test/test_lorem_fr.rb +16 -8
- data/test/test_lorem_ja.rb +81 -0
- data/test/test_lorem_kr.rb +17 -8
- data/test/test_lorem_ua.rb +15 -8
- data/test/test_module_utils.rb +2 -2
- data/test/test_movie.rb +5 -1
- data/test/test_music.rb +11 -4
- data/test/test_name.rb +114 -1
- data/test/test_name_br.rb +41 -2
- data/test/test_name_cn.rb +7 -0
- data/test/test_name_cs.rb +7 -0
- data/test/test_name_da.rb +13 -6
- data/test/test_name_de.rb +4 -0
- data/test/test_name_fr.rb +7 -0
- data/test/test_name_ga.rb +7 -0
- data/test/test_name_gr.rb +70 -0
- data/test/test_name_it.rb +7 -0
- data/test/test_name_ja.rb +7 -0
- data/test/test_name_kh.rb +32 -0
- data/test/test_name_kr.rb +7 -0
- data/test/test_name_mx.rb +9 -0
- data/test/test_name_nb.rb +8 -0
- data/test/test_name_nl.rb +4 -0
- data/test/test_name_ph.rb +7 -0
- data/test/test_name_ru.rb +10 -3
- data/test/test_name_se.rb +12 -4
- data/test/test_name_sn.rb +8 -0
- data/test/test_name_th.rb +7 -0
- data/test/test_name_th_en.rb +35 -0
- data/test/test_name_ua.rb +26 -17
- data/test/test_name_vn.rb +42 -0
- data/test/test_nato_alphabet.rb +15 -4
- data/test/test_phone_number.rb +24 -6
- data/test/test_phone_number_au.rb +17 -6
- data/test/test_phone_number_br.rb +22 -13
- data/test/test_phone_number_cu.rb +29 -18
- data/test/test_phone_number_da.rb +16 -7
- data/test/test_phone_number_de.rb +17 -9
- data/test/test_phone_number_kr.rb +9 -0
- data/test/test_phone_number_mx.rb +16 -8
- data/test/test_phone_number_nl.rb +9 -2
- data/test/test_phone_number_se.rb +12 -7
- data/test/test_phone_number_sg.rb +17 -9
- data/test/test_phone_number_sn.rb +12 -4
- data/test/test_products.rb +22 -0
- data/test/test_skill.rb +8 -2
- data/test/test_sports.rb +4 -0
- data/test/test_ssn.rb +3 -1
- data/test/test_ssn_mx.rb +6 -1
- data/test/test_ssn_se.rb +3 -0
- data/test/test_string.rb +28 -1
- data/test/test_time.rb +33 -2
- data/test/test_tweet.rb +59 -0
- data/test/test_units.rb +7 -0
- data/test/test_units_english.rb +9 -0
- data/test/test_units_metric.rb +9 -0
- data/test/test_vehicle.rb +24 -15
- data/test/test_venue.rb +5 -1
- data/test/test_youtube.rb +28 -0
- metadata +101 -5
- data/lib/ffaker/data/name/first_names +0 -3008
- data/lib/ffaker/data/name_br/first_names +0 -91
data/lib/ffaker/data/sport/names
CHANGED
@@ -1,34 +1,67 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
Kitesurfing
|
5
|
-
Mountain Bike
|
6
|
-
Longboard
|
7
|
-
Skateboarding
|
8
|
-
Windsurfing
|
9
|
-
Bodysurfing
|
1
|
+
Archery
|
2
|
+
Artistic Gymnastics
|
3
|
+
Athletics
|
10
4
|
BMX
|
5
|
+
Badminton
|
11
6
|
Base jumping
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
18
21
|
Football
|
22
|
+
Formula Indy
|
23
|
+
Formula One
|
24
|
+
Golf
|
25
|
+
Handball
|
19
26
|
Hockey
|
20
|
-
Basketball
|
21
|
-
Rugby
|
22
|
-
Running
|
23
27
|
Jiu Jitsu
|
24
|
-
Mixed Martial Arts
|
25
|
-
Karate
|
26
28
|
Judo
|
27
|
-
|
29
|
+
Karate
|
28
30
|
Kickboxing
|
31
|
+
Kitesurfing
|
32
|
+
Longboard
|
33
|
+
Marathon Swimming
|
34
|
+
Mixed Martial Arts
|
35
|
+
Modern Pentathlon
|
36
|
+
Mountain Bike
|
29
37
|
Muay-Thai
|
30
|
-
Rapel
|
31
|
-
Formula One
|
32
|
-
Formula Indy
|
33
38
|
Nascar
|
34
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,58 @@
|
|
1
|
+
#love
|
2
|
+
#me
|
3
|
+
#tbt
|
4
|
+
#cute
|
5
|
+
#beautiful
|
6
|
+
#girl
|
7
|
+
#follow
|
8
|
+
#happy
|
9
|
+
#summer
|
10
|
+
#bestoftheday
|
11
|
+
#fashion
|
12
|
+
#nofilter
|
13
|
+
#followme
|
14
|
+
#fun
|
15
|
+
#smile
|
16
|
+
#like
|
17
|
+
#pretty
|
18
|
+
#sun
|
19
|
+
#food
|
20
|
+
#friends
|
21
|
+
#lol
|
22
|
+
#bored
|
23
|
+
#swag
|
24
|
+
#cool
|
25
|
+
#funny
|
26
|
+
#life
|
27
|
+
#nature
|
28
|
+
#family
|
29
|
+
#christmas
|
30
|
+
#my
|
31
|
+
#dog
|
32
|
+
#beach
|
33
|
+
#art
|
34
|
+
#hot
|
35
|
+
#photo
|
36
|
+
#amazing
|
37
|
+
#repost
|
38
|
+
#sunset
|
39
|
+
#party
|
40
|
+
#awesome
|
41
|
+
#baby
|
42
|
+
#cat
|
43
|
+
#music
|
44
|
+
#night
|
45
|
+
#followback
|
46
|
+
#clouds
|
47
|
+
#yummy
|
48
|
+
#yum
|
49
|
+
#eyes
|
50
|
+
#sweet
|
51
|
+
#all_shots
|
52
|
+
#school
|
53
|
+
#style
|
54
|
+
#beauty
|
55
|
+
#nice
|
56
|
+
#boy
|
57
|
+
#best
|
58
|
+
#prince
|
@@ -0,0 +1,50 @@
|
|
1
|
+
9bZkp7q19f0
|
2
|
+
RgKAFK5djSk
|
3
|
+
OPf0YbXqDm0
|
4
|
+
e-ORhEE9VVg
|
5
|
+
YQHsXMglC9A
|
6
|
+
nfWlot6h_JM
|
7
|
+
fRh_vgS2dFE
|
8
|
+
HP-MbfHFUqs
|
9
|
+
NUsoVlDFqZg
|
10
|
+
0KSOMA3QBU0
|
11
|
+
YqeW9_5kURI
|
12
|
+
CevxZvSJLk8
|
13
|
+
7PCkvCPvDXk
|
14
|
+
KYniUCGPGLs
|
15
|
+
kffacxfA7G4
|
16
|
+
2vjPBrBU-TM
|
17
|
+
09R8_2nJtjg
|
18
|
+
hT_nvWreIhg
|
19
|
+
AJtDXIazrMo
|
20
|
+
lp-EO5I60KA
|
21
|
+
KQ6zr6kCPj8
|
22
|
+
pRpeEdMmmQ0
|
23
|
+
uelHwf8o7_U
|
24
|
+
DK_0jXPuIr0
|
25
|
+
RBumgq5yVrA
|
26
|
+
QFs3PIZb3js
|
27
|
+
IcrbM1l_BoI
|
28
|
+
PIh2xe4jnpk
|
29
|
+
rYEDA3JcQqw
|
30
|
+
fLexgOxsZu0
|
31
|
+
QcIy9NiNbmo
|
32
|
+
vjW8wmF5VWc
|
33
|
+
YBHQbu5rbdQ
|
34
|
+
450p7goxZqg
|
35
|
+
TapXs54Ah3E
|
36
|
+
y6Sxv-sUYtM
|
37
|
+
CGyEd0aKWZE
|
38
|
+
_OBlgSz8sSM
|
39
|
+
fWNaR-rxAic
|
40
|
+
gCYcHz2k5x0
|
41
|
+
yzTuBuRdAyA
|
42
|
+
iS1g8G_njx8
|
43
|
+
lWA2pjMjpBs
|
44
|
+
ebXbLfLACGM
|
45
|
+
kHSFpGBFGHY
|
46
|
+
8UVNT4wvIGY
|
47
|
+
7OHMqdMpsj8
|
48
|
+
uxpDa-c-4Mc
|
49
|
+
uO59tfQ2TbA
|
50
|
+
QGJuMBdaqIw
|
data/lib/ffaker/dizzle_ipsum.rb
CHANGED
data/lib/ffaker/education.rb
CHANGED
@@ -5,45 +5,46 @@ module FFaker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
-
DEGREE_SHORT_PREFIX = %w(AB BS BSc MA MD DMus DPhil)
|
9
|
-
DEGREE_PREFIX = ['Bachelor of Science', 'Bachelor of Arts', 'Master of Arts', 'Doctor of Medicine', 'Bachelor of Music', 'Doctor of Philosophy']
|
10
8
|
MAJOR_ADJ = %w(Business Systems Industrial Medical Financial Marketing Political Social) + ['Human Resource']
|
11
|
-
SCHOOL_PREFIX = %w(Green South North Wind Lake Hill Lark River Red White)
|
12
|
-
SCHOOL_ADJ = %w(International Global Polytechnic National)
|
13
|
-
SCHOOL_TYPE = %w(School University College Institution Academy)
|
14
|
-
SCHOOL_UNI = %w(University College)
|
9
|
+
SCHOOL_PREFIX = %w(Green South North Wind Lake Hill Lark River Red White).freeze
|
10
|
+
SCHOOL_ADJ = %w(International Global Polytechnic National).freeze
|
11
|
+
SCHOOL_TYPE = %w(School University College Institution Academy).freeze
|
12
|
+
SCHOOL_UNI = %w(University College).freeze
|
15
13
|
|
16
14
|
def degree_short
|
17
|
-
"#{DEGREE_SHORT_PREFIX
|
15
|
+
"#{fetch_sample(DEGREE_SHORT_PREFIX)} in #{major}"
|
18
16
|
end
|
19
17
|
|
20
18
|
def degree
|
21
|
-
"#{DEGREE_PREFIX
|
19
|
+
"#{fetch_sample(DEGREE_PREFIX)} in #{major}"
|
22
20
|
end
|
23
21
|
|
24
22
|
def major
|
25
|
-
"#{MAJOR_ADJ
|
23
|
+
"#{fetch_sample(MAJOR_ADJ)} #{fetch_sample(MAJOR_NOUN)}"
|
26
24
|
end
|
27
25
|
|
28
26
|
def school_name
|
29
|
-
SCHOOL_PREFIX
|
27
|
+
fetch_sample(SCHOOL_PREFIX) + fetch_sample(SCHOOL_SUFFIX)
|
30
28
|
end
|
31
29
|
|
32
30
|
def school_generic_name
|
33
31
|
case rand(2)
|
34
|
-
when 0 then AddressUS::STATE
|
32
|
+
when 0 then fetch_sample(AddressUS::STATE)
|
35
33
|
when 1 then school_name
|
36
34
|
end
|
37
35
|
end
|
38
36
|
|
39
37
|
def school
|
40
38
|
case rand(5)
|
41
|
-
when (0..1)
|
42
|
-
|
43
|
-
when
|
44
|
-
|
39
|
+
when (0..1) then
|
40
|
+
"#{school_name} #{fetch_sample(SCHOOL_TYPE)}"
|
41
|
+
when 2 then
|
42
|
+
"#{school_generic_name} #{fetch_sample(SCHOOL_ADJ)} #{fetch_sample(SCHOOL_TYPE)}"
|
43
|
+
when 3 then
|
44
|
+
"#{fetch_sample(SCHOOL_UNI)} of #{school_generic_name}"
|
45
|
+
when 4 then
|
46
|
+
"#{school_generic_name} #{fetch_sample(SCHOOL_TYPE)} of #{fetch_sample(MAJOR_NOUN)}"
|
45
47
|
end
|
46
48
|
end
|
47
|
-
|
48
49
|
end
|
49
50
|
end
|
data/lib/ffaker/food.rb
CHANGED
@@ -4,24 +4,23 @@ module FFaker
|
|
4
4
|
extend self
|
5
5
|
|
6
6
|
def ingredient
|
7
|
-
|
7
|
+
send(%w(vegetable fruit meat herb_or_spice)[rand 4])
|
8
8
|
end
|
9
9
|
|
10
10
|
def vegetable
|
11
|
-
VEGETABLE
|
11
|
+
fetch_sample(VEGETABLE)
|
12
12
|
end
|
13
13
|
|
14
14
|
def fruit
|
15
|
-
FRUIT
|
15
|
+
fetch_sample(FRUIT)
|
16
16
|
end
|
17
17
|
|
18
18
|
def meat
|
19
|
-
MEAT
|
19
|
+
fetch_sample(MEAT)
|
20
20
|
end
|
21
21
|
|
22
22
|
def herb_or_spice
|
23
|
-
HERB_SPICE
|
23
|
+
fetch_sample(HERB_SPICE)
|
24
24
|
end
|
25
|
-
|
26
25
|
end
|
27
26
|
end
|
data/lib/ffaker/gender.rb
CHANGED
@@ -5,13 +5,13 @@ module FFaker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
-
GENDERS = %w(male female)
|
8
|
+
GENDERS = %w(male female).freeze
|
9
9
|
|
10
10
|
def random
|
11
|
-
GENDERS
|
11
|
+
fetch_sample(GENDERS)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
alias maybe random
|
15
|
+
alias sample random
|
16
16
|
end
|
17
17
|
end
|
data/lib/ffaker/gender_cn.rb
CHANGED
@@ -5,13 +5,13 @@ module FFaker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
-
GENDERS = %w(男 女)
|
8
|
+
GENDERS = %w(男 女).freeze
|
9
9
|
|
10
10
|
def random
|
11
|
-
GENDERS
|
11
|
+
fetch_sample(GENDERS)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
alias maybe random
|
15
|
+
alias sample random
|
16
16
|
end
|
17
17
|
end
|
data/lib/ffaker/gender_kr.rb
CHANGED
@@ -5,13 +5,13 @@ module FFaker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
-
GENDERS = %w(남 녀)
|
8
|
+
GENDERS = %w(남 녀).freeze
|
9
9
|
|
10
10
|
def random
|
11
|
-
GENDERS
|
11
|
+
fetch_sample(GENDERS)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
alias maybe random
|
15
|
+
alias sample random
|
16
16
|
end
|
17
17
|
end
|
data/lib/ffaker/geolocation.rb
CHANGED
@@ -6,43 +6,43 @@ module FFaker
|
|
6
6
|
extend self
|
7
7
|
|
8
8
|
def lat
|
9
|
-
LATLNG
|
9
|
+
fetch_sample(LATLNG)[0]
|
10
10
|
end
|
11
11
|
|
12
12
|
def lng
|
13
|
-
LATLNG
|
13
|
+
fetch_sample(LATLNG)[1]
|
14
14
|
end
|
15
15
|
|
16
16
|
LATLNG = [
|
17
|
-
[41.022921
|
18
|
-
[40.6665875097692
|
19
|
-
[40.6175673160943
|
20
|
-
[40.7916523500249
|
21
|
-
[40.7532199291845
|
22
|
-
[38.9962071932467
|
23
|
-
[39.0788984258721
|
24
|
-
[40.8831107806302
|
25
|
-
[36.2345447488
|
26
|
-
[41.491529
|
27
|
-
[38.4685363769531
|
28
|
-
[33.5775667696072
|
29
|
-
[33.4280828890754
|
30
|
-
[39.9871631180866
|
31
|
-
[25.4804286236799
|
32
|
-
[47.685714288367
|
33
|
-
[47.5173276931226
|
34
|
-
[40.855153
|
35
|
-
[34.3823767402857
|
36
|
-
[37.8768587606888
|
37
|
-
[41.77117
|
38
|
-
]
|
17
|
+
[41.022921, -73.667595], [41.017643, -73.769264], [40.89505, -73.83582], [41.018461, -73.66616],
|
18
|
+
[40.6665875097692, -73.8830092325694], [40.6784867492198, -73.9716387729985], [40.5998084142575, -73.9385565185842],
|
19
|
+
[40.6175673160943, -74.0002511295821], [40.7451545655034, -73.971855164776], [40.7143394939935, -73.9783896644132],
|
20
|
+
[40.7916523500249, -73.9693478828185], [40.8005590858048, -73.9473684707957], [40.7292057951864, -73.7555431517841],
|
21
|
+
[40.7532199291845, -73.8842977517553], [40.7490546706085, -73.9187706945134], [40.6609944585817, -73.8454648940358],
|
22
|
+
[38.9962071932467, -77.0898681997577], [38.9614005154765, -77.0739996811784], [38.9381545320739, -77.0656875352079],
|
23
|
+
[39.0788984258721, -77.0500853418371], [40.8377346033077, -73.8618025934729], [40.8377346033077, -73.8618025934729],
|
24
|
+
[40.8831107806302, -73.9212453413708], [40.9077802515069, -73.9025768857695], [36.1936372347, -115.068968492],
|
25
|
+
[36.2345447488, -115.327274645], [36.1257785585, -115.08848819], [36.0150030591, -115.120716573], [41.5205, -81.587],
|
26
|
+
[41.491529, -81.611008], [41.4811, -81.9136], [41.5244, -81.5531], [38.5241394042969, -90.3121643066406],
|
27
|
+
[38.4685363769531, -90.3760452270508], [38.7077140808105, -90.2698593139648], [38.7953453063965, -90.2058792114258],
|
28
|
+
[33.5775667696072, -112.21954995412], [33.4136301699617, -112.605812600303], [33.3732084677927, -111.602125919385],
|
29
|
+
[33.4280828890754, -112.496547310057], [40.0677174866262, -75.0764604391247], [39.9760149034563, -75.1786003814711],
|
30
|
+
[39.9871631180866, -75.1862338204704], [39.9847861520773, -75.110396933127], [26.1180992126465, -80.149299621582],
|
31
|
+
[25.4804286236799, -80.4256357381565], [26.1793003082275, -80.1410980224609], [26.5322723388672, -80.1300048828125],
|
32
|
+
[47.685714288367, -122.340967372417], [47.6993431274679, -122.395610510952], [47.7553943974153, -122.305764516646],
|
33
|
+
[47.5173276931226, -122.275152683751], [40.78595, -73.196244], [40.927955, -73.048076], [41.022872, -72.204989],
|
34
|
+
[40.855153, -72.572405], [34.101011924908, -118.064638782714], [34.2430955947492, -118.427610513239],
|
35
|
+
[34.3823767402857, -118.550562688364], [33.8256050190507, -118.281161297494], [37.5758033375583, -122.012044535507],
|
36
|
+
[37.8768587606888, -122.078250641083], [37.6859990796181, -122.094516147761], [37.4660979087165, -121.900873639257],
|
37
|
+
[41.77117, -87.888795], [41.900425, -87.624262], [41.737173, -87.869998]
|
38
|
+
].freeze
|
39
39
|
|
40
40
|
def boxed_coords(upper_left, lower_right)
|
41
41
|
latitude_range = [upper_left[0], lower_right[0]].sort
|
42
42
|
longitude_range = [upper_left[1], lower_right[1]].sort
|
43
43
|
|
44
|
-
latitude = latitude_range[0] + rand
|
45
|
-
longitude = longitude_range[0] + rand
|
44
|
+
latitude = latitude_range[0] + rand * (latitude_range[1] - latitude_range[0])
|
45
|
+
longitude = longitude_range[0] + rand * (longitude_range[1] - longitude_range[0])
|
46
46
|
|
47
47
|
[latitude, longitude]
|
48
48
|
end
|