ffaker 1.31.0 → 1.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/ffaker.gemspec +11 -3
- data/lib/ffaker.rb +2 -2
- data/lib/ffaker/address.rb +4 -6
- data/lib/ffaker/address_au.rb +26 -29
- data/lib/ffaker/address_br.rb +2 -2
- data/lib/ffaker/address_ca.rb +7 -3
- data/lib/ffaker/address_da.rb +6 -9
- data/lib/ffaker/address_de.rb +1 -3
- data/lib/ffaker/address_fi.rb +3 -3
- data/lib/ffaker/address_fr.rb +6 -6
- data/lib/ffaker/address_nl.rb +2 -2
- data/lib/ffaker/address_se.rb +3 -4
- data/lib/ffaker/address_uk.rb +3 -3
- data/lib/ffaker/address_us.rb +4 -4
- data/lib/ffaker/company.rb +4 -4
- data/lib/ffaker/company_it.rb +3 -4
- data/lib/ffaker/company_se.rb +2 -3
- data/lib/ffaker/currency.rb +16 -0
- data/lib/ffaker/data/address_ca/city +181 -0
- data/lib/ffaker/data/currency/currency_code +169 -0
- data/lib/ffaker/data/currency/currency_name +169 -0
- data/lib/ffaker/data/lorem_kr/words +47 -0
- data/lib/ffaker/education.rb +8 -7
- data/lib/ffaker/geolocation.rb +1 -1
- data/lib/ffaker/html_ipsum.rb +1 -1
- data/lib/ffaker/identification.rb +3 -3
- data/lib/ffaker/identification_es.rb +2 -3
- data/lib/ffaker/identification_es_co.rb +4 -3
- data/lib/ffaker/identification_mx.rb +4 -5
- data/lib/ffaker/internet.rb +7 -7
- data/lib/ffaker/internet_se.rb +8 -8
- data/lib/ffaker/job_fr.rb +1 -1
- data/lib/ffaker/lorem_kr.rb +36 -0
- data/lib/ffaker/movie.rb +6 -7
- data/lib/ffaker/name.rb +3 -3
- data/lib/ffaker/name_br.rb +2 -2
- data/lib/ffaker/name_cs.rb +11 -14
- data/lib/ffaker/name_da.rb +2 -1
- data/lib/ffaker/name_de.rb +2 -2
- data/lib/ffaker/name_fr.rb +1 -1
- data/lib/ffaker/name_ga.rb +1 -1
- data/lib/ffaker/name_it.rb +1 -1
- data/lib/ffaker/name_mx.rb +3 -3
- data/lib/ffaker/name_nb.rb +2 -2
- data/lib/ffaker/name_nl.rb +2 -2
- data/lib/ffaker/name_ru.rb +19 -18
- data/lib/ffaker/name_se.rb +2 -2
- data/lib/ffaker/name_sn.rb +2 -2
- data/lib/ffaker/nato_alphabet.rb +2 -2
- data/lib/ffaker/phone_number_cu.rb +133 -0
- data/lib/ffaker/phone_number_fr.rb +5 -5
- data/lib/ffaker/phone_number_it.rb +3 -3
- data/lib/ffaker/phone_number_nl.rb +6 -9
- data/lib/ffaker/phone_number_se.rb +12 -13
- data/lib/ffaker/product.rb +6 -6
- data/lib/ffaker/ssn_se.rb +2 -2
- data/lib/ffaker/string.rb +6 -6
- data/lib/ffaker/time.rb +2 -2
- data/lib/ffaker/unit.rb +13 -14
- data/lib/ffaker/unit_english.rb +35 -38
- data/lib/ffaker/unit_metric.rb +26 -30
- data/lib/ffaker/utils/array_utils.rb +1 -1
- data/lib/ffaker/vehicle.rb +7 -8
- data/test/test_address_ca.rb +4 -0
- data/test/test_identification_co.rb +7 -13
- data/test/test_lorem_kr.rb +47 -0
- data/test/test_name_cn.rb +9 -1
- data/test/test_phone_number_cu.rb +86 -0
- data/test/test_ssn_se.rb +6 -7
- metadata +13 -3
- data/lib/ffaker/course_fr.rb +0 -22
data/lib/ffaker/company_it.rb
CHANGED
@@ -5,6 +5,9 @@ module Faker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
+
PREFIXES = ["Studio Legale", "Studio Tecnico", "Laboratorio"]
|
9
|
+
SUFFIXES = %w(S.p.a. s.r.l. s.n.c. Avvocati Architetti Ingegneri)
|
10
|
+
|
8
11
|
def name
|
9
12
|
case rand(2)
|
10
13
|
when 0 then "#{NameIT.last_name} #{suffix}"
|
@@ -20,9 +23,5 @@ module Faker
|
|
20
23
|
def prefix
|
21
24
|
PREFIXES.sample
|
22
25
|
end
|
23
|
-
|
24
|
-
PREFIXES = k ["Studio Legale", "Studio Tecnico", "Laboratorio"]
|
25
|
-
SUFFIXES = k %w(S.p.a. s.r.l. s.n.c. Avvocati Architetti Ingegneri)
|
26
|
-
|
27
26
|
end
|
28
27
|
end
|
data/lib/ffaker/company_se.rb
CHANGED
@@ -5,6 +5,8 @@ module Faker
|
|
5
5
|
extend ModuleUtils
|
6
6
|
extend self
|
7
7
|
|
8
|
+
SUFFIXES = %w(AB Aktiebolag Ab)
|
9
|
+
|
8
10
|
def name
|
9
11
|
case rand(3)
|
10
12
|
when 0 then "#{NameSE.last_name} #{suffix}"
|
@@ -17,8 +19,5 @@ module Faker
|
|
17
19
|
def suffix
|
18
20
|
SUFFIXES.sample
|
19
21
|
end
|
20
|
-
|
21
|
-
SUFFIXES = k %w(AB Aktiebolag Ab)
|
22
|
-
|
23
22
|
end
|
24
23
|
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
Toronto
|
2
|
+
Montreal
|
3
|
+
Calgary
|
4
|
+
Ottawa
|
5
|
+
Edmonton
|
6
|
+
Mississauga
|
7
|
+
Winnipeg
|
8
|
+
Vancouver
|
9
|
+
Brampton
|
10
|
+
Hamilton
|
11
|
+
Quebec City
|
12
|
+
Surrey
|
13
|
+
Laval
|
14
|
+
Halifax
|
15
|
+
London
|
16
|
+
Markham
|
17
|
+
Vaughan
|
18
|
+
Gatineau
|
19
|
+
Longueuil
|
20
|
+
Burnaby
|
21
|
+
Saskatoon
|
22
|
+
Kitchener
|
23
|
+
Windsor
|
24
|
+
Regina
|
25
|
+
Richmond
|
26
|
+
Richmond Hill
|
27
|
+
Oakville
|
28
|
+
Burlington
|
29
|
+
Greater Sudbury
|
30
|
+
Sherbrooke
|
31
|
+
Oshawa
|
32
|
+
Saguenay
|
33
|
+
Barrie
|
34
|
+
Abbotsford
|
35
|
+
St. Catharines
|
36
|
+
Trois-Rivières
|
37
|
+
Cambridge
|
38
|
+
Coquitlam
|
39
|
+
Kingston
|
40
|
+
Whitby
|
41
|
+
Guelph
|
42
|
+
Kelowna
|
43
|
+
Saanich
|
44
|
+
Ajax
|
45
|
+
Thunder Bay
|
46
|
+
Terrebonne
|
47
|
+
St. John's
|
48
|
+
Langley
|
49
|
+
Chatham-Kent
|
50
|
+
Delta
|
51
|
+
Waterloo
|
52
|
+
Cape Breton
|
53
|
+
Brantford
|
54
|
+
Strathcona County
|
55
|
+
Saint-Jean-sur-Richelieu
|
56
|
+
Red Deer
|
57
|
+
Pickering
|
58
|
+
Kamloops
|
59
|
+
Clarington
|
60
|
+
North Vancouver
|
61
|
+
Milton
|
62
|
+
Nanaimo
|
63
|
+
Lethbridge
|
64
|
+
Niagara Falls
|
65
|
+
Repentigny
|
66
|
+
Victoria
|
67
|
+
Newmarket
|
68
|
+
Brossard
|
69
|
+
Peterborough
|
70
|
+
Chilliwack
|
71
|
+
Maple Ridge
|
72
|
+
Sault Ste. Marie
|
73
|
+
Kawartha Lakes
|
74
|
+
Sarnia
|
75
|
+
Prince George
|
76
|
+
Drummondville
|
77
|
+
Saint John
|
78
|
+
Moncton
|
79
|
+
Saint-Jérôme
|
80
|
+
New Westminster
|
81
|
+
Wood Buffalo
|
82
|
+
Granby
|
83
|
+
Norfolk County
|
84
|
+
St. Albert
|
85
|
+
Medicine Hat
|
86
|
+
Caledon
|
87
|
+
Halton Hills
|
88
|
+
Port Coquitlam
|
89
|
+
Fredericton
|
90
|
+
Grande Prairie
|
91
|
+
North Bay
|
92
|
+
Blainville
|
93
|
+
Saint-Hyacinthe
|
94
|
+
Aurora
|
95
|
+
Welland
|
96
|
+
Shawinigan
|
97
|
+
Dollard-des-Ormeaux
|
98
|
+
Belleville
|
99
|
+
North Vancouver
|
100
|
+
La Tuque
|
101
|
+
Toronto
|
102
|
+
Senneterre
|
103
|
+
Rouyn-Noranda
|
104
|
+
Halifax Regional Municipality
|
105
|
+
Val-d'Or
|
106
|
+
Greater Sudbury
|
107
|
+
Kawartha Lakes
|
108
|
+
Timmins
|
109
|
+
Cape Breton Regional Municipality
|
110
|
+
Queens
|
111
|
+
Gillam
|
112
|
+
Sept-Îles
|
113
|
+
Norfolk County
|
114
|
+
Leaf Rapids
|
115
|
+
Haldimand County
|
116
|
+
Snow Lake
|
117
|
+
Gaspé
|
118
|
+
Port-Cartier
|
119
|
+
Prince Edward County
|
120
|
+
Lynn Lake
|
121
|
+
County of Brant
|
122
|
+
Témiscaming
|
123
|
+
Huntsville
|
124
|
+
Chibougamau
|
125
|
+
Elliot Lake
|
126
|
+
Caledon
|
127
|
+
Saint-Raymond
|
128
|
+
Laurentian Hills
|
129
|
+
Bracebridge
|
130
|
+
Iroquois Falls
|
131
|
+
Mont-Laurier
|
132
|
+
Dégelis
|
133
|
+
Belleterre
|
134
|
+
Baie-Saint-Paul
|
135
|
+
Cochrane
|
136
|
+
South Bruce Peninsula
|
137
|
+
Lakeshore
|
138
|
+
Kearney
|
139
|
+
Blind River
|
140
|
+
Gravenhurst
|
141
|
+
Mississippi Mills
|
142
|
+
Northeastern Manitoulin and the Islands
|
143
|
+
Quinte West
|
144
|
+
Mirabel
|
145
|
+
Fermont
|
146
|
+
Greater Napanee
|
147
|
+
La Malbaie
|
148
|
+
Rivière-Rouge
|
149
|
+
Québec City
|
150
|
+
Lévis
|
151
|
+
St. John's
|
152
|
+
Bécancour
|
153
|
+
Percé
|
154
|
+
Amos
|
155
|
+
Chandler
|
156
|
+
Whitehorse
|
157
|
+
Gracefield
|
158
|
+
Baie Verte
|
159
|
+
Milton
|
160
|
+
Saint-Félicien
|
161
|
+
Pohénégamook
|
162
|
+
Baie-Comeau
|
163
|
+
Thunder Bay
|
164
|
+
Plympton–Wyoming
|
165
|
+
Prince George
|
166
|
+
Saint John
|
167
|
+
North Bay
|
168
|
+
Happy Valley-Goose Bay
|
169
|
+
Minto
|
170
|
+
Erin
|
171
|
+
Clarence-Rockland
|
172
|
+
Cookshire-Eaton
|
173
|
+
Dolbeau-Mistassini
|
174
|
+
Trois-Rivières
|
175
|
+
Georgina
|
176
|
+
The Blue Mountains
|
177
|
+
Innisfil
|
178
|
+
Essex
|
179
|
+
Mono
|
180
|
+
Halton Hills
|
181
|
+
New Tecumseth
|
@@ -0,0 +1,169 @@
|
|
1
|
+
AED
|
2
|
+
AFN
|
3
|
+
ALL
|
4
|
+
AMD
|
5
|
+
ANG
|
6
|
+
AOA
|
7
|
+
ARS
|
8
|
+
AUD
|
9
|
+
AWG
|
10
|
+
AZN
|
11
|
+
BAM
|
12
|
+
BBD
|
13
|
+
BDT
|
14
|
+
BGN
|
15
|
+
BHD
|
16
|
+
BIF
|
17
|
+
BMD
|
18
|
+
BND
|
19
|
+
BOB
|
20
|
+
BRL
|
21
|
+
BSD
|
22
|
+
BWP
|
23
|
+
BYR
|
24
|
+
BZD
|
25
|
+
CAD
|
26
|
+
CDF
|
27
|
+
CHF
|
28
|
+
CLP
|
29
|
+
CNY
|
30
|
+
COP
|
31
|
+
CRC
|
32
|
+
CUP
|
33
|
+
CVE
|
34
|
+
CZK
|
35
|
+
DJF
|
36
|
+
DKK
|
37
|
+
DOP
|
38
|
+
DZD
|
39
|
+
EEK
|
40
|
+
EGP
|
41
|
+
ERN
|
42
|
+
ETB
|
43
|
+
EUR
|
44
|
+
FJD
|
45
|
+
FKP
|
46
|
+
GBP
|
47
|
+
GEL
|
48
|
+
GHS
|
49
|
+
GIP
|
50
|
+
GMD
|
51
|
+
GNF
|
52
|
+
GTQ
|
53
|
+
GYD
|
54
|
+
HKD
|
55
|
+
HNL
|
56
|
+
HRK
|
57
|
+
HTG
|
58
|
+
HUF
|
59
|
+
IDR
|
60
|
+
ILS
|
61
|
+
INR
|
62
|
+
INR
|
63
|
+
IQD
|
64
|
+
IRR
|
65
|
+
ISK
|
66
|
+
JMD
|
67
|
+
JOD
|
68
|
+
JPY
|
69
|
+
KES
|
70
|
+
KGS
|
71
|
+
KHR
|
72
|
+
KMF
|
73
|
+
KPW
|
74
|
+
KRW
|
75
|
+
KWD
|
76
|
+
KYD
|
77
|
+
KZT
|
78
|
+
LAK
|
79
|
+
LBP
|
80
|
+
LKR
|
81
|
+
LRD
|
82
|
+
LTL
|
83
|
+
LVL
|
84
|
+
LYD
|
85
|
+
MAD
|
86
|
+
MDL
|
87
|
+
MGA
|
88
|
+
MKD
|
89
|
+
MMK
|
90
|
+
MNT
|
91
|
+
MOP
|
92
|
+
MRO
|
93
|
+
MUR
|
94
|
+
MVR
|
95
|
+
MWK
|
96
|
+
MXN
|
97
|
+
MYR
|
98
|
+
MZN
|
99
|
+
NGN
|
100
|
+
NIO
|
101
|
+
NOK
|
102
|
+
NPR
|
103
|
+
NZD
|
104
|
+
OMR
|
105
|
+
PAB
|
106
|
+
PEN
|
107
|
+
PGK
|
108
|
+
PHP
|
109
|
+
PKR
|
110
|
+
PLN
|
111
|
+
PYG
|
112
|
+
QAR
|
113
|
+
RON
|
114
|
+
RSD
|
115
|
+
RUB
|
116
|
+
RWF
|
117
|
+
SAR
|
118
|
+
SBD
|
119
|
+
SCR
|
120
|
+
SDG
|
121
|
+
SEK
|
122
|
+
SGD
|
123
|
+
SHP
|
124
|
+
SLL
|
125
|
+
SOS
|
126
|
+
SRD
|
127
|
+
STD
|
128
|
+
SVC
|
129
|
+
SYP
|
130
|
+
SZL
|
131
|
+
THB
|
132
|
+
TJS
|
133
|
+
TMT
|
134
|
+
TND
|
135
|
+
TOP
|
136
|
+
TRY
|
137
|
+
TTD
|
138
|
+
TWD
|
139
|
+
TZS
|
140
|
+
UAH
|
141
|
+
UGX
|
142
|
+
USD
|
143
|
+
UYU
|
144
|
+
UZS
|
145
|
+
VEF
|
146
|
+
VND
|
147
|
+
VUV
|
148
|
+
WST
|
149
|
+
XAF
|
150
|
+
XAG
|
151
|
+
XAU
|
152
|
+
XBA
|
153
|
+
XBB
|
154
|
+
XBC
|
155
|
+
XBD
|
156
|
+
XCD
|
157
|
+
XDR
|
158
|
+
XFU
|
159
|
+
XOF
|
160
|
+
XPD
|
161
|
+
XPF
|
162
|
+
XPT
|
163
|
+
XTS
|
164
|
+
YER
|
165
|
+
ZAR
|
166
|
+
ZAR
|
167
|
+
ZAR
|
168
|
+
ZMK
|
169
|
+
ZWL
|
@@ -0,0 +1,169 @@
|
|
1
|
+
UAE Dirham
|
2
|
+
Afghani
|
3
|
+
Lek
|
4
|
+
Armenian Dram
|
5
|
+
Netherlands Antillian Guilder
|
6
|
+
Kwanza
|
7
|
+
Argentine Peso
|
8
|
+
Australian Dollar
|
9
|
+
Aruban Guilder
|
10
|
+
Azerbaijanian Manat
|
11
|
+
Convertible Marks
|
12
|
+
Barbados Dollar
|
13
|
+
Taka
|
14
|
+
Bulgarian Lev
|
15
|
+
Bahraini Dinar
|
16
|
+
Burundi Franc
|
17
|
+
Bermudian Dollar (customarily known as Bermuda Dollar)
|
18
|
+
Brunei Dollar
|
19
|
+
Boliviano Mvdol
|
20
|
+
Brazilian Real
|
21
|
+
Bahamian Dollar
|
22
|
+
Pula
|
23
|
+
Belarussian Ruble
|
24
|
+
Belize Dollar
|
25
|
+
Canadian Dollar
|
26
|
+
Congolese Franc
|
27
|
+
Swiss Franc
|
28
|
+
Chilean Peso Unidades de fomento
|
29
|
+
Yuan Renminbi
|
30
|
+
Colombian Peso Unidad de Valor Real
|
31
|
+
Costa Rican Colon
|
32
|
+
Cuban Peso Peso Convertible
|
33
|
+
Cape Verde Escudo
|
34
|
+
Czech Koruna
|
35
|
+
Djibouti Franc
|
36
|
+
Danish Krone
|
37
|
+
Dominican Peso
|
38
|
+
Algerian Dinar
|
39
|
+
Kroon
|
40
|
+
Egyptian Pound
|
41
|
+
Nakfa
|
42
|
+
Ethiopian Birr
|
43
|
+
Euro
|
44
|
+
Fiji Dollar
|
45
|
+
Falkland Islands Pound
|
46
|
+
Pound Sterling
|
47
|
+
Lari
|
48
|
+
Cedi
|
49
|
+
Gibraltar Pound
|
50
|
+
Dalasi
|
51
|
+
Guinea Franc
|
52
|
+
Quetzal
|
53
|
+
Guyana Dollar
|
54
|
+
Hong Kong Dollar
|
55
|
+
Lempira
|
56
|
+
Croatian Kuna
|
57
|
+
Gourde US Dollar
|
58
|
+
Forint
|
59
|
+
Rupiah
|
60
|
+
New Israeli Sheqel
|
61
|
+
Indian Rupee
|
62
|
+
Indian Rupee Ngultrum
|
63
|
+
Iraqi Dinar
|
64
|
+
Iranian Rial
|
65
|
+
Iceland Krona
|
66
|
+
Jamaican Dollar
|
67
|
+
Jordanian Dinar
|
68
|
+
Yen
|
69
|
+
Kenyan Shilling
|
70
|
+
Som
|
71
|
+
Riel
|
72
|
+
Comoro Franc
|
73
|
+
North Korean Won
|
74
|
+
Won
|
75
|
+
Kuwaiti Dinar
|
76
|
+
Cayman Islands Dollar
|
77
|
+
Tenge
|
78
|
+
Kip
|
79
|
+
Lebanese Pound
|
80
|
+
Sri Lanka Rupee
|
81
|
+
Liberian Dollar
|
82
|
+
Lithuanian Litas
|
83
|
+
Latvian Lats
|
84
|
+
Libyan Dinar
|
85
|
+
Moroccan Dirham
|
86
|
+
Moldovan Leu
|
87
|
+
Malagasy Ariary
|
88
|
+
Denar
|
89
|
+
Kyat
|
90
|
+
Tugrik
|
91
|
+
Pataca
|
92
|
+
Ouguiya
|
93
|
+
Mauritius Rupee
|
94
|
+
Rufiyaa
|
95
|
+
Kwacha
|
96
|
+
Mexican Peso Mexican Unidad de Inversion (UDI)
|
97
|
+
Malaysian Ringgit
|
98
|
+
Metical
|
99
|
+
Naira
|
100
|
+
Cordoba Oro
|
101
|
+
Norwegian Krone
|
102
|
+
Nepalese Rupee
|
103
|
+
New Zealand Dollar
|
104
|
+
Rial Omani
|
105
|
+
Balboa US Dollar
|
106
|
+
Nuevo Sol
|
107
|
+
Kina
|
108
|
+
Philippine Peso
|
109
|
+
Pakistan Rupee
|
110
|
+
Zloty
|
111
|
+
Guarani
|
112
|
+
Qatari Rial
|
113
|
+
New Leu
|
114
|
+
Serbian Dinar
|
115
|
+
Russian Ruble
|
116
|
+
Rwanda Franc
|
117
|
+
Saudi Riyal
|
118
|
+
Solomon Islands Dollar
|
119
|
+
Seychelles Rupee
|
120
|
+
Sudanese Pound
|
121
|
+
Swedish Krona
|
122
|
+
Singapore Dollar
|
123
|
+
Saint Helena Pound
|
124
|
+
Leone
|
125
|
+
Somali Shilling
|
126
|
+
Surinam Dollar
|
127
|
+
Dobra
|
128
|
+
El Salvador Colon US Dollar
|
129
|
+
Syrian Pound
|
130
|
+
Lilangeni
|
131
|
+
Baht
|
132
|
+
Somoni
|
133
|
+
Manat
|
134
|
+
Tunisian Dinar
|
135
|
+
Pa'anga
|
136
|
+
Turkish Lira
|
137
|
+
Trinidad and Tobago Dollar
|
138
|
+
New Taiwan Dollar
|
139
|
+
Tanzanian Shilling
|
140
|
+
Hryvnia
|
141
|
+
Uganda Shilling
|
142
|
+
US Dollar
|
143
|
+
Peso Uruguayo Uruguay Peso en Unidades Indexadas
|
144
|
+
Uzbekistan Sum
|
145
|
+
Bolivar Fuerte
|
146
|
+
Dong
|
147
|
+
Vatu
|
148
|
+
Tala
|
149
|
+
CFA Franc BEAC
|
150
|
+
Silver
|
151
|
+
Gold
|
152
|
+
Bond Markets Units European Composite Unit (EURCO)
|
153
|
+
European Monetary Unit (E.M.U.-6)
|
154
|
+
European Unit of Account 9(E.U.A.-9)
|
155
|
+
European Unit of Account 17(E.U.A.-17)
|
156
|
+
East Caribbean Dollar
|
157
|
+
SDR
|
158
|
+
UIC-Franc
|
159
|
+
CFA Franc BCEAO
|
160
|
+
Palladium
|
161
|
+
CFP Franc
|
162
|
+
Platinum
|
163
|
+
Codes specifically reserved for testing purposes
|
164
|
+
Yemeni Rial
|
165
|
+
Rand
|
166
|
+
Rand Loti
|
167
|
+
Rand Namibia Dollar
|
168
|
+
Zambian Kwacha
|
169
|
+
Zimbabwe Dollar
|